@acorex-platform/module-workflow-management-client 2.0.0-next.6 → 2.0.0-next.61

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.
Files changed (52) hide show
  1. package/fesm2022/{acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-DaEuz1U-.mjs → acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-CeWy4F28.mjs} +44 -39
  2. package/fesm2022/{acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-DaEuz1U-.mjs.map → acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-CeWy4F28.mjs.map} +1 -1
  3. package/fesm2022/{acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-BPa0Sh6Z.mjs → acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-CCrfObJV.mjs} +1 -1
  4. package/fesm2022/{acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-BPa0Sh6Z.mjs.map → acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-CCrfObJV.mjs.map} +1 -1
  5. package/fesm2022/{acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-DuYGXzAL.mjs → acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-BDfqjyXH.mjs} +2 -2
  6. package/fesm2022/{acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-DuYGXzAL.mjs.map → acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-BDfqjyXH.mjs.map} +1 -1
  7. package/fesm2022/{acorex-platform-module-workflow-management-client-index-BkJuXaZn.mjs → acorex-platform-module-workflow-management-client-commands-CEL0oQEo.mjs} +3 -3
  8. package/fesm2022/acorex-platform-module-workflow-management-client-commands-CEL0oQEo.mjs.map +1 -0
  9. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-Drne-WcE.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-DKJ8J3Du.mjs} +6 -6
  10. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-Drne-WcE.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-DKJ8J3Du.mjs.map} +1 -1
  11. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-3VLEu-L6.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-D3vxC37e.mjs} +2 -2
  12. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-3VLEu-L6.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-D3vxC37e.mjs.map} +1 -1
  13. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-ClVokZpw.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-DeQ9YJnV.mjs} +2 -2
  14. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-ClVokZpw.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-DeQ9YJnV.mjs.map} +1 -1
  15. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-BY4uwLMZ.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-DawSPBc5.mjs} +2 -2
  16. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-BY4uwLMZ.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-DawSPBc5.mjs.map} +1 -1
  17. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-DN9KS_mu.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-CzRfB-p0.mjs} +2 -2
  18. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-DN9KS_mu.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-CzRfB-p0.mjs.map} +1 -1
  19. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-BnfbJExU.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-OAs4J2QH.mjs} +2 -2
  20. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-BnfbJExU.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-OAs4J2QH.mjs.map} +1 -1
  21. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog.mjs +1 -1
  22. package/fesm2022/{acorex-platform-module-workflow-management-client-execute-workflow-with-input.command-BFdyJ4rC.mjs → acorex-platform-module-workflow-management-client-execute-workflow-with-input.command-8fwqrqCV.mjs} +1 -1
  23. package/fesm2022/{acorex-platform-module-workflow-management-client-execute-workflow-with-input.command-BFdyJ4rC.mjs.map → acorex-platform-module-workflow-management-client-execute-workflow-with-input.command-8fwqrqCV.mjs.map} +1 -1
  24. package/fesm2022/{acorex-platform-module-workflow-management-client-execute-workflow.command-D1AQsYgn.mjs → acorex-platform-module-workflow-management-client-execute-workflow.command-CnQgIVaj.mjs} +1 -1
  25. package/fesm2022/{acorex-platform-module-workflow-management-client-execute-workflow.command-D1AQsYgn.mjs.map → acorex-platform-module-workflow-management-client-execute-workflow.command-CnQgIVaj.mjs.map} +1 -1
  26. package/fesm2022/{acorex-platform-module-workflow-management-client-save-workflow-definition-activities.command-spFF77AO.mjs → acorex-platform-module-workflow-management-client-save-workflow-definition-activities.command-CvFHyST8.mjs} +1 -1
  27. package/fesm2022/{acorex-platform-module-workflow-management-client-save-workflow-definition-activities.command-spFF77AO.mjs.map → acorex-platform-module-workflow-management-client-save-workflow-definition-activities.command-CvFHyST8.mjs.map} +1 -1
  28. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-CMVZYS4y.mjs → acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-D7w2TNxB.mjs} +1 -1
  29. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-CMVZYS4y.mjs.map → acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-D7w2TNxB.mjs.map} +1 -1
  30. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-configurator-widget-column.component-D0E2zjIA.mjs → acorex-platform-module-workflow-management-client-workflow-configurator-widget-column.component-DV8K0otJ.mjs} +1 -1
  31. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-configurator-widget-column.component-D0E2zjIA.mjs.map → acorex-platform-module-workflow-management-client-workflow-configurator-widget-column.component-DV8K0otJ.mjs.map} +1 -1
  32. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-CVTeOv-q.mjs → acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-DPMtUBxM.mjs} +3 -3
  33. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-CVTeOv-q.mjs.map → acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-DPMtUBxM.mjs.map} +1 -1
  34. package/fesm2022/{acorex-platform-module-workflow-management-client-index-B0-OPKmr.mjs → acorex-platform-module-workflow-management-client-workflow-definition-activities-page-BaK0DeXk.mjs} +4 -4
  35. package/fesm2022/acorex-platform-module-workflow-management-client-workflow-definition-activities-page-BaK0DeXk.mjs.map +1 -0
  36. package/fesm2022/{acorex-platform-module-workflow-management-client-index-C8nsbDAw.mjs → acorex-platform-module-workflow-management-client-workflow-instance-activity-instances-page-CE7L5ZDi.mjs} +4 -4
  37. package/fesm2022/acorex-platform-module-workflow-management-client-workflow-instance-activity-instances-page-CE7L5ZDi.mjs.map +1 -0
  38. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-live-dashboard.queries--9NtYkau.mjs → acorex-platform-module-workflow-management-client-workflow-live-dashboard.queries-DamdqV3a.mjs} +1 -1
  39. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-live-dashboard.queries--9NtYkau.mjs.map → acorex-platform-module-workflow-management-client-workflow-live-dashboard.queries-DamdqV3a.mjs.map} +1 -1
  40. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-BtQ8OC0Q.mjs → acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-Bnc6NpNz.mjs} +9 -9
  41. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-BtQ8OC0Q.mjs.map → acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-Bnc6NpNz.mjs.map} +1 -1
  42. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-AnJ-Pywf.mjs → acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-ChMzrVoq.mjs} +4 -4
  43. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-AnJ-Pywf.mjs.map → acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-ChMzrVoq.mjs.map} +1 -1
  44. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-34kIeL5C.mjs → acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-CEfYaxTL.mjs} +4 -4
  45. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-34kIeL5C.mjs.map → acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-CEfYaxTL.mjs.map} +1 -1
  46. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-task-popover.component-BjjwcQ2s.mjs → acorex-platform-module-workflow-management-client-workflow-task-popover.component-BqxjT0p7.mjs} +4 -4
  47. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-task-popover.component-BjjwcQ2s.mjs.map → acorex-platform-module-workflow-management-client-workflow-task-popover.component-BqxjT0p7.mjs.map} +1 -1
  48. package/fesm2022/acorex-platform-module-workflow-management-client.mjs +1 -1
  49. package/package.json +2 -2
  50. package/fesm2022/acorex-platform-module-workflow-management-client-index-B0-OPKmr.mjs.map +0 -1
  51. package/fesm2022/acorex-platform-module-workflow-management-client-index-BkJuXaZn.mjs.map +0 -1
  52. package/fesm2022/acorex-platform-module-workflow-management-client-index-C8nsbDAw.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-BtQ8OC0Q.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-history-rows.utils.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-popup.component.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-popup.component.html"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { get, toString } from 'lodash';\nimport type { AXPActivityExecutionContextState, AXPWorkflowActivityInstance, AXPWorkflowDefinition, AXPWorkflowInstance, AXPWorkflowState } from '@acorex-platform/framework-shared/core';\nimport { AXMWorkflowManagementWorkflowInstanceEntityModel } from '@acorex-platform/module-workflow-management-client/contracts';\nimport {\n buildWorkflowTaskDisplayParams,\n buildWorkflowTaskDisplayParamsFromWorkflowState,\n type WorkflowTaskTranslationDeps,\n} from '../../../task-provider/workflow-task-translation.utils';\nimport { formatReadableActivityName } from '../../../workflow-instance-activity-instances-page/workflow-activity-instance-rows.utils';\n\n//#endregion\n\n//#region ---- Types ----\n\n/** One end-user row in the workflow run history timeline. */\nexport interface AXMWorkflowHistoryRow {\n contextId: string;\n /** Graph activity id for this step (`scheduledActivityNodeId`). */\n nodeId: string;\n stepTitle: string;\n status: string;\n statusDisplay: string;\n performedBy: string;\n assignee: string;\n startedAt: string;\n completedAt: string | null;\n isHumanTask: boolean;\n /** Steps where assignee and performer are shown (human tasks, forms, sign-off, rejection reason). */\n showsParticipants: boolean;\n}\n\nexport interface AXMWorkflowHistorySummary {\n reporter: string;\n startedAt: string | null;\n}\n\ninterface WorkflowHistoryEntityLookup {\n byKey(id: string): Promise<unknown>;\n}\n\n/** Optional resolvers for localized step and popup titles. */\nexport interface WorkflowHistoryTitleResolveContext {\n resolveActivityDefinitionTitle?: (activityName: string) => Promise<string>;\n resolveEntityRefTitle?: (moduleEntityRef: string) => Promise<string>;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Activity types omitted from end-user history (internal plumbing). */\nconst HIDDEN_ACTIVITY_NAMES = new Set(['workflow-activity:get-current-session-user']);\n\n/** Activity types that show assignee and performer in end-user history. */\nconst USER_PARTICIPANT_ACTIVITY_NAMES = new Set([\n 'workflow-activity:human-task',\n 'workflow-activity:cartable',\n 'workflow-activity:sign-off',\n 'workflow-activity:rejection-reason',\n 'workflow-activity:create-entity-form',\n]);\n\nconst ACTIVITY_STATUS_KEYS: Record<string, string> = {\n Running: '@workflow-management:workflow-run.history.activity-status.running',\n Completed: '@workflow-management:workflow-run.history.activity-status.completed',\n Pending: '@workflow-management:workflow-run.history.activity-status.pending',\n Executing: '@workflow-management:workflow-run.history.activity-status.executing',\n Suspended: '@workflow-management:workflow-run.history.activity-status.suspended',\n Canceled: '@workflow-management:workflow-run.history.activity-status.canceled',\n Cancelled: '@workflow-management:workflow-run.history.activity-status.canceled',\n Faulted: '@workflow-management:workflow-run.history.activity-status.faulted',\n Failed: '@workflow-management:workflow-run.history.activity-status.failed',\n};\n\n//#endregion\n\n//#region ---- Helpers ----\n\nfunction normalizeUserIds(value: unknown): string[] {\n if (value == null) {\n return [];\n }\n if (Array.isArray(value)) {\n return value.filter((v): v is string => typeof v === 'string' && v.trim().length > 0);\n }\n if (typeof value === 'string' && value.trim().length > 0) {\n return [value.trim()];\n }\n return [];\n}\n\nfunction formatPerformedByLabel(label: unknown, id: unknown, empty: string): string {\n const labelText = label != null && String(label).trim() !== '' ? String(label).trim() : '';\n if (labelText && labelText !== 'System') {\n return labelText;\n }\n const idText = id != null && String(id).trim() !== '' ? String(id).trim() : '';\n if (idText) {\n return idText;\n }\n return empty;\n}\n\nfunction isTranslationKey(value: string): boolean {\n return value.trim().startsWith('@');\n}\n\nfunction getGraphHumanTaskContext(graphActivity: AXPWorkflowActivityInstance | undefined): Record<string, unknown> | undefined {\n const context = graphActivity?.inputs?.['context'];\n if (context != null && typeof context === 'object' && !Array.isArray(context)) {\n return context as Record<string, unknown>;\n }\n return undefined;\n}\n\nfunction parseBookmarkPayload(bookmark: {\n payload?: Record<string, unknown> | null;\n payloadJson?: string;\n} | undefined): Record<string, unknown> | null {\n if (bookmark?.payload && typeof bookmark.payload === 'object') {\n return bookmark.payload;\n }\n const raw = bookmark?.payloadJson?.trim();\n if (!raw) {\n return null;\n }\n try {\n const parsed = JSON.parse(raw) as unknown;\n return parsed != null && typeof parsed === 'object' && !Array.isArray(parsed)\n ? (parsed as Record<string, unknown>)\n : null;\n } catch {\n return null;\n }\n}\n\nfunction hasUnresolvedInterpolation(value: string): boolean {\n return /\\{\\{[^}]+\\}\\}/.test(value);\n}\n\nasync function resolveDisplayText(\n translationService: AXTranslationService,\n value: string,\n params?: Record<string, string>,\n): Promise<string> {\n const raw = value?.trim();\n if (!raw) {\n return '';\n }\n if (!isTranslationKey(raw)) {\n return raw;\n }\n return translationService.translateAsync(raw, { params });\n}\n\nfunction isModuleEntityRef(value: string): boolean {\n return /^[A-Za-z][\\w]*\\.[A-Za-z][\\w]*$/.test(value.trim());\n}\n\nasync function resolveGraphActivityTitle(\n translationService: AXTranslationService,\n graphActivity: AXPWorkflowActivityInstance | undefined,\n workflowState: AXPWorkflowState | undefined,\n taskTranslationDeps: WorkflowTaskTranslationDeps,\n titleResolveContext: WorkflowHistoryTitleResolveContext | undefined,\n): Promise<string> {\n const graphTitle = typeof graphActivity?.title === 'string' ? graphActivity.title.trim() : '';\n if (graphTitle) {\n if (isTranslationKey(graphTitle)) {\n const params = await buildWorkflowTaskDisplayParamsFromWorkflowState(workflowState, taskTranslationDeps);\n const resolved = await resolveDisplayText(translationService, graphTitle, params);\n if (resolved && !hasUnresolvedInterpolation(resolved)) {\n return resolved;\n }\n }\n if (isModuleEntityRef(graphTitle) && titleResolveContext?.resolveEntityRefTitle) {\n const entityTitle = await titleResolveContext.resolveEntityRefTitle(graphTitle);\n if (entityTitle.trim()) {\n return entityTitle.trim();\n }\n }\n if (!isModuleEntityRef(graphTitle)) {\n const params = await buildWorkflowTaskDisplayParamsFromWorkflowState(workflowState, taskTranslationDeps);\n const resolved = await resolveDisplayText(translationService, graphTitle, params);\n if (resolved && !hasUnresolvedInterpolation(resolved)) {\n return resolved;\n }\n }\n }\n\n const inputTitle =\n typeof graphActivity?.inputs?.['title'] === 'string' ? graphActivity.inputs['title'].trim() : '';\n if (inputTitle) {\n const params = await buildWorkflowTaskDisplayParamsFromWorkflowState(workflowState, taskTranslationDeps);\n const resolved = await resolveDisplayText(translationService, inputTitle, params);\n if (resolved && !hasUnresolvedInterpolation(resolved)) {\n return resolved;\n }\n }\n\n const activityName = graphActivity?.name?.trim() ?? '';\n if (activityName && titleResolveContext?.resolveActivityDefinitionTitle) {\n const definitionTitle = await titleResolveContext.resolveActivityDefinitionTitle(activityName);\n if (definitionTitle.trim()) {\n return definitionTitle.trim();\n }\n }\n\n return '';\n}\n\nasync function resolveStepTitle(\n translationService: AXTranslationService,\n graphActivity: AXPWorkflowActivityInstance | undefined,\n nodeId: string,\n isHumanTask: boolean,\n payload: Record<string, unknown> | null,\n workflowState: AXPWorkflowState | undefined,\n taskTranslationDeps: WorkflowTaskTranslationDeps,\n titleResolveContext: WorkflowHistoryTitleResolveContext | undefined,\n): Promise<string> {\n if (isHumanTask) {\n const payloadContext =\n payload?.['context'] && typeof payload['context'] === 'object'\n ? (payload['context'] as Record<string, unknown>)\n : undefined;\n const graphContext = getGraphHumanTaskContext(graphActivity);\n const graphParams = await buildWorkflowTaskDisplayParams(graphContext, workflowState, taskTranslationDeps);\n const payloadParams = await buildWorkflowTaskDisplayParams(payloadContext, workflowState, taskTranslationDeps);\n const taskParams = { ...graphParams, ...payloadParams };\n\n const payloadTitle = typeof payload?.['title'] === 'string' ? payload['title'].trim() : '';\n const graphTitle =\n typeof graphActivity?.inputs?.['title'] === 'string' ? graphActivity.inputs['title'].trim() : '';\n const titleSource = payloadTitle || graphTitle;\n\n if (titleSource) {\n const resolved = await resolveDisplayText(translationService, titleSource, taskParams);\n if (resolved && !hasUnresolvedInterpolation(resolved)) {\n return resolved;\n }\n }\n\n if (taskParams['employeeDisplayName']?.trim() && taskParams['leaveTypeTitle']?.trim()) {\n return `${taskParams['employeeDisplayName']} — ${taskParams['leaveTypeTitle']}`;\n }\n }\n\n const resolvedGraphTitle = await resolveGraphActivityTitle(\n translationService,\n graphActivity,\n workflowState,\n taskTranslationDeps,\n titleResolveContext,\n );\n if (resolvedGraphTitle) {\n return resolvedGraphTitle;\n }\n\n const rawTitle = graphActivity?.name\n ? formatReadableActivityName(graphActivity.name)\n : formatReadableActivityName(nodeId);\n return rawTitle;\n}\n\nasync function resolveActivityStatus(\n translationService: AXTranslationService,\n status: string,\n): Promise<string> {\n const normalized = (status ?? '').trim();\n if (!normalized) {\n return '';\n }\n const key = ACTIVITY_STATUS_KEYS[normalized] ?? ACTIVITY_STATUS_KEYS[normalized.toLowerCase()];\n if (key) {\n return translationService.translateAsync(key);\n }\n return formatReadableActivityName(normalized);\n}\n\nasync function resolveUserDisplayName(\n userEntityData: WorkflowHistoryEntityLookup,\n userId: string,\n cache: Map<string, string>,\n): Promise<string> {\n const id = userId.trim();\n if (!id) {\n return '';\n }\n const cached = cache.get(id);\n if (cached) {\n return cached;\n }\n let display = id;\n try {\n const row = await userEntityData.byKey(id);\n if (row && typeof row === 'object') {\n const displayName =\n 'displayName' in row ? String((row as { displayName?: unknown }).displayName ?? '').trim() : '';\n const username = 'username' in row ? String((row as { username?: unknown }).username ?? '').trim() : '';\n display = displayName || username || id;\n }\n } catch {\n display = id;\n }\n cache.set(id, display);\n return display;\n}\n\nasync function resolveAssigneeDisplay(\n payload: Record<string, unknown> | null,\n userEntityData: WorkflowHistoryEntityLookup,\n userCache: Map<string, string>,\n emptyLabel: string,\n): Promise<string> {\n if (!payload) {\n return emptyLabel;\n }\n const assigned = normalizeUserIds(payload['assignedUserIds']);\n if (assigned.length > 0) {\n const names = await Promise.all(assigned.map((id) => resolveUserDisplayName(userEntityData, id, userCache)));\n return names.filter((name) => name.length > 0).join(', ') || emptyLabel;\n }\n const candidates = normalizeUserIds(payload['candidateUserIds']);\n if (candidates.length > 0) {\n const names = await Promise.all(candidates.map((id) => resolveUserDisplayName(userEntityData, id, userCache)));\n return names.filter((name) => name.length > 0).join(', ') || emptyLabel;\n }\n return emptyLabel;\n}\n\n/**\n * Resolves who was assigned to a step (original assignee when take-over occurred).\n */\nasync function resolveStepAssignee(\n nodeId: string,\n props: Record<string, unknown>,\n payload: Record<string, unknown> | null,\n userEntityData: WorkflowHistoryEntityLookup,\n userCache: Map<string, string>,\n emptyLabel: string,\n): Promise<string> {\n const reassign = props[`${nodeId}_reassignedToSelf`];\n if (reassign && typeof reassign === 'object' && !Array.isArray(reassign)) {\n const fromIds = normalizeUserIds((reassign as { fromUserIds?: unknown }).fromUserIds);\n if (fromIds.length > 0) {\n const names = await Promise.all(fromIds.map((id) => resolveUserDisplayName(userEntityData, id, userCache)));\n const joined = names.filter((name) => name.length > 0).join(', ');\n if (joined) {\n return joined;\n }\n }\n }\n\n const assignedAudit = normalizeUserIds(props[`${nodeId}_assignedUserIds`]);\n if (assignedAudit.length > 0) {\n const names = await Promise.all(assignedAudit.map((id) => resolveUserDisplayName(userEntityData, id, userCache)));\n const joined = names.filter((name) => name.length > 0).join(', ');\n if (joined) {\n return joined;\n }\n }\n\n const fromBookmark = await resolveAssigneeDisplay(payload, userEntityData, userCache, '');\n if (fromBookmark) {\n return fromBookmark;\n }\n\n return emptyLabel;\n}\n\nfunction resolveReporterDisplay(instance: AXMWorkflowManagementWorkflowInstanceEntityModel): string {\n const audit = instance.auditInfo?.created?.by;\n if (audit?.fullName?.trim()) {\n return audit.fullName.trim();\n }\n if (instance.assignUserRef?.displayName?.trim()) {\n return instance.assignUserRef.displayName.trim();\n }\n return '';\n}\n\nfunction shouldIncludeActivity(graphActivity: AXPWorkflowActivityInstance | undefined): boolean {\n const name = graphActivity?.name?.trim();\n if (name && HIDDEN_ACTIVITY_NAMES.has(name)) {\n return false;\n }\n return true;\n}\n\n//#endregion\n\n//#region ---- Builder ----\n\n/**\n * Builds end-user workflow history rows (no technical audit fields, resolved titles and user names).\n */\nfunction resolveInstanceStatusTranslationKey(status: string, subStatus: string): string {\n const normalizedStatus = status.trim().toLowerCase();\n const normalizedSubStatus = subStatus.trim().toLowerCase();\n const combined = `${normalizedStatus}-${normalizedSubStatus}`;\n const combinedMap: Record<string, string> = {\n 'running-executing': 'in-progress',\n 'running-suspended': 'pending-user-action',\n 'running-pending': 'waiting',\n 'running-idle': 'waiting',\n 'finished-finished': 'completed',\n 'finished-faulted': 'failed',\n 'finished-cancelled': 'cancelled',\n 'finished-canceled': 'cancelled',\n };\n if (combinedMap[combined]) {\n return combinedMap[combined];\n }\n if (normalizedStatus === 'running') {\n return 'in-progress';\n }\n if (normalizedStatus === 'finished') {\n return 'completed';\n }\n return 'unknown';\n}\n\nasync function resolveWorkflowInstanceStatusDisplay(\n translationService: AXTranslationService,\n instance: AXMWorkflowManagementWorkflowInstanceEntityModel | null | undefined,\n): Promise<string> {\n if (!instance) {\n return '';\n }\n const statusKey = resolveInstanceStatusTranslationKey(String(instance.status ?? ''), String(instance.subStatus ?? ''));\n const translated = await translationService.translateAsync(\n `@workflow-management:workflow-run.history.instance-status.${statusKey}`,\n );\n if (translated.trim()) {\n return translated.trim();\n }\n return instance.statusDisplay?.trim() ?? '';\n}\n\nasync function resolveWorkflowTitle(\n translationService: AXTranslationService,\n definition: AXPWorkflowDefinition | null | undefined,\n instance: AXMWorkflowManagementWorkflowInstanceEntityModel | null | undefined,\n): Promise<string> {\n if (definition?.title != null) {\n const resolved = translationService.resolve(definition.title);\n if (resolved?.trim()) {\n return resolved.trim();\n }\n }\n return (\n instance?.workflowTitle?.trim() ||\n instance?.name?.trim() ||\n instance?.definitionId?.trim() ||\n ''\n );\n}\n\nexport async function buildWorkflowHistoryPopupTitleAsync(\n translationService: AXTranslationService,\n definition: AXPWorkflowDefinition | null | undefined,\n instance: AXMWorkflowManagementWorkflowInstanceEntityModel | null | undefined,\n): Promise<string> {\n const workflowTitle = await resolveWorkflowTitle(translationService, definition, instance);\n const statusDisplay = await resolveWorkflowInstanceStatusDisplay(translationService, instance);\n if (workflowTitle && statusDisplay) {\n return translationService.translateAsync('@workflow-management:workflow-run.history.popup-title', {\n params: { workflowTitle, statusDisplay },\n });\n }\n return workflowTitle || statusDisplay;\n}\n\nexport async function buildWorkflowHistoryRows(\n instance: AXMWorkflowManagementWorkflowInstanceEntityModel | null | undefined,\n definition: AXPWorkflowDefinition | null | undefined,\n translationService: AXTranslationService,\n userEntityData: WorkflowHistoryEntityLookup,\n emptyLabel: string,\n taskTranslationDeps: WorkflowTaskTranslationDeps,\n titleResolveContext?: WorkflowHistoryTitleResolveContext,\n): Promise<AXMWorkflowHistoryRow[]> {\n const wi = instance?.workflowInstance;\n if (!wi?.workflowState) {\n return [];\n }\n\n const props = (wi.workflowState.properties ?? {}) as Record<string, unknown>;\n const contexts = wi.workflowState.activityExecutionContexts ?? [];\n const activities = definition?.graph?.activities ?? [];\n const findActivity = (nodeId: string) => activities.find((a) => a.id === nodeId);\n const workflowState = wi.workflowState;\n const extended = wi as AXPWorkflowInstance & {\n bookmarks?: Array<{\n activityId?: string;\n payload?: Record<string, unknown> | null;\n payloadJson?: string;\n }>;\n };\n const bookmarks = extended.bookmarks ?? [];\n const userCache = new Map<string, string>();\n const rows: AXMWorkflowHistoryRow[] = [];\n\n for (const ctx of contexts as AXPActivityExecutionContextState[]) {\n const nodeId = ctx.scheduledActivityNodeId;\n const graphActivity = findActivity(nodeId);\n if (!shouldIncludeActivity(graphActivity)) {\n continue;\n }\n\n const activityName = graphActivity?.name?.trim() ?? '';\n const isHumanTask =\n activityName === 'workflow-activity:human-task' || activityName === 'workflow-activity:cartable';\n const showsParticipants = USER_PARTICIPANT_ACTIVITY_NAMES.has(activityName);\n const bookmark = bookmarks.find((b) => b.activityId === nodeId);\n const payload = parseBookmarkPayload(bookmark);\n\n const stepTitle = await resolveStepTitle(\n translationService,\n graphActivity,\n nodeId,\n isHumanTask,\n payload,\n workflowState,\n taskTranslationDeps,\n titleResolveContext,\n );\n\n const labelKey = `${nodeId}_completedByLabel`;\n const idKey = `${nodeId}_completedByUserId`;\n let performedBy = '';\n const performedByLabel = formatPerformedByLabel(props[labelKey], props[idKey], '');\n if (performedByLabel && performedByLabel !== 'System') {\n performedBy = performedByLabel;\n } else if (props[idKey] != null && String(props[idKey]).trim() !== '') {\n performedBy = await resolveUserDisplayName(userEntityData, String(props[idKey]), userCache);\n } else if (performedByLabel === 'System') {\n performedBy = await translationService.translateAsync(\n '@workflow-management:workflow-run.history.system-performer',\n );\n } else if (showsParticipants) {\n const fallbackUserId =\n toString(get(props, 'managerUserId')).trim() || toString(get(props, 'initiatorUserId')).trim();\n if (fallbackUserId) {\n performedBy = await resolveUserDisplayName(userEntityData, fallbackUserId, userCache);\n }\n }\n\n let assignee = showsParticipants\n ? await resolveStepAssignee(nodeId, props, payload, userEntityData, userCache, emptyLabel)\n : '';\n if (showsParticipants && (!assignee || assignee === emptyLabel) && performedBy) {\n assignee = performedBy;\n }\n if (showsParticipants && !performedBy) {\n performedBy = emptyLabel;\n }\n if (showsParticipants && !assignee) {\n assignee = emptyLabel;\n }\n\n const status = String(ctx.status ?? '');\n const statusDisplay = await resolveActivityStatus(translationService, status);\n\n rows.push({\n contextId: ctx.id,\n nodeId,\n stepTitle,\n status,\n statusDisplay,\n performedBy,\n assignee,\n startedAt: ctx.startedAt ?? '',\n completedAt: ctx.completedAt ?? null,\n isHumanTask,\n showsParticipants,\n });\n }\n\n rows.sort((a, b) => {\n const ta = new Date(a.startedAt).getTime();\n const tb = new Date(b.startedAt).getTime();\n if (ta !== tb) {\n return ta - tb;\n }\n return a.contextId.localeCompare(b.contextId);\n });\n\n return rows;\n}\n\n/** Popup header: workflow title and human-readable status (e.g. \"Create Leave Request - Completed\"). */\nexport function buildWorkflowHistoryPopupTitle(workflowTitle: string, statusDisplay: string): string {\n const title = workflowTitle.trim();\n const status = statusDisplay.trim();\n if (title && status) {\n return `${title} - ${status}`;\n }\n return title || status;\n}\n\n/** Summary metadata shown above the timeline (reporter and workflow start time). */\nexport function buildWorkflowHistorySummary(\n instance: AXMWorkflowManagementWorkflowInstanceEntityModel | null | undefined,\n): AXMWorkflowHistorySummary {\n if (!instance) {\n return { reporter: '', startedAt: null };\n }\n return {\n reporter: resolveReporterDisplay(instance),\n startedAt: instance.createdAt?.trim() || null,\n };\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n effect,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { AXPopupRef } from '@acorex/components/popup';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTabsModule, AXTabStripChangedEvent } from '@acorex/components/tabs';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { AXPExpressionEvaluatorService } from '@acorex-platform/framework-client/core';\nimport { AXPEntityDefinitionRegistryService, AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport type { AXPWorkflowDefinition } from '@acorex-platform/framework-shared/core';\nimport {\n AXPActivityDefinitionService,\n AXPWorkflowDefinitionService,\n WorkflowExpressionScopeService,\n} from '@acorex-platform/framework-client/workflow';\nimport { AXMWorkflowManagementWorkflowInstanceEntityModel } from '@acorex-platform/module-workflow-management-client/contracts';\nimport {\n AXMWorkflowHistoryRow,\n AXMWorkflowHistorySummary,\n buildWorkflowHistoryPopupTitleAsync,\n buildWorkflowHistoryRows,\n buildWorkflowHistorySummary,\n WorkflowHistoryTitleResolveContext,\n} from './workflow-history-rows.utils';\nimport { rehydrateWorkflowStateInputTitles } from '../../../task-provider/workflow-task-input-rehydration.util';\nimport { AXMWorkflowRunHistoryTimelineTabComponent } from './workflow-run-history-timeline-tab/workflow-run-history-timeline-tab.component';\nimport { AXMWorkflowRunHistoryVisualTabComponent } from './workflow-run-history-visual-tab/workflow-run-history-visual-tab.component';\n\n//#endregion\n\n//#region ---- Component ----\n\n/**\n * Popup: workflow run history with Timeline and Visual diagram tabs.\n */\n@Component({\n selector: 'axm-workflow-run-history-popup',\n templateUrl: './workflow-run-history-popup.component.html',\n styleUrl: './workflow-run-history-popup.component.css',\n imports: [\n CommonModule,\n AXButtonModule,\n AXDecoratorModule,\n AXLoadingModule,\n AXTabsModule,\n AXFormatModule,\n AXTranslationModule,\n AXMWorkflowRunHistoryTimelineTabComponent,\n AXMWorkflowRunHistoryVisualTabComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXMWorkflowRunHistoryPopupComponent extends AXBasePageComponent {\n //#region ---- Popup input ----\n\n instanceId!: string;\n\n /** Injected by {@link AXPopupService} when opened as a popup. */\n readonly __popup__ = input<AXPopupRef | undefined>(undefined);\n\n //#endregion\n\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n private readonly entityDefinitionRegistry = inject(AXPEntityDefinitionRegistryService);\n private readonly activityDefinitionService = inject(AXPActivityDefinitionService);\n private readonly workflowDefinitionService = inject(AXPWorkflowDefinitionService);\n private readonly translationService = inject(AXTranslationService);\n private readonly expressionScopeService = inject(WorkflowExpressionScopeService);\n private readonly expressionEvaluator = inject(AXPExpressionEvaluatorService);\n private readonly userEntityData = this.entityService.withEntity('SecurityManagement', 'User').data<string>();\n\n //#endregion\n\n //#region ---- State ----\n\n protected readonly activeTabIndex = signal(0);\n protected readonly isBusy = signal(true);\n protected readonly summary = signal<AXMWorkflowHistorySummary>({ reporter: '', startedAt: null });\n protected readonly definition = signal<AXPWorkflowDefinition | null>(null);\n protected readonly rows = signal<AXMWorkflowHistoryRow[]>([]);\n\n private readonly popupTitle = signal('');\n\n //#endregion\n\n //#region ---- Lifecycle ----\n\n constructor() {\n super();\n effect(() => {\n const title = this.popupTitle().trim();\n const popupRef = this.__popup__();\n if (title && popupRef) {\n popupRef.setTitle(title);\n }\n });\n }\n\n override async ngOnInit(): Promise<void> {\n super.ngOnInit();\n await this.loadHistory();\n }\n\n //#endregion\n\n //#region ---- Tab handlers ----\n\n protected handleTabChange(event: AXTabStripChangedEvent): void {\n this.activeTabIndex.set(event.index);\n }\n\n //#endregion\n\n //#region ---- Data loading ----\n\n private async loadHistory(): Promise<void> {\n const trimmed = this.instanceId?.trim();\n if (!trimmed) {\n this.isBusy.set(false);\n return;\n }\n\n this.isBusy.set(true);\n try {\n const emptyLabel = '—';\n const loaded = await this.entityService\n .withEntity('WorkflowManagement', 'WorkflowInstance')\n .data<string, AXMWorkflowManagementWorkflowInstanceEntityModel>()\n .byKey(trimmed);\n\n const defId = loaded?.definitionId?.trim();\n let definition: AXPWorkflowDefinition | null = null;\n if (defId) {\n definition = (await this.workflowDefinitionService.getWorkflowByName(defId)) ?? null;\n }\n\n this.definition.set(definition);\n this.popupTitle.set(\n await buildWorkflowHistoryPopupTitleAsync(this.translationService, definition, loaded ?? null),\n );\n this.summary.set(buildWorkflowHistorySummary(loaded ?? null));\n\n const titleResolveContext: WorkflowHistoryTitleResolveContext = {\n resolveActivityDefinitionTitle: async (activityName) => {\n const activityDef = await this.activityDefinitionService.getActivityByName(activityName);\n return activityDef?.title ? (this.translationService.resolve(activityDef.title) ?? '') : '';\n },\n resolveEntityRefTitle: async (moduleEntityRef) => {\n const [module, entity] = moduleEntityRef.split('.');\n if (!module?.trim() || !entity?.trim()) {\n return '';\n }\n try {\n const entityDef = await this.entityDefinitionRegistry.resolve(module.trim(), entity.trim());\n return entityDef?.title ? (this.translationService.resolve(entityDef.title) ?? '') : '';\n } catch {\n return '';\n }\n },\n };\n\n const historyRows = await buildWorkflowHistoryRows(\n loaded ?? null,\n definition,\n this.translationService,\n this.userEntityData,\n emptyLabel,\n {\n expressionScopeService: this.expressionScopeService,\n expressionEvaluator: this.expressionEvaluator,\n translationService: this.translationService,\n resolveWorkflowStateForTasks: (workflowState) =>\n rehydrateWorkflowStateInputTitles(\n workflowState,\n this.translationService,\n async (entity, id) => {\n const row = await this.entityService.withEntity(entity).data().byKey(id as never);\n return row && typeof row === 'object' ? (row as unknown as Record<string, unknown>) : null;\n },\n ),\n },\n titleResolveContext,\n );\n this.rows.set(historyRows);\n } finally {\n this.isBusy.set(false);\n }\n }\n\n //#endregion\n}\n\n//#endregion\n","<ax-content>\n <div class=\"axm-workflow-run-history-popup\">\n <div class=\"axm-workflow-run-history-popup__sticky\">\n <div class=\"axm-workflow-run-history-popup__sticky-bar\">\n @if (summary().reporter || summary().startedAt) {\n <div class=\"axm-workflow-run-history-popup__overview\" role=\"list\">\n @if (summary().reporter) {\n <div class=\"axm-workflow-run-history-popup__overview-item\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-popup__overview-k\">\n {{ '@workflow-management:workflow-run.history.field.reporter' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-popup__overview-v\" [textContent]=\"summary().reporter\"></span>\n </div>\n }\n @if (summary().startedAt) {\n <div class=\"axm-workflow-run-history-popup__overview-item\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-popup__overview-k\">\n {{ '@workflow-management:workflow-run.history.field.started-at' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-popup__overview-v\">\n {{ summary().startedAt | format: 'datetime' : 'short' | async }}\n </span>\n </div>\n }\n </div>\n }\n\n <ax-tabs\n class=\"axm-workflow-run-history-popup__tabs\"\n [look]=\"'with-line'\"\n (onActiveTabChanged)=\"handleTabChange($event)\"\n >\n <ax-tab-item\n [key]=\"'timeline'\"\n [text]=\"('@workflow-management:workflow-run.history.tabs.timeline.title' | translate | async)!\"\n [active]=\"activeTabIndex() === 0\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-list-timeline\"></ax-icon>\n </ax-prefix>\n </ax-tab-item>\n <ax-tab-item\n [key]=\"'visual'\"\n [text]=\"('@workflow-management:workflow-run.history.tabs.visual.title' | translate | async)!\"\n [active]=\"activeTabIndex() === 1\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-diagram-project\"></ax-icon>\n </ax-prefix>\n </ax-tab-item>\n </ax-tabs>\n </div>\n </div>\n\n <div class=\"axm-workflow-run-history-popup__panel\">\n @if (activeTabIndex() === 0) {\n @defer (on viewport) {\n <axm-workflow-run-history-timeline-tab [rows]=\"rows()\" [isBusy]=\"isBusy()\" />\n } @placeholder {\n <div class=\"axm-workflow-run-history-popup__defer-placeholder\" aria-busy=\"true\">\n <ax-loading></ax-loading>\n </div>\n } @loading {\n <div class=\"axm-workflow-run-history-popup__defer-placeholder\" aria-busy=\"true\">\n <ax-loading></ax-loading>\n </div>\n }\n }\n\n @if (activeTabIndex() === 1) {\n @defer (on viewport) {\n <axm-workflow-run-history-visual-tab\n [definition]=\"definition()\"\n [rows]=\"rows()\"\n [isBusy]=\"isBusy()\"\n />\n } @placeholder {\n <div class=\"axm-workflow-run-history-popup__defer-placeholder\" aria-busy=\"true\">\n <ax-loading></ax-loading>\n </div>\n } @loading {\n <div class=\"axm-workflow-run-history-popup__defer-placeholder\" aria-busy=\"true\">\n <ax-loading></ax-loading>\n </div>\n }\n }\n </div>\n </div>\n</ax-content>\n"],"names":["i1","i2","i4","i6"],"mappings":";;;;;;;;;;;;;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AA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,sBAAA,EAAA,CAAA,MAAA;;;;gGAOV,mCAAmC,EAAA,mBAAA,EAAA,MAAA;;;sBAlB/C,SAAS;AACE,gBAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gCAAgC,EAAA,OAAA,EAGjC;4BACP,YAAY;4BACZ,cAAc;4BACd,iBAAiB;4BACjB,eAAe;4BACf,YAAY;4BACZ,cAAc;4BACd,mBAAmB;4BACnB,yCAAyC;4BACzC,uCAAuC;AACxC,yBAAA,EAAA,eAAA,EACgB,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,+kHAAA,EAAA,MAAA,EAAA,CAAA,0gFAAA,CAAA,EAAA;;;"}
1
+ {"version":3,"file":"acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-Bnc6NpNz.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-history-rows.utils.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-popup.component.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-popup.component.html"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { get, toString } from 'lodash';\nimport type { AXPActivityExecutionContextState, AXPWorkflowActivityInstance, AXPWorkflowDefinition, AXPWorkflowInstance, AXPWorkflowState } from '@acorex-platform/framework-shared/core';\nimport { AXMWorkflowManagementWorkflowInstanceEntityModel } from '@acorex-platform/module-workflow-management-client/contracts';\nimport {\n buildWorkflowTaskDisplayParams,\n buildWorkflowTaskDisplayParamsFromWorkflowState,\n type WorkflowTaskTranslationDeps,\n} from '../../../task-provider/workflow-task-translation.utils';\nimport { formatReadableActivityName } from '../../../workflow-instance-activity-instances-page/workflow-activity-instance-rows.utils';\n\n//#endregion\n\n//#region ---- Types ----\n\n/** One end-user row in the workflow run history timeline. */\nexport interface AXMWorkflowHistoryRow {\n contextId: string;\n /** Graph activity id for this step (`scheduledActivityNodeId`). */\n nodeId: string;\n stepTitle: string;\n status: string;\n statusDisplay: string;\n performedBy: string;\n assignee: string;\n startedAt: string;\n completedAt: string | null;\n isHumanTask: boolean;\n /** Steps where assignee and performer are shown (human tasks, forms, sign-off, rejection reason). */\n showsParticipants: boolean;\n}\n\nexport interface AXMWorkflowHistorySummary {\n reporter: string;\n startedAt: string | null;\n}\n\ninterface WorkflowHistoryEntityLookup {\n byKey(id: string): Promise<unknown>;\n}\n\n/** Optional resolvers for localized step and popup titles. */\nexport interface WorkflowHistoryTitleResolveContext {\n resolveActivityDefinitionTitle?: (activityName: string) => Promise<string>;\n resolveEntityRefTitle?: (moduleEntityRef: string) => Promise<string>;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Activity types omitted from end-user history (internal plumbing). */\nconst HIDDEN_ACTIVITY_NAMES = new Set(['workflow-activity:get-current-session-user']);\n\n/** Activity types that show assignee and performer in end-user history. */\nconst USER_PARTICIPANT_ACTIVITY_NAMES = new Set([\n 'workflow-activity:human-task',\n 'workflow-activity:cartable',\n 'workflow-activity:sign-off',\n 'workflow-activity:rejection-reason',\n 'workflow-activity:create-entity-form',\n]);\n\nconst ACTIVITY_STATUS_KEYS: Record<string, string> = {\n Running: '@workflow-management:workflow-run.history.activity-status.running',\n Completed: '@workflow-management:workflow-run.history.activity-status.completed',\n Pending: '@workflow-management:workflow-run.history.activity-status.pending',\n Executing: '@workflow-management:workflow-run.history.activity-status.executing',\n Suspended: '@workflow-management:workflow-run.history.activity-status.suspended',\n Canceled: '@workflow-management:workflow-run.history.activity-status.canceled',\n Cancelled: '@workflow-management:workflow-run.history.activity-status.canceled',\n Faulted: '@workflow-management:workflow-run.history.activity-status.faulted',\n Failed: '@workflow-management:workflow-run.history.activity-status.failed',\n};\n\n//#endregion\n\n//#region ---- Helpers ----\n\nfunction normalizeUserIds(value: unknown): string[] {\n if (value == null) {\n return [];\n }\n if (Array.isArray(value)) {\n return value.filter((v): v is string => typeof v === 'string' && v.trim().length > 0);\n }\n if (typeof value === 'string' && value.trim().length > 0) {\n return [value.trim()];\n }\n return [];\n}\n\nfunction formatPerformedByLabel(label: unknown, id: unknown, empty: string): string {\n const labelText = label != null && String(label).trim() !== '' ? String(label).trim() : '';\n if (labelText && labelText !== 'System') {\n return labelText;\n }\n const idText = id != null && String(id).trim() !== '' ? String(id).trim() : '';\n if (idText) {\n return idText;\n }\n return empty;\n}\n\nfunction isTranslationKey(value: string): boolean {\n return value.trim().startsWith('@');\n}\n\nfunction getGraphHumanTaskContext(graphActivity: AXPWorkflowActivityInstance | undefined): Record<string, unknown> | undefined {\n const context = graphActivity?.inputs?.['context'];\n if (context != null && typeof context === 'object' && !Array.isArray(context)) {\n return context as Record<string, unknown>;\n }\n return undefined;\n}\n\nfunction parseBookmarkPayload(bookmark: {\n payload?: Record<string, unknown> | null;\n payloadJson?: string;\n} | undefined): Record<string, unknown> | null {\n if (bookmark?.payload && typeof bookmark.payload === 'object') {\n return bookmark.payload;\n }\n const raw = bookmark?.payloadJson?.trim();\n if (!raw) {\n return null;\n }\n try {\n const parsed = JSON.parse(raw) as unknown;\n return parsed != null && typeof parsed === 'object' && !Array.isArray(parsed)\n ? (parsed as Record<string, unknown>)\n : null;\n } catch {\n return null;\n }\n}\n\nfunction hasUnresolvedInterpolation(value: string): boolean {\n return /\\{\\{[^}]+\\}\\}/.test(value);\n}\n\nasync function resolveDisplayText(\n translationService: AXTranslationService,\n value: string,\n params?: Record<string, string>,\n): Promise<string> {\n const raw = value?.trim();\n if (!raw) {\n return '';\n }\n if (!isTranslationKey(raw)) {\n return raw;\n }\n return translationService.translateAsync(raw, { params });\n}\n\nfunction isModuleEntityRef(value: string): boolean {\n return /^[A-Za-z][\\w]*\\.[A-Za-z][\\w]*$/.test(value.trim());\n}\n\nasync function resolveGraphActivityTitle(\n translationService: AXTranslationService,\n graphActivity: AXPWorkflowActivityInstance | undefined,\n workflowState: AXPWorkflowState | undefined,\n taskTranslationDeps: WorkflowTaskTranslationDeps,\n titleResolveContext: WorkflowHistoryTitleResolveContext | undefined,\n): Promise<string> {\n const graphTitle = typeof graphActivity?.title === 'string' ? graphActivity.title.trim() : '';\n if (graphTitle) {\n if (isTranslationKey(graphTitle)) {\n const params = await buildWorkflowTaskDisplayParamsFromWorkflowState(workflowState, taskTranslationDeps);\n const resolved = await resolveDisplayText(translationService, graphTitle, params);\n if (resolved && !hasUnresolvedInterpolation(resolved)) {\n return resolved;\n }\n }\n if (isModuleEntityRef(graphTitle) && titleResolveContext?.resolveEntityRefTitle) {\n const entityTitle = await titleResolveContext.resolveEntityRefTitle(graphTitle);\n if (entityTitle.trim()) {\n return entityTitle.trim();\n }\n }\n if (!isModuleEntityRef(graphTitle)) {\n const params = await buildWorkflowTaskDisplayParamsFromWorkflowState(workflowState, taskTranslationDeps);\n const resolved = await resolveDisplayText(translationService, graphTitle, params);\n if (resolved && !hasUnresolvedInterpolation(resolved)) {\n return resolved;\n }\n }\n }\n\n const inputTitle =\n typeof graphActivity?.inputs?.['title'] === 'string' ? graphActivity.inputs['title'].trim() : '';\n if (inputTitle) {\n const params = await buildWorkflowTaskDisplayParamsFromWorkflowState(workflowState, taskTranslationDeps);\n const resolved = await resolveDisplayText(translationService, inputTitle, params);\n if (resolved && !hasUnresolvedInterpolation(resolved)) {\n return resolved;\n }\n }\n\n const activityName = graphActivity?.name?.trim() ?? '';\n if (activityName && titleResolveContext?.resolveActivityDefinitionTitle) {\n const definitionTitle = await titleResolveContext.resolveActivityDefinitionTitle(activityName);\n if (definitionTitle.trim()) {\n return definitionTitle.trim();\n }\n }\n\n return '';\n}\n\nasync function resolveStepTitle(\n translationService: AXTranslationService,\n graphActivity: AXPWorkflowActivityInstance | undefined,\n nodeId: string,\n isHumanTask: boolean,\n payload: Record<string, unknown> | null,\n workflowState: AXPWorkflowState | undefined,\n taskTranslationDeps: WorkflowTaskTranslationDeps,\n titleResolveContext: WorkflowHistoryTitleResolveContext | undefined,\n): Promise<string> {\n if (isHumanTask) {\n const payloadContext =\n payload?.['context'] && typeof payload['context'] === 'object'\n ? (payload['context'] as Record<string, unknown>)\n : undefined;\n const graphContext = getGraphHumanTaskContext(graphActivity);\n const graphParams = await buildWorkflowTaskDisplayParams(graphContext, workflowState, taskTranslationDeps);\n const payloadParams = await buildWorkflowTaskDisplayParams(payloadContext, workflowState, taskTranslationDeps);\n const taskParams = { ...graphParams, ...payloadParams };\n\n const payloadTitle = typeof payload?.['title'] === 'string' ? payload['title'].trim() : '';\n const graphTitle =\n typeof graphActivity?.inputs?.['title'] === 'string' ? graphActivity.inputs['title'].trim() : '';\n const titleSource = payloadTitle || graphTitle;\n\n if (titleSource) {\n const resolved = await resolveDisplayText(translationService, titleSource, taskParams);\n if (resolved && !hasUnresolvedInterpolation(resolved)) {\n return resolved;\n }\n }\n\n if (taskParams['employeeDisplayName']?.trim() && taskParams['leaveTypeTitle']?.trim()) {\n return `${taskParams['employeeDisplayName']} — ${taskParams['leaveTypeTitle']}`;\n }\n }\n\n const resolvedGraphTitle = await resolveGraphActivityTitle(\n translationService,\n graphActivity,\n workflowState,\n taskTranslationDeps,\n titleResolveContext,\n );\n if (resolvedGraphTitle) {\n return resolvedGraphTitle;\n }\n\n const rawTitle = graphActivity?.name\n ? formatReadableActivityName(graphActivity.name)\n : formatReadableActivityName(nodeId);\n return rawTitle;\n}\n\nasync function resolveActivityStatus(\n translationService: AXTranslationService,\n status: string,\n): Promise<string> {\n const normalized = (status ?? '').trim();\n if (!normalized) {\n return '';\n }\n const key = ACTIVITY_STATUS_KEYS[normalized] ?? ACTIVITY_STATUS_KEYS[normalized.toLowerCase()];\n if (key) {\n return translationService.translateAsync(key);\n }\n return formatReadableActivityName(normalized);\n}\n\nasync function resolveUserDisplayName(\n userEntityData: WorkflowHistoryEntityLookup,\n userId: string,\n cache: Map<string, string>,\n): Promise<string> {\n const id = userId.trim();\n if (!id) {\n return '';\n }\n const cached = cache.get(id);\n if (cached) {\n return cached;\n }\n let display = id;\n try {\n const row = await userEntityData.byKey(id);\n if (row && typeof row === 'object') {\n const displayName =\n 'displayName' in row ? String((row as { displayName?: unknown }).displayName ?? '').trim() : '';\n const username = 'username' in row ? String((row as { username?: unknown }).username ?? '').trim() : '';\n display = displayName || username || id;\n }\n } catch {\n display = id;\n }\n cache.set(id, display);\n return display;\n}\n\nasync function resolveAssigneeDisplay(\n payload: Record<string, unknown> | null,\n userEntityData: WorkflowHistoryEntityLookup,\n userCache: Map<string, string>,\n emptyLabel: string,\n): Promise<string> {\n if (!payload) {\n return emptyLabel;\n }\n const assigned = normalizeUserIds(payload['assignedUserIds']);\n if (assigned.length > 0) {\n const names = await Promise.all(assigned.map((id) => resolveUserDisplayName(userEntityData, id, userCache)));\n return names.filter((name) => name.length > 0).join(', ') || emptyLabel;\n }\n const candidates = normalizeUserIds(payload['candidateUserIds']);\n if (candidates.length > 0) {\n const names = await Promise.all(candidates.map((id) => resolveUserDisplayName(userEntityData, id, userCache)));\n return names.filter((name) => name.length > 0).join(', ') || emptyLabel;\n }\n return emptyLabel;\n}\n\n/**\n * Resolves who was assigned to a step (original assignee when take-over occurred).\n */\nasync function resolveStepAssignee(\n nodeId: string,\n props: Record<string, unknown>,\n payload: Record<string, unknown> | null,\n userEntityData: WorkflowHistoryEntityLookup,\n userCache: Map<string, string>,\n emptyLabel: string,\n): Promise<string> {\n const reassign = props[`${nodeId}_reassignedToSelf`];\n if (reassign && typeof reassign === 'object' && !Array.isArray(reassign)) {\n const fromIds = normalizeUserIds((reassign as { fromUserIds?: unknown }).fromUserIds);\n if (fromIds.length > 0) {\n const names = await Promise.all(fromIds.map((id) => resolveUserDisplayName(userEntityData, id, userCache)));\n const joined = names.filter((name) => name.length > 0).join(', ');\n if (joined) {\n return joined;\n }\n }\n }\n\n const assignedAudit = normalizeUserIds(props[`${nodeId}_assignedUserIds`]);\n if (assignedAudit.length > 0) {\n const names = await Promise.all(assignedAudit.map((id) => resolveUserDisplayName(userEntityData, id, userCache)));\n const joined = names.filter((name) => name.length > 0).join(', ');\n if (joined) {\n return joined;\n }\n }\n\n const fromBookmark = await resolveAssigneeDisplay(payload, userEntityData, userCache, '');\n if (fromBookmark) {\n return fromBookmark;\n }\n\n return emptyLabel;\n}\n\nfunction resolveReporterDisplay(instance: AXMWorkflowManagementWorkflowInstanceEntityModel): string {\n const audit = instance.auditInfo?.created?.by;\n if (audit?.fullName?.trim()) {\n return audit.fullName.trim();\n }\n if (instance.assignUserRef?.displayName?.trim()) {\n return instance.assignUserRef.displayName.trim();\n }\n return '';\n}\n\nfunction shouldIncludeActivity(graphActivity: AXPWorkflowActivityInstance | undefined): boolean {\n const name = graphActivity?.name?.trim();\n if (name && HIDDEN_ACTIVITY_NAMES.has(name)) {\n return false;\n }\n return true;\n}\n\n//#endregion\n\n//#region ---- Builder ----\n\n/**\n * Builds end-user workflow history rows (no technical audit fields, resolved titles and user names).\n */\nfunction resolveInstanceStatusTranslationKey(status: string, subStatus: string): string {\n const normalizedStatus = status.trim().toLowerCase();\n const normalizedSubStatus = subStatus.trim().toLowerCase();\n const combined = `${normalizedStatus}-${normalizedSubStatus}`;\n const combinedMap: Record<string, string> = {\n 'running-executing': 'in-progress',\n 'running-suspended': 'pending-user-action',\n 'running-pending': 'waiting',\n 'running-idle': 'waiting',\n 'finished-finished': 'completed',\n 'finished-faulted': 'failed',\n 'finished-cancelled': 'cancelled',\n 'finished-canceled': 'cancelled',\n };\n if (combinedMap[combined]) {\n return combinedMap[combined];\n }\n if (normalizedStatus === 'running') {\n return 'in-progress';\n }\n if (normalizedStatus === 'finished') {\n return 'completed';\n }\n return 'unknown';\n}\n\nasync function resolveWorkflowInstanceStatusDisplay(\n translationService: AXTranslationService,\n instance: AXMWorkflowManagementWorkflowInstanceEntityModel | null | undefined,\n): Promise<string> {\n if (!instance) {\n return '';\n }\n const statusKey = resolveInstanceStatusTranslationKey(String(instance.status ?? ''), String(instance.subStatus ?? ''));\n const translated = await translationService.translateAsync(\n `@workflow-management:workflow-run.history.instance-status.${statusKey}`,\n );\n if (translated.trim()) {\n return translated.trim();\n }\n return instance.statusDisplay?.trim() ?? '';\n}\n\nasync function resolveWorkflowTitle(\n translationService: AXTranslationService,\n definition: AXPWorkflowDefinition | null | undefined,\n instance: AXMWorkflowManagementWorkflowInstanceEntityModel | null | undefined,\n): Promise<string> {\n if (definition?.title != null) {\n const resolved = translationService.resolve(definition.title);\n if (resolved?.trim()) {\n return resolved.trim();\n }\n }\n return (\n instance?.workflowTitle?.trim() ||\n instance?.name?.trim() ||\n instance?.definitionId?.trim() ||\n ''\n );\n}\n\nexport async function buildWorkflowHistoryPopupTitleAsync(\n translationService: AXTranslationService,\n definition: AXPWorkflowDefinition | null | undefined,\n instance: AXMWorkflowManagementWorkflowInstanceEntityModel | null | undefined,\n): Promise<string> {\n const workflowTitle = await resolveWorkflowTitle(translationService, definition, instance);\n const statusDisplay = await resolveWorkflowInstanceStatusDisplay(translationService, instance);\n if (workflowTitle && statusDisplay) {\n return translationService.translateAsync('@workflow-management:workflow-run.history.popup-title', {\n params: { workflowTitle, statusDisplay },\n });\n }\n return workflowTitle || statusDisplay;\n}\n\nexport async function buildWorkflowHistoryRows(\n instance: AXMWorkflowManagementWorkflowInstanceEntityModel | null | undefined,\n definition: AXPWorkflowDefinition | null | undefined,\n translationService: AXTranslationService,\n userEntityData: WorkflowHistoryEntityLookup,\n emptyLabel: string,\n taskTranslationDeps: WorkflowTaskTranslationDeps,\n titleResolveContext?: WorkflowHistoryTitleResolveContext,\n): Promise<AXMWorkflowHistoryRow[]> {\n const wi = instance?.workflowInstance;\n if (!wi?.workflowState) {\n return [];\n }\n\n const props = (wi.workflowState.properties ?? {}) as Record<string, unknown>;\n const contexts = wi.workflowState.activityExecutionContexts ?? [];\n const activities = definition?.graph?.activities ?? [];\n const findActivity = (nodeId: string) => activities.find((a) => a.id === nodeId);\n const workflowState = wi.workflowState;\n const extended = wi as AXPWorkflowInstance & {\n bookmarks?: Array<{\n activityId?: string;\n payload?: Record<string, unknown> | null;\n payloadJson?: string;\n }>;\n };\n const bookmarks = extended.bookmarks ?? [];\n const userCache = new Map<string, string>();\n const rows: AXMWorkflowHistoryRow[] = [];\n\n for (const ctx of contexts as AXPActivityExecutionContextState[]) {\n const nodeId = ctx.scheduledActivityNodeId;\n const graphActivity = findActivity(nodeId);\n if (!shouldIncludeActivity(graphActivity)) {\n continue;\n }\n\n const activityName = graphActivity?.name?.trim() ?? '';\n const isHumanTask =\n activityName === 'workflow-activity:human-task' || activityName === 'workflow-activity:cartable';\n const showsParticipants = USER_PARTICIPANT_ACTIVITY_NAMES.has(activityName);\n const bookmark = bookmarks.find((b) => b.activityId === nodeId);\n const payload = parseBookmarkPayload(bookmark);\n\n const stepTitle = await resolveStepTitle(\n translationService,\n graphActivity,\n nodeId,\n isHumanTask,\n payload,\n workflowState,\n taskTranslationDeps,\n titleResolveContext,\n );\n\n const labelKey = `${nodeId}_completedByLabel`;\n const idKey = `${nodeId}_completedByUserId`;\n let performedBy = '';\n const performedByLabel = formatPerformedByLabel(props[labelKey], props[idKey], '');\n if (performedByLabel && performedByLabel !== 'System') {\n performedBy = performedByLabel;\n } else if (props[idKey] != null && String(props[idKey]).trim() !== '') {\n performedBy = await resolveUserDisplayName(userEntityData, String(props[idKey]), userCache);\n } else if (performedByLabel === 'System') {\n performedBy = await translationService.translateAsync(\n '@workflow-management:workflow-run.history.system-performer',\n );\n } else if (showsParticipants) {\n const fallbackUserId =\n toString(get(props, 'managerUserId')).trim() || toString(get(props, 'initiatorUserId')).trim();\n if (fallbackUserId) {\n performedBy = await resolveUserDisplayName(userEntityData, fallbackUserId, userCache);\n }\n }\n\n let assignee = showsParticipants\n ? await resolveStepAssignee(nodeId, props, payload, userEntityData, userCache, emptyLabel)\n : '';\n if (showsParticipants && (!assignee || assignee === emptyLabel) && performedBy) {\n assignee = performedBy;\n }\n if (showsParticipants && !performedBy) {\n performedBy = emptyLabel;\n }\n if (showsParticipants && !assignee) {\n assignee = emptyLabel;\n }\n\n const status = String(ctx.status ?? '');\n const statusDisplay = await resolveActivityStatus(translationService, status);\n\n rows.push({\n contextId: ctx.id,\n nodeId,\n stepTitle,\n status,\n statusDisplay,\n performedBy,\n assignee,\n startedAt: ctx.startedAt ?? '',\n completedAt: ctx.completedAt ?? null,\n isHumanTask,\n showsParticipants,\n });\n }\n\n rows.sort((a, b) => {\n const ta = new Date(a.startedAt).getTime();\n const tb = new Date(b.startedAt).getTime();\n if (ta !== tb) {\n return ta - tb;\n }\n return a.contextId.localeCompare(b.contextId);\n });\n\n return rows;\n}\n\n/** Popup header: workflow title and human-readable status (e.g. \"Create Leave Request - Completed\"). */\nexport function buildWorkflowHistoryPopupTitle(workflowTitle: string, statusDisplay: string): string {\n const title = workflowTitle.trim();\n const status = statusDisplay.trim();\n if (title && status) {\n return `${title} - ${status}`;\n }\n return title || status;\n}\n\n/** Summary metadata shown above the timeline (reporter and workflow start time). */\nexport function buildWorkflowHistorySummary(\n instance: AXMWorkflowManagementWorkflowInstanceEntityModel | null | undefined,\n): AXMWorkflowHistorySummary {\n if (!instance) {\n return { reporter: '', startedAt: null };\n }\n return {\n reporter: resolveReporterDisplay(instance),\n startedAt: instance.createdAt?.trim() || null,\n };\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n effect,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { AXPopupRef } from '@acorex/components/popup';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTabsModule, AXTabStripChangedEvent } from '@acorex/components/tabs';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { AXPExpressionEvaluatorService } from '@acorex-platform/framework-client/core';\nimport { AXPEntityDefinitionRegistryService, AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport type { AXPWorkflowDefinition } from '@acorex-platform/framework-shared/core';\nimport {\n AXPActivityDefinitionService,\n AXPWorkflowDefinitionService,\n WorkflowExpressionScopeService,\n} from '@acorex-platform/framework-client/workflow';\nimport { AXMWorkflowManagementWorkflowInstanceEntityModel } from '@acorex-platform/module-workflow-management-client/contracts';\nimport {\n AXMWorkflowHistoryRow,\n AXMWorkflowHistorySummary,\n buildWorkflowHistoryPopupTitleAsync,\n buildWorkflowHistoryRows,\n buildWorkflowHistorySummary,\n WorkflowHistoryTitleResolveContext,\n} from './workflow-history-rows.utils';\nimport { rehydrateWorkflowStateInputTitles } from '../../../task-provider/workflow-task-input-rehydration.util';\nimport { AXMWorkflowRunHistoryTimelineTabComponent } from './workflow-run-history-timeline-tab/workflow-run-history-timeline-tab.component';\nimport { AXMWorkflowRunHistoryVisualTabComponent } from './workflow-run-history-visual-tab/workflow-run-history-visual-tab.component';\n\n//#endregion\n\n//#region ---- Component ----\n\n/**\n * Popup: workflow run history with Timeline and Visual diagram tabs.\n */\n@Component({\n selector: 'axm-workflow-run-history-popup',\n templateUrl: './workflow-run-history-popup.component.html',\n styleUrl: './workflow-run-history-popup.component.css',\n imports: [\n CommonModule,\n AXButtonModule,\n AXDecoratorModule,\n AXLoadingModule,\n AXTabsModule,\n AXFormatModule,\n AXTranslationModule,\n AXMWorkflowRunHistoryTimelineTabComponent,\n AXMWorkflowRunHistoryVisualTabComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXMWorkflowRunHistoryPopupComponent extends AXBasePageComponent {\n //#region ---- Popup input ----\n\n instanceId!: string;\n\n /** Injected by {@link AXPopupService} when opened as a popup. */\n readonly __popup__ = input<AXPopupRef | undefined>(undefined);\n\n //#endregion\n\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n private readonly entityDefinitionRegistry = inject(AXPEntityDefinitionRegistryService);\n private readonly activityDefinitionService = inject(AXPActivityDefinitionService);\n private readonly workflowDefinitionService = inject(AXPWorkflowDefinitionService);\n private readonly translationService = inject(AXTranslationService);\n private readonly expressionScopeService = inject(WorkflowExpressionScopeService);\n private readonly expressionEvaluator = inject(AXPExpressionEvaluatorService);\n private readonly userEntityData = this.entityService.withEntity('SecurityManagement', 'User').data<string>();\n\n //#endregion\n\n //#region ---- State ----\n\n protected readonly activeTabIndex = signal(0);\n protected readonly isBusy = signal(true);\n protected readonly summary = signal<AXMWorkflowHistorySummary>({ reporter: '', startedAt: null });\n protected readonly definition = signal<AXPWorkflowDefinition | null>(null);\n protected readonly rows = signal<AXMWorkflowHistoryRow[]>([]);\n\n private readonly popupTitle = signal('');\n\n //#endregion\n\n //#region ---- Lifecycle ----\n\n constructor() {\n super();\n effect(() => {\n const title = this.popupTitle().trim();\n const popupRef = this.__popup__();\n if (title && popupRef) {\n popupRef.setTitle(title);\n }\n });\n }\n\n override async ngOnInit(): Promise<void> {\n super.ngOnInit();\n await this.loadHistory();\n }\n\n //#endregion\n\n //#region ---- Tab handlers ----\n\n protected handleTabChange(event: AXTabStripChangedEvent): void {\n this.activeTabIndex.set(event.index);\n }\n\n //#endregion\n\n //#region ---- Data loading ----\n\n private async loadHistory(): Promise<void> {\n const trimmed = this.instanceId?.trim();\n if (!trimmed) {\n this.isBusy.set(false);\n return;\n }\n\n this.isBusy.set(true);\n try {\n const emptyLabel = '—';\n const loaded = await this.entityService\n .withEntity('WorkflowManagement', 'WorkflowInstance')\n .data<string, AXMWorkflowManagementWorkflowInstanceEntityModel>()\n .byKey(trimmed);\n\n const defId = loaded?.definitionId?.trim();\n let definition: AXPWorkflowDefinition | null = null;\n if (defId) {\n definition = (await this.workflowDefinitionService.getWorkflowByName(defId)) ?? null;\n }\n\n this.definition.set(definition);\n this.popupTitle.set(\n await buildWorkflowHistoryPopupTitleAsync(this.translationService, definition, loaded ?? null),\n );\n this.summary.set(buildWorkflowHistorySummary(loaded ?? null));\n\n const titleResolveContext: WorkflowHistoryTitleResolveContext = {\n resolveActivityDefinitionTitle: async (activityName) => {\n const activityDef = await this.activityDefinitionService.getActivityByName(activityName);\n return activityDef?.title ? (this.translationService.resolve(activityDef.title) ?? '') : '';\n },\n resolveEntityRefTitle: async (moduleEntityRef) => {\n const [module, entity] = moduleEntityRef.split('.');\n if (!module?.trim() || !entity?.trim()) {\n return '';\n }\n try {\n const entityDef = await this.entityDefinitionRegistry.resolve(module.trim(), entity.trim());\n return entityDef?.title ? (this.translationService.resolve(entityDef.title) ?? '') : '';\n } catch {\n return '';\n }\n },\n };\n\n const historyRows = await buildWorkflowHistoryRows(\n loaded ?? null,\n definition,\n this.translationService,\n this.userEntityData,\n emptyLabel,\n {\n expressionScopeService: this.expressionScopeService,\n expressionEvaluator: this.expressionEvaluator,\n translationService: this.translationService,\n resolveWorkflowStateForTasks: (workflowState) =>\n rehydrateWorkflowStateInputTitles(\n workflowState,\n this.translationService,\n async (entity, id) => {\n const row = await this.entityService.withEntity(entity).data().byKey(id as never);\n return row && typeof row === 'object' ? (row as unknown as Record<string, unknown>) : null;\n },\n ),\n },\n titleResolveContext,\n );\n this.rows.set(historyRows);\n } finally {\n this.isBusy.set(false);\n }\n }\n\n //#endregion\n}\n\n//#endregion\n","<ax-content>\n <div class=\"axm-workflow-run-history-popup\">\n <div class=\"axm-workflow-run-history-popup__sticky\">\n <div class=\"axm-workflow-run-history-popup__sticky-bar\">\n @if (summary().reporter || summary().startedAt) {\n <div class=\"axm-workflow-run-history-popup__overview\" role=\"list\">\n @if (summary().reporter) {\n <div class=\"axm-workflow-run-history-popup__overview-item\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-popup__overview-k\">\n {{ '@workflow-management:workflow-run.history.field.reporter' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-popup__overview-v\" [textContent]=\"summary().reporter\"></span>\n </div>\n }\n @if (summary().startedAt) {\n <div class=\"axm-workflow-run-history-popup__overview-item\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-popup__overview-k\">\n {{ '@workflow-management:workflow-run.history.field.started-at' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-popup__overview-v\">\n {{ summary().startedAt | format: 'datetime' : 'short' | async }}\n </span>\n </div>\n }\n </div>\n }\n\n <ax-tabs\n class=\"axm-workflow-run-history-popup__tabs\"\n [look]=\"'with-line'\"\n (onActiveTabChanged)=\"handleTabChange($event)\"\n >\n <ax-tab-item\n [key]=\"'timeline'\"\n [text]=\"('@workflow-management:workflow-run.history.tabs.timeline.title' | translate | async)!\"\n [active]=\"activeTabIndex() === 0\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-list-timeline\"></ax-icon>\n </ax-prefix>\n </ax-tab-item>\n <ax-tab-item\n [key]=\"'visual'\"\n [text]=\"('@workflow-management:workflow-run.history.tabs.visual.title' | translate | async)!\"\n [active]=\"activeTabIndex() === 1\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-diagram-project\"></ax-icon>\n </ax-prefix>\n </ax-tab-item>\n </ax-tabs>\n </div>\n </div>\n\n <div class=\"axm-workflow-run-history-popup__panel\">\n @if (activeTabIndex() === 0) {\n @defer (on viewport) {\n <axm-workflow-run-history-timeline-tab [rows]=\"rows()\" [isBusy]=\"isBusy()\" />\n } @placeholder {\n <div class=\"axm-workflow-run-history-popup__defer-placeholder\" aria-busy=\"true\">\n <ax-loading></ax-loading>\n </div>\n } @loading {\n <div class=\"axm-workflow-run-history-popup__defer-placeholder\" aria-busy=\"true\">\n <ax-loading></ax-loading>\n </div>\n }\n }\n\n @if (activeTabIndex() === 1) {\n @defer (on viewport) {\n <axm-workflow-run-history-visual-tab\n [definition]=\"definition()\"\n [rows]=\"rows()\"\n [isBusy]=\"isBusy()\"\n />\n } @placeholder {\n <div class=\"axm-workflow-run-history-popup__defer-placeholder\" aria-busy=\"true\">\n <ax-loading></ax-loading>\n </div>\n } @loading {\n <div class=\"axm-workflow-run-history-popup__defer-placeholder\" aria-busy=\"true\">\n <ax-loading></ax-loading>\n </div>\n }\n }\n </div>\n </div>\n</ax-content>\n"],"names":["i1","i2","i4","i6"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAiDA;AAEA;AAEA;AACA,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,CAAC,4CAA4C,CAAC,CAAC;AAErF;AACA,MAAM,+BAA+B,GAAG,IAAI,GAAG,CAAC;IAC9C,8BAA8B;IAC9B,4BAA4B;IAC5B,4BAA4B;IAC5B,oCAAoC;IACpC,sCAAsC;AACvC,CAAA,CAAC;AAEF,MAAM,oBAAoB,GAA2B;AACnD,IAAA,OAAO,EAAE,mEAAmE;AAC5E,IAAA,SAAS,EAAE,qEAAqE;AAChF,IAAA,OAAO,EAAE,mEAAmE;AAC5E,IAAA,SAAS,EAAE,qEAAqE;AAChF,IAAA,SAAS,EAAE,qEAAqE;AAChF,IAAA,QAAQ,EAAE,oEAAoE;AAC9E,IAAA,SAAS,EAAE,oEAAoE;AAC/E,IAAA,OAAO,EAAE,mEAAmE;AAC5E,IAAA,MAAM,EAAE,kEAAkE;CAC3E;AAED;AAEA;AAEA,SAAS,gBAAgB,CAAC,KAAc,EAAA;AACtC,IAAA,IAAI,KAAK,IAAI,IAAI,EAAE;AACjB,QAAA,OAAO,EAAE;IACX;AACA,IAAA,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACxB,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAkB,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;IACvF;AACA,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE;AACxD,QAAA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A,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,sBAAA,EAAA,CAAA,MAAA;;;;gGAOV,mCAAmC,EAAA,mBAAA,EAAA,MAAA;;;sBAlB/C,SAAS;AACE,gBAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gCAAgC,EAAA,OAAA,EAGjC;4BACP,YAAY;4BACZ,cAAc;4BACd,iBAAiB;4BACjB,eAAe;4BACf,YAAY;4BACZ,cAAc;4BACd,mBAAmB;4BACnB,yCAAyC;4BACzC,uCAAuC;AACxC,yBAAA,EAAA,eAAA,EACgB,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,+kHAAA,EAAA,MAAA,EAAA,CAAA,ygFAAA,CAAA,EAAA;;;"}
@@ -8,7 +8,7 @@ import * as i5 from '@acorex/core/format';
8
8
  import { AXFormatModule } from '@acorex/core/format';
9
9
  import * as i7 from '@acorex/core/translation';
10
10
  import { AXTranslationModule } from '@acorex/core/translation';
11
- import { w as workflowActivityStatusChipModifier } from './acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-CMVZYS4y.mjs';
11
+ import { w as workflowActivityStatusChipModifier } from './acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-D7w2TNxB.mjs';
12
12
 
13
13
  //#region ---- Imports ----
14
14
  //#endregion
@@ -22,12 +22,12 @@ class AXMWorkflowRunHistoryTimelineTabComponent {
22
22
  this.statusChipModifier = workflowActivityStatusChipModifier;
23
23
  }
24
24
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMWorkflowRunHistoryTimelineTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
25
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMWorkflowRunHistoryTimelineTabComponent, isStandalone: true, selector: "axm-workflow-run-history-timeline-tab", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, isBusy: { classPropertyName: "isBusy", publicName: "isBusy", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (isBusy()) {\n <div class=\"axm-workflow-run-history-timeline-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (rows().length === 0) {\n <p class=\"axm-workflow-run-history-timeline-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.empty' | translate | async }}\n </p>\n} @else {\n <ol class=\"axm-workflow-run-history-timeline-tab__timeline\">\n @for (row of rows(); track row.contextId; let last = $last) {\n <li class=\"axm-workflow-run-history-timeline-tab__step\" [class.axm-workflow-run-history-timeline-tab__step--last]=\"last\">\n <div class=\"axm-workflow-run-history-timeline-tab__marker-track\" aria-hidden=\"true\">\n <div class=\"axm-workflow-run-history-timeline-tab__marker\"></div>\n </div>\n <div class=\"axm-workflow-run-history-timeline-tab__step-body\">\n <div class=\"axm-workflow-run-history-timeline-tab__step-header\">\n <h4 class=\"axm-workflow-run-history-timeline-tab__step-title\" [textContent]=\"row.stepTitle\"></h4>\n <span\n class=\"inline-flex items-center rounded-md px-2.5 py-1 text-xs font-semibold leading-none axp-status-chip\"\n [class]=\"'axp-status-chip--' + statusChipModifier(row.status)\"\n >\n {{ row.statusDisplay }}\n </span>\n </div>\n\n <div class=\"axm-workflow-run-history-timeline-tab__detail-grid\" role=\"list\">\n @if (row.startedAt) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.started-at' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\">\n {{ row.startedAt | format: 'datetime' : 'short' | async }}\n </span>\n </div>\n }\n @if (row.completedAt) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.completed-at' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\">\n {{ row.completedAt | format: 'datetime' : 'short' | async }}\n </span>\n </div>\n }\n @if (row.showsParticipants) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.assignee' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\" [textContent]=\"row.assignee\"></span>\n </div>\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.performer' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\" [textContent]=\"row.performedBy\"></span>\n </div>\n }\n </div>\n </div>\n </li>\n }\n </ol>\n}\n", styles: ["@layer properties;:host .axm-workflow-run-history-timeline-tab__state{display:flex;align-items:center;justify-content:center;min-height:8rem}:host .axm-workflow-run-history-timeline-tab__empty{margin:0;padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-timeline-tab__timeline{position:relative;margin:0;list-style-type:none;padding:0}:host .axm-workflow-run-history-timeline-tab__timeline:before{content:\"\";pointer-events:none;position:absolute;inset-inline-start:.625rem;top:.75rem;bottom:.75rem;width:2px;background:rgb(var(--ax-sys-color-border-light-surface))}:host .axm-workflow-run-history-timeline-tab__step{position:relative;display:flex;align-items:flex-start;gap:calc(var(--spacing, .25rem) * 3);padding-bottom:1.5rem}:host .axm-workflow-run-history-timeline-tab__marker-track{position:relative;z-index:1;display:flex;flex-shrink:0;justify-content:center;flex-basis:1.25rem;padding-top:.35rem}:host .axm-workflow-run-history-timeline-tab__marker{box-sizing:border-box;flex-shrink:0;border-radius:calc(infinity * 1px);width:.875rem;height:.875rem;border:2px solid rgb(var(--ax-sys-color-primary-surface));background:rgb(var(--ax-sys-color-surface))}:host .axm-workflow-run-history-timeline-tab__step-body{min-width:0px;flex:auto;padding:.75rem 1rem;border:1px solid rgb(var(--ax-sys-color-border-light-surface));border-radius:var(--ax-radius-md, .5rem);background:rgb(var(--ax-sys-color-lightest-surface))}:host .axm-workflow-run-history-timeline-tab__step-header{margin-bottom:calc(var(--spacing, .25rem) * 1.5);display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:.5rem 1rem}:host .axm-workflow-run-history-timeline-tab__step-title{margin:0;min-width:0px;flex:auto;text-align:start;--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);font-size:.9375rem;line-height:1.35;color:rgb(var(--ax-sys-color-on-surface))}:host .axm-workflow-run-history-timeline-tab__detail-grid{margin-top:calc(var(--spacing, .25rem) * 2);display:grid;column-gap:calc(var(--spacing, .25rem) * 4);row-gap:calc(var(--spacing, .25rem) * 2);grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:29.99rem){:host .axm-workflow-run-history-timeline-tab__detail-grid{grid-template-columns:1fr}}:host .axm-workflow-run-history-timeline-tab__detail-pair{display:flex;min-width:0px;flex-direction:column;align-items:flex-start;gap:.2rem}:host .axm-workflow-run-history-timeline-tab__detail-k{font-size:.6875rem;--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);text-transform:uppercase;line-height:1.2;letter-spacing:.04em;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-timeline-tab__detail-v{text-align:start;overflow-wrap:break-word;font-size:.8125rem;line-height:1.35;color:rgb(var(--ax-sys-color-on-surface))}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXFormatModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXFormatPipe, name: "format" }, { kind: "pipe", type: i7.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
25
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMWorkflowRunHistoryTimelineTabComponent, isStandalone: true, selector: "axm-workflow-run-history-timeline-tab", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, isBusy: { classPropertyName: "isBusy", publicName: "isBusy", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (isBusy()) {\n <div class=\"axm-workflow-run-history-timeline-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (rows().length === 0) {\n <p class=\"axm-workflow-run-history-timeline-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.empty' | translate | async }}\n </p>\n} @else {\n <ol class=\"axm-workflow-run-history-timeline-tab__timeline\">\n @for (row of rows(); track row.contextId; let last = $last) {\n <li class=\"axm-workflow-run-history-timeline-tab__step\" [class.axm-workflow-run-history-timeline-tab__step--last]=\"last\">\n <div class=\"axm-workflow-run-history-timeline-tab__marker-track\" aria-hidden=\"true\">\n <div class=\"axm-workflow-run-history-timeline-tab__marker\"></div>\n </div>\n <div class=\"axm-workflow-run-history-timeline-tab__step-body\">\n <div class=\"axm-workflow-run-history-timeline-tab__step-header\">\n <h4 class=\"axm-workflow-run-history-timeline-tab__step-title\" [textContent]=\"row.stepTitle\"></h4>\n <span\n class=\"inline-flex items-center rounded-md px-2.5 py-1 text-xs font-semibold leading-none axp-status-chip\"\n [class]=\"'axp-status-chip--' + statusChipModifier(row.status)\"\n >\n {{ row.statusDisplay }}\n </span>\n </div>\n\n <div class=\"axm-workflow-run-history-timeline-tab__detail-grid\" role=\"list\">\n @if (row.startedAt) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.started-at' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\">\n {{ row.startedAt | format: 'datetime' : 'short' | async }}\n </span>\n </div>\n }\n @if (row.completedAt) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.completed-at' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\">\n {{ row.completedAt | format: 'datetime' : 'short' | async }}\n </span>\n </div>\n }\n @if (row.showsParticipants) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.assignee' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\" [textContent]=\"row.assignee\"></span>\n </div>\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.performer' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\" [textContent]=\"row.performedBy\"></span>\n </div>\n }\n </div>\n </div>\n </li>\n }\n </ol>\n}\n", styles: ["@layer properties;:host .axm-workflow-run-history-timeline-tab__state{display:flex;align-items:center;justify-content:center;min-height:8rem}:host .axm-workflow-run-history-timeline-tab__empty{margin:0;padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-timeline-tab__timeline{position:relative;margin:0;list-style-type:none;padding:0}:host .axm-workflow-run-history-timeline-tab__timeline:before{content:\"\";pointer-events:none;position:absolute;inset-inline-start:.625rem;top:.75rem;bottom:.75rem;width:2px;background:rgb(var(--ax-sys-color-border-light-surface))}:host .axm-workflow-run-history-timeline-tab__step{position:relative;display:flex;align-items:flex-start;gap:calc(var(--spacing, .25rem) * 3);padding-bottom:1.5rem}:host .axm-workflow-run-history-timeline-tab__marker-track{position:relative;z-index:1;display:flex;flex-shrink:0;justify-content:center;flex-basis:1.25rem;padding-top:.35rem}:host .axm-workflow-run-history-timeline-tab__marker{box-sizing:border-box;flex-shrink:0;border-radius:calc(infinity * 1px);width:.875rem;height:.875rem;border:2px solid rgb(var(--ax-sys-color-primary-surface));background:rgb(var(--ax-sys-color-surface))}:host .axm-workflow-run-history-timeline-tab__step-body{min-width:0px;flex:auto;padding:.75rem 1rem;border:1px solid rgb(var(--ax-sys-color-border-light-surface));border-radius:var(--ax-radius-md, .5rem);background:rgb(var(--ax-sys-color-lightest-surface))}:host .axm-workflow-run-history-timeline-tab__step-header{margin-bottom:calc(var(--spacing, .25rem) * 1.5);display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:.5rem 1rem}:host .axm-workflow-run-history-timeline-tab__step-title{margin:0;min-width:0px;flex:auto;text-align:start;--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);font-size:.9375rem;line-height:1.35;color:rgb(var(--ax-sys-color-on-surface))}:host .axm-workflow-run-history-timeline-tab__detail-grid{margin-top:calc(var(--spacing, .25rem) * 2);display:grid;column-gap:calc(var(--spacing, .25rem) * 4);row-gap:calc(var(--spacing, .25rem) * 2);grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:29.99rem){:host .axm-workflow-run-history-timeline-tab__detail-grid{grid-template-columns:1fr}}:host .axm-workflow-run-history-timeline-tab__detail-pair{display:flex;min-width:0px;flex-direction:column;align-items:flex-start;gap:.2rem}:host .axm-workflow-run-history-timeline-tab__detail-k{font-size:.6875rem;--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);text-transform:uppercase;line-height:1.2;letter-spacing:.04em;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-timeline-tab__detail-v{text-align:start;overflow-wrap:break-word;font-size:.8125rem;line-height:1.35;color:rgb(var(--ax-sys-color-on-surface))}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXFormatModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXFormatPipe, name: "format" }, { kind: "pipe", type: i7.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
26
26
  }
27
27
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMWorkflowRunHistoryTimelineTabComponent, decorators: [{
28
28
  type: Component,
29
- args: [{ selector: 'axm-workflow-run-history-timeline-tab', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CommonModule, AXLoadingModule, AXFormatModule, AXTranslationModule], template: "@if (isBusy()) {\n <div class=\"axm-workflow-run-history-timeline-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (rows().length === 0) {\n <p class=\"axm-workflow-run-history-timeline-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.empty' | translate | async }}\n </p>\n} @else {\n <ol class=\"axm-workflow-run-history-timeline-tab__timeline\">\n @for (row of rows(); track row.contextId; let last = $last) {\n <li class=\"axm-workflow-run-history-timeline-tab__step\" [class.axm-workflow-run-history-timeline-tab__step--last]=\"last\">\n <div class=\"axm-workflow-run-history-timeline-tab__marker-track\" aria-hidden=\"true\">\n <div class=\"axm-workflow-run-history-timeline-tab__marker\"></div>\n </div>\n <div class=\"axm-workflow-run-history-timeline-tab__step-body\">\n <div class=\"axm-workflow-run-history-timeline-tab__step-header\">\n <h4 class=\"axm-workflow-run-history-timeline-tab__step-title\" [textContent]=\"row.stepTitle\"></h4>\n <span\n class=\"inline-flex items-center rounded-md px-2.5 py-1 text-xs font-semibold leading-none axp-status-chip\"\n [class]=\"'axp-status-chip--' + statusChipModifier(row.status)\"\n >\n {{ row.statusDisplay }}\n </span>\n </div>\n\n <div class=\"axm-workflow-run-history-timeline-tab__detail-grid\" role=\"list\">\n @if (row.startedAt) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.started-at' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\">\n {{ row.startedAt | format: 'datetime' : 'short' | async }}\n </span>\n </div>\n }\n @if (row.completedAt) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.completed-at' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\">\n {{ row.completedAt | format: 'datetime' : 'short' | async }}\n </span>\n </div>\n }\n @if (row.showsParticipants) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.assignee' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\" [textContent]=\"row.assignee\"></span>\n </div>\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.performer' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\" [textContent]=\"row.performedBy\"></span>\n </div>\n }\n </div>\n </div>\n </li>\n }\n </ol>\n}\n", styles: ["@layer properties;:host .axm-workflow-run-history-timeline-tab__state{display:flex;align-items:center;justify-content:center;min-height:8rem}:host .axm-workflow-run-history-timeline-tab__empty{margin:0;padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-timeline-tab__timeline{position:relative;margin:0;list-style-type:none;padding:0}:host .axm-workflow-run-history-timeline-tab__timeline:before{content:\"\";pointer-events:none;position:absolute;inset-inline-start:.625rem;top:.75rem;bottom:.75rem;width:2px;background:rgb(var(--ax-sys-color-border-light-surface))}:host .axm-workflow-run-history-timeline-tab__step{position:relative;display:flex;align-items:flex-start;gap:calc(var(--spacing, .25rem) * 3);padding-bottom:1.5rem}:host .axm-workflow-run-history-timeline-tab__marker-track{position:relative;z-index:1;display:flex;flex-shrink:0;justify-content:center;flex-basis:1.25rem;padding-top:.35rem}:host .axm-workflow-run-history-timeline-tab__marker{box-sizing:border-box;flex-shrink:0;border-radius:calc(infinity * 1px);width:.875rem;height:.875rem;border:2px solid rgb(var(--ax-sys-color-primary-surface));background:rgb(var(--ax-sys-color-surface))}:host .axm-workflow-run-history-timeline-tab__step-body{min-width:0px;flex:auto;padding:.75rem 1rem;border:1px solid rgb(var(--ax-sys-color-border-light-surface));border-radius:var(--ax-radius-md, .5rem);background:rgb(var(--ax-sys-color-lightest-surface))}:host .axm-workflow-run-history-timeline-tab__step-header{margin-bottom:calc(var(--spacing, .25rem) * 1.5);display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:.5rem 1rem}:host .axm-workflow-run-history-timeline-tab__step-title{margin:0;min-width:0px;flex:auto;text-align:start;--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);font-size:.9375rem;line-height:1.35;color:rgb(var(--ax-sys-color-on-surface))}:host .axm-workflow-run-history-timeline-tab__detail-grid{margin-top:calc(var(--spacing, .25rem) * 2);display:grid;column-gap:calc(var(--spacing, .25rem) * 4);row-gap:calc(var(--spacing, .25rem) * 2);grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:29.99rem){:host .axm-workflow-run-history-timeline-tab__detail-grid{grid-template-columns:1fr}}:host .axm-workflow-run-history-timeline-tab__detail-pair{display:flex;min-width:0px;flex-direction:column;align-items:flex-start;gap:.2rem}:host .axm-workflow-run-history-timeline-tab__detail-k{font-size:.6875rem;--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);text-transform:uppercase;line-height:1.2;letter-spacing:.04em;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-timeline-tab__detail-v{text-align:start;overflow-wrap:break-word;font-size:.8125rem;line-height:1.35;color:rgb(var(--ax-sys-color-on-surface))}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
29
+ args: [{ selector: 'axm-workflow-run-history-timeline-tab', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CommonModule, AXLoadingModule, AXFormatModule, AXTranslationModule], template: "@if (isBusy()) {\n <div class=\"axm-workflow-run-history-timeline-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (rows().length === 0) {\n <p class=\"axm-workflow-run-history-timeline-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.empty' | translate | async }}\n </p>\n} @else {\n <ol class=\"axm-workflow-run-history-timeline-tab__timeline\">\n @for (row of rows(); track row.contextId; let last = $last) {\n <li class=\"axm-workflow-run-history-timeline-tab__step\" [class.axm-workflow-run-history-timeline-tab__step--last]=\"last\">\n <div class=\"axm-workflow-run-history-timeline-tab__marker-track\" aria-hidden=\"true\">\n <div class=\"axm-workflow-run-history-timeline-tab__marker\"></div>\n </div>\n <div class=\"axm-workflow-run-history-timeline-tab__step-body\">\n <div class=\"axm-workflow-run-history-timeline-tab__step-header\">\n <h4 class=\"axm-workflow-run-history-timeline-tab__step-title\" [textContent]=\"row.stepTitle\"></h4>\n <span\n class=\"inline-flex items-center rounded-md px-2.5 py-1 text-xs font-semibold leading-none axp-status-chip\"\n [class]=\"'axp-status-chip--' + statusChipModifier(row.status)\"\n >\n {{ row.statusDisplay }}\n </span>\n </div>\n\n <div class=\"axm-workflow-run-history-timeline-tab__detail-grid\" role=\"list\">\n @if (row.startedAt) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.started-at' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\">\n {{ row.startedAt | format: 'datetime' : 'short' | async }}\n </span>\n </div>\n }\n @if (row.completedAt) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.completed-at' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\">\n {{ row.completedAt | format: 'datetime' : 'short' | async }}\n </span>\n </div>\n }\n @if (row.showsParticipants) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.assignee' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\" [textContent]=\"row.assignee\"></span>\n </div>\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.performer' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\" [textContent]=\"row.performedBy\"></span>\n </div>\n }\n </div>\n </div>\n </li>\n }\n </ol>\n}\n", styles: ["@layer properties;:host .axm-workflow-run-history-timeline-tab__state{display:flex;align-items:center;justify-content:center;min-height:8rem}:host .axm-workflow-run-history-timeline-tab__empty{margin:0;padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-timeline-tab__timeline{position:relative;margin:0;list-style-type:none;padding:0}:host .axm-workflow-run-history-timeline-tab__timeline:before{content:\"\";pointer-events:none;position:absolute;inset-inline-start:.625rem;top:.75rem;bottom:.75rem;width:2px;background:rgb(var(--ax-sys-color-border-light-surface))}:host .axm-workflow-run-history-timeline-tab__step{position:relative;display:flex;align-items:flex-start;gap:calc(var(--spacing, .25rem) * 3);padding-bottom:1.5rem}:host .axm-workflow-run-history-timeline-tab__marker-track{position:relative;z-index:1;display:flex;flex-shrink:0;justify-content:center;flex-basis:1.25rem;padding-top:.35rem}:host .axm-workflow-run-history-timeline-tab__marker{box-sizing:border-box;flex-shrink:0;border-radius:calc(infinity * 1px);width:.875rem;height:.875rem;border:2px solid rgb(var(--ax-sys-color-primary-surface));background:rgb(var(--ax-sys-color-surface))}:host .axm-workflow-run-history-timeline-tab__step-body{min-width:0px;flex:auto;padding:.75rem 1rem;border:1px solid rgb(var(--ax-sys-color-border-light-surface));border-radius:var(--ax-radius-md, .5rem);background:rgb(var(--ax-sys-color-lightest-surface))}:host .axm-workflow-run-history-timeline-tab__step-header{margin-bottom:calc(var(--spacing, .25rem) * 1.5);display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:.5rem 1rem}:host .axm-workflow-run-history-timeline-tab__step-title{margin:0;min-width:0px;flex:auto;text-align:start;--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);font-size:.9375rem;line-height:1.35;color:rgb(var(--ax-sys-color-on-surface))}:host .axm-workflow-run-history-timeline-tab__detail-grid{margin-top:calc(var(--spacing, .25rem) * 2);display:grid;column-gap:calc(var(--spacing, .25rem) * 4);row-gap:calc(var(--spacing, .25rem) * 2);grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:29.99rem){:host .axm-workflow-run-history-timeline-tab__detail-grid{grid-template-columns:1fr}}:host .axm-workflow-run-history-timeline-tab__detail-pair{display:flex;min-width:0px;flex-direction:column;align-items:flex-start;gap:.2rem}:host .axm-workflow-run-history-timeline-tab__detail-k{font-size:.6875rem;--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);text-transform:uppercase;line-height:1.2;letter-spacing:.04em;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-timeline-tab__detail-v{text-align:start;overflow-wrap:break-word;font-size:.8125rem;line-height:1.35;color:rgb(var(--ax-sys-color-on-surface))}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"] }]
30
30
  }], propDecorators: { rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], isBusy: [{ type: i0.Input, args: [{ isSignal: true, alias: "isBusy", required: false }] }] } });
31
31
 
32
32
  export { AXMWorkflowRunHistoryTimelineTabComponent };
33
- //# sourceMappingURL=acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-AnJ-Pywf.mjs.map
33
+ //# sourceMappingURL=acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-ChMzrVoq.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-AnJ-Pywf.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-timeline-tab/workflow-run-history-timeline-tab.component.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-timeline-tab/workflow-run-history-timeline-tab.component.html"],"sourcesContent":["//#region ---- Imports ----\n\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input, ViewEncapsulation } from '@angular/core';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { workflowActivityStatusChipModifier } from '../../../../workflow-instance-activity-instances-page/workflow-activity-instance-rows.utils';\nimport type { AXMWorkflowHistoryRow } from '../workflow-history-rows.utils';\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n selector: 'axm-workflow-run-history-timeline-tab',\n templateUrl: './workflow-run-history-timeline-tab.component.html',\n styleUrl: './workflow-run-history-timeline-tab.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CommonModule, AXLoadingModule, AXFormatModule, AXTranslationModule],\n})\nexport class AXMWorkflowRunHistoryTimelineTabComponent {\n readonly rows = input<AXMWorkflowHistoryRow[]>([]);\n readonly isBusy = input(false);\n\n protected readonly statusChipModifier = workflowActivityStatusChipModifier;\n}\n\n//#endregion\n","@if (isBusy()) {\n <div class=\"axm-workflow-run-history-timeline-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (rows().length === 0) {\n <p class=\"axm-workflow-run-history-timeline-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.empty' | translate | async }}\n </p>\n} @else {\n <ol class=\"axm-workflow-run-history-timeline-tab__timeline\">\n @for (row of rows(); track row.contextId; let last = $last) {\n <li class=\"axm-workflow-run-history-timeline-tab__step\" [class.axm-workflow-run-history-timeline-tab__step--last]=\"last\">\n <div class=\"axm-workflow-run-history-timeline-tab__marker-track\" aria-hidden=\"true\">\n <div class=\"axm-workflow-run-history-timeline-tab__marker\"></div>\n </div>\n <div class=\"axm-workflow-run-history-timeline-tab__step-body\">\n <div class=\"axm-workflow-run-history-timeline-tab__step-header\">\n <h4 class=\"axm-workflow-run-history-timeline-tab__step-title\" [textContent]=\"row.stepTitle\"></h4>\n <span\n class=\"inline-flex items-center rounded-md px-2.5 py-1 text-xs font-semibold leading-none axp-status-chip\"\n [class]=\"'axp-status-chip--' + statusChipModifier(row.status)\"\n >\n {{ row.statusDisplay }}\n </span>\n </div>\n\n <div class=\"axm-workflow-run-history-timeline-tab__detail-grid\" role=\"list\">\n @if (row.startedAt) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.started-at' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\">\n {{ row.startedAt | format: 'datetime' : 'short' | async }}\n </span>\n </div>\n }\n @if (row.completedAt) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.completed-at' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\">\n {{ row.completedAt | format: 'datetime' : 'short' | async }}\n </span>\n </div>\n }\n @if (row.showsParticipants) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.assignee' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\" [textContent]=\"row.assignee\"></span>\n </div>\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.performer' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\" [textContent]=\"row.performedBy\"></span>\n </div>\n }\n </div>\n </div>\n </li>\n }\n </ol>\n}\n"],"names":["i2","i3","i4"],"mappings":";;;;;;;;;;;;AAAA;AAUA;AAEA;MAUa,yCAAyC,CAAA;AARtD,IAAA,WAAA,GAAA;QASW,IAAA,CAAA,IAAI,GAAG,KAAK,CAA0B,EAAE;iFAAC;QACzC,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,KAAK;mFAAC;QAEX,IAAA,CAAA,kBAAkB,GAAG,kCAAkC;AAC3E,IAAA;8GALY,yCAAyC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAzC,yCAAyC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uCAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAA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EAAE,eAAe,EAAE,cAAc,EAAE,mBAAmB,CAAC,EAAA,QAAA,EAAA,okHAAA,EAAA,MAAA,EAAA,CAAA,ytGAAA,CAAA,EAAA;;;"}
1
+ {"version":3,"file":"acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-ChMzrVoq.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-timeline-tab/workflow-run-history-timeline-tab.component.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-timeline-tab/workflow-run-history-timeline-tab.component.html"],"sourcesContent":["//#region ---- Imports ----\n\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input, ViewEncapsulation } from '@angular/core';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { workflowActivityStatusChipModifier } from '../../../../workflow-instance-activity-instances-page/workflow-activity-instance-rows.utils';\nimport type { AXMWorkflowHistoryRow } from '../workflow-history-rows.utils';\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n selector: 'axm-workflow-run-history-timeline-tab',\n templateUrl: './workflow-run-history-timeline-tab.component.html',\n styleUrl: './workflow-run-history-timeline-tab.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CommonModule, AXLoadingModule, AXFormatModule, AXTranslationModule],\n})\nexport class AXMWorkflowRunHistoryTimelineTabComponent {\n readonly rows = input<AXMWorkflowHistoryRow[]>([]);\n readonly isBusy = input(false);\n\n protected readonly statusChipModifier = workflowActivityStatusChipModifier;\n}\n\n//#endregion\n","@if (isBusy()) {\n <div class=\"axm-workflow-run-history-timeline-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (rows().length === 0) {\n <p class=\"axm-workflow-run-history-timeline-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.empty' | translate | async }}\n </p>\n} @else {\n <ol class=\"axm-workflow-run-history-timeline-tab__timeline\">\n @for (row of rows(); track row.contextId; let last = $last) {\n <li class=\"axm-workflow-run-history-timeline-tab__step\" [class.axm-workflow-run-history-timeline-tab__step--last]=\"last\">\n <div class=\"axm-workflow-run-history-timeline-tab__marker-track\" aria-hidden=\"true\">\n <div class=\"axm-workflow-run-history-timeline-tab__marker\"></div>\n </div>\n <div class=\"axm-workflow-run-history-timeline-tab__step-body\">\n <div class=\"axm-workflow-run-history-timeline-tab__step-header\">\n <h4 class=\"axm-workflow-run-history-timeline-tab__step-title\" [textContent]=\"row.stepTitle\"></h4>\n <span\n class=\"inline-flex items-center rounded-md px-2.5 py-1 text-xs font-semibold leading-none axp-status-chip\"\n [class]=\"'axp-status-chip--' + statusChipModifier(row.status)\"\n >\n {{ row.statusDisplay }}\n </span>\n </div>\n\n <div class=\"axm-workflow-run-history-timeline-tab__detail-grid\" role=\"list\">\n @if (row.startedAt) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.started-at' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\">\n {{ row.startedAt | format: 'datetime' : 'short' | async }}\n </span>\n </div>\n }\n @if (row.completedAt) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.completed-at' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\">\n {{ row.completedAt | format: 'datetime' : 'short' | async }}\n </span>\n </div>\n }\n @if (row.showsParticipants) {\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.assignee' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\" [textContent]=\"row.assignee\"></span>\n </div>\n <div class=\"axm-workflow-run-history-timeline-tab__detail-pair\" role=\"listitem\">\n <span class=\"axm-workflow-run-history-timeline-tab__detail-k\">\n {{ '@workflow-management:workflow-run.history.field.performer' | translate | async }}\n </span>\n <span class=\"axm-workflow-run-history-timeline-tab__detail-v\" [textContent]=\"row.performedBy\"></span>\n </div>\n }\n </div>\n </div>\n </li>\n }\n </ol>\n}\n"],"names":["i2","i3","i4"],"mappings":";;;;;;;;;;;;AAAA;AAUA;AAEA;MAUa,yCAAyC,CAAA;AARtD,IAAA,WAAA,GAAA;QASW,IAAA,CAAA,IAAI,GAAG,KAAK,CAA0B,EAAE;iFAAC;QACzC,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,KAAK;mFAAC;QAEX,IAAA,CAAA,kBAAkB,GAAG,kCAAkC;AAC3E,IAAA;8GALY,yCAAyC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAzC,yCAAyC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uCAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECtBtD,okHAmEA,EAAA,MAAA,EAAA,CAAA,wtGAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED/CY,YAAY,8BAAE,eAAe,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,MAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,cAAc,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAA,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAEjE,yCAAyC,EAAA,UAAA,EAAA,CAAA;kBARrD,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,uCAAuC,mBAGhC,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,OAAA,EAC5B,CAAC,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,mBAAmB,CAAC,EAAA,QAAA,EAAA,okHAAA,EAAA,MAAA,EAAA,CAAA,wtGAAA,CAAA,EAAA;;;"}
@@ -7,7 +7,7 @@ import { AXLoadingModule } from '@acorex/components/loading';
7
7
  import * as i7 from '@acorex/core/translation';
8
8
  import { AXTranslationModule } from '@acorex/core/translation';
9
9
  import { arrangeWorkflowDiagram, AXPWorkflowDesignerComponent } from '@acorex-platform/module-platform-management-client';
10
- import { w as workflowActivityStatusChipModifier, f as formatReadableActivityName } from './acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-CMVZYS4y.mjs';
10
+ import { w as workflowActivityStatusChipModifier, f as formatReadableActivityName } from './acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-D7w2TNxB.mjs';
11
11
 
12
12
  //#region ---- Imports ----
13
13
  //#endregion
@@ -216,12 +216,12 @@ class AXMWorkflowRunHistoryVisualTabComponent {
216
216
  ...(ngDevMode ? [{ debugName: "diagram" }] : /* istanbul ignore next */ []));
217
217
  }
218
218
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMWorkflowRunHistoryVisualTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
219
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMWorkflowRunHistoryVisualTabComponent, isStandalone: true, selector: "axm-workflow-run-history-visual-tab", inputs: { definition: { classPropertyName: "definition", publicName: "definition", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, isBusy: { classPropertyName: "isBusy", publicName: "isBusy", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (isBusy()) {\n <div class=\"axm-workflow-run-history-visual-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (!diagram()) {\n <p class=\"axm-workflow-run-history-visual-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.tabs.visual.empty' | translate | async }}\n </p>\n} @else {\n <div class=\"axm-workflow-run-history-visual-tab__canvas\">\n <axp-workflow-designer [model]=\"diagram()!\" [readonly]=\"true\" [showPortLabels]=\"false\" />\n </div>\n}\n", styles: [":host .axm-workflow-run-history-visual-tab__state{display:flex;align-items:center;justify-content:center;min-height:8rem}:host .axm-workflow-run-history-visual-tab__empty{margin:0;padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-visual-tab__canvas{display:flex;min-height:0px;flex-direction:column;overflow:hidden;min-height:20rem;height:min(50vh,28rem);border:1px solid rgb(var(--ax-sys-color-border-light-surface));border-radius:var(--ax-radius-md, .5rem);background:rgb(var(--ax-sys-color-lightest-surface))}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer-host{display:flex;min-height:0px;width:100%;flex:auto}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer{min-height:0px;width:100%;flex:auto}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "component", type: AXPWorkflowDesignerComponent, selector: "axp-workflow-designer", inputs: ["model", "readonly", "highlightedNodeIds", "gridSize", "snapToGrid", "connectionPreviewStyle", "connectorStub", "backgroundPattern", "canConnect", "paletteItems", "showPortLabels", "showPorts", "showConnectorLabels", "canvasPadding", "minCanvasSize", "nodeBodyTemplate"], outputs: ["modelChange", "zoomChange", "designerPointerDown", "designerClick", "designerDoubleClick", "nodePointerDown", "nodeClick", "nodeDoubleClick", "nodeContextMenu", "nodeDragStart", "nodeDragEnd", "portPointerDown", "linkDragStart", "linkDragMove", "linkDragEnd", "connectorClick", "connectorDoubleClick", "connectionCreated", "connectionRejected", "activationChange"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
219
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMWorkflowRunHistoryVisualTabComponent, isStandalone: true, selector: "axm-workflow-run-history-visual-tab", inputs: { definition: { classPropertyName: "definition", publicName: "definition", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, isBusy: { classPropertyName: "isBusy", publicName: "isBusy", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (isBusy()) {\n <div class=\"axm-workflow-run-history-visual-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (!diagram()) {\n <p class=\"axm-workflow-run-history-visual-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.tabs.visual.empty' | translate | async }}\n </p>\n} @else {\n <div class=\"axm-workflow-run-history-visual-tab__canvas\">\n <axp-workflow-designer [model]=\"diagram()!\" [readonly]=\"true\" [showPortLabels]=\"false\" />\n </div>\n}\n", styles: [":host .axm-workflow-run-history-visual-tab__state{display:flex;align-items:center;justify-content:center;min-height:8rem}:host .axm-workflow-run-history-visual-tab__empty{margin:0;padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-visual-tab__canvas{display:flex;min-height:0px;flex-direction:column;overflow:hidden;min-height:20rem;height:min(50vh,28rem);border:1px solid rgb(var(--ax-sys-color-border-light-surface));border-radius:var(--ax-radius-md, .5rem);background:rgb(var(--ax-sys-color-lightest-surface))}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer-host{display:flex;min-height:0px;width:100%;flex:auto}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer{min-height:0px;width:100%;flex:auto}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "component", type: AXPWorkflowDesignerComponent, selector: "axp-workflow-designer", inputs: ["model", "readonly", "highlightedNodeIds", "gridSize", "snapToGrid", "connectionPreviewStyle", "connectorStub", "backgroundPattern", "canConnect", "paletteItems", "showPortLabels", "showPorts", "showConnectorLabels", "canvasPadding", "minCanvasSize", "nodeBodyTemplate"], outputs: ["modelChange", "zoomChange", "designerPointerDown", "designerClick", "designerDoubleClick", "nodePointerDown", "nodeClick", "nodeDoubleClick", "nodeContextMenu", "nodeDragStart", "nodeDragEnd", "portPointerDown", "linkDragStart", "linkDragMove", "linkDragEnd", "connectorClick", "connectorDoubleClick", "connectionCreated", "connectionRejected", "activationChange"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
220
220
  }
221
221
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMWorkflowRunHistoryVisualTabComponent, decorators: [{
222
222
  type: Component,
223
- args: [{ selector: 'axm-workflow-run-history-visual-tab', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CommonModule, AXLoadingModule, AXTranslationModule, AXPWorkflowDesignerComponent], template: "@if (isBusy()) {\n <div class=\"axm-workflow-run-history-visual-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (!diagram()) {\n <p class=\"axm-workflow-run-history-visual-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.tabs.visual.empty' | translate | async }}\n </p>\n} @else {\n <div class=\"axm-workflow-run-history-visual-tab__canvas\">\n <axp-workflow-designer [model]=\"diagram()!\" [readonly]=\"true\" [showPortLabels]=\"false\" />\n </div>\n}\n", styles: [":host .axm-workflow-run-history-visual-tab__state{display:flex;align-items:center;justify-content:center;min-height:8rem}:host .axm-workflow-run-history-visual-tab__empty{margin:0;padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-visual-tab__canvas{display:flex;min-height:0px;flex-direction:column;overflow:hidden;min-height:20rem;height:min(50vh,28rem);border:1px solid rgb(var(--ax-sys-color-border-light-surface));border-radius:var(--ax-radius-md, .5rem);background:rgb(var(--ax-sys-color-lightest-surface))}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer-host{display:flex;min-height:0px;width:100%;flex:auto}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer{min-height:0px;width:100%;flex:auto}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
223
+ args: [{ selector: 'axm-workflow-run-history-visual-tab', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CommonModule, AXLoadingModule, AXTranslationModule, AXPWorkflowDesignerComponent], template: "@if (isBusy()) {\n <div class=\"axm-workflow-run-history-visual-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (!diagram()) {\n <p class=\"axm-workflow-run-history-visual-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.tabs.visual.empty' | translate | async }}\n </p>\n} @else {\n <div class=\"axm-workflow-run-history-visual-tab__canvas\">\n <axp-workflow-designer [model]=\"diagram()!\" [readonly]=\"true\" [showPortLabels]=\"false\" />\n </div>\n}\n", styles: [":host .axm-workflow-run-history-visual-tab__state{display:flex;align-items:center;justify-content:center;min-height:8rem}:host .axm-workflow-run-history-visual-tab__empty{margin:0;padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-visual-tab__canvas{display:flex;min-height:0px;flex-direction:column;overflow:hidden;min-height:20rem;height:min(50vh,28rem);border:1px solid rgb(var(--ax-sys-color-border-light-surface));border-radius:var(--ax-radius-md, .5rem);background:rgb(var(--ax-sys-color-lightest-surface))}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer-host{display:flex;min-height:0px;width:100%;flex:auto}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer{min-height:0px;width:100%;flex:auto}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"] }]
224
224
  }], propDecorators: { definition: [{ type: i0.Input, args: [{ isSignal: true, alias: "definition", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], isBusy: [{ type: i0.Input, args: [{ isSignal: true, alias: "isBusy", required: false }] }] } });
225
225
 
226
226
  export { AXMWorkflowRunHistoryVisualTabComponent };
227
- //# sourceMappingURL=acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-34kIeL5C.mjs.map
227
+ //# sourceMappingURL=acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-CEfYaxTL.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-34kIeL5C.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-history-diagram.utils.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-visual-tab/workflow-run-history-visual-tab.component.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-visual-tab/workflow-run-history-visual-tab.component.html"],"sourcesContent":["//#region ---- Imports ----\n\nimport {\n arrangeWorkflowDiagram,\n type AXPWorkflowDiagramModel,\n type AXPWorkflowSemanticColor,\n} from '@acorex-platform/module-platform-management-client';\nimport type { AXPConnection, AXPWorkflowActivityInstance, AXPWorkflowDefinition, AXPWorkflowGraph } from '@acorex-platform/framework-shared/core';\nimport {\n formatReadableActivityName,\n workflowActivityStatusChipModifier,\n} from '../../../workflow-instance-activity-instances-page/workflow-activity-instance-rows.utils';\nimport type { AXMWorkflowHistoryRow } from './workflow-history-rows.utils';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface AXMWorkflowHistoryDiagramResult {\n diagram: AXPWorkflowDiagramModel;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst DEFAULT_NODE_W = 240;\nconst DEFAULT_NODE_H = 96;\nconst DESIGNER_GRID_SIZE = 20;\n\n//#endregion\n\n//#region ---- Helpers ----\n\nfunction portKey(port: string | null | undefined): string {\n return port == null || port === '' ? 'Done' : port;\n}\n\nfunction isCompletedHistoryRow(row: AXMWorkflowHistoryRow): boolean {\n if (row.completedAt) {\n return true;\n }\n return workflowActivityStatusChipModifier(row.status) === 'success';\n}\n\nfunction isInProgressHistoryRow(row: AXMWorkflowHistoryRow): boolean {\n const modifier = workflowActivityStatusChipModifier(row.status);\n return modifier === 'primary' || modifier === 'warning';\n}\n\ninterface AXMWorkflowHistoryNodeHighlight {\n color?: AXPWorkflowSemanticColor;\n borderColor?: AXPWorkflowSemanticColor;\n}\n\nfunction buildNodeHighlightStyles(rows: AXMWorkflowHistoryRow[]): Map<string, AXMWorkflowHistoryNodeHighlight> {\n const statusByNodeId = new Map<string, { completed: boolean; inProgress: boolean }>();\n\n for (const row of rows) {\n const nodeId = row.nodeId?.trim();\n if (!nodeId) {\n continue;\n }\n const current = statusByNodeId.get(nodeId) ?? { completed: false, inProgress: false };\n if (isInProgressHistoryRow(row)) {\n current.inProgress = true;\n } else if (isCompletedHistoryRow(row)) {\n current.completed = true;\n }\n statusByNodeId.set(nodeId, current);\n }\n\n const highlights = new Map<string, AXMWorkflowHistoryNodeHighlight>();\n for (const [nodeId, status] of statusByNodeId) {\n if (status.inProgress) {\n highlights.set(nodeId, { color: 'warning' });\n } else if (status.completed) {\n highlights.set(nodeId, { borderColor: 'success' });\n }\n }\n return highlights;\n}\n\nfunction buildTitleByNodeId(rows: AXMWorkflowHistoryRow[]): Map<string, string> {\n const titleByNodeId = new Map<string, string>();\n const sorted = [...rows].sort((a, b) => new Date(a.startedAt).getTime() - new Date(b.startedAt).getTime());\n for (const row of sorted) {\n const nodeId = row.nodeId?.trim();\n if (nodeId && row.stepTitle?.trim()) {\n titleByNodeId.set(nodeId, row.stepTitle.trim());\n }\n }\n return titleByNodeId;\n}\n\nfunction outcomePortsFromConnections(activityId: string, connections: AXPConnection[]): string[] {\n const ports = new Set<string>();\n for (const connection of connections) {\n if (connection.source.activtyName === activityId) {\n ports.add(portKey(connection.source.port));\n }\n }\n if (ports.size === 0) {\n ports.add('Done');\n }\n return [...ports].sort((a, b) => a.localeCompare(b));\n}\n\nfunction resolveActivityTitle(\n activity: AXPWorkflowActivityInstance,\n titleByNodeId: Map<string, string>,\n): string {\n const fromHistory = titleByNodeId.get(activity.id);\n if (fromHistory) {\n return fromHistory;\n }\n const persistedTitle = activity.title?.trim();\n if (persistedTitle) {\n return persistedTitle;\n }\n const name = activity.name?.trim();\n return name ? formatReadableActivityName(name) : activity.id;\n}\n\nfunction hasPersistedDesignerLayout(graph: AXPWorkflowGraph): boolean {\n const activities = graph.activities ?? [];\n const nodes = graph.designer?.nodes;\n if (!nodes || activities.length === 0) {\n return false;\n }\n return activities.every((activity) => {\n const layout = nodes[activity.id];\n return layout != null && typeof layout.x === 'number' && typeof layout.y === 'number';\n });\n}\n\nfunction buildDiagramModelFromDefinition(\n graph: AXPWorkflowGraph,\n highlightStyles: Map<string, AXMWorkflowHistoryNodeHighlight>,\n titleByNodeId: Map<string, string>,\n): AXPWorkflowDiagramModel {\n const activities = graph.activities ?? [];\n const connections = graph.connections ?? [];\n const designerNodes = graph.designer?.nodes ?? {};\n\n const nodes = activities.map((activity, index) => {\n const layout = designerNodes[activity.id];\n const position = layout\n ? { x: layout.x, y: layout.y }\n : { x: (index % 4) * (DEFAULT_NODE_W + 48), y: Math.floor(index / 4) * (DEFAULT_NODE_H + 48) };\n const size = {\n width: layout?.width && layout.width > 0 ? layout.width : DEFAULT_NODE_W,\n height: layout?.height && layout.height > 0 ? layout.height : DEFAULT_NODE_H,\n };\n const outboundPortKeys = outcomePortsFromConnections(activity.id, connections);\n const highlight = highlightStyles.get(activity.id);\n\n return {\n id: activity.id,\n type: activity.name,\n title: resolveActivityTitle(activity, titleByNodeId),\n shape: 'rounded-rectangle' as const,\n size,\n position,\n readonly: true,\n ...(highlight?.color ? { color: highlight.color } : {}),\n ...(highlight?.borderColor ? { borderColor: highlight.borderColor } : {}),\n inboundPorts: [\n {\n id: `${activity.id}:in`,\n kind: 'inbound' as const,\n side: 'left' as const,\n ratio: 0.5,\n key: 'in',\n readonly: true,\n },\n ],\n outboundPorts: outboundPortKeys.map((port, portIndex, ports) => ({\n id: `${activity.id}:out:${port}`,\n kind: 'outbound' as const,\n side: 'right' as const,\n ratio: ports.length === 1 ? 0.5 : (portIndex + 1) / (ports.length + 1),\n key: port,\n readonly: true,\n })),\n };\n });\n\n const outPortByKey = new Map<string, string>();\n for (const node of nodes) {\n for (const port of node.outboundPorts) {\n outPortByKey.set(`${node.id}:${portKey(port.key)}`, port.id);\n }\n }\n\n const connectors = connections\n .map((connection, index) => {\n const sourcePortKey = portKey(connection.source.port);\n const sourcePortId = outPortByKey.get(`${connection.source.activtyName}:${sourcePortKey}`);\n if (!sourcePortId) {\n return null;\n }\n return {\n id: `history-c-${index}-${connection.source.activtyName}-${connection.target.activtyName}-${sourcePortKey}`,\n sourceNodeId: connection.source.activtyName,\n sourcePortId,\n targetNodeId: connection.target.activtyName,\n targetPortId: `${connection.target.activtyName}:in`,\n readonly: true,\n };\n })\n .filter((connector): connector is NonNullable<typeof connector> => connector != null);\n\n return { nodes, connectors };\n}\n\n//#endregion\n\n//#region ---- Builder ----\n\n/**\n * Builds a readonly designer model from the full workflow definition graph,\n * highlighting in-progress steps via {@link AXPWorkflowNode.color} and completed steps via {@link AXPWorkflowNode.borderColor}.\n */\nexport function buildWorkflowHistoryDiagram(\n definition: AXPWorkflowDefinition | null | undefined,\n rows: AXMWorkflowHistoryRow[],\n): AXMWorkflowHistoryDiagramResult | null {\n const graph = definition?.graph;\n const activities = graph?.activities ?? [];\n if (!graph || activities.length === 0) {\n return null;\n }\n\n const highlightStyles = buildNodeHighlightStyles(rows);\n const titleByNodeId = buildTitleByNodeId(rows);\n let diagram = buildDiagramModelFromDefinition(graph, highlightStyles, titleByNodeId);\n\n if (!hasPersistedDesignerLayout(graph)) {\n const startNodeId = graph.startActivityId?.trim() || activities[0]?.id;\n diagram = arrangeWorkflowDiagram(diagram, {\n startNodeId,\n nodeIds: activities.map((activity) => activity.id),\n gridSize: DESIGNER_GRID_SIZE,\n direction: 'horizontal',\n });\n }\n\n return { diagram };\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPWorkflowDesignerComponent } from '@acorex-platform/module-platform-management-client';\nimport type { AXPWorkflowDefinition } from '@acorex-platform/framework-shared/core';\nimport { buildWorkflowHistoryDiagram } from '../workflow-history-diagram.utils';\nimport type { AXMWorkflowHistoryRow } from '../workflow-history-rows.utils';\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n selector: 'axm-workflow-run-history-visual-tab',\n templateUrl: './workflow-run-history-visual-tab.component.html',\n styleUrl: './workflow-run-history-visual-tab.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CommonModule, AXLoadingModule, AXTranslationModule, AXPWorkflowDesignerComponent],\n})\nexport class AXMWorkflowRunHistoryVisualTabComponent {\n readonly definition = input<AXPWorkflowDefinition | null>(null);\n readonly rows = input<AXMWorkflowHistoryRow[]>([]);\n readonly isBusy = input(false);\n\n protected readonly diagram = computed(\n () => buildWorkflowHistoryDiagram(this.definition(), this.rows())?.diagram ?? null,\n );\n}\n\n//#endregion\n","@if (isBusy()) {\n <div class=\"axm-workflow-run-history-visual-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (!diagram()) {\n <p class=\"axm-workflow-run-history-visual-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.tabs.visual.empty' | translate | async }}\n </p>\n} @else {\n <div class=\"axm-workflow-run-history-visual-tab__canvas\">\n <axp-workflow-designer [model]=\"diagram()!\" [readonly]=\"true\" [showPortLabels]=\"false\" />\n </div>\n}\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;AAAA;AAsBA;AAEA;AAEA,MAAM,cAAc,GAAG,GAAG;AAC1B,MAAM,cAAc,GAAG,EAAE;AACzB,MAAM,kBAAkB,GAAG,EAAE;AAE7B;AAEA;AAEA,SAAS,OAAO,CAAC,IAA+B,EAAA;AAC9C,IAAA,OAAO,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,EAAE,GAAG,MAAM,GAAG,IAAI;AACpD;AAEA,SAAS,qBAAqB,CAAC,GAA0B,EAAA;AACvD,IAAA,IAAI,GAAG,CAAC,WAAW,EAAE;AACnB,QAAA,OAAO,IAAI;IACb;IACA,OAAO,kCAAkC,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,SAAS;AACrE;AAEA,SAAS,sBAAsB,CAAC,GAA0B,EAAA;IACxD,MAAM,QAAQ,GAAG,kCAAkC,CAAC,GAAG,CAAC,MAAM,CAAC;AAC/D,IAAA,OAAO,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,SAAS;AACzD;AAOA,SAAS,wBAAwB,CAAC,IAA6B,EAAA;AAC7D,IAAA,MAAM,cAAc,GAAG,IAAI,GAAG,EAAuD;AAErF,IAAA,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;QACtB,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE;QACjC,IAAI,CAAC,MAAM,EAAE;YACX;QACF;AACA,QAAA,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE;AACrF,QAAA,IA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,CAAC,IAAI,EAAA,OAAA,EAC5B,CAAC,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,4BAA4B,CAAC,EAAA,QAAA,EAAA,ggBAAA,EAAA,MAAA,EAAA,CAAA,85BAAA,CAAA,EAAA;;;"}
1
+ {"version":3,"file":"acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-CEfYaxTL.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-history-diagram.utils.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-visual-tab/workflow-run-history-visual-tab.component.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-visual-tab/workflow-run-history-visual-tab.component.html"],"sourcesContent":["//#region ---- Imports ----\n\nimport {\n arrangeWorkflowDiagram,\n type AXPWorkflowDiagramModel,\n type AXPWorkflowSemanticColor,\n} from '@acorex-platform/module-platform-management-client';\nimport type { AXPConnection, AXPWorkflowActivityInstance, AXPWorkflowDefinition, AXPWorkflowGraph } from '@acorex-platform/framework-shared/core';\nimport {\n formatReadableActivityName,\n workflowActivityStatusChipModifier,\n} from '../../../workflow-instance-activity-instances-page/workflow-activity-instance-rows.utils';\nimport type { AXMWorkflowHistoryRow } from './workflow-history-rows.utils';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface AXMWorkflowHistoryDiagramResult {\n diagram: AXPWorkflowDiagramModel;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst DEFAULT_NODE_W = 240;\nconst DEFAULT_NODE_H = 96;\nconst DESIGNER_GRID_SIZE = 20;\n\n//#endregion\n\n//#region ---- Helpers ----\n\nfunction portKey(port: string | null | undefined): string {\n return port == null || port === '' ? 'Done' : port;\n}\n\nfunction isCompletedHistoryRow(row: AXMWorkflowHistoryRow): boolean {\n if (row.completedAt) {\n return true;\n }\n return workflowActivityStatusChipModifier(row.status) === 'success';\n}\n\nfunction isInProgressHistoryRow(row: AXMWorkflowHistoryRow): boolean {\n const modifier = workflowActivityStatusChipModifier(row.status);\n return modifier === 'primary' || modifier === 'warning';\n}\n\ninterface AXMWorkflowHistoryNodeHighlight {\n color?: AXPWorkflowSemanticColor;\n borderColor?: AXPWorkflowSemanticColor;\n}\n\nfunction buildNodeHighlightStyles(rows: AXMWorkflowHistoryRow[]): Map<string, AXMWorkflowHistoryNodeHighlight> {\n const statusByNodeId = new Map<string, { completed: boolean; inProgress: boolean }>();\n\n for (const row of rows) {\n const nodeId = row.nodeId?.trim();\n if (!nodeId) {\n continue;\n }\n const current = statusByNodeId.get(nodeId) ?? { completed: false, inProgress: false };\n if (isInProgressHistoryRow(row)) {\n current.inProgress = true;\n } else if (isCompletedHistoryRow(row)) {\n current.completed = true;\n }\n statusByNodeId.set(nodeId, current);\n }\n\n const highlights = new Map<string, AXMWorkflowHistoryNodeHighlight>();\n for (const [nodeId, status] of statusByNodeId) {\n if (status.inProgress) {\n highlights.set(nodeId, { color: 'warning' });\n } else if (status.completed) {\n highlights.set(nodeId, { borderColor: 'success' });\n }\n }\n return highlights;\n}\n\nfunction buildTitleByNodeId(rows: AXMWorkflowHistoryRow[]): Map<string, string> {\n const titleByNodeId = new Map<string, string>();\n const sorted = [...rows].sort((a, b) => new Date(a.startedAt).getTime() - new Date(b.startedAt).getTime());\n for (const row of sorted) {\n const nodeId = row.nodeId?.trim();\n if (nodeId && row.stepTitle?.trim()) {\n titleByNodeId.set(nodeId, row.stepTitle.trim());\n }\n }\n return titleByNodeId;\n}\n\nfunction outcomePortsFromConnections(activityId: string, connections: AXPConnection[]): string[] {\n const ports = new Set<string>();\n for (const connection of connections) {\n if (connection.source.activtyName === activityId) {\n ports.add(portKey(connection.source.port));\n }\n }\n if (ports.size === 0) {\n ports.add('Done');\n }\n return [...ports].sort((a, b) => a.localeCompare(b));\n}\n\nfunction resolveActivityTitle(\n activity: AXPWorkflowActivityInstance,\n titleByNodeId: Map<string, string>,\n): string {\n const fromHistory = titleByNodeId.get(activity.id);\n if (fromHistory) {\n return fromHistory;\n }\n const persistedTitle = activity.title?.trim();\n if (persistedTitle) {\n return persistedTitle;\n }\n const name = activity.name?.trim();\n return name ? formatReadableActivityName(name) : activity.id;\n}\n\nfunction hasPersistedDesignerLayout(graph: AXPWorkflowGraph): boolean {\n const activities = graph.activities ?? [];\n const nodes = graph.designer?.nodes;\n if (!nodes || activities.length === 0) {\n return false;\n }\n return activities.every((activity) => {\n const layout = nodes[activity.id];\n return layout != null && typeof layout.x === 'number' && typeof layout.y === 'number';\n });\n}\n\nfunction buildDiagramModelFromDefinition(\n graph: AXPWorkflowGraph,\n highlightStyles: Map<string, AXMWorkflowHistoryNodeHighlight>,\n titleByNodeId: Map<string, string>,\n): AXPWorkflowDiagramModel {\n const activities = graph.activities ?? [];\n const connections = graph.connections ?? [];\n const designerNodes = graph.designer?.nodes ?? {};\n\n const nodes = activities.map((activity, index) => {\n const layout = designerNodes[activity.id];\n const position = layout\n ? { x: layout.x, y: layout.y }\n : { x: (index % 4) * (DEFAULT_NODE_W + 48), y: Math.floor(index / 4) * (DEFAULT_NODE_H + 48) };\n const size = {\n width: layout?.width && layout.width > 0 ? layout.width : DEFAULT_NODE_W,\n height: layout?.height && layout.height > 0 ? layout.height : DEFAULT_NODE_H,\n };\n const outboundPortKeys = outcomePortsFromConnections(activity.id, connections);\n const highlight = highlightStyles.get(activity.id);\n\n return {\n id: activity.id,\n type: activity.name,\n title: resolveActivityTitle(activity, titleByNodeId),\n shape: 'rounded-rectangle' as const,\n size,\n position,\n readonly: true,\n ...(highlight?.color ? { color: highlight.color } : {}),\n ...(highlight?.borderColor ? { borderColor: highlight.borderColor } : {}),\n inboundPorts: [\n {\n id: `${activity.id}:in`,\n kind: 'inbound' as const,\n side: 'left' as const,\n ratio: 0.5,\n key: 'in',\n readonly: true,\n },\n ],\n outboundPorts: outboundPortKeys.map((port, portIndex, ports) => ({\n id: `${activity.id}:out:${port}`,\n kind: 'outbound' as const,\n side: 'right' as const,\n ratio: ports.length === 1 ? 0.5 : (portIndex + 1) / (ports.length + 1),\n key: port,\n readonly: true,\n })),\n };\n });\n\n const outPortByKey = new Map<string, string>();\n for (const node of nodes) {\n for (const port of node.outboundPorts) {\n outPortByKey.set(`${node.id}:${portKey(port.key)}`, port.id);\n }\n }\n\n const connectors = connections\n .map((connection, index) => {\n const sourcePortKey = portKey(connection.source.port);\n const sourcePortId = outPortByKey.get(`${connection.source.activtyName}:${sourcePortKey}`);\n if (!sourcePortId) {\n return null;\n }\n return {\n id: `history-c-${index}-${connection.source.activtyName}-${connection.target.activtyName}-${sourcePortKey}`,\n sourceNodeId: connection.source.activtyName,\n sourcePortId,\n targetNodeId: connection.target.activtyName,\n targetPortId: `${connection.target.activtyName}:in`,\n readonly: true,\n };\n })\n .filter((connector): connector is NonNullable<typeof connector> => connector != null);\n\n return { nodes, connectors };\n}\n\n//#endregion\n\n//#region ---- Builder ----\n\n/**\n * Builds a readonly designer model from the full workflow definition graph,\n * highlighting in-progress steps via {@link AXPWorkflowNode.color} and completed steps via {@link AXPWorkflowNode.borderColor}.\n */\nexport function buildWorkflowHistoryDiagram(\n definition: AXPWorkflowDefinition | null | undefined,\n rows: AXMWorkflowHistoryRow[],\n): AXMWorkflowHistoryDiagramResult | null {\n const graph = definition?.graph;\n const activities = graph?.activities ?? [];\n if (!graph || activities.length === 0) {\n return null;\n }\n\n const highlightStyles = buildNodeHighlightStyles(rows);\n const titleByNodeId = buildTitleByNodeId(rows);\n let diagram = buildDiagramModelFromDefinition(graph, highlightStyles, titleByNodeId);\n\n if (!hasPersistedDesignerLayout(graph)) {\n const startNodeId = graph.startActivityId?.trim() || activities[0]?.id;\n diagram = arrangeWorkflowDiagram(diagram, {\n startNodeId,\n nodeIds: activities.map((activity) => activity.id),\n gridSize: DESIGNER_GRID_SIZE,\n direction: 'horizontal',\n });\n }\n\n return { diagram };\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPWorkflowDesignerComponent } from '@acorex-platform/module-platform-management-client';\nimport type { AXPWorkflowDefinition } from '@acorex-platform/framework-shared/core';\nimport { buildWorkflowHistoryDiagram } from '../workflow-history-diagram.utils';\nimport type { AXMWorkflowHistoryRow } from '../workflow-history-rows.utils';\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n selector: 'axm-workflow-run-history-visual-tab',\n templateUrl: './workflow-run-history-visual-tab.component.html',\n styleUrl: './workflow-run-history-visual-tab.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CommonModule, AXLoadingModule, AXTranslationModule, AXPWorkflowDesignerComponent],\n})\nexport class AXMWorkflowRunHistoryVisualTabComponent {\n readonly definition = input<AXPWorkflowDefinition | null>(null);\n readonly rows = input<AXMWorkflowHistoryRow[]>([]);\n readonly isBusy = input(false);\n\n protected readonly diagram = computed(\n () => buildWorkflowHistoryDiagram(this.definition(), this.rows())?.diagram ?? null,\n );\n}\n\n//#endregion\n","@if (isBusy()) {\n <div class=\"axm-workflow-run-history-visual-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (!diagram()) {\n <p class=\"axm-workflow-run-history-visual-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.tabs.visual.empty' | translate | async }}\n </p>\n} @else {\n <div class=\"axm-workflow-run-history-visual-tab__canvas\">\n <axp-workflow-designer [model]=\"diagram()!\" [readonly]=\"true\" [showPortLabels]=\"false\" />\n </div>\n}\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;AAAA;AAsBA;AAEA;AAEA,MAAM,cAAc,GAAG,GAAG;AAC1B,MAAM,cAAc,GAAG,EAAE;AACzB,MAAM,kBAAkB,GAAG,EAAE;AAE7B;AAEA;AAEA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