@acorex-platform/module-workflow-management-client 1.0.2 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/fesm2022/{acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-BcOBHoOK.mjs → acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-BXlJXZCZ.mjs} +823 -567
  2. package/fesm2022/acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-BXlJXZCZ.mjs.map +1 -0
  3. package/fesm2022/{acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-BPa0Sh6Z.mjs → acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-CCrfObJV.mjs} +1 -1
  4. package/fesm2022/{acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-BPa0Sh6Z.mjs.map → acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-CCrfObJV.mjs.map} +1 -1
  5. package/fesm2022/{acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-DuYGXzAL.mjs → acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-BDfqjyXH.mjs} +2 -2
  6. package/fesm2022/{acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-DuYGXzAL.mjs.map → acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-BDfqjyXH.mjs.map} +1 -1
  7. package/fesm2022/{acorex-platform-module-workflow-management-client-index-Bx8vYkYe.mjs → acorex-platform-module-workflow-management-client-commands-ISHAdB1W.mjs} +9 -8
  8. package/fesm2022/acorex-platform-module-workflow-management-client-commands-ISHAdB1W.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-automation.mjs +1 -1
  10. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-automation.mjs.map +1 -1
  11. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-Drne-WcE.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-BvPz8y4z.mjs} +6 -6
  12. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-Drne-WcE.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-BvPz8y4z.mjs.map} +1 -1
  13. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-3VLEu-L6.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-DyB1oUwY.mjs} +2 -2
  14. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-3VLEu-L6.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-DyB1oUwY.mjs.map} +1 -1
  15. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-ClVokZpw.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-DXu2hFJW.mjs} +2 -2
  16. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-ClVokZpw.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-DXu2hFJW.mjs.map} +1 -1
  17. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-BY4uwLMZ.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-CcCT3L9D.mjs} +3 -3
  18. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-CcCT3L9D.mjs.map +1 -0
  19. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-DN9KS_mu.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-BKYn5nnd.mjs} +2 -2
  20. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-DN9KS_mu.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-BKYn5nnd.mjs.map} +1 -1
  21. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-BnfbJExU.mjs → acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-Bg_3eDOz.mjs} +2 -2
  22. package/fesm2022/{acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-BnfbJExU.mjs.map → acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-Bg_3eDOz.mjs.map} +1 -1
  23. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog.mjs +1 -1
  24. package/fesm2022/acorex-platform-module-workflow-management-client-contracts.mjs +34 -1
  25. package/fesm2022/acorex-platform-module-workflow-management-client-contracts.mjs.map +1 -1
  26. package/fesm2022/acorex-platform-module-workflow-management-client-execute-workflow-task-action.command-D117Kcca.mjs +245 -0
  27. package/fesm2022/acorex-platform-module-workflow-management-client-execute-workflow-task-action.command-D117Kcca.mjs.map +1 -0
  28. package/fesm2022/{acorex-platform-module-workflow-management-client-execute-workflow-with-input.command-BFdyJ4rC.mjs → acorex-platform-module-workflow-management-client-execute-workflow-with-input.command-8fwqrqCV.mjs} +1 -1
  29. package/fesm2022/{acorex-platform-module-workflow-management-client-execute-workflow-with-input.command-BFdyJ4rC.mjs.map → acorex-platform-module-workflow-management-client-execute-workflow-with-input.command-8fwqrqCV.mjs.map} +1 -1
  30. package/fesm2022/{acorex-platform-module-workflow-management-client-execute-workflow.command-D1AQsYgn.mjs → acorex-platform-module-workflow-management-client-execute-workflow.command-CnQgIVaj.mjs} +1 -1
  31. package/fesm2022/{acorex-platform-module-workflow-management-client-execute-workflow.command-D1AQsYgn.mjs.map → acorex-platform-module-workflow-management-client-execute-workflow.command-CnQgIVaj.mjs.map} +1 -1
  32. package/fesm2022/{acorex-platform-module-workflow-management-client-save-workflow-definition-activities.command-spFF77AO.mjs → acorex-platform-module-workflow-management-client-save-workflow-definition-activities.command-CvFHyST8.mjs} +1 -1
  33. package/fesm2022/{acorex-platform-module-workflow-management-client-save-workflow-definition-activities.command-spFF77AO.mjs.map → acorex-platform-module-workflow-management-client-save-workflow-definition-activities.command-CvFHyST8.mjs.map} +1 -1
  34. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-CMVZYS4y.mjs → acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-D7w2TNxB.mjs} +1 -1
  35. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-CMVZYS4y.mjs.map → acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-D7w2TNxB.mjs.map} +1 -1
  36. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-configurator-widget-column.component-D0E2zjIA.mjs → acorex-platform-module-workflow-management-client-workflow-configurator-widget-column.component-DV8K0otJ.mjs} +1 -1
  37. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-configurator-widget-column.component-D0E2zjIA.mjs.map → acorex-platform-module-workflow-management-client-workflow-configurator-widget-column.component-DV8K0otJ.mjs.map} +1 -1
  38. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-CVTeOv-q.mjs → acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-DPMtUBxM.mjs} +3 -3
  39. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-CVTeOv-q.mjs.map → acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-DPMtUBxM.mjs.map} +1 -1
  40. package/fesm2022/{acorex-platform-module-workflow-management-client-index-B0-OPKmr.mjs → acorex-platform-module-workflow-management-client-workflow-definition-activities-page-DgagKVhS.mjs} +4 -4
  41. package/fesm2022/acorex-platform-module-workflow-management-client-workflow-definition-activities-page-DgagKVhS.mjs.map +1 -0
  42. package/fesm2022/{acorex-platform-module-workflow-management-client-index-C8nsbDAw.mjs → acorex-platform-module-workflow-management-client-workflow-instance-activity-instances-page-CE7L5ZDi.mjs} +4 -4
  43. package/fesm2022/acorex-platform-module-workflow-management-client-workflow-instance-activity-instances-page-CE7L5ZDi.mjs.map +1 -0
  44. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-live-dashboard.queries--9NtYkau.mjs → acorex-platform-module-workflow-management-client-workflow-live-dashboard.queries-DamdqV3a.mjs} +1 -1
  45. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-live-dashboard.queries--9NtYkau.mjs.map → acorex-platform-module-workflow-management-client-workflow-live-dashboard.queries-DamdqV3a.mjs.map} +1 -1
  46. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-CHVdaY4M.mjs → acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-CofkxzF1.mjs} +9 -9
  47. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-CHVdaY4M.mjs.map → acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-CofkxzF1.mjs.map} +1 -1
  48. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-AnJ-Pywf.mjs → acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-ChMzrVoq.mjs} +4 -4
  49. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-AnJ-Pywf.mjs.map → acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-ChMzrVoq.mjs.map} +1 -1
  50. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-34kIeL5C.mjs → acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-CEfYaxTL.mjs} +4 -4
  51. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-34kIeL5C.mjs.map → acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-CEfYaxTL.mjs.map} +1 -1
  52. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-task-popover.component-BXutLQAO.mjs → acorex-platform-module-workflow-management-client-workflow-task-popover.component-V3Spc1Dn.mjs} +14 -9
  53. package/fesm2022/acorex-platform-module-workflow-management-client-workflow-task-popover.component-V3Spc1Dn.mjs.map +1 -0
  54. package/fesm2022/acorex-platform-module-workflow-management-client.mjs +1 -1
  55. package/i18n/en-AU/workflow-management.json +26 -1
  56. package/i18n/en-US/workflow-management.json +26 -1
  57. package/i18n/fa-IR/workflow-management.json +26 -1
  58. package/package.json +2 -2
  59. package/types/acorex-platform-module-workflow-management-client-contracts.d.ts +124 -2
  60. package/types/acorex-platform-module-workflow-management-client.d.ts +73 -58
  61. package/fesm2022/acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-BcOBHoOK.mjs.map +0 -1
  62. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-BY4uwLMZ.mjs.map +0 -1
  63. package/fesm2022/acorex-platform-module-workflow-management-client-index-B0-OPKmr.mjs.map +0 -1
  64. package/fesm2022/acorex-platform-module-workflow-management-client-index-Bx8vYkYe.mjs.map +0 -1
  65. package/fesm2022/acorex-platform-module-workflow-management-client-index-C8nsbDAw.mjs.map +0 -1
  66. package/fesm2022/acorex-platform-module-workflow-management-client-workflow-task-popover.component-BXutLQAO.mjs.map +0 -1
@@ -7,7 +7,7 @@ import { AXLoadingModule } from '@acorex/components/loading';
7
7
  import * as i7 from '@acorex/core/translation';
8
8
  import { AXTranslationModule } from '@acorex/core/translation';
9
9
  import { arrangeWorkflowDiagram, AXPWorkflowDesignerComponent } from '@acorex-platform/module-platform-management-client';
10
- import { w as workflowActivityStatusChipModifier, f as formatReadableActivityName } from './acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-CMVZYS4y.mjs';
10
+ import { w as workflowActivityStatusChipModifier, f as formatReadableActivityName } from './acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-D7w2TNxB.mjs';
11
11
 
12
12
  //#region ---- Imports ----
13
13
  //#endregion
@@ -216,12 +216,12 @@ class AXMWorkflowRunHistoryVisualTabComponent {
216
216
  ...(ngDevMode ? [{ debugName: "diagram" }] : /* istanbul ignore next */ []));
217
217
  }
218
218
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMWorkflowRunHistoryVisualTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
219
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMWorkflowRunHistoryVisualTabComponent, isStandalone: true, selector: "axm-workflow-run-history-visual-tab", inputs: { definition: { classPropertyName: "definition", publicName: "definition", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, isBusy: { classPropertyName: "isBusy", publicName: "isBusy", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (isBusy()) {\n <div class=\"axm-workflow-run-history-visual-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (!diagram()) {\n <p class=\"axm-workflow-run-history-visual-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.tabs.visual.empty' | translate | async }}\n </p>\n} @else {\n <div class=\"axm-workflow-run-history-visual-tab__canvas\">\n <axp-workflow-designer [model]=\"diagram()!\" [readonly]=\"true\" [showPortLabels]=\"false\" />\n </div>\n}\n", styles: [":host .axm-workflow-run-history-visual-tab__state{display:flex;align-items:center;justify-content:center;min-height:8rem}:host .axm-workflow-run-history-visual-tab__empty{margin:0;padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-visual-tab__canvas{display:flex;min-height:0px;flex-direction:column;overflow:hidden;min-height:20rem;height:min(50vh,28rem);border:1px solid rgb(var(--ax-sys-color-border-light-surface));border-radius:var(--ax-radius-md, .5rem);background:rgb(var(--ax-sys-color-lightest-surface))}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer-host{display:flex;min-height:0px;width:100%;flex:auto}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer{min-height:0px;width:100%;flex:auto}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "component", type: AXPWorkflowDesignerComponent, selector: "axp-workflow-designer", inputs: ["model", "readonly", "highlightedNodeIds", "gridSize", "snapToGrid", "connectionPreviewStyle", "connectorStub", "backgroundPattern", "canConnect", "paletteItems", "showPortLabels", "showPorts", "showConnectorLabels", "canvasPadding", "minCanvasSize", "nodeBodyTemplate"], outputs: ["modelChange", "zoomChange", "designerPointerDown", "designerClick", "designerDoubleClick", "nodePointerDown", "nodeClick", "nodeDoubleClick", "nodeContextMenu", "nodeDragStart", "nodeDragEnd", "portPointerDown", "linkDragStart", "linkDragMove", "linkDragEnd", "connectorClick", "connectorDoubleClick", "connectionCreated", "connectionRejected", "activationChange"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
219
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMWorkflowRunHistoryVisualTabComponent, isStandalone: true, selector: "axm-workflow-run-history-visual-tab", inputs: { definition: { classPropertyName: "definition", publicName: "definition", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, isBusy: { classPropertyName: "isBusy", publicName: "isBusy", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (isBusy()) {\n <div class=\"axm-workflow-run-history-visual-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (!diagram()) {\n <p class=\"axm-workflow-run-history-visual-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.tabs.visual.empty' | translate | async }}\n </p>\n} @else {\n <div class=\"axm-workflow-run-history-visual-tab__canvas\">\n <axp-workflow-designer [model]=\"diagram()!\" [readonly]=\"true\" [showPortLabels]=\"false\" />\n </div>\n}\n", styles: [":host .axm-workflow-run-history-visual-tab__state{display:flex;align-items:center;justify-content:center;min-height:8rem}:host .axm-workflow-run-history-visual-tab__empty{margin:0;padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-visual-tab__canvas{display:flex;min-height:0px;flex-direction:column;overflow:hidden;min-height:20rem;height:min(50vh,28rem);border:1px solid rgb(var(--ax-sys-color-border-light-surface));border-radius:var(--ax-radius-md, .5rem);background:rgb(var(--ax-sys-color-lightest-surface))}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer-host{display:flex;min-height:0px;width:100%;flex:auto}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer{min-height:0px;width:100%;flex:auto}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "component", type: AXPWorkflowDesignerComponent, selector: "axp-workflow-designer", inputs: ["model", "readonly", "highlightedNodeIds", "gridSize", "snapToGrid", "connectionPreviewStyle", "connectorStub", "backgroundPattern", "canConnect", "paletteItems", "showPortLabels", "showPorts", "showConnectorLabels", "canvasPadding", "minCanvasSize", "nodeBodyTemplate"], outputs: ["modelChange", "zoomChange", "designerPointerDown", "designerClick", "designerDoubleClick", "nodePointerDown", "nodeClick", "nodeDoubleClick", "nodeContextMenu", "nodeDragStart", "nodeDragEnd", "portPointerDown", "linkDragStart", "linkDragMove", "linkDragEnd", "connectorClick", "connectorDoubleClick", "connectionCreated", "connectionRejected", "activationChange"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
220
220
  }
221
221
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMWorkflowRunHistoryVisualTabComponent, decorators: [{
222
222
  type: Component,
223
- args: [{ selector: 'axm-workflow-run-history-visual-tab', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CommonModule, AXLoadingModule, AXTranslationModule, AXPWorkflowDesignerComponent], template: "@if (isBusy()) {\n <div class=\"axm-workflow-run-history-visual-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (!diagram()) {\n <p class=\"axm-workflow-run-history-visual-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.tabs.visual.empty' | translate | async }}\n </p>\n} @else {\n <div class=\"axm-workflow-run-history-visual-tab__canvas\">\n <axp-workflow-designer [model]=\"diagram()!\" [readonly]=\"true\" [showPortLabels]=\"false\" />\n </div>\n}\n", styles: [":host .axm-workflow-run-history-visual-tab__state{display:flex;align-items:center;justify-content:center;min-height:8rem}:host .axm-workflow-run-history-visual-tab__empty{margin:0;padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-visual-tab__canvas{display:flex;min-height:0px;flex-direction:column;overflow:hidden;min-height:20rem;height:min(50vh,28rem);border:1px solid rgb(var(--ax-sys-color-border-light-surface));border-radius:var(--ax-radius-md, .5rem);background:rgb(var(--ax-sys-color-lightest-surface))}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer-host{display:flex;min-height:0px;width:100%;flex:auto}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer{min-height:0px;width:100%;flex:auto}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
223
+ args: [{ selector: 'axm-workflow-run-history-visual-tab', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CommonModule, AXLoadingModule, AXTranslationModule, AXPWorkflowDesignerComponent], template: "@if (isBusy()) {\n <div class=\"axm-workflow-run-history-visual-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (!diagram()) {\n <p class=\"axm-workflow-run-history-visual-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.tabs.visual.empty' | translate | async }}\n </p>\n} @else {\n <div class=\"axm-workflow-run-history-visual-tab__canvas\">\n <axp-workflow-designer [model]=\"diagram()!\" [readonly]=\"true\" [showPortLabels]=\"false\" />\n </div>\n}\n", styles: [":host .axm-workflow-run-history-visual-tab__state{display:flex;align-items:center;justify-content:center;min-height:8rem}:host .axm-workflow-run-history-visual-tab__empty{margin:0;padding-block:calc(var(--spacing, .25rem) * 8);text-align:center;color:rgb(var(--ax-sys-color-on-surface-variant))}:host .axm-workflow-run-history-visual-tab__canvas{display:flex;min-height:0px;flex-direction:column;overflow:hidden;min-height:20rem;height:min(50vh,28rem);border:1px solid rgb(var(--ax-sys-color-border-light-surface));border-radius:var(--ax-radius-md, .5rem);background:rgb(var(--ax-sys-color-lightest-surface))}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer-host{display:flex;min-height:0px;width:100%;flex:auto}:host .axm-workflow-run-history-visual-tab__canvas .axp-axm-workflow-designer{min-height:0px;width:100%;flex:auto}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"] }]
224
224
  }], propDecorators: { definition: [{ type: i0.Input, args: [{ isSignal: true, alias: "definition", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], isBusy: [{ type: i0.Input, args: [{ isSignal: true, alias: "isBusy", required: false }] }] } });
225
225
 
226
226
  export { AXMWorkflowRunHistoryVisualTabComponent };
227
- //# sourceMappingURL=acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-34kIeL5C.mjs.map
227
+ //# sourceMappingURL=acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-CEfYaxTL.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-34kIeL5C.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-history-diagram.utils.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-visual-tab/workflow-run-history-visual-tab.component.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-visual-tab/workflow-run-history-visual-tab.component.html"],"sourcesContent":["//#region ---- Imports ----\n\nimport {\n arrangeWorkflowDiagram,\n type AXPWorkflowDiagramModel,\n type AXPWorkflowSemanticColor,\n} from '@acorex-platform/module-platform-management-client';\nimport type { AXPConnection, AXPWorkflowActivityInstance, AXPWorkflowDefinition, AXPWorkflowGraph } from '@acorex-platform/framework-shared/core';\nimport {\n formatReadableActivityName,\n workflowActivityStatusChipModifier,\n} from '../../../workflow-instance-activity-instances-page/workflow-activity-instance-rows.utils';\nimport type { AXMWorkflowHistoryRow } from './workflow-history-rows.utils';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface AXMWorkflowHistoryDiagramResult {\n diagram: AXPWorkflowDiagramModel;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst DEFAULT_NODE_W = 240;\nconst DEFAULT_NODE_H = 96;\nconst DESIGNER_GRID_SIZE = 20;\n\n//#endregion\n\n//#region ---- Helpers ----\n\nfunction portKey(port: string | null | undefined): string {\n return port == null || port === '' ? 'Done' : port;\n}\n\nfunction isCompletedHistoryRow(row: AXMWorkflowHistoryRow): boolean {\n if (row.completedAt) {\n return true;\n }\n return workflowActivityStatusChipModifier(row.status) === 'success';\n}\n\nfunction isInProgressHistoryRow(row: AXMWorkflowHistoryRow): boolean {\n const modifier = workflowActivityStatusChipModifier(row.status);\n return modifier === 'primary' || modifier === 'warning';\n}\n\ninterface AXMWorkflowHistoryNodeHighlight {\n color?: AXPWorkflowSemanticColor;\n borderColor?: AXPWorkflowSemanticColor;\n}\n\nfunction buildNodeHighlightStyles(rows: AXMWorkflowHistoryRow[]): Map<string, AXMWorkflowHistoryNodeHighlight> {\n const statusByNodeId = new Map<string, { completed: boolean; inProgress: boolean }>();\n\n for (const row of rows) {\n const nodeId = row.nodeId?.trim();\n if (!nodeId) {\n continue;\n }\n const current = statusByNodeId.get(nodeId) ?? { completed: false, inProgress: false };\n if (isInProgressHistoryRow(row)) {\n current.inProgress = true;\n } else if (isCompletedHistoryRow(row)) {\n current.completed = true;\n }\n statusByNodeId.set(nodeId, current);\n }\n\n const highlights = new Map<string, AXMWorkflowHistoryNodeHighlight>();\n for (const [nodeId, status] of statusByNodeId) {\n if (status.inProgress) {\n highlights.set(nodeId, { color: 'warning' });\n } else if (status.completed) {\n highlights.set(nodeId, { borderColor: 'success' });\n }\n }\n return highlights;\n}\n\nfunction buildTitleByNodeId(rows: AXMWorkflowHistoryRow[]): Map<string, string> {\n const titleByNodeId = new Map<string, string>();\n const sorted = [...rows].sort((a, b) => new Date(a.startedAt).getTime() - new Date(b.startedAt).getTime());\n for (const row of sorted) {\n const nodeId = row.nodeId?.trim();\n if (nodeId && row.stepTitle?.trim()) {\n titleByNodeId.set(nodeId, row.stepTitle.trim());\n }\n }\n return titleByNodeId;\n}\n\nfunction outcomePortsFromConnections(activityId: string, connections: AXPConnection[]): string[] {\n const ports = new Set<string>();\n for (const connection of connections) {\n if (connection.source.activtyName === activityId) {\n ports.add(portKey(connection.source.port));\n }\n }\n if (ports.size === 0) {\n ports.add('Done');\n }\n return [...ports].sort((a, b) => a.localeCompare(b));\n}\n\nfunction resolveActivityTitle(\n activity: AXPWorkflowActivityInstance,\n titleByNodeId: Map<string, string>,\n): string {\n const fromHistory = titleByNodeId.get(activity.id);\n if (fromHistory) {\n return fromHistory;\n }\n const persistedTitle = activity.title?.trim();\n if (persistedTitle) {\n return persistedTitle;\n }\n const name = activity.name?.trim();\n return name ? formatReadableActivityName(name) : activity.id;\n}\n\nfunction hasPersistedDesignerLayout(graph: AXPWorkflowGraph): boolean {\n const activities = graph.activities ?? [];\n const nodes = graph.designer?.nodes;\n if (!nodes || activities.length === 0) {\n return false;\n }\n return activities.every((activity) => {\n const layout = nodes[activity.id];\n return layout != null && typeof layout.x === 'number' && typeof layout.y === 'number';\n });\n}\n\nfunction buildDiagramModelFromDefinition(\n graph: AXPWorkflowGraph,\n highlightStyles: Map<string, AXMWorkflowHistoryNodeHighlight>,\n titleByNodeId: Map<string, string>,\n): AXPWorkflowDiagramModel {\n const activities = graph.activities ?? [];\n const connections = graph.connections ?? [];\n const designerNodes = graph.designer?.nodes ?? {};\n\n const nodes = activities.map((activity, index) => {\n const layout = designerNodes[activity.id];\n const position = layout\n ? { x: layout.x, y: layout.y }\n : { x: (index % 4) * (DEFAULT_NODE_W + 48), y: Math.floor(index / 4) * (DEFAULT_NODE_H + 48) };\n const size = {\n width: layout?.width && layout.width > 0 ? layout.width : DEFAULT_NODE_W,\n height: layout?.height && layout.height > 0 ? layout.height : DEFAULT_NODE_H,\n };\n const outboundPortKeys = outcomePortsFromConnections(activity.id, connections);\n const highlight = highlightStyles.get(activity.id);\n\n return {\n id: activity.id,\n type: activity.name,\n title: resolveActivityTitle(activity, titleByNodeId),\n shape: 'rounded-rectangle' as const,\n size,\n position,\n readonly: true,\n ...(highlight?.color ? { color: highlight.color } : {}),\n ...(highlight?.borderColor ? { borderColor: highlight.borderColor } : {}),\n inboundPorts: [\n {\n id: `${activity.id}:in`,\n kind: 'inbound' as const,\n side: 'left' as const,\n ratio: 0.5,\n key: 'in',\n readonly: true,\n },\n ],\n outboundPorts: outboundPortKeys.map((port, portIndex, ports) => ({\n id: `${activity.id}:out:${port}`,\n kind: 'outbound' as const,\n side: 'right' as const,\n ratio: ports.length === 1 ? 0.5 : (portIndex + 1) / (ports.length + 1),\n key: port,\n readonly: true,\n })),\n };\n });\n\n const outPortByKey = new Map<string, string>();\n for (const node of nodes) {\n for (const port of node.outboundPorts) {\n outPortByKey.set(`${node.id}:${portKey(port.key)}`, port.id);\n }\n }\n\n const connectors = connections\n .map((connection, index) => {\n const sourcePortKey = portKey(connection.source.port);\n const sourcePortId = outPortByKey.get(`${connection.source.activtyName}:${sourcePortKey}`);\n if (!sourcePortId) {\n return null;\n }\n return {\n id: `history-c-${index}-${connection.source.activtyName}-${connection.target.activtyName}-${sourcePortKey}`,\n sourceNodeId: connection.source.activtyName,\n sourcePortId,\n targetNodeId: connection.target.activtyName,\n targetPortId: `${connection.target.activtyName}:in`,\n readonly: true,\n };\n })\n .filter((connector): connector is NonNullable<typeof connector> => connector != null);\n\n return { nodes, connectors };\n}\n\n//#endregion\n\n//#region ---- Builder ----\n\n/**\n * Builds a readonly designer model from the full workflow definition graph,\n * highlighting in-progress steps via {@link AXPWorkflowNode.color} and completed steps via {@link AXPWorkflowNode.borderColor}.\n */\nexport function buildWorkflowHistoryDiagram(\n definition: AXPWorkflowDefinition | null | undefined,\n rows: AXMWorkflowHistoryRow[],\n): AXMWorkflowHistoryDiagramResult | null {\n const graph = definition?.graph;\n const activities = graph?.activities ?? [];\n if (!graph || activities.length === 0) {\n return null;\n }\n\n const highlightStyles = buildNodeHighlightStyles(rows);\n const titleByNodeId = buildTitleByNodeId(rows);\n let diagram = buildDiagramModelFromDefinition(graph, highlightStyles, titleByNodeId);\n\n if (!hasPersistedDesignerLayout(graph)) {\n const startNodeId = graph.startActivityId?.trim() || activities[0]?.id;\n diagram = arrangeWorkflowDiagram(diagram, {\n startNodeId,\n nodeIds: activities.map((activity) => activity.id),\n gridSize: DESIGNER_GRID_SIZE,\n direction: 'horizontal',\n });\n }\n\n return { diagram };\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPWorkflowDesignerComponent } from '@acorex-platform/module-platform-management-client';\nimport type { AXPWorkflowDefinition } from '@acorex-platform/framework-shared/core';\nimport { buildWorkflowHistoryDiagram } from '../workflow-history-diagram.utils';\nimport type { AXMWorkflowHistoryRow } from '../workflow-history-rows.utils';\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n selector: 'axm-workflow-run-history-visual-tab',\n templateUrl: './workflow-run-history-visual-tab.component.html',\n styleUrl: './workflow-run-history-visual-tab.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CommonModule, AXLoadingModule, AXTranslationModule, AXPWorkflowDesignerComponent],\n})\nexport class AXMWorkflowRunHistoryVisualTabComponent {\n readonly definition = input<AXPWorkflowDefinition | null>(null);\n readonly rows = input<AXMWorkflowHistoryRow[]>([]);\n readonly isBusy = input(false);\n\n protected readonly diagram = computed(\n () => buildWorkflowHistoryDiagram(this.definition(), this.rows())?.diagram ?? null,\n );\n}\n\n//#endregion\n","@if (isBusy()) {\n <div class=\"axm-workflow-run-history-visual-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (!diagram()) {\n <p class=\"axm-workflow-run-history-visual-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.tabs.visual.empty' | translate | async }}\n </p>\n} @else {\n <div class=\"axm-workflow-run-history-visual-tab__canvas\">\n <axp-workflow-designer [model]=\"diagram()!\" [readonly]=\"true\" [showPortLabels]=\"false\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-management-client-workflow-run-history-visual-tab.component-CEfYaxTL.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-history-diagram.utils.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-visual-tab/workflow-run-history-visual-tab.component.ts","../../../../libs/modules/workflow-management/client/src/lib/features/workflow-run-plugin/components/workflow-run-history-popup/workflow-run-history-visual-tab/workflow-run-history-visual-tab.component.html"],"sourcesContent":["//#region ---- Imports ----\n\nimport {\n arrangeWorkflowDiagram,\n type AXPWorkflowDiagramModel,\n type AXPWorkflowSemanticColor,\n} from '@acorex-platform/module-platform-management-client';\nimport type { AXPConnection, AXPWorkflowActivityInstance, AXPWorkflowDefinition, AXPWorkflowGraph } from '@acorex-platform/framework-shared/core';\nimport {\n formatReadableActivityName,\n workflowActivityStatusChipModifier,\n} from '../../../workflow-instance-activity-instances-page/workflow-activity-instance-rows.utils';\nimport type { AXMWorkflowHistoryRow } from './workflow-history-rows.utils';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface AXMWorkflowHistoryDiagramResult {\n diagram: AXPWorkflowDiagramModel;\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst DEFAULT_NODE_W = 240;\nconst DEFAULT_NODE_H = 96;\nconst DESIGNER_GRID_SIZE = 20;\n\n//#endregion\n\n//#region ---- Helpers ----\n\nfunction portKey(port: string | null | undefined): string {\n return port == null || port === '' ? 'Done' : port;\n}\n\nfunction isCompletedHistoryRow(row: AXMWorkflowHistoryRow): boolean {\n if (row.completedAt) {\n return true;\n }\n return workflowActivityStatusChipModifier(row.status) === 'success';\n}\n\nfunction isInProgressHistoryRow(row: AXMWorkflowHistoryRow): boolean {\n const modifier = workflowActivityStatusChipModifier(row.status);\n return modifier === 'primary' || modifier === 'warning';\n}\n\ninterface AXMWorkflowHistoryNodeHighlight {\n color?: AXPWorkflowSemanticColor;\n borderColor?: AXPWorkflowSemanticColor;\n}\n\nfunction buildNodeHighlightStyles(rows: AXMWorkflowHistoryRow[]): Map<string, AXMWorkflowHistoryNodeHighlight> {\n const statusByNodeId = new Map<string, { completed: boolean; inProgress: boolean }>();\n\n for (const row of rows) {\n const nodeId = row.nodeId?.trim();\n if (!nodeId) {\n continue;\n }\n const current = statusByNodeId.get(nodeId) ?? { completed: false, inProgress: false };\n if (isInProgressHistoryRow(row)) {\n current.inProgress = true;\n } else if (isCompletedHistoryRow(row)) {\n current.completed = true;\n }\n statusByNodeId.set(nodeId, current);\n }\n\n const highlights = new Map<string, AXMWorkflowHistoryNodeHighlight>();\n for (const [nodeId, status] of statusByNodeId) {\n if (status.inProgress) {\n highlights.set(nodeId, { color: 'warning' });\n } else if (status.completed) {\n highlights.set(nodeId, { borderColor: 'success' });\n }\n }\n return highlights;\n}\n\nfunction buildTitleByNodeId(rows: AXMWorkflowHistoryRow[]): Map<string, string> {\n const titleByNodeId = new Map<string, string>();\n const sorted = [...rows].sort((a, b) => new Date(a.startedAt).getTime() - new Date(b.startedAt).getTime());\n for (const row of sorted) {\n const nodeId = row.nodeId?.trim();\n if (nodeId && row.stepTitle?.trim()) {\n titleByNodeId.set(nodeId, row.stepTitle.trim());\n }\n }\n return titleByNodeId;\n}\n\nfunction outcomePortsFromConnections(activityId: string, connections: AXPConnection[]): string[] {\n const ports = new Set<string>();\n for (const connection of connections) {\n if (connection.source.activtyName === activityId) {\n ports.add(portKey(connection.source.port));\n }\n }\n if (ports.size === 0) {\n ports.add('Done');\n }\n return [...ports].sort((a, b) => a.localeCompare(b));\n}\n\nfunction resolveActivityTitle(\n activity: AXPWorkflowActivityInstance,\n titleByNodeId: Map<string, string>,\n): string {\n const fromHistory = titleByNodeId.get(activity.id);\n if (fromHistory) {\n return fromHistory;\n }\n const persistedTitle = activity.title?.trim();\n if (persistedTitle) {\n return persistedTitle;\n }\n const name = activity.name?.trim();\n return name ? formatReadableActivityName(name) : activity.id;\n}\n\nfunction hasPersistedDesignerLayout(graph: AXPWorkflowGraph): boolean {\n const activities = graph.activities ?? [];\n const nodes = graph.designer?.nodes;\n if (!nodes || activities.length === 0) {\n return false;\n }\n return activities.every((activity) => {\n const layout = nodes[activity.id];\n return layout != null && typeof layout.x === 'number' && typeof layout.y === 'number';\n });\n}\n\nfunction buildDiagramModelFromDefinition(\n graph: AXPWorkflowGraph,\n highlightStyles: Map<string, AXMWorkflowHistoryNodeHighlight>,\n titleByNodeId: Map<string, string>,\n): AXPWorkflowDiagramModel {\n const activities = graph.activities ?? [];\n const connections = graph.connections ?? [];\n const designerNodes = graph.designer?.nodes ?? {};\n\n const nodes = activities.map((activity, index) => {\n const layout = designerNodes[activity.id];\n const position = layout\n ? { x: layout.x, y: layout.y }\n : { x: (index % 4) * (DEFAULT_NODE_W + 48), y: Math.floor(index / 4) * (DEFAULT_NODE_H + 48) };\n const size = {\n width: layout?.width && layout.width > 0 ? layout.width : DEFAULT_NODE_W,\n height: layout?.height && layout.height > 0 ? layout.height : DEFAULT_NODE_H,\n };\n const outboundPortKeys = outcomePortsFromConnections(activity.id, connections);\n const highlight = highlightStyles.get(activity.id);\n\n return {\n id: activity.id,\n type: activity.name,\n title: resolveActivityTitle(activity, titleByNodeId),\n shape: 'rounded-rectangle' as const,\n size,\n position,\n readonly: true,\n ...(highlight?.color ? { color: highlight.color } : {}),\n ...(highlight?.borderColor ? { borderColor: highlight.borderColor } : {}),\n inboundPorts: [\n {\n id: `${activity.id}:in`,\n kind: 'inbound' as const,\n side: 'left' as const,\n ratio: 0.5,\n key: 'in',\n readonly: true,\n },\n ],\n outboundPorts: outboundPortKeys.map((port, portIndex, ports) => ({\n id: `${activity.id}:out:${port}`,\n kind: 'outbound' as const,\n side: 'right' as const,\n ratio: ports.length === 1 ? 0.5 : (portIndex + 1) / (ports.length + 1),\n key: port,\n readonly: true,\n })),\n };\n });\n\n const outPortByKey = new Map<string, string>();\n for (const node of nodes) {\n for (const port of node.outboundPorts) {\n outPortByKey.set(`${node.id}:${portKey(port.key)}`, port.id);\n }\n }\n\n const connectors = connections\n .map((connection, index) => {\n const sourcePortKey = portKey(connection.source.port);\n const sourcePortId = outPortByKey.get(`${connection.source.activtyName}:${sourcePortKey}`);\n if (!sourcePortId) {\n return null;\n }\n return {\n id: `history-c-${index}-${connection.source.activtyName}-${connection.target.activtyName}-${sourcePortKey}`,\n sourceNodeId: connection.source.activtyName,\n sourcePortId,\n targetNodeId: connection.target.activtyName,\n targetPortId: `${connection.target.activtyName}:in`,\n readonly: true,\n };\n })\n .filter((connector): connector is NonNullable<typeof connector> => connector != null);\n\n return { nodes, connectors };\n}\n\n//#endregion\n\n//#region ---- Builder ----\n\n/**\n * Builds a readonly designer model from the full workflow definition graph,\n * highlighting in-progress steps via {@link AXPWorkflowNode.color} and completed steps via {@link AXPWorkflowNode.borderColor}.\n */\nexport function buildWorkflowHistoryDiagram(\n definition: AXPWorkflowDefinition | null | undefined,\n rows: AXMWorkflowHistoryRow[],\n): AXMWorkflowHistoryDiagramResult | null {\n const graph = definition?.graph;\n const activities = graph?.activities ?? [];\n if (!graph || activities.length === 0) {\n return null;\n }\n\n const highlightStyles = buildNodeHighlightStyles(rows);\n const titleByNodeId = buildTitleByNodeId(rows);\n let diagram = buildDiagramModelFromDefinition(graph, highlightStyles, titleByNodeId);\n\n if (!hasPersistedDesignerLayout(graph)) {\n const startNodeId = graph.startActivityId?.trim() || activities[0]?.id;\n diagram = arrangeWorkflowDiagram(diagram, {\n startNodeId,\n nodeIds: activities.map((activity) => activity.id),\n gridSize: DESIGNER_GRID_SIZE,\n direction: 'horizontal',\n });\n }\n\n return { diagram };\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPWorkflowDesignerComponent } from '@acorex-platform/module-platform-management-client';\nimport type { AXPWorkflowDefinition } from '@acorex-platform/framework-shared/core';\nimport { buildWorkflowHistoryDiagram } from '../workflow-history-diagram.utils';\nimport type { AXMWorkflowHistoryRow } from '../workflow-history-rows.utils';\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n selector: 'axm-workflow-run-history-visual-tab',\n templateUrl: './workflow-run-history-visual-tab.component.html',\n styleUrl: './workflow-run-history-visual-tab.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CommonModule, AXLoadingModule, AXTranslationModule, AXPWorkflowDesignerComponent],\n})\nexport class AXMWorkflowRunHistoryVisualTabComponent {\n readonly definition = input<AXPWorkflowDefinition | null>(null);\n readonly rows = input<AXMWorkflowHistoryRow[]>([]);\n readonly isBusy = input(false);\n\n protected readonly diagram = computed(\n () => buildWorkflowHistoryDiagram(this.definition(), this.rows())?.diagram ?? null,\n );\n}\n\n//#endregion\n","@if (isBusy()) {\n <div class=\"axm-workflow-run-history-visual-tab__state\">\n <ax-loading></ax-loading>\n </div>\n} @else if (!diagram()) {\n <p class=\"axm-workflow-run-history-visual-tab__empty typo-caption\">\n {{ '@workflow-management:workflow-run.history.tabs.visual.empty' | translate | async }}\n </p>\n} @else {\n <div class=\"axm-workflow-run-history-visual-tab__canvas\">\n <axp-workflow-designer [model]=\"diagram()!\" [readonly]=\"true\" [showPortLabels]=\"false\" />\n </div>\n}\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;AAAA;AAsBA;AAEA;AAEA,MAAM,cAAc,GAAG,GAAG;AAC1B,MAAM,cAAc,GAAG,EAAE;AACzB,MAAM,kBAAkB,GAAG,EAAE;AAE7B;AAEA;AAEA,SAAS,OAAO,CAAC,IAA+B,EAAA;AAC9C,IAAA,OAAO,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,EAAE,GAAG,MAAM,GAAG,IAAI;AACpD;AAEA,SAAS,qBAAqB,CAAC,GAA0B,EAAA;AACvD,IAAA,IAAI,GAAG,CAAC,WAAW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BAAA,EAAA,iBAAA,EAAA,eAAA,EAAA,aAAA,EAAA,iBAAA,EAAA,eAAA,EAAA,cAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,sBAAA,EAAA,mBAAA,EAAA,oBAAA,EAAA,kBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAA,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAE/E,uCAAuC,EAAA,UAAA,EAAA,CAAA;kBARnD,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,qCAAqC,mBAG9B,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,OAAA,EAC5B,CAAC,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,4BAA4B,CAAC,EAAA,QAAA,EAAA,ggBAAA,EAAA,MAAA,EAAA,CAAA,85BAAA,CAAA,EAAA;;;"}
@@ -1,6 +1,7 @@
1
1
  import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
2
  import * as i2 from '@acorex/components/button';
3
3
  import { AXButtonModule } from '@acorex/components/button';
4
+ import { AXToastService } from '@acorex/components/toast';
4
5
  import * as i4 from '@acorex/components/decorators';
5
6
  import { AXDecoratorModule } from '@acorex/components/decorators';
6
7
  import * as i4$1 from '@acorex/components/dropdown';
@@ -9,11 +10,11 @@ import * as i5 from '@acorex/components/skeleton';
9
10
  import { AXSkeletonModule } from '@acorex/components/skeleton';
10
11
  import { AXFormatService } from '@acorex/core/format';
11
12
  import { AXLocaleService } from '@acorex/core/locale';
12
- import { AXPTaskPopoverComponent, AXPTaskBoardService, getTaskTranslationKey, formatTaskI18nParamsForTranslate } from '@acorex-platform/module-task-management-client';
13
+ import { AXPWorkItemDetailsComponent, AXPWorkBoardService, getTaskTranslationKey, formatTaskI18nParamsForTranslate } from '@acorex-platform/framework-client/layout/components';
13
14
  import { AXPSettingsService } from '@acorex-platform/framework-client/common';
14
15
  import * as i1 from '@acorex-platform/framework-client/layout/widget-core';
15
16
  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-BcOBHoOK.mjs';
17
+ import { a as AXMWorkflowManagementCommandKeys } from './acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-BXlJXZCZ.mjs';
17
18
  import * as i7 from '@acorex/core/translation';
18
19
  import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
19
20
  import * as i1$1 from '@angular/common';
@@ -25,7 +26,7 @@ import { input, inject, signal, computed, effect, CUSTOM_ELEMENTS_SCHEMA, ViewEn
25
26
  //#region ---- Imports ----
26
27
  //#endregion
27
28
  //#region ---- Component ----
28
- class AXMWorkflowTaskPopoverComponent extends AXPTaskPopoverComponent {
29
+ class AXMWorkflowTaskPopoverComponent extends AXPWorkItemDetailsComponent {
29
30
  onFormContextChanged(event) {
30
31
  const data = event?.data;
31
32
  if (data && typeof data === 'object') {
@@ -91,7 +92,8 @@ class AXMWorkflowTaskPopoverComponent extends AXPTaskPopoverComponent {
91
92
  ...(ngDevMode ? [{ debugName: "task" }] : /* istanbul ignore next */ []));
92
93
  //#endregion
93
94
  //#region ---- Services & Dependencies ----
94
- this.taskBoardService = inject(AXPTaskBoardService);
95
+ this.taskBoardService = inject(AXPWorkBoardService);
96
+ this.toast = inject(AXToastService);
95
97
  this.localeService = inject(AXLocaleService);
96
98
  this.formatService = inject(AXFormatService);
97
99
  this.settingsService = inject(AXPSettingsService);
@@ -267,21 +269,24 @@ class AXMWorkflowTaskPopoverComponent extends AXPTaskPopoverComponent {
267
269
  },
268
270
  };
269
271
  const keepPopoverOpen = command.name === AXMWorkflowManagementCommandKeys.WorkflowRun.ShowHistory;
272
+ let completed = false;
270
273
  try {
271
- await this.taskBoardService.executeCommand(command, t.provider);
274
+ const result = await this.taskBoardService.executeCommand(command, t.provider);
275
+ completed = result?.success === true;
272
276
  }
273
277
  catch (error) {
274
278
  console.error('[WorkflowTaskPopover] executeAction failed:', error);
279
+ this.toast.show({ color: 'danger', content: await this.translationService.translateAsync('@workflow-management:tasks.offline.failed') });
275
280
  }
276
281
  finally {
277
- if (!keepPopoverOpen) {
282
+ if (!keepPopoverOpen && completed) {
278
283
  this.refreshPopover();
279
284
  this.closePopover();
280
285
  }
281
286
  }
282
287
  }
283
288
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMWorkflowTaskPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
284
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMWorkflowTaskPopoverComponent, isStandalone: true, selector: "axm-workflow-task-popover", inputs: { task: { classPropertyName: "task", publicName: "task", isSignal: true, isRequired: true, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<div class=\"workflow-task-popover\">\n @if (isLoadingMetadata()) {\n <div class=\"workflow-task-popover__metadata\">\n @for (row of loadingSkeletonRows; track row) {\n <div class=\"__row __row--loading\">\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-label\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-value\"></ax-skeleton>\n </div>\n }\n </div>\n } @else if (metadataFields().length > 0) {\n <div class=\"workflow-task-popover__metadata\">\n <axp-widgets-container [context]=\"metadataContext()\">\n @for (item of metadataFields(); track item.name) {\n <div class=\"__row\">\n <span class=\"__label\">{{ item.title | translate | async }}:</span>\n <div class=\"__value\">\n <ng-container axp-widget-renderer [node]=\"item.node\" [mode]=\"'view'\"></ng-container>\n </div>\n </div>\n }\n </axp-widgets-container>\n </div>\n }\n\n <axp-widgets-container [context]=\"popoverContext()\" (onContextChanged)=\"onFormContextChanged($event)\"\n class=\"workflow-task-popover__content\">\n @if (contentNode(); as node) {\n <ng-container axp-widget-renderer [node]=\"node\" [mode]=\"'edit'\"></ng-container>\n } @else {\n <div class=\"workflow-task-popover__fallback\">\n @if (descriptionKey(); as key) {\n <p class=\"task-popover__description\">{{ key | translate: { params: i18nParams() } | async }}</p>\n } @else if (task().description) {\n <p class=\"task-popover__description\">{{ task().description }}</p>\n }\n </div>\n }\n </axp-widgets-container>\n\n @if (taskActions().length > 0) {\n <div class=\"workflow-task-popover__actions ax-sm\">\n @if (primaryActions().length > 0) {\n @for (action of primaryActions(); track action.name || action.title) {\n <ax-button [look]=\"'solid'\" [color]=\"getActionColor(action)\" (onClick)=\"executeAction(action)\"\n [disabled]=\"action.disabled === true\" [text]=\"(action.title | translate | async)!\">\n @if (action.icon) {\n <ax-prefix>\n <ax-icon>\n <i [class]=\"action.icon\"></i>\n </ax-icon>\n </ax-prefix>\n }\n </ax-button>\n }\n }\n\n @if (secondaryActions().length > 0) {\n <ax-button class=\"workflow-task-popover__more-btn\" [look]=\"'blank'\" [color]=\"'default'\" [iconOnly]=\"true\"\n [attr.aria-label]=\"('@workflow-management:tasks.popover.more' | translate | async) ?? ''\">\n <ax-icon icon=\"fa-light fa-ellipsis-vertical\"></ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for (action of secondaryActions(); track action.name || action.title) {\n <ax-button-item [text]=\"(action.title | translate | async)!\" [disabled]=\"action.disabled === true\"\n (onClick)=\"executeAction(action)\">\n @if (action.icon) {\n <ax-prefix>\n <ax-icon>\n <i [class]=\"action.icon\"></i>\n </ax-icon>\n </ax-prefix>\n }\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n }\n</div>", styles: ["@layer properties;.workflow-task-popover{display:flex;flex-direction:column}.workflow-task-popover .workflow-task-popover__metadata{padding-inline:calc(var(--spacing, .25rem) * 5);padding-top:calc(var(--spacing, .25rem) * 4);padding-bottom:calc(var(--spacing, .25rem) * 3);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}.workflow-task-popover .workflow-task-popover__metadata .__row{display:grid;align-items:center;column-gap:calc(var(--spacing, .25rem) * 5);row-gap:var(--spacing, .25rem);grid-template-columns:minmax(7rem,35%) 1fr}.workflow-task-popover .workflow-task-popover__metadata .__row--loading{align-items:flex-start;column-gap:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__metadata .__row__label{flex-shrink:0;padding-inline-end:var(--spacing, .25rem);--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700)}.workflow-task-popover .workflow-task-popover__metadata .__row__value{display:flex;min-width:0px;align-items:center}.workflow-task-popover .workflow-task-popover__metadata .__skeleton-label{height:calc(var(--spacing, .25rem) * 4);border-radius:.25rem;width:66.666667%}.workflow-task-popover .workflow-task-popover__metadata .__skeleton-value{height:calc(var(--spacing, .25rem) * 4);width:100%;border-radius:.25rem}.workflow-task-popover .workflow-task-popover__content{min-height:0px}.workflow-task-popover .workflow-task-popover__content:not(:has(.workflow-task-popover__fallback)){padding-inline:calc(var(--spacing, .25rem) * 5);padding-block:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__fallback{padding-inline:calc(var(--spacing, .25rem) * 5);padding-bottom:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__fallback .task-popover__description{margin:0;padding:0;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-snug, 1.375);line-height:var(--leading-snug, 1.375)}.workflow-task-popover .workflow-task-popover__actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:calc(var(--spacing, .25rem) * 2);border-top-style:var(--tw-border-style);border-top-width:1px;padding-inline:calc(var(--spacing, .25rem) * 5);padding-block:calc(var(--spacing, .25rem) * 3)}.workflow-task-popover .workflow-task-popover__more-btn{flex-shrink:0}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial;--tw-leading: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: AXPWidgetCoreModule }, { kind: "component", type: i1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i2.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i2.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items", "closeParentOnClick", "lockOnLoading"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i4.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i4.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i4$1.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i5.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
289
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMWorkflowTaskPopoverComponent, isStandalone: true, selector: "axm-workflow-task-popover", inputs: { task: { classPropertyName: "task", publicName: "task", isSignal: true, isRequired: true, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<div class=\"workflow-task-popover\">\n @if (isLoadingMetadata()) {\n <div class=\"workflow-task-popover__metadata\">\n @for (row of loadingSkeletonRows; track row) {\n <div class=\"__row __row--loading\">\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-label\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-value\"></ax-skeleton>\n </div>\n }\n </div>\n } @else if (metadataFields().length > 0) {\n <div class=\"workflow-task-popover__metadata\">\n <axp-widgets-container [context]=\"metadataContext()\">\n @for (item of metadataFields(); track item.name) {\n <div class=\"__row\">\n <span class=\"__label\">{{ item.title | translate | async }}:</span>\n <div class=\"__value\">\n <ng-container axp-widget-renderer [node]=\"item.node\" [mode]=\"'view'\"></ng-container>\n </div>\n </div>\n }\n </axp-widgets-container>\n </div>\n }\n\n <axp-widgets-container [context]=\"popoverContext()\" (onContextChanged)=\"onFormContextChanged($event)\"\n class=\"workflow-task-popover__content\">\n @if (contentNode(); as node) {\n <ng-container axp-widget-renderer [node]=\"node\" [mode]=\"'edit'\"></ng-container>\n } @else {\n <div class=\"workflow-task-popover__fallback\">\n @if (descriptionKey(); as key) {\n <p class=\"task-popover__description\">{{ key | translate: { params: i18nParams() } | async }}</p>\n } @else if (task().description) {\n <p class=\"task-popover__description\">{{ task().description }}</p>\n }\n </div>\n }\n </axp-widgets-container>\n\n @if (taskActions().length > 0) {\n <div class=\"workflow-task-popover__actions ax-sm\">\n @if (primaryActions().length > 0) {\n @for (action of primaryActions(); track action.name || action.title) {\n <ax-button [look]=\"'solid'\" [color]=\"getActionColor(action)\" (onClick)=\"executeAction(action)\"\n [disabled]=\"action.disabled === true\" [text]=\"(action.title | translate | async)!\">\n @if (action.icon) {\n <ax-prefix>\n <ax-icon>\n <i [class]=\"action.icon\"></i>\n </ax-icon>\n </ax-prefix>\n }\n </ax-button>\n }\n }\n\n @if (secondaryActions().length > 0) {\n <ax-button class=\"workflow-task-popover__more-btn\" [look]=\"'blank'\" [color]=\"'default'\" [iconOnly]=\"true\"\n [attr.aria-label]=\"('@workflow-management:tasks.popover.more' | translate | async) ?? ''\">\n <ax-icon icon=\"fa-light fa-ellipsis-vertical\"></ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for (action of secondaryActions(); track action.name || action.title) {\n <ax-button-item [text]=\"(action.title | translate | async)!\" [disabled]=\"action.disabled === true\"\n (onClick)=\"executeAction(action)\">\n @if (action.icon) {\n <ax-prefix>\n <ax-icon>\n <i [class]=\"action.icon\"></i>\n </ax-icon>\n </ax-prefix>\n }\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n }\n</div>", styles: ["@layer properties;.workflow-task-popover{display:flex;flex-direction:column}.workflow-task-popover .workflow-task-popover__metadata{padding-inline:calc(var(--spacing, .25rem) * 5);padding-top:calc(var(--spacing, .25rem) * 4);padding-bottom:calc(var(--spacing, .25rem) * 3);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}.workflow-task-popover .workflow-task-popover__metadata .__row{display:grid;align-items:center;column-gap:calc(var(--spacing, .25rem) * 5);row-gap:var(--spacing, .25rem);grid-template-columns:minmax(7rem,35%) 1fr}.workflow-task-popover .workflow-task-popover__metadata .__row--loading{align-items:flex-start;column-gap:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__metadata .__row__label{flex-shrink:0;padding-inline-end:var(--spacing, .25rem);--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700)}.workflow-task-popover .workflow-task-popover__metadata .__row__value{display:flex;min-width:0px;align-items:center}.workflow-task-popover .workflow-task-popover__metadata .__skeleton-label{height:calc(var(--spacing, .25rem) * 4);border-radius:.25rem;width:66.666667%}.workflow-task-popover .workflow-task-popover__metadata .__skeleton-value{height:calc(var(--spacing, .25rem) * 4);width:100%;border-radius:.25rem}.workflow-task-popover .workflow-task-popover__content{min-height:0px}.workflow-task-popover .workflow-task-popover__content:not(:has(.workflow-task-popover__fallback)){padding-inline:calc(var(--spacing, .25rem) * 5);padding-block:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__fallback{padding-inline:calc(var(--spacing, .25rem) * 5);padding-bottom:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__fallback .task-popover__description{margin:0;padding:0;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-snug, 1.375);line-height:var(--leading-snug, 1.375)}.workflow-task-popover .workflow-task-popover__actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:calc(var(--spacing, .25rem) * 2);border-top-style:var(--tw-border-style);border-top-width:1px;padding-inline:calc(var(--spacing, .25rem) * 5);padding-block:calc(var(--spacing, .25rem) * 3)}.workflow-task-popover .workflow-task-popover__more-btn{flex-shrink:0}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial;--tw-leading: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: AXPWidgetCoreModule }, { kind: "component", type: i1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node", "placeholder"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i2.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i2.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items", "closeParentOnClick", "lockOnLoading"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i4.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i4.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i4$1.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i5.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
285
290
  }
286
291
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMWorkflowTaskPopoverComponent, decorators: [{
287
292
  type: Component,
@@ -293,8 +298,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
293
298
  AXSkeletonModule,
294
299
  CommonModule,
295
300
  AXTranslationModule,
296
- ], template: "<div class=\"workflow-task-popover\">\n @if (isLoadingMetadata()) {\n <div class=\"workflow-task-popover__metadata\">\n @for (row of loadingSkeletonRows; track row) {\n <div class=\"__row __row--loading\">\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-label\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-value\"></ax-skeleton>\n </div>\n }\n </div>\n } @else if (metadataFields().length > 0) {\n <div class=\"workflow-task-popover__metadata\">\n <axp-widgets-container [context]=\"metadataContext()\">\n @for (item of metadataFields(); track item.name) {\n <div class=\"__row\">\n <span class=\"__label\">{{ item.title | translate | async }}:</span>\n <div class=\"__value\">\n <ng-container axp-widget-renderer [node]=\"item.node\" [mode]=\"'view'\"></ng-container>\n </div>\n </div>\n }\n </axp-widgets-container>\n </div>\n }\n\n <axp-widgets-container [context]=\"popoverContext()\" (onContextChanged)=\"onFormContextChanged($event)\"\n class=\"workflow-task-popover__content\">\n @if (contentNode(); as node) {\n <ng-container axp-widget-renderer [node]=\"node\" [mode]=\"'edit'\"></ng-container>\n } @else {\n <div class=\"workflow-task-popover__fallback\">\n @if (descriptionKey(); as key) {\n <p class=\"task-popover__description\">{{ key | translate: { params: i18nParams() } | async }}</p>\n } @else if (task().description) {\n <p class=\"task-popover__description\">{{ task().description }}</p>\n }\n </div>\n }\n </axp-widgets-container>\n\n @if (taskActions().length > 0) {\n <div class=\"workflow-task-popover__actions ax-sm\">\n @if (primaryActions().length > 0) {\n @for (action of primaryActions(); track action.name || action.title) {\n <ax-button [look]=\"'solid'\" [color]=\"getActionColor(action)\" (onClick)=\"executeAction(action)\"\n [disabled]=\"action.disabled === true\" [text]=\"(action.title | translate | async)!\">\n @if (action.icon) {\n <ax-prefix>\n <ax-icon>\n <i [class]=\"action.icon\"></i>\n </ax-icon>\n </ax-prefix>\n }\n </ax-button>\n }\n }\n\n @if (secondaryActions().length > 0) {\n <ax-button class=\"workflow-task-popover__more-btn\" [look]=\"'blank'\" [color]=\"'default'\" [iconOnly]=\"true\"\n [attr.aria-label]=\"('@workflow-management:tasks.popover.more' | translate | async) ?? ''\">\n <ax-icon icon=\"fa-light fa-ellipsis-vertical\"></ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for (action of secondaryActions(); track action.name || action.title) {\n <ax-button-item [text]=\"(action.title | translate | async)!\" [disabled]=\"action.disabled === true\"\n (onClick)=\"executeAction(action)\">\n @if (action.icon) {\n <ax-prefix>\n <ax-icon>\n <i [class]=\"action.icon\"></i>\n </ax-icon>\n </ax-prefix>\n }\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n }\n</div>", styles: ["@layer properties;.workflow-task-popover{display:flex;flex-direction:column}.workflow-task-popover .workflow-task-popover__metadata{padding-inline:calc(var(--spacing, .25rem) * 5);padding-top:calc(var(--spacing, .25rem) * 4);padding-bottom:calc(var(--spacing, .25rem) * 3);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}.workflow-task-popover .workflow-task-popover__metadata .__row{display:grid;align-items:center;column-gap:calc(var(--spacing, .25rem) * 5);row-gap:var(--spacing, .25rem);grid-template-columns:minmax(7rem,35%) 1fr}.workflow-task-popover .workflow-task-popover__metadata .__row--loading{align-items:flex-start;column-gap:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__metadata .__row__label{flex-shrink:0;padding-inline-end:var(--spacing, .25rem);--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700)}.workflow-task-popover .workflow-task-popover__metadata .__row__value{display:flex;min-width:0px;align-items:center}.workflow-task-popover .workflow-task-popover__metadata .__skeleton-label{height:calc(var(--spacing, .25rem) * 4);border-radius:.25rem;width:66.666667%}.workflow-task-popover .workflow-task-popover__metadata .__skeleton-value{height:calc(var(--spacing, .25rem) * 4);width:100%;border-radius:.25rem}.workflow-task-popover .workflow-task-popover__content{min-height:0px}.workflow-task-popover .workflow-task-popover__content:not(:has(.workflow-task-popover__fallback)){padding-inline:calc(var(--spacing, .25rem) * 5);padding-block:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__fallback{padding-inline:calc(var(--spacing, .25rem) * 5);padding-bottom:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__fallback .task-popover__description{margin:0;padding:0;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-snug, 1.375);line-height:var(--leading-snug, 1.375)}.workflow-task-popover .workflow-task-popover__actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:calc(var(--spacing, .25rem) * 2);border-top-style:var(--tw-border-style);border-top-width:1px;padding-inline:calc(var(--spacing, .25rem) * 5);padding-block:calc(var(--spacing, .25rem) * 3)}.workflow-task-popover .workflow-task-popover__more-btn{flex-shrink:0}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial;--tw-leading: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
301
+ ], template: "<div class=\"workflow-task-popover\">\n @if (isLoadingMetadata()) {\n <div class=\"workflow-task-popover__metadata\">\n @for (row of loadingSkeletonRows; track row) {\n <div class=\"__row __row--loading\">\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-label\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-value\"></ax-skeleton>\n </div>\n }\n </div>\n } @else if (metadataFields().length > 0) {\n <div class=\"workflow-task-popover__metadata\">\n <axp-widgets-container [context]=\"metadataContext()\">\n @for (item of metadataFields(); track item.name) {\n <div class=\"__row\">\n <span class=\"__label\">{{ item.title | translate | async }}:</span>\n <div class=\"__value\">\n <ng-container axp-widget-renderer [node]=\"item.node\" [mode]=\"'view'\"></ng-container>\n </div>\n </div>\n }\n </axp-widgets-container>\n </div>\n }\n\n <axp-widgets-container [context]=\"popoverContext()\" (onContextChanged)=\"onFormContextChanged($event)\"\n class=\"workflow-task-popover__content\">\n @if (contentNode(); as node) {\n <ng-container axp-widget-renderer [node]=\"node\" [mode]=\"'edit'\"></ng-container>\n } @else {\n <div class=\"workflow-task-popover__fallback\">\n @if (descriptionKey(); as key) {\n <p class=\"task-popover__description\">{{ key | translate: { params: i18nParams() } | async }}</p>\n } @else if (task().description) {\n <p class=\"task-popover__description\">{{ task().description }}</p>\n }\n </div>\n }\n </axp-widgets-container>\n\n @if (taskActions().length > 0) {\n <div class=\"workflow-task-popover__actions ax-sm\">\n @if (primaryActions().length > 0) {\n @for (action of primaryActions(); track action.name || action.title) {\n <ax-button [look]=\"'solid'\" [color]=\"getActionColor(action)\" (onClick)=\"executeAction(action)\"\n [disabled]=\"action.disabled === true\" [text]=\"(action.title | translate | async)!\">\n @if (action.icon) {\n <ax-prefix>\n <ax-icon>\n <i [class]=\"action.icon\"></i>\n </ax-icon>\n </ax-prefix>\n }\n </ax-button>\n }\n }\n\n @if (secondaryActions().length > 0) {\n <ax-button class=\"workflow-task-popover__more-btn\" [look]=\"'blank'\" [color]=\"'default'\" [iconOnly]=\"true\"\n [attr.aria-label]=\"('@workflow-management:tasks.popover.more' | translate | async) ?? ''\">\n <ax-icon icon=\"fa-light fa-ellipsis-vertical\"></ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for (action of secondaryActions(); track action.name || action.title) {\n <ax-button-item [text]=\"(action.title | translate | async)!\" [disabled]=\"action.disabled === true\"\n (onClick)=\"executeAction(action)\">\n @if (action.icon) {\n <ax-prefix>\n <ax-icon>\n <i [class]=\"action.icon\"></i>\n </ax-icon>\n </ax-prefix>\n }\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n }\n</div>", styles: ["@layer properties;.workflow-task-popover{display:flex;flex-direction:column}.workflow-task-popover .workflow-task-popover__metadata{padding-inline:calc(var(--spacing, .25rem) * 5);padding-top:calc(var(--spacing, .25rem) * 4);padding-bottom:calc(var(--spacing, .25rem) * 3);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}.workflow-task-popover .workflow-task-popover__metadata .__row{display:grid;align-items:center;column-gap:calc(var(--spacing, .25rem) * 5);row-gap:var(--spacing, .25rem);grid-template-columns:minmax(7rem,35%) 1fr}.workflow-task-popover .workflow-task-popover__metadata .__row--loading{align-items:flex-start;column-gap:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__metadata .__row__label{flex-shrink:0;padding-inline-end:var(--spacing, .25rem);--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700)}.workflow-task-popover .workflow-task-popover__metadata .__row__value{display:flex;min-width:0px;align-items:center}.workflow-task-popover .workflow-task-popover__metadata .__skeleton-label{height:calc(var(--spacing, .25rem) * 4);border-radius:.25rem;width:66.666667%}.workflow-task-popover .workflow-task-popover__metadata .__skeleton-value{height:calc(var(--spacing, .25rem) * 4);width:100%;border-radius:.25rem}.workflow-task-popover .workflow-task-popover__content{min-height:0px}.workflow-task-popover .workflow-task-popover__content:not(:has(.workflow-task-popover__fallback)){padding-inline:calc(var(--spacing, .25rem) * 5);padding-block:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__fallback{padding-inline:calc(var(--spacing, .25rem) * 5);padding-bottom:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__fallback .task-popover__description{margin:0;padding:0;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-snug, 1.375);line-height:var(--leading-snug, 1.375)}.workflow-task-popover .workflow-task-popover__actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:calc(var(--spacing, .25rem) * 2);border-top-style:var(--tw-border-style);border-top-width:1px;padding-inline:calc(var(--spacing, .25rem) * 5);padding-block:calc(var(--spacing, .25rem) * 3)}.workflow-task-popover .workflow-task-popover__more-btn{flex-shrink:0}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial;--tw-leading: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"] }]
297
302
  }], ctorParameters: () => [], propDecorators: { task: [{ type: i0.Input, args: [{ isSignal: true, alias: "task", required: true }] }] } });
298
303
 
299
304
  export { AXMWorkflowTaskPopoverComponent };
300
- //# sourceMappingURL=acorex-platform-module-workflow-management-client-workflow-task-popover.component-BXutLQAO.mjs.map
305
+ //# sourceMappingURL=acorex-platform-module-workflow-management-client-workflow-task-popover.component-V3Spc1Dn.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-workflow-management-client-workflow-task-popover.component-V3Spc1Dn.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/task-provider/workflow-task-popover.component.ts","../../../../libs/modules/workflow-management/client/src/lib/features/task-provider/workflow-task-popover.component.html"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPContextChangeEvent, type AXPWidgetNode, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\n\nimport { AXFormatService } from '@acorex/core/format';\nimport { AXLocaleService } from '@acorex/core/locale';\nimport {\n AXPWorkItem,\n AXPWorkBoardActionMenuItem,\n AXPWorkBoardService,\n AXPWorkItemDetailsComponent,\n AXPWorkItemMetadata,\n formatTaskI18nParamsForTranslate,\n getTaskTranslationKey,\n} from '@acorex-platform/framework-client/layout/components';\nimport { AXPSettingsService } from '@acorex-platform/framework-client/common';\nimport { AXPWidgetCoreModule, AXPWidgetSerializationHelper } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXMWorkflowManagementCommandKeys } from '../workflow-run-plugin/commands.keys';\n\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\n\nimport { CommonModule } from '@angular/common';\nimport { get } from 'lodash';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\n\n//#endregion\n\n//#region ---- Types ----\n\n/**\n * Field definition for workflow task form (from payload.context._fields).\n */\ninterface WorkflowTaskFormField {\n name: string;\n label?: string;\n type?: 'string' | 'number' | 'date' | 'boolean' | 'text';\n value?: unknown;\n placeholder?: string;\n}\n\n/**\n * Payload shape for human-task bookmark (context, actions, optional layout).\n */\ninterface HumanTaskPayload {\n activityName?: string;\n dueDate?: string | Date | null;\n context?: Record<string, unknown> & { _fields?: WorkflowTaskFormField[] };\n actions?: { prefix?: unknown[]; suffix?: unknown[] };\n layout?: string;\n}\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n selector: 'axm-workflow-task-popover',\n templateUrl: './workflow-task-popover.component.html',\n styleUrls: ['./workflow-task-popover.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n imports: [\n AXPWidgetCoreModule,\n AXButtonModule,\n AXDecoratorModule,\n AXDropdownModule,\n AXSkeletonModule,\n CommonModule,\n AXTranslationModule,\n ],\n})\nexport class AXMWorkflowTaskPopoverComponent extends AXPWorkItemDetailsComponent {\n //#region ---- Inputs ----\n\n task = input.required<AXPWorkItem>();\n\n //#endregion\n\n //#region ---- Services & Dependencies ----\n\n private readonly taskBoardService = inject(AXPWorkBoardService);\n private readonly toast = inject(AXToastService);\n private readonly localeService = inject(AXLocaleService);\n private readonly formatService = inject(AXFormatService);\n private readonly settingsService = inject(AXPSettingsService);\n private readonly translationService = inject(AXTranslationService);\n\n protected readonly i18nParams = signal<Record<string, string>>({});\n protected readonly descriptionKey = computed(() => getTaskTranslationKey(this.task(), 'description'));\n\n private readonly i18nParamsEffect = effect(() => {\n const task = this.task();\n void this.localeService.activeProfile().localeInfo?.code;\n const raw = get(task.data, 'taskI18nParams') as Record<string, unknown> | undefined;\n void formatTaskI18nParamsForTranslate(\n raw,\n this.translationService,\n this.formatService,\n this.settingsService,\n ).then((params) => this.i18nParams.set(params));\n });\n\n //#endregion\n\n //#region ---- Popover metadata (from provider) ----\n\n protected readonly isLoadingMetadata = signal(false);\n protected readonly popoverMetadata = signal<AXPWorkItemMetadata | null>(null);\n\n /** Placeholder rows for the metadata loading skeleton. */\n protected readonly loadingSkeletonRows = [1, 2, 3, 4, 5, 6] as const;\n\n protected readonly metadataFields = computed(() => this.popoverMetadata()?.fields ?? []);\n protected readonly metadataContext = computed(() => this.popoverMetadata()?.context ?? {});\n\n //#endregion\n\n //#region ---- Payload ----\n\n protected readonly bookmarkPayload = computed((): HumanTaskPayload | null => {\n const data = this.task()?.data as { payload?: HumanTaskPayload } | undefined;\n const payload = data?.payload;\n return payload && typeof payload === 'object' ? payload : null;\n });\n\n //#endregion\n\n //#region ---- Form context (for userInput on resume) ----\n\n /** Current form values; passed as userInput when executing an action. */\n protected readonly formValues = signal<Record<string, unknown>>({});\n\n protected onFormContextChanged(event: AXPContextChangeEvent): void {\n const data = event?.data;\n if (data && typeof data === 'object') {\n const filtered: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(data)) {\n if (key !== 'task' && key !== '_fields') filtered[key] = value;\n }\n this.formValues.set(filtered);\n }\n }\n\n //#endregion\n\n //#region ---- Content node from payload.layout or payload.context ----\n\n protected readonly contentNode = computed<AXPWidgetNode | null>(() => {\n const t = this.task();\n const taskData = t?.data as { payload?: HumanTaskPayload } | undefined;\n const payload = taskData?.payload;\n const layoutStr = payload?.layout;\n if (typeof layoutStr === 'string' && layoutStr.trim().length > 0) {\n try {\n return AXPWidgetSerializationHelper.fromJson(layoutStr);\n } catch {\n return null;\n }\n }\n const context = payload?.context;\n const fields =\n context && typeof context === 'object' && Array.isArray((context as { _fields?: unknown })._fields)\n ? ((context as { _fields: WorkflowTaskFormField[] })._fields)\n : null;\n\n if (!fields || fields.length === 0) return null;\n\n const children: AXPWidgetNode[] = fields.map((f) => ({\n type: 'grid-item-layout',\n name: f.name,\n options: { colSpan: 12 },\n children: [\n {\n type: 'form-field',\n options: {\n label: f.label ?? f.name,\n showLabel: true,\n },\n children: [this.buildWidgetNode(f)],\n },\n ],\n }));\n\n return {\n type: 'grid-layout',\n mode: 'edit',\n options: {\n grid: {\n default: {\n columns: 'repeat(12, 1fr)',\n rows: 'repeat(1, 1fr)',\n gap: '12px',\n },\n },\n },\n children,\n };\n });\n\n private buildWidgetNode(f: WorkflowTaskFormField): AXPWidgetNode {\n const type = (f.type ?? 'string').toLowerCase();\n const path = f.name;\n const defaultValue = f.value;\n\n switch (type) {\n case 'number':\n return {\n type: AXPWidgetsList.Editors.NumberBox,\n path,\n name: path,\n defaultValue,\n options: {},\n };\n case 'date':\n return {\n type: AXPWidgetsList.Editors.DateTimeBox,\n path,\n name: path,\n defaultValue,\n options: { showTime: true },\n };\n case 'boolean':\n return {\n type: AXPWidgetsList.Editors.CheckBox,\n path,\n name: path,\n defaultValue: Boolean(defaultValue),\n options: {},\n };\n case 'text':\n return {\n type: AXPWidgetsList.Editors.LargeTextBox,\n path,\n name: path,\n defaultValue,\n options: { rows: 3, placeholder: f.placeholder },\n };\n default:\n return {\n type: AXPWidgetsList.Editors.TextBox,\n path,\n name: path,\n defaultValue,\n options: { placeholder: f.placeholder },\n };\n }\n }\n\n protected readonly popoverContext = computed<Record<string, unknown>>(() => {\n const t = this.task();\n const payload = (t?.data as { payload?: HumanTaskPayload })?.payload;\n const ctx = payload?.context;\n const base: Record<string, unknown> = ctx && typeof ctx === 'object' ? { ...ctx } : {};\n base['task'] = t;\n const fields = Array.isArray(base['_fields']) ? (base['_fields'] as WorkflowTaskFormField[]) : [];\n for (const f of fields) {\n if (f.name && !(f.name in base)) base[f.name] = f.value;\n }\n return base;\n });\n\n //#endregion\n\n //#region ---- Actions ----\n\n protected readonly taskActions = signal<AXPWorkBoardActionMenuItem[]>([]);\n\n protected readonly primaryActions = computed(() =>\n this.taskActions().filter((a) => (a.priority ?? 'secondary') === 'primary'),\n );\n\n protected readonly secondaryActions = computed(() =>\n this.taskActions().filter((a) => (a.priority ?? 'secondary') === 'secondary'),\n );\n\n constructor() {\n super();\n effect((onCleanup) => {\n const t = this.task();\n if (!t?.provider) {\n this.popoverMetadata.set(null);\n this.isLoadingMetadata.set(false);\n this.taskActions.set([]);\n return;\n }\n\n const provider = this.taskBoardService.getProvider(t.provider);\n if (!provider) {\n this.popoverMetadata.set(null);\n this.isLoadingMetadata.set(false);\n this.taskActions.set([]);\n return;\n }\n\n let cancelled = false;\n onCleanup(() => {\n cancelled = true;\n });\n\n if (typeof provider.getPopoverMetadata === 'function') {\n this.isLoadingMetadata.set(true);\n this.popoverMetadata.set(null);\n void provider.getPopoverMetadata(t).then(\n (metadata) => {\n if (!cancelled) {\n this.popoverMetadata.set(metadata);\n this.isLoadingMetadata.set(false);\n }\n },\n () => {\n if (!cancelled) {\n this.popoverMetadata.set(null);\n this.isLoadingMetadata.set(false);\n }\n },\n );\n } else {\n this.popoverMetadata.set(null);\n this.isLoadingMetadata.set(false);\n }\n\n void provider.getActions(t).then((actions) => {\n if (!cancelled) {\n this.taskActions.set(actions);\n }\n });\n });\n }\n\n protected getActionColor(action: AXPWorkBoardActionMenuItem): string | null {\n return (action.color as string) ?? null;\n }\n\n protected async executeAction(action: AXPWorkBoardActionMenuItem): Promise<void> {\n const t = this.task();\n if (!t || !action.command || !t.provider) return;\n const userInput = this.formValues();\n const command = {\n ...action.command,\n options: {\n ...action.command.options,\n userInput:\n userInput && Object.keys(userInput).length > 0 ? userInput : (action.command.options?.['userInput'] ?? {}),\n },\n };\n const keepPopoverOpen = command.name === AXMWorkflowManagementCommandKeys.WorkflowRun.ShowHistory;\n let completed = false;\n try {\n const result = await this.taskBoardService.executeCommand(command, t.provider);\n completed = result?.success === true;\n } catch (error) {\n console.error('[WorkflowTaskPopover] executeAction failed:', error);\n this.toast.show({ color: 'danger', content: await this.translationService.translateAsync('@workflow-management:tasks.offline.failed') });\n } finally {\n if (!keepPopoverOpen && completed) {\n this.refreshPopover();\n this.closePopover();\n }\n }\n }\n\n //#endregion\n}\n\n//#endregion\n","<div class=\"workflow-task-popover\">\n @if (isLoadingMetadata()) {\n <div class=\"workflow-task-popover__metadata\">\n @for (row of loadingSkeletonRows; track row) {\n <div class=\"__row __row--loading\">\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-label\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-value\"></ax-skeleton>\n </div>\n }\n </div>\n } @else if (metadataFields().length > 0) {\n <div class=\"workflow-task-popover__metadata\">\n <axp-widgets-container [context]=\"metadataContext()\">\n @for (item of metadataFields(); track item.name) {\n <div class=\"__row\">\n <span class=\"__label\">{{ item.title | translate | async }}:</span>\n <div class=\"__value\">\n <ng-container axp-widget-renderer [node]=\"item.node\" [mode]=\"'view'\"></ng-container>\n </div>\n </div>\n }\n </axp-widgets-container>\n </div>\n }\n\n <axp-widgets-container [context]=\"popoverContext()\" (onContextChanged)=\"onFormContextChanged($event)\"\n class=\"workflow-task-popover__content\">\n @if (contentNode(); as node) {\n <ng-container axp-widget-renderer [node]=\"node\" [mode]=\"'edit'\"></ng-container>\n } @else {\n <div class=\"workflow-task-popover__fallback\">\n @if (descriptionKey(); as key) {\n <p class=\"task-popover__description\">{{ key | translate: { params: i18nParams() } | async }}</p>\n } @else if (task().description) {\n <p class=\"task-popover__description\">{{ task().description }}</p>\n }\n </div>\n }\n </axp-widgets-container>\n\n @if (taskActions().length > 0) {\n <div class=\"workflow-task-popover__actions ax-sm\">\n @if (primaryActions().length > 0) {\n @for (action of primaryActions(); track action.name || action.title) {\n <ax-button [look]=\"'solid'\" [color]=\"getActionColor(action)\" (onClick)=\"executeAction(action)\"\n [disabled]=\"action.disabled === true\" [text]=\"(action.title | translate | async)!\">\n @if (action.icon) {\n <ax-prefix>\n <ax-icon>\n <i [class]=\"action.icon\"></i>\n </ax-icon>\n </ax-prefix>\n }\n </ax-button>\n }\n }\n\n @if (secondaryActions().length > 0) {\n <ax-button class=\"workflow-task-popover__more-btn\" [look]=\"'blank'\" [color]=\"'default'\" [iconOnly]=\"true\"\n [attr.aria-label]=\"('@workflow-management:tasks.popover.more' | translate | async) ?? ''\">\n <ax-icon icon=\"fa-light fa-ellipsis-vertical\"></ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for (action of secondaryActions(); track action.name || action.title) {\n <ax-button-item [text]=\"(action.title | translate | async)!\" [disabled]=\"action.disabled === true\"\n (onClick)=\"executeAction(action)\">\n @if (action.icon) {\n <ax-prefix>\n <ax-icon>\n <i [class]=\"action.icon\"></i>\n </ax-icon>\n </ax-prefix>\n }\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n }\n</div>"],"names":["i3","i4","i6"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAkEA;AAEA;AAmBM,MAAO,+BAAgC,SAAQ,2BAA2B,CAAA;AA6DpE,IAAA,oBAAoB,CAAC,KAA4B,EAAA;AACzD,QAAA,MAAM,IAAI,GAAG,KAAK,EAAE,IAAI;AACxB,QAAA,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YACpC,MAAM,QAAQ,GAA4B,EAAE;AAC5C,YAAA,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;AAC/C,gBAAA,IAAI,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,SAAS;AAAE,oBAAA,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK;YAChE;AACA,YAAA,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC/B;IACF;AA0DQ,IAAA,eAAe,CAAC,CAAwB,EAAA;AAC9C,QAAA,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,QAAQ,EAAE,WAAW,EAAE;AAC/C,QAAA,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI;AACnB,QAAA,MAAM,YAA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CreateEntityActivity, k as AXPGenericWorkflowTaskProvider, A as AXPWorkflowInstanceHumanTaskService, l as AXPWorkflowTaskContinuationService, m as AXPWorkflowTaskInstanceQueryService, o as AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG, C as CartableTaskActivity, p as CreateEntityFormActivity, H as HumanTaskActivity, R as RejectionReasonActivity, S as ShowConfirmPopupActivity, q as ShowLayoutPopupActivity, s as ShowToastActivity, t as SignOffActivity, c as createWorkflowInstanceBookmarkAccess, u as discoverWorkflowTaskProviders, v as findActiveHumanTaskAssigneeId, w as findHumanTaskAssigneeIdForActivity, x as getWorkflowInstanceInitiatorUserId, i as isWorkflowPooledClaimablePayload, y as isWorkflowReassignableHumanTaskPayload, z as isWorkflowTaskBoardBookmarkPayload, B as needsTakeOverForWorkflowInteractiveContinuation, D as needsTakeOverForWorkflowTaskContinuation, n as normalizeWorkflowTaskUserIds, E as parseWorkflowTaskContinuationPayload, F as resolveWorkflowHumanTaskAssigneeId, G as resolveWorkflowInitiatorUserIdFromVariables, I as resolveWorkflowTaskContinuationAssigneeId, J as shouldOfferWorkflowContinuationAfterStep, K as shouldOfferWorkflowInteractiveStepContinuation, L as shouldOfferWorkflowTaskContinuation, M as shouldSkipContinuationBeforeInteractive, N as wasWorkflowTaskBoardActivity } from './acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-BcOBHoOK.mjs';
1
+ export { e as AXCCategoryProvider, f as AXMMenuProvider, g as AXMWorkflowActivitiesDefinitionProvider, h as AXMWorkflowManagementModule, j as AXPCreateEntityActivity, k as AXPGenericWorkflowTaskProvider, A as AXPWorkflowInstanceHumanTaskService, l as AXPWorkflowTaskContinuationService, m as AXPWorkflowTaskInstanceQueryService, o as AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG, C as CartableTaskActivity, p as CreateEntityFormActivity, H as HumanTaskActivity, R as RejectionReasonActivity, S as ShowConfirmPopupActivity, q as ShowLayoutPopupActivity, s as ShowToastActivity, t as SignOffActivity, c as createWorkflowInstanceBookmarkAccess, u as discoverWorkflowTaskProviders, v as findActiveHumanTaskAssigneeId, w as findHumanTaskAssigneeIdForActivity, x as getWorkflowInstanceInitiatorUserId, i as isWorkflowPooledClaimablePayload, y as isWorkflowReassignableHumanTaskPayload, z as isWorkflowTaskBoardBookmarkPayload, B as needsTakeOverForWorkflowInteractiveContinuation, D as needsTakeOverForWorkflowTaskContinuation, n as normalizeWorkflowTaskUserIds, E as parseWorkflowTaskContinuationPayload, F as resolveWorkflowHumanTaskAssigneeId, G as resolveWorkflowInitiatorUserIdFromVariables, I as resolveWorkflowTaskContinuationAssigneeId, J as shouldOfferWorkflowContinuationAfterStep, K as shouldOfferWorkflowInteractiveStepContinuation, L as shouldOfferWorkflowTaskContinuation, M as shouldSkipContinuationBeforeInteractive, N as wasWorkflowTaskBoardActivity, O as workflowSignOffActions, P as workflowSignOffLayout } from './acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-BXlJXZCZ.mjs';
2
2
  //# sourceMappingURL=acorex-platform-module-workflow-management-client.mjs.map
@@ -1,4 +1,11 @@
1
1
  {
2
+ "task-actions": {
3
+ "choose-title": "Choose a workflow action",
4
+ "choose-message": "Select the decision to execute. Closing this dialog leaves the workflow unchanged.",
5
+ "confirm-message": "Execute this workflow action?",
6
+ "changed": "The Task or workflow action changed. Refresh and try again.",
7
+ "unsupported-input": "This action needs a specialised input form."
8
+ },
2
9
  "module": {
3
10
  "title": "Workflow Management",
4
11
  "description": "Manage workflow definitions and executions",
@@ -426,6 +433,13 @@
426
433
  "suspended": "Suspended",
427
434
  "cancelled": "Cancelled",
428
435
  "faulted": "Faulted"
436
+ },
437
+ "messages": {
438
+ "error": {
439
+ "execution-failed-title": "Workflow Execution Failed",
440
+ "execution-error-title": "Workflow Execution Error",
441
+ "execution-error-content": "{{message}}"
442
+ }
429
443
  }
430
444
  },
431
445
  "tests": {
@@ -616,7 +630,8 @@
616
630
  "message": "Please provide a reason for rejecting this request.",
617
631
  "reason-label": "Reason",
618
632
  "reason-placeholder": "Enter rejection reason",
619
- "reason-required": "Rejection reason is required"
633
+ "reason-required": "Rejection reason is required",
634
+ "note-required": "A note is required to reject."
620
635
  }
621
636
  }
622
637
  },
@@ -759,6 +774,16 @@
759
774
  }
760
775
  },
761
776
  "tasks": {
777
+ "offline": {
778
+ "prepare": "Prepare for offline",
779
+ "retry": "Retry saved submission",
780
+ "open": "Fill prepared task",
781
+ "prepare-online": "Connect to prepare this task for offline use.",
782
+ "prepared": "The task and its required records are available offline.",
783
+ "queued": "Saved on this device. Submission will sync when connected.",
784
+ "synchronized": "Submission synchronised successfully.",
785
+ "failed": "The submission needs attention. Your local answers are preserved."
786
+ },
762
787
  "popover": {
763
788
  "more": "More",
764
789
  "assignee": "Assignee",
@@ -1,4 +1,11 @@
1
1
  {
2
+ "task-actions": {
3
+ "choose-title": "Choose a workflow action",
4
+ "choose-message": "Select the decision to execute. Closing this dialog leaves the workflow unchanged.",
5
+ "confirm-message": "Execute this workflow action?",
6
+ "changed": "The Task or workflow action changed. Refresh and try again.",
7
+ "unsupported-input": "This action needs a specialized input form."
8
+ },
2
9
  "module": {
3
10
  "title": "Workflow Management",
4
11
  "description": "Manage workflow definitions and executions",
@@ -426,6 +433,13 @@
426
433
  "suspended": "Suspended",
427
434
  "cancelled": "Cancelled",
428
435
  "faulted": "Faulted"
436
+ },
437
+ "messages": {
438
+ "error": {
439
+ "execution-failed-title": "Workflow Execution Failed",
440
+ "execution-error-title": "Workflow Execution Error",
441
+ "execution-error-content": "{{message}}"
442
+ }
429
443
  }
430
444
  },
431
445
  "tests": {
@@ -616,7 +630,8 @@
616
630
  "message": "Please provide a reason for rejecting this request.",
617
631
  "reason-label": "Reason",
618
632
  "reason-placeholder": "Enter rejection reason",
619
- "reason-required": "Rejection reason is required"
633
+ "reason-required": "Rejection reason is required",
634
+ "note-required": "A note is required to reject."
620
635
  }
621
636
  }
622
637
  },
@@ -759,6 +774,16 @@
759
774
  }
760
775
  },
761
776
  "tasks": {
777
+ "offline": {
778
+ "prepare": "Prepare for offline",
779
+ "retry": "Retry saved submission",
780
+ "open": "Fill prepared task",
781
+ "prepare-online": "Connect to prepare this task for offline use.",
782
+ "prepared": "The task and its required records are available offline.",
783
+ "queued": "Saved on this device. Submission will sync when connected.",
784
+ "synchronized": "Submission synchronized successfully.",
785
+ "failed": "The submission needs attention. Your local answers are preserved."
786
+ },
762
787
  "popover": {
763
788
  "more": "More",
764
789
  "assignee": "Assignee",
@@ -1,4 +1,11 @@
1
1
  {
2
+ "task-actions": {
3
+ "choose-title": "انتخاب اکشن فرایند",
4
+ "choose-message": "تصمیم موردنظر را انتخاب کنید. با بستن این پنجره، فرایند ادامه پیدا نمی‌کند.",
5
+ "confirm-message": "این اکشن فرایند اجرا شود؟",
6
+ "changed": "تسک یا اکشن فرایند تغییر کرده است. صفحه را تازه کنید و دوباره تلاش کنید.",
7
+ "unsupported-input": "این اکشن به فرم ورودی اختصاصی نیاز دارد."
8
+ },
2
9
  "module": {
3
10
  "title": "مدیریت گردش کار",
4
11
  "description": "مدیریت تعاریف و اجرای گردش کار",
@@ -426,6 +433,13 @@
426
433
  "suspended": "معلق",
427
434
  "cancelled": "لغو شده",
428
435
  "faulted": "خطا دار"
436
+ },
437
+ "messages": {
438
+ "error": {
439
+ "execution-failed-title": "اجرای گردش کار ناموفق بود",
440
+ "execution-error-title": "خطای اجرای گردش کار",
441
+ "execution-error-content": "{{message}}"
442
+ }
429
443
  }
430
444
  },
431
445
  "tests": {
@@ -616,7 +630,8 @@
616
630
  "message": "لطفاً دلیل رد این درخواست را وارد کنید.",
617
631
  "reason-label": "دلیل",
618
632
  "reason-placeholder": "دلیل رد را وارد کنید",
619
- "reason-required": "وارد کردن دلیل رد الزامی است"
633
+ "reason-required": "وارد کردن دلیل رد الزامی است",
634
+ "note-required": "برای رد کردن، وارد کردن یادداشت الزامی است."
620
635
  }
621
636
  }
622
637
  },
@@ -759,6 +774,16 @@
759
774
  }
760
775
  },
761
776
  "tasks": {
777
+ "offline": {
778
+ "prepare": "آماده‌سازی برای کار آفلاین",
779
+ "retry": "تلاش دوباره برای ارسال ذخیره‌شده",
780
+ "open": "تکمیل تسک آماده‌شده",
781
+ "prepare-online": "برای آماده‌سازی این تسک به اینترنت وصل شوید.",
782
+ "prepared": "تسک و اطلاعات موردنیاز آن برای کار آفلاین آماده است.",
783
+ "queued": "در این دستگاه ذخیره شد؛ پس از اتصال ارسال می‌شود.",
784
+ "synchronized": "ارسال با موفقیت همگام شد.",
785
+ "failed": "ارسال نیاز به بررسی دارد. پاسخ‌های محلی شما حفظ شده‌اند."
786
+ },
762
787
  "popover": {
763
788
  "more": "بیشتر",
764
789
  "assignee": "مسئول",
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@acorex-platform/module-workflow-management-client",
3
- "version": "1.0.2",
3
+ "version": "2.0.0-beta.1",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@acorex-platform/module-dashboard-management-client": "1.0.2",
6
+ "@acorex-platform/module-dashboard-management-client": "2.0.0-beta.1",
7
7
  "@angular/common": "^21.0.0 || ^22.0.0",
8
8
  "@angular/core": "^21.0.0 || ^22.0.0"
9
9
  },