@acorex-platform/module-workflow-management-client 2.0.0-next.2 → 2.0.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-DfHDYcB1.mjs} +22 -17
- 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-DfHDYcB1.mjs.map} +1 -1
- 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-C4nMV2f5.mjs} +2 -2
- 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-C4nMV2f5.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-index-BkJuXaZn.mjs → acorex-platform-module-workflow-management-client-index-DUPFLctp.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-workflow-management-client-index-BkJuXaZn.mjs.map → acorex-platform-module-workflow-management-client-index-DUPFLctp.mjs.map} +1 -1
- 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-cQXYistV.mjs} +2 -2
- 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-cQXYistV.mjs.map} +1 -1
- 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-CLZjVnAC.mjs} +2 -2
- 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-CLZjVnAC.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-task-popover.component-BjjwcQ2s.mjs → acorex-platform-module-workflow-management-client-workflow-task-popover.component-BAB0y9_u.mjs} +2 -2
- 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-BAB0y9_u.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workflow-management-client.mjs +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-CVTeOv-q.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/workflow-configurator/workflow-configurator.utils.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-configurator/workflow-configurator.component.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-configurator/workflow-configurator-widget-edit.component.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport type { AXPWidgetProperty, AXPWidgetPropertyGroup } from '@acorex-platform/framework-shared/widget-core';\nimport { type AXPProperty, AXPSystemStatusType } from '@acorex-platform/framework-shared/core';\nimport { AXTranslationService } from '@acorex/core/translation';\n\nimport { mapAXPPropertyToWidgetProperty } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXDataSourceFilterOption } from '@acorex/cdk/common';\n\nimport { castArray, get, isString } from 'lodash';\nimport type {\n WorkflowConfiguratorCatalogScopeFilter,\n WorkflowConfiguratorTemplateInputFilter,\n} from './workflow-configurator.types';\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Workflow inputs normally supplied when a run is started from runtime context, not on the template. */\nexport const WORKFLOW_CONFIGURATOR_RUNTIME_INPUT_NAMES = new Set([\n 'employeeId',\n 'employeeDisplayName',\n 'eventTypeId',\n 'eventTypeTitle',\n 'recordTypeId',\n 'recordTypeTitle',\n 'effectiveDate',\n 'assessmentCaseTitle',\n 'targetEmployeeStatusId',\n]);\n\n//#endregion\n\n//#region ---- Catalog scope matching ----\n\nexport interface WorkflowConfiguratorCatalogScopeRow {\n name?: string;\n catalogScopeKeys?: string[];\n catalogScopes?: Array<{ name?: string }>;\n}\n\n/**\n * Resolves catalog scope keys from persisted row shape (keys or enriched scopes).\n */\nexport function resolveWorkflowCatalogScopeKeys(row: WorkflowConfiguratorCatalogScopeRow): string[] {\n const keys = new Set<string>();\n\n for (const key of row.catalogScopeKeys ?? []) {\n if (isString(key) && key.trim()) {\n keys.add(key.trim());\n }\n }\n\n for (const scope of row.catalogScopes ?? []) {\n const name = scope?.name?.trim();\n if (name) {\n keys.add(name);\n }\n }\n\n return [...keys];\n}\n\n/**\n * Builds a workflow list filter from registered scope key names.\n */\nexport function workflowConfiguratorCatalogScopeFilterFromKeys(\n catalogScopeKeys: string | string[] | undefined,\n): WorkflowConfiguratorCatalogScopeFilter | undefined {\n const anyOf = castArray(catalogScopeKeys ?? [])\n .filter((k) => isString(k) && k.trim().length > 0)\n .map((k) => k.trim());\n\n return anyOf.length > 0 ? { anyOf } : undefined;\n}\n\n/**\n * Query filter for published workflow definitions, optionally restricted by catalog scope keys.\n */\nexport function buildWorkflowConfiguratorListQueryFilter(\n scopeFilter: WorkflowConfiguratorCatalogScopeFilter | undefined,\n): AXDataSourceFilterOption {\n const publishedFilter: AXDataSourceFilterOption = {\n field: 'statusId',\n operator: { type: 'equal' },\n value: AXPSystemStatusType.Published,\n };\n\n const anyOf = scopeFilter?.anyOf?.map((k) => k.trim()).filter(Boolean) ?? [];\n if (anyOf.length === 0) {\n return publishedFilter;\n }\n\n return {\n logic: 'and',\n filters: [\n publishedFilter,\n {\n logic: 'or',\n filters: anyOf.map((scopeKey) => ({\n field: 'catalogScopeKeys',\n operator: { type: 'contains' },\n value: scopeKey,\n })),\n },\n ],\n };\n}\n\n/**\n * Returns true when the row's catalog scope keys satisfy the configurator filter.\n */\nexport function matchesWorkflowConfiguratorCatalogScopeFilter(\n catalogScopeKeys: string[] | undefined,\n filter: WorkflowConfiguratorCatalogScopeFilter | undefined,\n): boolean {\n if (!filter) {\n return true;\n }\n\n const keys = (catalogScopeKeys ?? []).filter((k) => isString(k) && k.trim().length > 0);\n if (filter.keyPrefix?.trim()) {\n const prefix = filter.keyPrefix.trim();\n if (!keys.some((k) => k.startsWith(prefix))) {\n return false;\n }\n }\n\n const anyOf = filter.anyOf?.map((k) => k.trim()).filter(Boolean) ?? [];\n if (anyOf.length > 0 && !anyOf.some((scope) => keys.includes(scope))) {\n return false;\n }\n\n const allOf = filter.allOf?.map((k) => k.trim()).filter(Boolean) ?? [];\n if (allOf.length > 0 && !allOf.every((scope) => keys.includes(scope))) {\n return false;\n }\n\n return true;\n}\n\nfunction mergeTemplateInputCatalogScopeFilter(\n property: AXPProperty,\n templateInputFilters?: Record<string, WorkflowConfiguratorTemplateInputFilter>,\n): AXPProperty {\n const name = property.name?.trim();\n if (!name || !templateInputFilters) {\n return property;\n }\n\n const scopeFilter = templateInputFilters[name]?.catalogScopeKeys;\n if (!scopeFilter) {\n return property;\n }\n\n const values = castArray(scopeFilter).filter((v) => isString(v) && v.trim().length > 0);\n if (values.length === 0) {\n return property;\n }\n\n const iface = property.interface;\n if (!iface?.options) {\n return property;\n }\n\n const existingFilter = get(iface.options, 'filter');\n const scopeConditions = values.map((value) => ({\n field: 'catalogScopeKeys',\n operator: { type: 'contains' as const },\n value,\n }));\n\n const mergedFilter =\n scopeConditions.length === 1\n ? scopeConditions[0]\n : { logic: 'or' as const, filters: scopeConditions };\n\n return {\n ...property,\n interface: {\n ...iface,\n options: {\n ...iface.options,\n filter: existingFilter\n ? { logic: 'and', filters: [existingFilter, mergedFilter] }\n : mergedFilter,\n },\n },\n };\n}\n\n//#endregion\n\n//#region ---- Mapping ----\n\n/**\n * Maps workflow definition `inputs` to property viewer rows for {@link AXPItemConfiguratorComponent}.\n */\nexport function mapWorkflowInputsToWidgetProperties(\n inputs: AXPProperty[] | undefined,\n translation: AXTranslationService,\n templateInputNames?: string[],\n templateInputFilters?: Record<string, WorkflowConfiguratorTemplateInputFilter>,\n): AXPWidgetProperty[] {\n const list = inputs ?? [];\n const allowSet =\n templateInputNames && templateInputNames.length > 0\n ? new Set(templateInputNames)\n : null;\n\n const group: AXPWidgetPropertyGroup = {\n name: 'workflow-template-inputs',\n title: '@workflow-management:workflow-configurator.configure.group-title',\n order: 0,\n };\n\n const filtered = list.filter((property) => {\n const name = property.name?.trim();\n if (!name) {\n return false;\n }\n if (allowSet) {\n return allowSet.has(name);\n }\n return !WORKFLOW_CONFIGURATOR_RUNTIME_INPUT_NAMES.has(name);\n });\n\n return filtered.map((property, index) =>\n mapAXPPropertyToWidgetProperty(\n mergeTemplateInputCatalogScopeFilter(property, templateInputFilters),\n {\n group,\n order: index,\n valuePathPrefix: 'options',\n resolveTitle: (prop) =>\n typeof prop.title === 'string'\n ? prop.title\n : (translation.resolve(prop.title) ?? prop.name),\n resolveDescription: (prop) =>\n prop.description === undefined\n ? undefined\n : typeof prop.description === 'string'\n ? prop.description\n : translation.resolve(prop.description),\n },\n ),\n );\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPItemConfiguratorComponent, ItemConfiguratorListItem } from '@acorex-platform/framework-client/layout/components';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n untracked,\n} from '@angular/core';\nimport { isEqual } from 'lodash';\nimport type { AXMWorkflowManagementWorkflowDefinitionEntityModel } from '@acorex-platform/module-workflow-management-client/contracts';\nimport { RootConfig } from '@acorex-platform/module-workflow-management-client/contracts';\nimport type {\n WorkflowConfiguratorCatalogScopeFilter,\n WorkflowConfiguratorTemplateInputFilter,\n WorkflowConfiguratorValue,\n} from './workflow-configurator.types';\nimport {\n buildWorkflowConfiguratorListQueryFilter,\n mapWorkflowInputsToWidgetProperties,\n matchesWorkflowConfiguratorCatalogScopeFilter,\n resolveWorkflowCatalogScopeKeys,\n type WorkflowConfiguratorCatalogScopeRow,\n} from './workflow-configurator.utils';\n\n//#endregion\n\n//#region ---- Types ----\n\ntype WorkflowDefinitionListRow = Pick<\n AXMWorkflowManagementWorkflowDefinitionEntityModel,\n 'id' | 'name' | 'title' | 'description' | 'inputs' | 'catalogScopeKeys' | 'catalogScopes'\n>;\n\n//#endregion\n\n//#region ---- Component ----\n\n/**\n * Select a workflow definition and configure template-time inputs via {@link AXPItemConfiguratorComponent}.\n */\n@Component({\n selector: 'axm-workflow-configurator',\n template: `\n <axp-item-configurator\n [(selectedItemId)]=\"selectedWorkflowIdModel\"\n [(values)]=\"defaultInputModel\"\n [label]=\"label()\"\n [readonly]=\"readonly()\"\n [items]=\"configuratorItems()\"\n />\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'flex flex-col',\n '[attr.readonly]': 'readonly() ? \"\" : null',\n },\n styles: [\n `@reference '@acorex/styles/themes/default.css';\n\n :host([readonly]) {\n pointer-events: none;\n opacity: 0.7;\n }\n `,\n ],\n imports: [AXPItemConfiguratorComponent],\n})\nexport class AXMWorkflowConfiguratorComponent {\n //#region ---- Inputs ----\n\n value = model<WorkflowConfiguratorValue>({\n workflowDefinitionId: '',\n workflowName: '',\n defaultInput: {},\n });\n\n label = input<string>('@workflow-management:workflow-configurator.label');\n\n readonly = input<boolean>(false);\n\n /**\n * When set, only these workflow input names are configurable; otherwise runtime inputs are excluded by default.\n */\n templateInputNames = input<string[] | undefined>(undefined);\n\n /**\n * Limits workflow definitions to rows whose {@link catalogScopeKeys} match (e.g. HR lifecycle).\n */\n catalogScopeFilter = input<WorkflowConfiguratorCatalogScopeFilter | undefined>(undefined);\n\n /**\n * Per template input lookup filters (e.g. `questionnaireId` → HR catalog scopes).\n */\n templateInputFilters = input<Record<string, WorkflowConfiguratorTemplateInputFilter> | undefined>(\n undefined,\n );\n\n //#endregion\n\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n private readonly translation = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Class Properties ----\n\n protected selectedWorkflowIdModel = model<string>('');\n\n protected defaultInputModel = model<Record<string, unknown>>({});\n\n protected workflows = signal<WorkflowDefinitionListRow[]>([]);\n\n protected configuratorItems = computed<ItemConfiguratorListItem[]>(() => {\n const names = this.templateInputNames();\n const inputFilters = this.templateInputFilters();\n return this.workflows().map((row) => ({\n id: row.id,\n title: (row.title ?? row.name) as ItemConfiguratorListItem['title'],\n icon: 'fa-light fa-diagram-project',\n description: row.description as ItemConfiguratorListItem['description'],\n propertyDefinitions: mapWorkflowInputsToWidgetProperties(\n row.inputs,\n this.translation,\n names,\n inputFilters,\n ),\n }));\n });\n\n //#endregion\n\n //#region ---- Lifecycle ----\n\n constructor() {\n effect(() => {\n this.catalogScopeFilter();\n untracked(() => {\n void this.loadWorkflowDefinitions();\n });\n });\n\n /** Sync inner models from bound `value` only (context/discard); never from model edits. */\n effect(() => {\n const v = this.value();\n const id = v?.workflowDefinitionId?.trim() ?? '';\n const defaults = v?.defaultInput ?? {};\n\n untracked(() => {\n if (this.selectedWorkflowIdModel() !== id) {\n this.selectedWorkflowIdModel.set(id);\n }\n if (!isEqual(this.defaultInputModel(), defaults)) {\n this.defaultInputModel.set({ ...defaults });\n }\n });\n });\n\n effect(() => {\n const id = this.selectedWorkflowIdModel();\n const defaults = this.defaultInputModel();\n const row = this.workflows().find((w) => w.id === id);\n const current = untracked(() => this.value());\n\n const next: WorkflowConfiguratorValue = {\n workflowDefinitionId: id,\n workflowName:\n row?.name?.trim() ??\n (current.workflowDefinitionId === id ? (current.workflowName?.trim() ?? '') : ''),\n defaultInput: { ...defaults },\n };\n\n const normalizedCurrent: WorkflowConfiguratorValue = {\n workflowDefinitionId: current.workflowDefinitionId?.trim() ?? '',\n workflowName: current.workflowName?.trim() ?? '',\n defaultInput: current.defaultInput ?? {},\n };\n\n if (!isEqual(next, normalizedCurrent)) {\n untracked(() => this.value.set(next));\n }\n });\n }\n\n //#endregion\n\n //#region ---- Data loading ----\n\n /**\n * List queries may omit heavy fields; template input definitions require full `inputs`.\n */\n private async hydrateWorkflowDefinitionRow(\n row: WorkflowDefinitionListRow,\n ): Promise<WorkflowDefinitionListRow> {\n if ((row.inputs?.length ?? 0) > 0) {\n return row;\n }\n\n const id = row.id?.trim();\n if (!id) {\n return row;\n }\n\n try {\n const full = (await this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.workflowDefinition.name)\n .data()\n .byKey(id)) as WorkflowDefinitionListRow | null;\n\n if (!full?.id) {\n return row;\n }\n\n return {\n ...row,\n ...full,\n inputs: full.inputs ?? row.inputs,\n };\n } catch {\n return row;\n }\n }\n\n private async loadWorkflowDefinitions(): Promise<void> {\n try {\n const scopeFilter = this.catalogScopeFilter();\n const page = await this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.workflowDefinition.name)\n .data()\n .query({\n skip: 0,\n take: 500,\n filter: buildWorkflowConfiguratorListQueryFilter(scopeFilter),\n });\n\n const rows = (page.items ?? []) as WorkflowDefinitionListRow[];\n const pinnedId = this.value()?.workflowDefinitionId?.trim();\n\n const filtered = rows\n .filter((r) => !!r.id?.trim() && !!r.name?.trim())\n .filter((r) => {\n if (!scopeFilter) {\n return true;\n }\n if (pinnedId && r.id === pinnedId) {\n return true;\n }\n const keys = resolveWorkflowCatalogScopeKeys(r as WorkflowConfiguratorCatalogScopeRow);\n return matchesWorkflowConfiguratorCatalogScopeFilter(keys, scopeFilter);\n })\n .sort((a, b) => {\n const ta = this.translation.resolve(a.title).trim() || a.name;\n const tb = this.translation.resolve(b.title).trim() || b.name;\n return ta.localeCompare(tb, this.translation.getActiveLang(), { sensitivity: 'base' });\n });\n\n const hydrated = await Promise.all(filtered.map((row) => this.hydrateWorkflowDefinitionRow(row)));\n\n if (pinnedId && !hydrated.some((r) => r.id === pinnedId)) {\n try {\n const pinned = (await this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.workflowDefinition.name)\n .data()\n .byKey(pinnedId)) as WorkflowDefinitionListRow | null;\n if (pinned?.id) {\n hydrated.unshift(await this.hydrateWorkflowDefinitionRow(pinned));\n }\n } catch {\n /* keep list as filtered */\n }\n }\n\n this.workflows.set(hydrated);\n } catch {\n this.workflows.set([]);\n }\n }\n\n //#endregion\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPValueWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport { isFormValueEqual } from '@acorex-platform/framework-shared/core';\nimport { ChangeDetectionStrategy, Component, computed, effect, model, signal, untracked } from '@angular/core';\nimport { cloneDeep, isEqual } from 'lodash';\nimport { AXMWorkflowConfiguratorComponent } from './workflow-configurator.component';\nimport type {\n WorkflowConfiguratorCatalogScopeFilter,\n WorkflowConfiguratorTemplateInputFilter,\n WorkflowConfiguratorValue,\n} from './workflow-configurator.types';\nimport { workflowConfiguratorCatalogScopeFilterFromKeys } from './workflow-configurator.utils';\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n selector: 'axm-workflow-configurator-widget-edit',\n template: `\n @if (isInitialized()) {\n <axm-workflow-configurator\n [(value)]=\"valueModel\"\n [label]=\"label()\"\n [readonly]=\"readonly()\"\n [templateInputNames]=\"templateInputNames()\"\n [catalogScopeFilter]=\"catalogScopeFilter()\"\n [templateInputFilters]=\"templateInputFilters()\"\n />\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXMWorkflowConfiguratorComponent],\n})\nexport class AXMWorkflowConfiguratorWidgetEditComponent extends AXPValueWidgetComponent<WorkflowConfiguratorValue> {\n //#region ---- Computed Properties ----\n\n protected readonly readonly = computed<boolean>(() => (this.options()['readonly'] as boolean) ?? false);\n\n protected label = computed<string>(\n () => (this.options()['label'] as string) || '@workflow-management:workflow-configurator.label',\n );\n\n protected templateInputNames = computed<string[] | undefined>(() => {\n const raw = this.options()['templateInputNames'];\n return Array.isArray(raw) ? (raw as string[]) : undefined;\n });\n\n protected catalogScopeFilter = computed<WorkflowConfiguratorCatalogScopeFilter | undefined>(() => {\n const fromKeys = workflowConfiguratorCatalogScopeFilterFromKeys(\n this.options()['catalogScopeKeys'] as string | string[] | undefined,\n );\n if (fromKeys) {\n return fromKeys;\n }\n\n const raw = this.options()['catalogScopeFilter'];\n return raw && typeof raw === 'object' ? (raw as WorkflowConfiguratorCatalogScopeFilter) : undefined;\n });\n\n protected templateInputFilters = computed<\n Record<string, WorkflowConfiguratorTemplateInputFilter> | undefined\n >(() => {\n const raw = this.options()['templateInputFilters'];\n return raw && typeof raw === 'object'\n ? (raw as Record<string, WorkflowConfiguratorTemplateInputFilter>)\n : undefined;\n });\n\n //#endregion\n\n //#region ---- State Signals ----\n\n protected isInitialized = signal(false);\n\n //#endregion\n\n //#region ---- Models ----\n\n protected valueModel = model<WorkflowConfiguratorValue>({\n workflowDefinitionId: '',\n workflowName: '',\n defaultInput: {},\n });\n\n //#endregion\n\n //#region ---- Effects ----\n\n private syncValueToConfigurator = effect(() => {\n const value = this.getValue();\n\n const normalized = normalizeWorkflowConfiguratorValue(value);\n const currentModel = untracked(() => this.valueModel());\n\n if (!isEqual(normalized, currentModel)) {\n untracked(() => {\n this.valueModel.set(normalized);\n });\n }\n\n untracked(() => {\n if (!this.isInitialized()) {\n this.isInitialized.set(true);\n }\n });\n });\n\n private syncConfiguratorToValue = effect(() => {\n const modelValue = this.valueModel();\n\n if (!untracked(() => this.isInitialized())) {\n return;\n }\n\n const normalized = normalizeWorkflowConfiguratorValue(modelValue);\n const payload = isEmptyWorkflowConfiguratorValue(normalized)\n ? null\n : {\n workflowDefinitionId: normalized.workflowDefinitionId.trim(),\n workflowName: normalized.workflowName.trim(),\n defaultInput: cloneDeep(normalized.defaultInput ?? {}),\n };\n\n const currentValue = untracked(() => this.getValue());\n if (!isFormValueEqual(payload, currentValue)) {\n untracked(() => {\n this.setValue(payload);\n });\n }\n });\n\n //#endregion\n}\n\n//#endregion\n\n//#region ---- Helpers ----\n\nfunction normalizeWorkflowConfiguratorValue(value: unknown): WorkflowConfiguratorValue {\n if (value && typeof value === 'object' && 'workflowDefinitionId' in value) {\n const v = value as WorkflowConfiguratorValue;\n return {\n workflowDefinitionId: v.workflowDefinitionId ?? '',\n workflowName: v.workflowName ?? '',\n defaultInput: v.defaultInput ?? {},\n };\n }\n\n return { workflowDefinitionId: '', workflowName: '', defaultInput: {} };\n}\n\nfunction isEmptyWorkflowConfiguratorValue(value: WorkflowConfiguratorValue): boolean {\n const id = value.workflowDefinitionId?.trim() ?? '';\n const name = value.workflowName?.trim() ?? '';\n const defaults = value.defaultInput ?? {};\n const hasDefaults = Object.keys(defaults).some((key) => {\n const entry = defaults[key];\n return entry !== null && entry !== undefined && entry !== '';\n });\n return !id && !name && !hasDefaults;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AAeA;AAEA;AAEA;AACO,MAAM,yCAAyC,GAAG,IAAI,GAAG,CAAC;IAC/D,YAAY;IACZ,qBAAqB;IACrB,aAAa;IACb,gBAAgB;IAChB,cAAc;IACd,iBAAiB;IACjB,eAAe;IACf,qBAAqB;IACrB,wBAAwB;AACzB,CAAA,CAAC;AAYF;;AAEG;AACG,SAAU,+BAA+B,CAAC,GAAwC,EAAA;AACtF,IAAA,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU;IAE9B,KAAK,MAAM,GAAG,IAAI,GAAG,CAAC,gBAAgB,IAAI,EAAE,EAAE;QAC5C,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,EAAE;YAC/B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QACtB;IACF;IAEA,KAAK,MAAM,KAAK,IAAI,GAAG,CAAC,aAAa,IAAI,EAAE,EAAE;QAC3C,MA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,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,gCAAgC,CAAC;AAC5C,iBAAA;;AAsGD;AAEA;AAEA,SAAS,kCAAkC,CAAC,KAAc,EAAA;IACxD,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,sBAAsB,IAAI,KAAK,EAAE;QACzE,MAAM,CAAC,GAAG,KAAkC;QAC5C,OAAO;AACL,YAAA,oBAAoB,EAAE,CAAC,CAAC,oBAAoB,IAAI,EAAE;AAClD,YAAA,YAAY,EAAE,CAAC,CAAC,YAAY,IAAI,EAAE;AAClC,YAAA,YAAY,EAAE,CAAC,CAAC,YAAY,IAAI,EAAE;SACnC;IACH;AAEA,IAAA,OAAO,EAAE,oBAAoB,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;AACzE;AAEA,SAAS,gCAAgC,CAAC,KAAgC,EAAA;IACxE,MAAM,EAAE,GAAG,KAAK,CAAC,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE;IACnD,MAAM,IAAI,GAAG,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE;AAC7C,IAAA,MAAM,QAAQ,GAAG,KAAK,CAAC,YAAY,IAAI,EAAE;AACzC,IAAA,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,KAAI;AACrD,QAAA,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC;QAC3B,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE;AAC9D,IAAA,CAAC,CAAC;IACF,OAAO,CAAC,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW;AACrC;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-cQXYistV.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/workflow-configurator/workflow-configurator.utils.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-configurator/workflow-configurator.component.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-configurator/workflow-configurator-widget-edit.component.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport type { AXPWidgetProperty, AXPWidgetPropertyGroup } from '@acorex-platform/framework-shared/widget-core';\nimport { type AXPProperty, AXPSystemStatusType } from '@acorex-platform/framework-shared/core';\nimport { AXTranslationService } from '@acorex/core/translation';\n\nimport { mapAXPPropertyToWidgetProperty } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXDataSourceFilterOption } from '@acorex/cdk/common';\n\nimport { castArray, get, isString } from 'lodash';\nimport type {\n WorkflowConfiguratorCatalogScopeFilter,\n WorkflowConfiguratorTemplateInputFilter,\n} from './workflow-configurator.types';\n\n//#endregion\n\n//#region ---- Constants ----\n\n/** Workflow inputs normally supplied when a run is started from runtime context, not on the template. */\nexport const WORKFLOW_CONFIGURATOR_RUNTIME_INPUT_NAMES = new Set([\n 'employeeId',\n 'employeeDisplayName',\n 'eventTypeId',\n 'eventTypeTitle',\n 'recordTypeId',\n 'recordTypeTitle',\n 'effectiveDate',\n 'assessmentCaseTitle',\n 'targetEmployeeStatusId',\n]);\n\n//#endregion\n\n//#region ---- Catalog scope matching ----\n\nexport interface WorkflowConfiguratorCatalogScopeRow {\n name?: string;\n catalogScopeKeys?: string[];\n catalogScopes?: Array<{ name?: string }>;\n}\n\n/**\n * Resolves catalog scope keys from persisted row shape (keys or enriched scopes).\n */\nexport function resolveWorkflowCatalogScopeKeys(row: WorkflowConfiguratorCatalogScopeRow): string[] {\n const keys = new Set<string>();\n\n for (const key of row.catalogScopeKeys ?? []) {\n if (isString(key) && key.trim()) {\n keys.add(key.trim());\n }\n }\n\n for (const scope of row.catalogScopes ?? []) {\n const name = scope?.name?.trim();\n if (name) {\n keys.add(name);\n }\n }\n\n return [...keys];\n}\n\n/**\n * Builds a workflow list filter from registered scope key names.\n */\nexport function workflowConfiguratorCatalogScopeFilterFromKeys(\n catalogScopeKeys: string | string[] | undefined,\n): WorkflowConfiguratorCatalogScopeFilter | undefined {\n const anyOf = castArray(catalogScopeKeys ?? [])\n .filter((k) => isString(k) && k.trim().length > 0)\n .map((k) => k.trim());\n\n return anyOf.length > 0 ? { anyOf } : undefined;\n}\n\n/**\n * Query filter for published workflow definitions, optionally restricted by catalog scope keys.\n */\nexport function buildWorkflowConfiguratorListQueryFilter(\n scopeFilter: WorkflowConfiguratorCatalogScopeFilter | undefined,\n): AXDataSourceFilterOption {\n const publishedFilter: AXDataSourceFilterOption = {\n field: 'statusId',\n operator: { type: 'equal' },\n value: AXPSystemStatusType.Published,\n };\n\n const anyOf = scopeFilter?.anyOf?.map((k) => k.trim()).filter(Boolean) ?? [];\n if (anyOf.length === 0) {\n return publishedFilter;\n }\n\n return {\n logic: 'and',\n filters: [\n publishedFilter,\n {\n logic: 'or',\n filters: anyOf.map((scopeKey) => ({\n field: 'catalogScopeKeys',\n operator: { type: 'contains' },\n value: scopeKey,\n })),\n },\n ],\n };\n}\n\n/**\n * Returns true when the row's catalog scope keys satisfy the configurator filter.\n */\nexport function matchesWorkflowConfiguratorCatalogScopeFilter(\n catalogScopeKeys: string[] | undefined,\n filter: WorkflowConfiguratorCatalogScopeFilter | undefined,\n): boolean {\n if (!filter) {\n return true;\n }\n\n const keys = (catalogScopeKeys ?? []).filter((k) => isString(k) && k.trim().length > 0);\n if (filter.keyPrefix?.trim()) {\n const prefix = filter.keyPrefix.trim();\n if (!keys.some((k) => k.startsWith(prefix))) {\n return false;\n }\n }\n\n const anyOf = filter.anyOf?.map((k) => k.trim()).filter(Boolean) ?? [];\n if (anyOf.length > 0 && !anyOf.some((scope) => keys.includes(scope))) {\n return false;\n }\n\n const allOf = filter.allOf?.map((k) => k.trim()).filter(Boolean) ?? [];\n if (allOf.length > 0 && !allOf.every((scope) => keys.includes(scope))) {\n return false;\n }\n\n return true;\n}\n\nfunction mergeTemplateInputCatalogScopeFilter(\n property: AXPProperty,\n templateInputFilters?: Record<string, WorkflowConfiguratorTemplateInputFilter>,\n): AXPProperty {\n const name = property.name?.trim();\n if (!name || !templateInputFilters) {\n return property;\n }\n\n const scopeFilter = templateInputFilters[name]?.catalogScopeKeys;\n if (!scopeFilter) {\n return property;\n }\n\n const values = castArray(scopeFilter).filter((v) => isString(v) && v.trim().length > 0);\n if (values.length === 0) {\n return property;\n }\n\n const iface = property.interface;\n if (!iface?.options) {\n return property;\n }\n\n const existingFilter = get(iface.options, 'filter');\n const scopeConditions = values.map((value) => ({\n field: 'catalogScopeKeys',\n operator: { type: 'contains' as const },\n value,\n }));\n\n const mergedFilter =\n scopeConditions.length === 1\n ? scopeConditions[0]\n : { logic: 'or' as const, filters: scopeConditions };\n\n return {\n ...property,\n interface: {\n ...iface,\n options: {\n ...iface.options,\n filter: existingFilter\n ? { logic: 'and', filters: [existingFilter, mergedFilter] }\n : mergedFilter,\n },\n },\n };\n}\n\n//#endregion\n\n//#region ---- Mapping ----\n\n/**\n * Maps workflow definition `inputs` to property viewer rows for {@link AXPItemConfiguratorComponent}.\n */\nexport function mapWorkflowInputsToWidgetProperties(\n inputs: AXPProperty[] | undefined,\n translation: AXTranslationService,\n templateInputNames?: string[],\n templateInputFilters?: Record<string, WorkflowConfiguratorTemplateInputFilter>,\n): AXPWidgetProperty[] {\n const list = inputs ?? [];\n const allowSet =\n templateInputNames && templateInputNames.length > 0\n ? new Set(templateInputNames)\n : null;\n\n const group: AXPWidgetPropertyGroup = {\n name: 'workflow-template-inputs',\n title: '@workflow-management:workflow-configurator.configure.group-title',\n order: 0,\n };\n\n const filtered = list.filter((property) => {\n const name = property.name?.trim();\n if (!name) {\n return false;\n }\n if (allowSet) {\n return allowSet.has(name);\n }\n return !WORKFLOW_CONFIGURATOR_RUNTIME_INPUT_NAMES.has(name);\n });\n\n return filtered.map((property, index) =>\n mapAXPPropertyToWidgetProperty(\n mergeTemplateInputCatalogScopeFilter(property, templateInputFilters),\n {\n group,\n order: index,\n valuePathPrefix: 'options',\n resolveTitle: (prop) =>\n typeof prop.title === 'string'\n ? prop.title\n : (translation.resolve(prop.title) ?? prop.name),\n resolveDescription: (prop) =>\n prop.description === undefined\n ? undefined\n : typeof prop.description === 'string'\n ? prop.description\n : translation.resolve(prop.description),\n },\n ),\n );\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPItemConfiguratorComponent, ItemConfiguratorListItem } from '@acorex-platform/framework-client/layout/components';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n untracked,\n} from '@angular/core';\nimport { isEqual } from 'lodash';\nimport type { AXMWorkflowManagementWorkflowDefinitionEntityModel } from '@acorex-platform/module-workflow-management-client/contracts';\nimport { RootConfig } from '@acorex-platform/module-workflow-management-client/contracts';\nimport type {\n WorkflowConfiguratorCatalogScopeFilter,\n WorkflowConfiguratorTemplateInputFilter,\n WorkflowConfiguratorValue,\n} from './workflow-configurator.types';\nimport {\n buildWorkflowConfiguratorListQueryFilter,\n mapWorkflowInputsToWidgetProperties,\n matchesWorkflowConfiguratorCatalogScopeFilter,\n resolveWorkflowCatalogScopeKeys,\n type WorkflowConfiguratorCatalogScopeRow,\n} from './workflow-configurator.utils';\n\n//#endregion\n\n//#region ---- Types ----\n\ntype WorkflowDefinitionListRow = Pick<\n AXMWorkflowManagementWorkflowDefinitionEntityModel,\n 'id' | 'name' | 'title' | 'description' | 'inputs' | 'catalogScopeKeys' | 'catalogScopes'\n>;\n\n//#endregion\n\n//#region ---- Component ----\n\n/**\n * Select a workflow definition and configure template-time inputs via {@link AXPItemConfiguratorComponent}.\n */\n@Component({\n selector: 'axm-workflow-configurator',\n template: `\n <axp-item-configurator\n [(selectedItemId)]=\"selectedWorkflowIdModel\"\n [(values)]=\"defaultInputModel\"\n [label]=\"label()\"\n [readonly]=\"readonly()\"\n [items]=\"configuratorItems()\"\n />\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'flex flex-col',\n '[attr.readonly]': 'readonly() ? \"\" : null',\n },\n styles: [\n `@reference '@acorex/styles/themes/default.css';\n\n :host([readonly]) {\n pointer-events: none;\n opacity: 0.7;\n }\n `,\n ],\n imports: [AXPItemConfiguratorComponent],\n})\nexport class AXMWorkflowConfiguratorComponent {\n //#region ---- Inputs ----\n\n value = model<WorkflowConfiguratorValue>({\n workflowDefinitionId: '',\n workflowName: '',\n defaultInput: {},\n });\n\n label = input<string>('@workflow-management:workflow-configurator.label');\n\n readonly = input<boolean>(false);\n\n /**\n * When set, only these workflow input names are configurable; otherwise runtime inputs are excluded by default.\n */\n templateInputNames = input<string[] | undefined>(undefined);\n\n /**\n * Limits workflow definitions to rows whose {@link catalogScopeKeys} match (e.g. HR lifecycle).\n */\n catalogScopeFilter = input<WorkflowConfiguratorCatalogScopeFilter | undefined>(undefined);\n\n /**\n * Per template input lookup filters (e.g. `questionnaireId` → HR catalog scopes).\n */\n templateInputFilters = input<Record<string, WorkflowConfiguratorTemplateInputFilter> | undefined>(\n undefined,\n );\n\n //#endregion\n\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n private readonly translation = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Class Properties ----\n\n protected selectedWorkflowIdModel = model<string>('');\n\n protected defaultInputModel = model<Record<string, unknown>>({});\n\n protected workflows = signal<WorkflowDefinitionListRow[]>([]);\n\n protected configuratorItems = computed<ItemConfiguratorListItem[]>(() => {\n const names = this.templateInputNames();\n const inputFilters = this.templateInputFilters();\n return this.workflows().map((row) => ({\n id: row.id,\n title: (row.title ?? row.name) as ItemConfiguratorListItem['title'],\n icon: 'fa-light fa-diagram-project',\n description: row.description as ItemConfiguratorListItem['description'],\n propertyDefinitions: mapWorkflowInputsToWidgetProperties(\n row.inputs,\n this.translation,\n names,\n inputFilters,\n ),\n }));\n });\n\n //#endregion\n\n //#region ---- Lifecycle ----\n\n constructor() {\n effect(() => {\n this.catalogScopeFilter();\n untracked(() => {\n void this.loadWorkflowDefinitions();\n });\n });\n\n /** Sync inner models from bound `value` only (context/discard); never from model edits. */\n effect(() => {\n const v = this.value();\n const id = v?.workflowDefinitionId?.trim() ?? '';\n const defaults = v?.defaultInput ?? {};\n\n untracked(() => {\n if (this.selectedWorkflowIdModel() !== id) {\n this.selectedWorkflowIdModel.set(id);\n }\n if (!isEqual(this.defaultInputModel(), defaults)) {\n this.defaultInputModel.set({ ...defaults });\n }\n });\n });\n\n effect(() => {\n const id = this.selectedWorkflowIdModel();\n const defaults = this.defaultInputModel();\n const row = this.workflows().find((w) => w.id === id);\n const current = untracked(() => this.value());\n\n const next: WorkflowConfiguratorValue = {\n workflowDefinitionId: id,\n workflowName:\n row?.name?.trim() ??\n (current.workflowDefinitionId === id ? (current.workflowName?.trim() ?? '') : ''),\n defaultInput: { ...defaults },\n };\n\n const normalizedCurrent: WorkflowConfiguratorValue = {\n workflowDefinitionId: current.workflowDefinitionId?.trim() ?? '',\n workflowName: current.workflowName?.trim() ?? '',\n defaultInput: current.defaultInput ?? {},\n };\n\n if (!isEqual(next, normalizedCurrent)) {\n untracked(() => this.value.set(next));\n }\n });\n }\n\n //#endregion\n\n //#region ---- Data loading ----\n\n /**\n * List queries may omit heavy fields; template input definitions require full `inputs`.\n */\n private async hydrateWorkflowDefinitionRow(\n row: WorkflowDefinitionListRow,\n ): Promise<WorkflowDefinitionListRow> {\n if ((row.inputs?.length ?? 0) > 0) {\n return row;\n }\n\n const id = row.id?.trim();\n if (!id) {\n return row;\n }\n\n try {\n const full = (await this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.workflowDefinition.name)\n .data()\n .byKey(id)) as WorkflowDefinitionListRow | null;\n\n if (!full?.id) {\n return row;\n }\n\n return {\n ...row,\n ...full,\n inputs: full.inputs ?? row.inputs,\n };\n } catch {\n return row;\n }\n }\n\n private async loadWorkflowDefinitions(): Promise<void> {\n try {\n const scopeFilter = this.catalogScopeFilter();\n const page = await this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.workflowDefinition.name)\n .data()\n .query({\n skip: 0,\n take: 500,\n filter: buildWorkflowConfiguratorListQueryFilter(scopeFilter),\n });\n\n const rows = (page.items ?? []) as WorkflowDefinitionListRow[];\n const pinnedId = this.value()?.workflowDefinitionId?.trim();\n\n const filtered = rows\n .filter((r) => !!r.id?.trim() && !!r.name?.trim())\n .filter((r) => {\n if (!scopeFilter) {\n return true;\n }\n if (pinnedId && r.id === pinnedId) {\n return true;\n }\n const keys = resolveWorkflowCatalogScopeKeys(r as WorkflowConfiguratorCatalogScopeRow);\n return matchesWorkflowConfiguratorCatalogScopeFilter(keys, scopeFilter);\n })\n .sort((a, b) => {\n const ta = this.translation.resolve(a.title).trim() || a.name;\n const tb = this.translation.resolve(b.title).trim() || b.name;\n return ta.localeCompare(tb, this.translation.getActiveLang(), { sensitivity: 'base' });\n });\n\n const hydrated = await Promise.all(filtered.map((row) => this.hydrateWorkflowDefinitionRow(row)));\n\n if (pinnedId && !hydrated.some((r) => r.id === pinnedId)) {\n try {\n const pinned = (await this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.workflowDefinition.name)\n .data()\n .byKey(pinnedId)) as WorkflowDefinitionListRow | null;\n if (pinned?.id) {\n hydrated.unshift(await this.hydrateWorkflowDefinitionRow(pinned));\n }\n } catch {\n /* keep list as filtered */\n }\n }\n\n this.workflows.set(hydrated);\n } catch {\n this.workflows.set([]);\n }\n }\n\n //#endregion\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPValueWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport { isFormValueEqual } from '@acorex-platform/framework-shared/core';\nimport { ChangeDetectionStrategy, Component, computed, effect, model, signal, untracked } from '@angular/core';\nimport { cloneDeep, isEqual } from 'lodash';\nimport { AXMWorkflowConfiguratorComponent } from './workflow-configurator.component';\nimport type {\n WorkflowConfiguratorCatalogScopeFilter,\n WorkflowConfiguratorTemplateInputFilter,\n WorkflowConfiguratorValue,\n} from './workflow-configurator.types';\nimport { workflowConfiguratorCatalogScopeFilterFromKeys } from './workflow-configurator.utils';\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n selector: 'axm-workflow-configurator-widget-edit',\n template: `\n @if (isInitialized()) {\n <axm-workflow-configurator\n [(value)]=\"valueModel\"\n [label]=\"label()\"\n [readonly]=\"readonly()\"\n [templateInputNames]=\"templateInputNames()\"\n [catalogScopeFilter]=\"catalogScopeFilter()\"\n [templateInputFilters]=\"templateInputFilters()\"\n />\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXMWorkflowConfiguratorComponent],\n})\nexport class AXMWorkflowConfiguratorWidgetEditComponent extends AXPValueWidgetComponent<WorkflowConfiguratorValue> {\n //#region ---- Computed Properties ----\n\n protected readonly readonly = computed<boolean>(() => (this.options()['readonly'] as boolean) ?? false);\n\n protected label = computed<string>(\n () => (this.options()['label'] as string) || '@workflow-management:workflow-configurator.label',\n );\n\n protected templateInputNames = computed<string[] | undefined>(() => {\n const raw = this.options()['templateInputNames'];\n return Array.isArray(raw) ? (raw as string[]) : undefined;\n });\n\n protected catalogScopeFilter = computed<WorkflowConfiguratorCatalogScopeFilter | undefined>(() => {\n const fromKeys = workflowConfiguratorCatalogScopeFilterFromKeys(\n this.options()['catalogScopeKeys'] as string | string[] | undefined,\n );\n if (fromKeys) {\n return fromKeys;\n }\n\n const raw = this.options()['catalogScopeFilter'];\n return raw && typeof raw === 'object' ? (raw as WorkflowConfiguratorCatalogScopeFilter) : undefined;\n });\n\n protected templateInputFilters = computed<\n Record<string, WorkflowConfiguratorTemplateInputFilter> | undefined\n >(() => {\n const raw = this.options()['templateInputFilters'];\n return raw && typeof raw === 'object'\n ? (raw as Record<string, WorkflowConfiguratorTemplateInputFilter>)\n : undefined;\n });\n\n //#endregion\n\n //#region ---- State Signals ----\n\n protected isInitialized = signal(false);\n\n //#endregion\n\n //#region ---- Models ----\n\n protected valueModel = model<WorkflowConfiguratorValue>({\n workflowDefinitionId: '',\n workflowName: '',\n defaultInput: {},\n });\n\n //#endregion\n\n //#region ---- Effects ----\n\n private syncValueToConfigurator = effect(() => {\n const value = this.getValue();\n\n const normalized = normalizeWorkflowConfiguratorValue(value);\n const currentModel = untracked(() => this.valueModel());\n\n if (!isEqual(normalized, currentModel)) {\n untracked(() => {\n this.valueModel.set(normalized);\n });\n }\n\n untracked(() => {\n if (!this.isInitialized()) {\n this.isInitialized.set(true);\n }\n });\n });\n\n private syncConfiguratorToValue = effect(() => {\n const modelValue = this.valueModel();\n\n if (!untracked(() => this.isInitialized())) {\n return;\n }\n\n const normalized = normalizeWorkflowConfiguratorValue(modelValue);\n const payload = isEmptyWorkflowConfiguratorValue(normalized)\n ? null\n : {\n workflowDefinitionId: normalized.workflowDefinitionId.trim(),\n workflowName: normalized.workflowName.trim(),\n defaultInput: cloneDeep(normalized.defaultInput ?? {}),\n };\n\n const currentValue = untracked(() => this.getValue());\n if (!isFormValueEqual(payload, currentValue)) {\n untracked(() => {\n this.setValue(payload);\n });\n }\n });\n\n //#endregion\n}\n\n//#endregion\n\n//#region ---- Helpers ----\n\nfunction normalizeWorkflowConfiguratorValue(value: unknown): WorkflowConfiguratorValue {\n if (value && typeof value === 'object' && 'workflowDefinitionId' in value) {\n const v = value as WorkflowConfiguratorValue;\n return {\n workflowDefinitionId: v.workflowDefinitionId ?? '',\n workflowName: v.workflowName ?? '',\n defaultInput: v.defaultInput ?? {},\n };\n }\n\n return { workflowDefinitionId: '', workflowName: '', defaultInput: {} };\n}\n\nfunction isEmptyWorkflowConfiguratorValue(value: WorkflowConfiguratorValue): boolean {\n const id = value.workflowDefinitionId?.trim() ?? '';\n const name = value.workflowName?.trim() ?? '';\n const defaults = value.defaultInput ?? {};\n const hasDefaults = Object.keys(defaults).some((key) => {\n const entry = defaults[key];\n return entry !== null && entry !== undefined && entry !== '';\n });\n return !id && !name && !hasDef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AAA;IACxE,MAAM,EAAE,GAAG,KAAK,CAAC,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE;IACnD,MAAM,IAAI,GAAG,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE;AAC7C,IAAA,MAAM,QAAQ,GAAG,KAAK,CAAC,YAAY,IAAI,EAAE;AACzC,IAAA,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,KAAI;AACrD,QAAA,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC;QAC3B,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE;AAC9D,IAAA,CAAC,CAAC;IACF,OAAO,CAAC,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW;AACrC;;"}
|
|
@@ -18,7 +18,7 @@ import { AXPExpressionEvaluatorService } from '@acorex-platform/framework-client
|
|
|
18
18
|
import { AXPEntityService, AXPEntityDefinitionRegistryService } from '@acorex-platform/framework-client/layout/entity';
|
|
19
19
|
import { AXPActivityDefinitionService, AXPWorkflowDefinitionService, WorkflowExpressionScopeService } from '@acorex-platform/framework-client/workflow';
|
|
20
20
|
import { toString, get } from 'lodash';
|
|
21
|
-
import { b as buildWorkflowTaskDisplayParamsFromWorkflowState, d as buildWorkflowTaskDisplayParams, r as rehydrateWorkflowStateInputTitles } from './acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-
|
|
21
|
+
import { b as buildWorkflowTaskDisplayParamsFromWorkflowState, d as buildWorkflowTaskDisplayParams, r as rehydrateWorkflowStateInputTitles } from './acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-DfHDYcB1.mjs';
|
|
22
22
|
import { f as formatReadableActivityName } from './acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-CMVZYS4y.mjs';
|
|
23
23
|
|
|
24
24
|
//#region ---- Imports ----
|
|
@@ -585,4 +585,4 @@ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "22.0.8", ng
|
|
|
585
585
|
}], ctorParameters: () => [], propDecorators: { __popup__: [{ type: i0.Input, args: [{ isSignal: true, alias: "__popup__", required: false }] }] } }) });
|
|
586
586
|
|
|
587
587
|
export { AXMWorkflowRunHistoryPopupComponent };
|
|
588
|
-
//# sourceMappingURL=acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-
|
|
588
|
+
//# sourceMappingURL=acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-CLZjVnAC.mjs.map
|
|
@@ -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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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,0gFAAA,CAAA,EAAA;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-CLZjVnAC.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,K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EAAAC,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,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,0gFAAA,CAAA,EAAA;;;"}
|
|
@@ -13,7 +13,7 @@ import { AXPTaskPopoverComponent, AXPTaskBoardService, getTaskTranslationKey, fo
|
|
|
13
13
|
import { AXPSettingsService } from '@acorex-platform/framework-client/common';
|
|
14
14
|
import * as i1 from '@acorex-platform/framework-client/layout/widget-core';
|
|
15
15
|
import { AXPWidgetSerializationHelper, AXPWidgetCoreModule } from '@acorex-platform/framework-client/layout/widget-core';
|
|
16
|
-
import { a as AXMWorkflowManagementCommandKeys } from './acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-
|
|
16
|
+
import { a as AXMWorkflowManagementCommandKeys } from './acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-DfHDYcB1.mjs';
|
|
17
17
|
import * as i7 from '@acorex/core/translation';
|
|
18
18
|
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
19
19
|
import * as i1$1 from '@angular/common';
|
|
@@ -297,4 +297,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
297
297
|
}], ctorParameters: () => [], propDecorators: { task: [{ type: i0.Input, args: [{ isSignal: true, alias: "task", required: true }] }] } });
|
|
298
298
|
|
|
299
299
|
export { AXMWorkflowTaskPopoverComponent };
|
|
300
|
-
//# sourceMappingURL=acorex-platform-module-workflow-management-client-workflow-task-popover.component-
|
|
300
|
+
//# sourceMappingURL=acorex-platform-module-workflow-management-client-workflow-task-popover.component-BAB0y9_u.mjs.map
|