@acorex-platform/module-workflow-management-client 0.0.32 → 0.0.37

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 (59) hide show
  1. package/fesm2022/{acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-B_Sl7G2v.mjs → acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-CKudtLpx.mjs} +14 -14
  2. package/fesm2022/{acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-B_Sl7G2v.mjs.map → acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-CKudtLpx.mjs.map} +1 -1
  3. package/fesm2022/acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-BPa0Sh6Z.mjs.map +1 -1
  4. package/fesm2022/acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-DuYGXzAL.mjs.map +1 -1
  5. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-activity-category.mjs +200 -0
  6. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-activity-category.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-activity-definition.mjs +333 -0
  8. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-activity-definition.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-automation.mjs +357 -0
  10. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-automation.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-workflow-definition.mjs +394 -0
  12. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-workflow-definition.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-workflow-instance.mjs +336 -0
  14. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entities-workflow-instance.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-DKDogTU7.mjs +103 -0
  16. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-DKDogTU7.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-1EWdojoP.mjs +120 -0
  18. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-1EWdojoP.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-DYoF3vVe.mjs +253 -0
  20. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-DYoF3vVe.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-DbJeeZpQ.mjs +277 -0
  22. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-DbJeeZpQ.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-BVSAGT0z.mjs +314 -0
  24. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-BVSAGT0z.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-BEA4WQX2.mjs +256 -0
  26. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-BEA4WQX2.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog.mjs +2 -0
  28. package/fesm2022/acorex-platform-module-workflow-management-client-contracts-entity-catalog.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-workflow-management-client-contracts.mjs.map +1 -1
  30. package/fesm2022/acorex-platform-module-workflow-management-client-execute-workflow-with-input.command-BFdyJ4rC.mjs.map +1 -1
  31. package/fesm2022/acorex-platform-module-workflow-management-client-execute-workflow.command-Cfdm1QAy.mjs.map +1 -1
  32. package/fesm2022/{acorex-platform-module-workflow-management-client-index-CttfExOC.mjs → acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs} +3 -3
  33. package/fesm2022/{acorex-platform-module-workflow-management-client-index-CttfExOC.mjs.map → acorex-platform-module-workflow-management-client-index-BKMDbQ8Z.mjs.map} +1 -1
  34. package/fesm2022/{acorex-platform-module-workflow-management-client-index-DKZTLui4.mjs → acorex-platform-module-workflow-management-client-index-C3pkrctS.mjs} +2 -4
  35. package/fesm2022/acorex-platform-module-workflow-management-client-index-C3pkrctS.mjs.map +1 -0
  36. package/fesm2022/acorex-platform-module-workflow-management-client-index-C8nsbDAw.mjs.map +1 -1
  37. package/fesm2022/acorex-platform-module-workflow-management-client-local-entities.mjs +33 -0
  38. package/fesm2022/acorex-platform-module-workflow-management-client-local-entities.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-workflow-management-client-save-workflow-definition-activities.command-spFF77AO.mjs.map +1 -1
  40. package/fesm2022/acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-CMVZYS4y.mjs.map +1 -1
  41. package/fesm2022/acorex-platform-module-workflow-management-client-workflow-configurator-widget-column.component-D0E2zjIA.mjs.map +1 -1
  42. package/fesm2022/acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-CVTeOv-q.mjs.map +1 -1
  43. package/fesm2022/acorex-platform-module-workflow-management-client-workflow-live-dashboard.queries--9NtYkau.mjs.map +1 -1
  44. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-BWOyivC5.mjs → acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-DbeueT-X.mjs} +3 -3
  45. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-BWOyivC5.mjs.map → acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-DbeueT-X.mjs.map} +1 -1
  46. package/fesm2022/acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-AnJ-Pywf.mjs.map +1 -1
  47. package/fesm2022/acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-Bw68Jwcb.mjs.map +1 -1
  48. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-task-popover.component-Cg4gODGo.mjs → acorex-platform-module-workflow-management-client-workflow-task-popover.component-Y9rWe3O6.mjs} +3 -3
  49. package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-task-popover.component-Cg4gODGo.mjs.map → acorex-platform-module-workflow-management-client-workflow-task-popover.component-Y9rWe3O6.mjs.map} +1 -1
  50. package/fesm2022/acorex-platform-module-workflow-management-client.mjs +1 -1
  51. package/package.json +30 -2
  52. package/types/acorex-platform-module-workflow-management-client-contracts-entities-activity-category.d.ts +6 -0
  53. package/types/acorex-platform-module-workflow-management-client-contracts-entities-activity-definition.d.ts +5 -0
  54. package/types/acorex-platform-module-workflow-management-client-contracts-entities-automation.d.ts +5 -0
  55. package/types/acorex-platform-module-workflow-management-client-contracts-entities-workflow-definition.d.ts +5 -0
  56. package/types/acorex-platform-module-workflow-management-client-contracts-entities-workflow-instance.d.ts +5 -0
  57. package/types/acorex-platform-module-workflow-management-client-contracts-entity-catalog.d.ts +10 -0
  58. package/types/acorex-platform-module-workflow-management-client-local-entities.d.ts +12 -0
  59. package/fesm2022/acorex-platform-module-workflow-management-client-index-DKZTLui4.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-DbJeeZpQ.mjs","sources":["../../../../libs/modules/workflow-management/contracts/src/entities/automation/automation.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityDetailsCrudActions, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function factoryAutomation(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.automation.name,\n title: RootConfig.entities.automation.title,\n icon: RootConfig.entities.automation.icon,\n plugins: [\n { name: 'history' },\n { name: 'audit-info' },\n {\n name: 'unique-fields',\n options: { fields: 'name', scope: 'parent', parentField: 'refId' },\n },\n ],\n formats: {\n individual: RootConfig.entities.automation.title,\n plural: RootConfig.entities.automation.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ context.eval(\"refType\") + \" (\" + context.eval(\"refId\") + \")\" }}',\n },\n },\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n { id: 'condition', title: '@workflow-management:automations.entities.automation.groups.condition' },\n { id: 'command', title: '@workflow-management:automations.entities.automation.groups.command' },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'refType',\n title: '@workflow-management:automations.entities.automation.fields.ref-type.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder:\n '@workflow-management:automations.entities.automation.fields.ref-type.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'refId',\n title: '@workflow-management:automations.entities.automation.fields.ref-id.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder:\n '@workflow-management:automations.entities.automation.fields.ref-id.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'name',\n title: '@workflow-management:automations.entities.automation.fields.name.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder:\n '@workflow-management:automations.entities.automation.fields.name.placeholder',\n },\n },\n },\n validations: [\n { rule: 'required' },\n { rule: 'variable-name' },\n ],\n },\n {\n name: 'title',\n title: '@workflow-management:automations.entities.automation.fields.title.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder:\n '@workflow-management:automations.entities.automation.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@workflow-management:automations.entities.automation.fields.description.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder:\n '@workflow-management:automations.entities.automation.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'condition',\n title: '@workflow-management:automations.entities.automation.fields.condition.title',\n groupId: 'condition',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: false }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsList.ExpressionBuilders.ConditionBuilder,\n options: {\n filterDefinitions:\n \"{{ automation.rules(context.eval('refType'), context.eval('refId')) }}\",\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'command',\n title: '@workflow-management:automations.entities.automation.fields.command.title',\n groupId: 'command',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsList.Editors.ActivityCommandConfigurator,\n options: {},\n },\n },\n validations: [{ rule: 'required' }],\n },\n ],\n columns: [{ name: 'name' }, { name: 'title' }, { name: 'description' }, { name: 'command' }],\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'condition', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'command', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'refType', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'refId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n {\n name: 'condition',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n {\n name: 'command',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n ],\n },\n update: {\n sections: [\n { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'condition', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'command', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'refType', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'refId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n {\n name: 'condition',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n {\n name: 'command',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'condition', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'command', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'refType', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'refId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n {\n name: 'condition',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n {\n name: 'command',\n layout: {\n label: { visible: false },\n positions: { lg: { colSpan: 12 } },\n },\n },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,iBAAiB,GAAA;AACrC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI;AACzC,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK;AAC3C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI;AACzC,QAAA,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,YAAY,EAAE;AACtB,YAAA;AACE,gBAAA,IAAI,EAAE,eAAe;AACrB,gBAAA,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE;AACnE,aAAA;AACF,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK;AAChD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,WAAW;AAClD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AAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAChE,wBAAA,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACvE,wBAAA;AACE,4BAAA,IAAI,EAAE,WAAW;AACjB,4BAAA,MAAM,EAAE;AACN,gCAAA,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;gCACzB,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;AACnC,6BAAA;AACF,yBAAA;AACD,wBAAA;AACE,4BAAA,IAAI,EAAE,SAAS;AACf,4BAAA,MAAM,EAAE;AACN,gCAAA,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;gCACzB,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;AACnC,6BAAA;AACF,yBAAA;AACF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
@@ -0,0 +1,314 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, AXPEntityCommandScope, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-DKDogTU7.mjs';
4
+
5
+ /** Registry key for the workflow definition Activities custom page (linear graph editor). */
6
+ const WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY = 'workflow-definition-activities-page';
7
+
8
+ async function factoryWorkflowDefinition() {
9
+ const entityDef = {
10
+ module: RootConfig.module.name,
11
+ name: RootConfig.entities.workflowDefinition.name,
12
+ title: RootConfig.entities.workflowDefinition.title,
13
+ icon: RootConfig.entities.workflowDefinition.icon,
14
+ formats: {
15
+ individual: RootConfig.entities.workflowDefinition.title,
16
+ plural: RootConfig.entities.workflowDefinition.titlePlural,
17
+ searchResult: {
18
+ title: '{{ title || name }}',
19
+ description: '{{ description }}',
20
+ },
21
+ },
22
+ plugins: [
23
+ { name: 'history' },
24
+ { name: 'catalog-scope' },
25
+ { name: 'lock' },
26
+ { name: 'archive' },
27
+ { name: 'category' },
28
+ {
29
+ name: 'status',
30
+ options: {
31
+ definition: 'workflow-management.status.workflow-definition',
32
+ field: 'statusId',
33
+ generate: { views: { enabled: true } },
34
+ },
35
+ },
36
+ ],
37
+ pages: [
38
+ {
39
+ componentKey: WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY,
40
+ field: 'graph',
41
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.pages.activities.title',
42
+ icon: 'fa-light fa-list-ol',
43
+ layout: { order: 1, position: 'after' },
44
+ },
45
+ ],
46
+ groups: [
47
+ {
48
+ id: 'basicInfo',
49
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.groups.basic-info',
50
+ },
51
+ ],
52
+ properties: [
53
+ {
54
+ name: 'id',
55
+ title: 'ID',
56
+ groupId: 'basicInfo',
57
+ schema: {
58
+ dataType: 'uuid',
59
+ visible: false,
60
+ nullable: false,
61
+ readonly: true,
62
+ unique: { enabled: true },
63
+ },
64
+ },
65
+ {
66
+ name: 'name',
67
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.name.title',
68
+ groupId: 'basicInfo',
69
+ schema: {
70
+ dataType: 'string',
71
+ readonly: '{{context.id}}',
72
+ interface: {
73
+ type: AXPWidgetsCatalog.text,
74
+ options: {
75
+ placeholder: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.name.placeholder',
76
+ },
77
+ },
78
+ },
79
+ options: {
80
+ sort: { enabled: true },
81
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
82
+ },
83
+ validations: [{ rule: 'required' }, { rule: 'unique' }],
84
+ },
85
+ {
86
+ name: 'title',
87
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.title.title',
88
+ groupId: 'basicInfo',
89
+ schema: {
90
+ dataType: 'string',
91
+ interface: {
92
+ type: AXPWidgetsCatalog.text,
93
+ options: {
94
+ multiLanguage: true,
95
+ placeholder: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.title.placeholder',
96
+ },
97
+ },
98
+ },
99
+ options: {
100
+ sort: { enabled: true },
101
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
102
+ },
103
+ },
104
+ {
105
+ name: 'description',
106
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.description.title',
107
+ groupId: 'basicInfo',
108
+ schema: {
109
+ dataType: 'string',
110
+ interface: {
111
+ type: AXPWidgetsCatalog.largeText,
112
+ options: {
113
+ rows: 3,
114
+ multiLanguage: true,
115
+ placeholder: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.description.placeholder',
116
+ },
117
+ },
118
+ },
119
+ },
120
+ {
121
+ name: 'version',
122
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.version.title',
123
+ groupId: 'basicInfo',
124
+ schema: {
125
+ dataType: 'number',
126
+ visible: false,
127
+ interface: {
128
+ type: AXPWidgetsCatalog.number,
129
+ },
130
+ readonly: true,
131
+ },
132
+ },
133
+ {
134
+ name: 'isLatest',
135
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.is-latest.title',
136
+ groupId: 'basicInfo',
137
+ schema: {
138
+ dataType: 'boolean',
139
+ visible: false,
140
+ interface: {
141
+ type: AXPWidgetsCatalog.toggle,
142
+ },
143
+ readonly: true,
144
+ },
145
+ },
146
+ {
147
+ name: 'createdAt',
148
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.created-at.title',
149
+ groupId: 'basicInfo',
150
+ schema: {
151
+ dataType: 'date',
152
+ visible: false,
153
+ interface: {
154
+ type: AXPWidgetsCatalog.dateTime,
155
+ },
156
+ readonly: true,
157
+ },
158
+ options: {
159
+ sort: { enabled: true },
160
+ filter: { advance: { enabled: true } },
161
+ },
162
+ },
163
+ {
164
+ name: 'schemaVersion',
165
+ title: 'Schema version',
166
+ groupId: 'basicInfo',
167
+ schema: {
168
+ dataType: 'string',
169
+ visible: false,
170
+ nullable: true,
171
+ },
172
+ },
173
+ {
174
+ name: 'graph',
175
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.graph.title',
176
+ groupId: 'basicInfo',
177
+ schema: {
178
+ dataType: 'object',
179
+ visible: false,
180
+ nullable: true,
181
+ },
182
+ },
183
+ {
184
+ name: 'variables',
185
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.variables.title',
186
+ groupId: 'basicInfo',
187
+ schema: {
188
+ dataType: 'array',
189
+ visible: false,
190
+ nullable: true,
191
+ },
192
+ },
193
+ {
194
+ name: 'inputs',
195
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.workflow-inputs.title',
196
+ groupId: 'basicInfo',
197
+ schema: {
198
+ dataType: 'array',
199
+ visible: false,
200
+ nullable: true,
201
+ },
202
+ },
203
+ {
204
+ name: 'outputs',
205
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.outputs.title',
206
+ groupId: 'basicInfo',
207
+ schema: {
208
+ dataType: 'array',
209
+ visible: false,
210
+ nullable: true,
211
+ },
212
+ },
213
+ {
214
+ name: 'customProperties',
215
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.custom-properties.title',
216
+ groupId: 'basicInfo',
217
+ schema: {
218
+ dataType: 'object',
219
+ visible: false,
220
+ nullable: true,
221
+ },
222
+ },
223
+ {
224
+ name: 'extensions',
225
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.extensions.title',
226
+ groupId: 'basicInfo',
227
+ schema: {
228
+ dataType: 'object',
229
+ visible: false,
230
+ nullable: true,
231
+ },
232
+ },
233
+ {
234
+ name: 'bindings',
235
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.bindings.title',
236
+ groupId: 'basicInfo',
237
+ schema: {
238
+ dataType: 'array',
239
+ visible: false,
240
+ nullable: true,
241
+ },
242
+ },
243
+ ],
244
+ columns: [
245
+ {
246
+ name: 'title',
247
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.title.title',
248
+ showAs: { type: AXPWidgetsCatalog.text },
249
+ },
250
+ {
251
+ name: 'name',
252
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.name.title',
253
+ showAs: { type: AXPWidgetsCatalog.text },
254
+ },
255
+ ],
256
+ interfaces: {
257
+ master: {
258
+ create: {
259
+ sections: [{ id: 'basicInfo' }],
260
+ properties: [
261
+ { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
262
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
263
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
264
+ ],
265
+ },
266
+ update: {
267
+ sections: [{ id: 'basicInfo' }],
268
+ properties: [
269
+ { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
270
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
271
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
272
+ ],
273
+ },
274
+ single: {
275
+ title: '{{ title }}',
276
+ sections: [
277
+ { id: 'basicInfo', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },
278
+ ],
279
+ properties: [
280
+ { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
281
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
282
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
283
+ ],
284
+ actions: [...entityMasterRecordActions()],
285
+ },
286
+ list: {
287
+ actions: [
288
+ ...entityMasterCrudActions(),
289
+ {
290
+ title: '@workflow-management:workflow-definitions.actions.execute.title',
291
+ name: 'execute-workflow',
292
+ command: {
293
+ name: 'WorkflowManagement.WorkflowDefinition:ExecuteWithInput',
294
+ options: {
295
+ workflowId: '{{ context.eval("name") }}',
296
+ },
297
+ },
298
+ icon: 'fa-light fa-play',
299
+ color: 'success',
300
+ priority: 'primary',
301
+ type: 'execute',
302
+ scope: AXPEntityCommandScope.Individual,
303
+ },
304
+ ],
305
+ views: [createAllQueryView({ sorts: [{ name: 'createdAt', dir: 'desc' }] })],
306
+ },
307
+ },
308
+ },
309
+ };
310
+ return entityDef;
311
+ }
312
+
313
+ export { factoryWorkflowDefinition };
314
+ //# sourceMappingURL=acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-BVSAGT0z.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-BVSAGT0z.mjs","sources":["../../../../libs/modules/workflow-management/contracts/src/WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY.ts","../../../../libs/modules/workflow-management/contracts/src/entities/workflow-definition/workflow-definition.entity.ts"],"sourcesContent":["/** Registry key for the workflow definition Activities custom page (linear graph editor). */\nexport const WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY = 'workflow-definition-activities-page';\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\nimport { WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY } from '../../WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY';\n\nexport async function factoryWorkflowDefinition(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.workflowDefinition.name,\n title: RootConfig.entities.workflowDefinition.title,\n icon: RootConfig.entities.workflowDefinition.icon,\n formats: {\n individual: RootConfig.entities.workflowDefinition.title,\n plural: RootConfig.entities.workflowDefinition.titlePlural,\n searchResult: {\n title: '{{ title || name }}',\n description: '{{ description }}',\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'catalog-scope' },\n { name: 'lock' },\n { name: 'archive' },\n { name: 'category' },\n {\n name: 'status',\n options: {\n definition: 'workflow-management.status.workflow-definition',\n field: 'statusId',\n generate: { views: { enabled: true } },\n },\n },\n ],\n pages: [\n {\n componentKey: WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY,\n field: 'graph',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.pages.activities.title',\n icon: 'fa-light fa-list-ol',\n layout: { order: 1, position: 'after' },\n },\n ],\n groups: [\n {\n id: 'basicInfo',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.groups.basic-info',\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basicInfo',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'name',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.name.title',\n groupId: 'basicInfo',\n schema: {\n dataType: 'string',\n readonly: '{{context.id}}',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder:\n '@workflow-management:workflow-definitions.entities.workflow-definition.fields.name.placeholder',\n },\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n validations: [{ rule: 'required' }, { rule: 'unique' }],\n },\n {\n name: 'title',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.title.title',\n groupId: 'basicInfo',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n multiLanguage: true,\n placeholder:\n '@workflow-management:workflow-definitions.entities.workflow-definition.fields.title.placeholder',\n },\n },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n },\n {\n name: 'description',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.description.title',\n groupId: 'basicInfo',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.largeText,\n options: {\n rows: 3,\n multiLanguage: true,\n placeholder:\n '@workflow-management:workflow-definitions.entities.workflow-definition.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'version',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.version.title',\n groupId: 'basicInfo',\n schema: {\n dataType: 'number',\n visible: false,\n interface: {\n type: AXPWidgetsCatalog.number,\n },\n readonly: true,\n },\n },\n {\n name: 'isLatest',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.is-latest.title',\n groupId: 'basicInfo',\n schema: {\n dataType: 'boolean',\n visible: false,\n interface: {\n type: AXPWidgetsCatalog.toggle,\n },\n readonly: true,\n },\n },\n {\n name: 'createdAt',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.created-at.title',\n groupId: 'basicInfo',\n schema: {\n dataType: 'date',\n visible: false,\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n },\n readonly: true,\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true } },\n },\n },\n {\n name: 'schemaVersion',\n title: 'Schema version',\n groupId: 'basicInfo',\n schema: {\n dataType: 'string',\n visible: false,\n nullable: true,\n },\n },\n {\n name: 'graph',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.graph.title',\n groupId: 'basicInfo',\n schema: {\n dataType: 'object',\n visible: false,\n nullable: true,\n },\n },\n {\n name: 'variables',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.variables.title',\n groupId: 'basicInfo',\n schema: {\n dataType: 'array',\n visible: false,\n nullable: true,\n },\n },\n {\n name: 'inputs',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.workflow-inputs.title',\n groupId: 'basicInfo',\n schema: {\n dataType: 'array',\n visible: false,\n nullable: true,\n },\n },\n {\n name: 'outputs',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.outputs.title',\n groupId: 'basicInfo',\n schema: {\n dataType: 'array',\n visible: false,\n nullable: true,\n },\n },\n {\n name: 'customProperties',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.custom-properties.title',\n groupId: 'basicInfo',\n schema: {\n dataType: 'object',\n visible: false,\n nullable: true,\n },\n },\n {\n name: 'extensions',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.extensions.title',\n groupId: 'basicInfo',\n schema: {\n dataType: 'object',\n visible: false,\n nullable: true,\n },\n },\n {\n name: 'bindings',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.bindings.title',\n groupId: 'basicInfo',\n schema: {\n dataType: 'array',\n visible: false,\n nullable: true,\n },\n },\n ],\n columns: [\n {\n name: 'title',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.title.title',\n showAs: { type: AXPWidgetsCatalog.text },\n },\n {\n name: 'name',\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.fields.name.title',\n showAs: { type: AXPWidgetsCatalog.text },\n },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basicInfo' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basicInfo' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basicInfo', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [\n ...entityMasterCrudActions(),\n {\n title: '@workflow-management:workflow-definitions.actions.execute.title',\n name: 'execute-workflow',\n command: {\n name: 'WorkflowManagement.WorkflowDefinition:ExecuteWithInput',\n options: {\n workflowId: '{{ context.eval(\"name\") }}',\n },\n },\n icon: 'fa-light fa-play',\n color: 'success',\n priority: 'primary',\n type: 'execute',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [createAllQueryView({ sorts: [{ name: 'createdAt', dir: 'desc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAAA;AACO,MAAM,iDAAiD,GAAG,qCAAqC;;ACI/F,eAAe,yBAAyB,GAAA;AAC7C,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI;AACjD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK;AACnD,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI;AACjD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK;AACxD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,WAAW;AAC1D,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,qBAAqB;AAC5B,gBAAA,WAAW,EAAE,mBAAmB;AACjC,aAAA;AACF,SAAA;AACD,QAAA,OAAO,EAAE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SAAS;AAChB,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,SAAS;4BACf,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACxC,yBAAA;AACF,qBAAA;oBACD,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAC7E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;"}
@@ -0,0 +1,256 @@
1
+ import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-DKDogTU7.mjs';
4
+
5
+ /** Component key for the Workflow Instance Activity instances tab. Register via AXP_PAGE_COMPONENT_PROVIDER. */
6
+ const WORKFLOW_INSTANCE_ACTIVITY_INSTANCES_PAGE_COMPONENT_KEY = 'workflow-instance-activity-instances-page';
7
+
8
+ async function factoryWorkflowInstance() {
9
+ const entityDef = {
10
+ module: RootConfig.module.name,
11
+ name: RootConfig.entities.workflowInstance.name,
12
+ title: RootConfig.entities.workflowInstance.title,
13
+ icon: RootConfig.entities.workflowInstance.icon,
14
+ pages: [
15
+ {
16
+ componentKey: WORKFLOW_INSTANCE_ACTIVITY_INSTANCES_PAGE_COMPONENT_KEY,
17
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.pages.activity-instances.title',
18
+ icon: 'fa-light fa-list-ol',
19
+ layout: { order: 1, position: 'after' },
20
+ },
21
+ ],
22
+ formats: {
23
+ individual: RootConfig.entities.workflowInstance.title,
24
+ plural: RootConfig.entities.workflowInstance.titlePlural,
25
+ searchResult: {
26
+ title: '{{ workflowTitle || name || definitionId }}',
27
+ description: '{{ statusDisplay }}',
28
+ },
29
+ },
30
+ plugins: [{ name: 'history' }],
31
+ groups: [
32
+ {
33
+ id: 'overview',
34
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.groups.overview',
35
+ },
36
+ {
37
+ id: 'variables',
38
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.groups.variables',
39
+ },
40
+ ],
41
+ properties: [
42
+ {
43
+ name: 'id',
44
+ title: 'ID',
45
+ groupId: 'overview',
46
+ schema: {
47
+ dataType: 'uuid',
48
+ visible: false,
49
+ nullable: false,
50
+ readonly: true,
51
+ unique: { enabled: true },
52
+ },
53
+ },
54
+ {
55
+ name: 'workflowTitle',
56
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.workflow-title.title',
57
+ groupId: 'overview',
58
+ schema: {
59
+ dataType: 'string',
60
+ interface: { type: AXPWidgetsCatalog.text },
61
+ readonly: true,
62
+ },
63
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },
64
+ },
65
+ {
66
+ name: 'statusDisplay',
67
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.status-display.title',
68
+ groupId: 'overview',
69
+ schema: {
70
+ dataType: 'string',
71
+ interface: { type: AXPWidgetsCatalog.text },
72
+ readonly: true,
73
+ },
74
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },
75
+ },
76
+ {
77
+ name: 'startedAt',
78
+ title: 'Start Date',
79
+ groupId: 'overview',
80
+ schema: {
81
+ dataType: 'datetime',
82
+ interface: { type: AXPWidgetsCatalog.dateTime,
83
+ options: { format: 'datetime' },
84
+ },
85
+ readonly: true,
86
+ },
87
+ options: { filter: { advance: { enabled: true }, inline: { enabled: false } }, sort: { enabled: true } },
88
+ },
89
+ {
90
+ name: 'assignUser',
91
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.assign-user-display.title',
92
+ groupId: 'overview',
93
+ schema: {
94
+ dataType: 'object',
95
+ readonly: true,
96
+ interface: {
97
+ type: AXPWidgetsCatalog.lookup,
98
+ options: {
99
+ entity: 'SecurityManagement.User',
100
+ textField: 'displayName',
101
+ valueField: 'id',
102
+ expose: [
103
+ { source: 'id', target: 'assignUserRef.id' },
104
+ { source: 'displayName', target: 'assignUserRef.displayName' },
105
+ ],
106
+ },
107
+ },
108
+ },
109
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: false } },
110
+ },
111
+ {
112
+ name: 'currentActivityTitle',
113
+ title: 'Current Activity',
114
+ groupId: 'overview',
115
+ schema: {
116
+ dataType: 'string',
117
+ interface: { type: AXPWidgetsCatalog.text },
118
+ readonly: true,
119
+ },
120
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },
121
+ },
122
+ {
123
+ name: 'nextActivityTitle',
124
+ title: 'Next Activity',
125
+ groupId: 'overview',
126
+ schema: {
127
+ dataType: 'string',
128
+ interface: { type: AXPWidgetsCatalog.text },
129
+ readonly: true,
130
+ },
131
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },
132
+ },
133
+ {
134
+ name: 'progressPercentage',
135
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.progress-percentage.title',
136
+ groupId: 'overview',
137
+ schema: {
138
+ dataType: 'number',
139
+ interface: {
140
+ type: AXPWidgetsCatalog.progressBar,
141
+ options: { total: 100, showText: true, textFormat: 'percentage' },
142
+ },
143
+ readonly: true,
144
+ },
145
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: false } },
146
+ },
147
+ {
148
+ name: 'workflowVariablesTable',
149
+ title: '',
150
+ groupId: 'variables',
151
+ schema: {
152
+ dataType: 'array',
153
+ readonly: true,
154
+ interface: {
155
+ type: AXPWidgetsList.Advanced.DataList,
156
+ options: {
157
+ disabled: true,
158
+ paging: false,
159
+ showIndex: true,
160
+ showHeader: true,
161
+ columns: [
162
+ {
163
+ name: 'name',
164
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.workflow-variables.column-key',
165
+ width: '180px',
166
+ },
167
+ {
168
+ name: 'title',
169
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.workflow-variables.column-title',
170
+ width: '200px',
171
+ },
172
+ {
173
+ name: 'value',
174
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.workflow-variables.column-value',
175
+ },
176
+ ],
177
+ },
178
+ },
179
+ },
180
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: false } },
181
+ },
182
+ ],
183
+ columns: [
184
+ {
185
+ name: 'workflowTitle',
186
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.workflow-title.title',
187
+ showAs: { type: AXPWidgetsCatalog.text },
188
+ },
189
+ {
190
+ name: 'statusDisplay',
191
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.status-display.title',
192
+ showAs: { type: AXPWidgetsCatalog.text },
193
+ options: { width: '180px' },
194
+ },
195
+ {
196
+ name: 'startedAt',
197
+ title: 'Start Date',
198
+ showAs: { type: AXPWidgetsCatalog.text },
199
+ options: { width: '170px' },
200
+ },
201
+ {
202
+ name: 'assignUser',
203
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.assign-user-display.title',
204
+ options: { width: '220px', dataPath: 'assignUserRef.displayName' },
205
+ },
206
+ {
207
+ name: 'currentActivityTitle',
208
+ title: 'Current Activity',
209
+ showAs: { type: AXPWidgetsCatalog.text },
210
+ // options: { width: '220px' },
211
+ },
212
+ {
213
+ name: 'progressPercentage',
214
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.progress-percentage.title',
215
+ showAs: { type: AXPWidgetsCatalog.progressBar },
216
+ options: { width: '140px' },
217
+ },
218
+ {
219
+ name: 'nextActivityTitle',
220
+ title: 'Next Activity',
221
+ showAs: { type: AXPWidgetsCatalog.text },
222
+ // options: { width: '220px' },
223
+ },
224
+ ],
225
+ interfaces: {
226
+ master: {
227
+ single: {
228
+ title: '{{ workflowTitle || name || definitionId }}',
229
+ sections: [
230
+ { id: 'overview', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },
231
+ { id: 'variables', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
232
+ ],
233
+ properties: [
234
+ { name: 'workflowTitle', layout: { positions: { lg: { colSpan: 12 } } } },
235
+ { name: 'statusDisplay', layout: { positions: { lg: { colSpan: 12 } } } },
236
+ { name: 'startedAt', layout: { positions: { lg: { colSpan: 12 } } } },
237
+ { name: 'assignUser', layout: { positions: { lg: { colSpan: 12 } } } },
238
+ { name: 'currentActivityTitle', layout: { positions: { lg: { colSpan: 12 } } } },
239
+ { name: 'nextActivityTitle', layout: { positions: { lg: { colSpan: 12 } } } },
240
+ { name: 'progressPercentage', layout: { positions: { lg: { colSpan: 12 } } } },
241
+ { name: 'workflowVariablesTable', layout: { positions: { lg: { colSpan: 12 } } } },
242
+ ],
243
+ actions: [...entityMasterRecordActions()],
244
+ },
245
+ list: {
246
+ actions: [...entityMasterCrudActions()],
247
+ views: [createAllQueryView({ sorts: [{ name: 'createdAt', dir: 'desc' }] })],
248
+ },
249
+ },
250
+ },
251
+ };
252
+ return entityDef;
253
+ }
254
+
255
+ export { factoryWorkflowInstance };
256
+ //# sourceMappingURL=acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-BEA4WQX2.mjs.map