@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,336 @@
1
+ import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'workflow-management',
6
+ module: 'WorkflowManagement',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ route: 'workflow-management',
12
+ name: config.module,
13
+ title: '@workflow-management:module.title',
14
+ icon: 'fa-light fa-diagram-project',
15
+ },
16
+ /** Task-board suspend activity type ids (match activity definition keys). */
17
+ activities: {
18
+ humanTask: 'workflow-activity:human-task',
19
+ cartable: 'workflow-activity:cartable',
20
+ },
21
+ entities: {
22
+ workflowDefinition: {
23
+ name: 'WorkflowDefinition',
24
+ fullName: `${config.module}.WorkflowDefinition`,
25
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.title',
26
+ titlePlural: '@workflow-management:workflow-definitions.entities.workflow-definition.plural',
27
+ icon: 'fa-light fa-diagram-project',
28
+ },
29
+ workflowInstance: {
30
+ name: 'WorkflowInstance',
31
+ fullName: `${config.module}.WorkflowInstance`,
32
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.title',
33
+ titlePlural: '@workflow-management:workflow-instances.entities.workflow-instance.plural',
34
+ icon: 'fa-light fa-play-circle',
35
+ },
36
+ activityDefinition: {
37
+ name: 'ActivityDefinition',
38
+ fullName: `${config.module}.ActivityDefinition`,
39
+ title: '@workflow-management:activities.entities.activity-definition.title',
40
+ titlePlural: '@workflow-management:activities.entities.activity-definition.plural',
41
+ icon: 'fa-light fa-puzzle-piece',
42
+ },
43
+ automation: {
44
+ name: 'Automation',
45
+ fullName: `${config.module}.Automation`,
46
+ title: '@workflow-management:automations.entities.automation.title',
47
+ titlePlural: '@workflow-management:automations.entities.automation.plural',
48
+ icon: 'fa-light fa-bolt',
49
+ },
50
+ },
51
+ /**
52
+ * Live dashboard queries bound to base DashboardManagement chart/KPI widgets.
53
+ * Keys: `{module}:Dashboard:{Name}`.
54
+ */
55
+ queries: {
56
+ dashboard: {
57
+ definitionsKpi: `${config.module}:Dashboard:DefinitionsKpi`,
58
+ activitiesKpi: `${config.module}:Dashboard:ActivitiesKpi`,
59
+ definitionsByStatusBar: `${config.module}:Dashboard:DefinitionsByStatusBar`,
60
+ activitiesByCategoryDonut: `${config.module}:Dashboard:ActivitiesByCategoryDonut`,
61
+ publishedDefinitionsGauge: `${config.module}:Dashboard:PublishedDefinitionsGauge`,
62
+ /** @deprecated Prefer {@link runningInstancesKpi} for runtime ops dashboards. */
63
+ workflowDefinitionsKpi: `${config.module}:Dashboard:WorkflowDefinitionsKpi`,
64
+ /** @deprecated Prefer {@link instancesBySubStatusDonut} for runtime ops dashboards. */
65
+ workflowsByStatusBar: `${config.module}:Dashboard:WorkflowsByStatusBar`,
66
+ runningInstancesKpi: `${config.module}:Dashboard:RunningInstancesKpi`,
67
+ faultedInstancesKpi: `${config.module}:Dashboard:FaultedInstancesKpi`,
68
+ awaitingActionInstancesKpi: `${config.module}:Dashboard:AwaitingActionInstancesKpi`,
69
+ startedTodayInstancesKpi: `${config.module}:Dashboard:StartedTodayInstancesKpi`,
70
+ completedTodayInstancesKpi: `${config.module}:Dashboard:CompletedTodayInstancesKpi`,
71
+ avgRunningAgeHoursKpi: `${config.module}:Dashboard:AvgRunningAgeHoursKpi`,
72
+ instancesBySubStatusDonut: `${config.module}:Dashboard:InstancesBySubStatusDonut`,
73
+ instancesByDefinitionBar: `${config.module}:Dashboard:InstancesByDefinitionBar`,
74
+ instancesThroughputLine: `${config.module}:Dashboard:InstancesThroughputLine`,
75
+ instancesByCurrentActivityBar: `${config.module}:Dashboard:InstancesByCurrentActivityBar`,
76
+ instancesFaultHeatmap: `${config.module}:Dashboard:InstancesFaultHeatmap`,
77
+ },
78
+ },
79
+ };
80
+
81
+ /** Component key for the Workflow Instance Activity instances tab. Register via AXP_PAGE_COMPONENT_PROVIDER. */
82
+ const WORKFLOW_INSTANCE_ACTIVITY_INSTANCES_PAGE_COMPONENT_KEY = 'workflow-instance-activity-instances-page';
83
+
84
+ async function factoryWorkflowInstance() {
85
+ const entityDef = {
86
+ module: RootConfig.module.name,
87
+ name: RootConfig.entities.workflowInstance.name,
88
+ title: RootConfig.entities.workflowInstance.title,
89
+ icon: RootConfig.entities.workflowInstance.icon,
90
+ pages: [
91
+ {
92
+ componentKey: WORKFLOW_INSTANCE_ACTIVITY_INSTANCES_PAGE_COMPONENT_KEY,
93
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.pages.activity-instances.title',
94
+ icon: 'fa-light fa-list-ol',
95
+ layout: { order: 1, position: 'after' },
96
+ },
97
+ ],
98
+ formats: {
99
+ individual: RootConfig.entities.workflowInstance.title,
100
+ plural: RootConfig.entities.workflowInstance.titlePlural,
101
+ searchResult: {
102
+ title: '{{ workflowTitle || name || definitionId }}',
103
+ description: '{{ statusDisplay }}',
104
+ },
105
+ },
106
+ plugins: [{ name: 'history' }],
107
+ groups: [
108
+ {
109
+ id: 'overview',
110
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.groups.overview',
111
+ },
112
+ {
113
+ id: 'variables',
114
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.groups.variables',
115
+ },
116
+ ],
117
+ properties: [
118
+ {
119
+ name: 'id',
120
+ title: 'ID',
121
+ groupId: 'overview',
122
+ schema: {
123
+ dataType: 'uuid',
124
+ visible: false,
125
+ nullable: false,
126
+ readonly: true,
127
+ unique: { enabled: true },
128
+ },
129
+ },
130
+ {
131
+ name: 'workflowTitle',
132
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.workflow-title.title',
133
+ groupId: 'overview',
134
+ schema: {
135
+ dataType: 'string',
136
+ interface: { type: AXPWidgetsCatalog.text },
137
+ readonly: true,
138
+ },
139
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },
140
+ },
141
+ {
142
+ name: 'statusDisplay',
143
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.status-display.title',
144
+ groupId: 'overview',
145
+ schema: {
146
+ dataType: 'string',
147
+ interface: { type: AXPWidgetsCatalog.text },
148
+ readonly: true,
149
+ },
150
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },
151
+ },
152
+ {
153
+ name: 'startedAt',
154
+ title: 'Start Date',
155
+ groupId: 'overview',
156
+ schema: {
157
+ dataType: 'datetime',
158
+ interface: { type: AXPWidgetsCatalog.dateTime,
159
+ options: { format: 'datetime' },
160
+ },
161
+ readonly: true,
162
+ },
163
+ options: { filter: { advance: { enabled: true }, inline: { enabled: false } }, sort: { enabled: true } },
164
+ },
165
+ {
166
+ name: 'assignUser',
167
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.assign-user-display.title',
168
+ groupId: 'overview',
169
+ schema: {
170
+ dataType: 'object',
171
+ readonly: true,
172
+ interface: {
173
+ type: AXPWidgetsCatalog.lookup,
174
+ options: {
175
+ entity: 'SecurityManagement.User',
176
+ textField: 'displayName',
177
+ valueField: 'id',
178
+ expose: [
179
+ { source: 'id', target: 'assignUserRef.id' },
180
+ { source: 'displayName', target: 'assignUserRef.displayName' },
181
+ ],
182
+ },
183
+ },
184
+ },
185
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: false } },
186
+ },
187
+ {
188
+ name: 'currentActivityTitle',
189
+ title: 'Current Activity',
190
+ groupId: 'overview',
191
+ schema: {
192
+ dataType: 'string',
193
+ interface: { type: AXPWidgetsCatalog.text },
194
+ readonly: true,
195
+ },
196
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },
197
+ },
198
+ {
199
+ name: 'nextActivityTitle',
200
+ title: 'Next Activity',
201
+ groupId: 'overview',
202
+ schema: {
203
+ dataType: 'string',
204
+ interface: { type: AXPWidgetsCatalog.text },
205
+ readonly: true,
206
+ },
207
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },
208
+ },
209
+ {
210
+ name: 'progressPercentage',
211
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.progress-percentage.title',
212
+ groupId: 'overview',
213
+ schema: {
214
+ dataType: 'number',
215
+ interface: {
216
+ type: AXPWidgetsCatalog.progressBar,
217
+ options: { total: 100, showText: true, textFormat: 'percentage' },
218
+ },
219
+ readonly: true,
220
+ },
221
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: false } },
222
+ },
223
+ {
224
+ name: 'workflowVariablesTable',
225
+ title: '',
226
+ groupId: 'variables',
227
+ schema: {
228
+ dataType: 'array',
229
+ readonly: true,
230
+ interface: {
231
+ type: AXPWidgetsList.Advanced.DataList,
232
+ options: {
233
+ disabled: true,
234
+ paging: false,
235
+ showIndex: true,
236
+ showHeader: true,
237
+ columns: [
238
+ {
239
+ name: 'name',
240
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.workflow-variables.column-key',
241
+ width: '180px',
242
+ },
243
+ {
244
+ name: 'title',
245
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.workflow-variables.column-title',
246
+ width: '200px',
247
+ },
248
+ {
249
+ name: 'value',
250
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.workflow-variables.column-value',
251
+ },
252
+ ],
253
+ },
254
+ },
255
+ },
256
+ options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: false } },
257
+ },
258
+ ],
259
+ columns: [
260
+ {
261
+ name: 'workflowTitle',
262
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.workflow-title.title',
263
+ showAs: { type: AXPWidgetsCatalog.text },
264
+ },
265
+ {
266
+ name: 'statusDisplay',
267
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.status-display.title',
268
+ showAs: { type: AXPWidgetsCatalog.text },
269
+ options: { width: '180px' },
270
+ },
271
+ {
272
+ name: 'startedAt',
273
+ title: 'Start Date',
274
+ showAs: { type: AXPWidgetsCatalog.text },
275
+ options: { width: '170px' },
276
+ },
277
+ {
278
+ name: 'assignUser',
279
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.assign-user-display.title',
280
+ options: { width: '220px', dataPath: 'assignUserRef.displayName' },
281
+ },
282
+ {
283
+ name: 'currentActivityTitle',
284
+ title: 'Current Activity',
285
+ showAs: { type: AXPWidgetsCatalog.text },
286
+ // options: { width: '220px' },
287
+ },
288
+ {
289
+ name: 'progressPercentage',
290
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.progress-percentage.title',
291
+ showAs: { type: AXPWidgetsCatalog.progressBar },
292
+ options: { width: '140px' },
293
+ },
294
+ {
295
+ name: 'nextActivityTitle',
296
+ title: 'Next Activity',
297
+ showAs: { type: AXPWidgetsCatalog.text },
298
+ // options: { width: '220px' },
299
+ },
300
+ ],
301
+ interfaces: {
302
+ master: {
303
+ single: {
304
+ title: '{{ workflowTitle || name || definitionId }}',
305
+ sections: [
306
+ { id: 'overview', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },
307
+ { id: 'variables', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
308
+ ],
309
+ properties: [
310
+ { name: 'workflowTitle', layout: { positions: { lg: { colSpan: 12 } } } },
311
+ { name: 'statusDisplay', layout: { positions: { lg: { colSpan: 12 } } } },
312
+ { name: 'startedAt', layout: { positions: { lg: { colSpan: 12 } } } },
313
+ { name: 'assignUser', layout: { positions: { lg: { colSpan: 12 } } } },
314
+ { name: 'currentActivityTitle', layout: { positions: { lg: { colSpan: 12 } } } },
315
+ { name: 'nextActivityTitle', layout: { positions: { lg: { colSpan: 12 } } } },
316
+ { name: 'progressPercentage', layout: { positions: { lg: { colSpan: 12 } } } },
317
+ { name: 'workflowVariablesTable', layout: { positions: { lg: { colSpan: 12 } } } },
318
+ ],
319
+ actions: [...entityMasterRecordActions()],
320
+ },
321
+ list: {
322
+ actions: [...entityMasterCrudActions()],
323
+ views: [createAllQueryView({ sorts: [{ name: 'createdAt', dir: 'desc' }] })],
324
+ },
325
+ },
326
+ },
327
+ };
328
+ return entityDef;
329
+ }
330
+
331
+ /**
332
+ * Generated bundle index. Do not edit.
333
+ */
334
+
335
+ export { factoryWorkflowInstance };
336
+ //# sourceMappingURL=acorex-platform-module-workflow-management-client-contracts-entities-workflow-instance.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-workflow-management-client-contracts-entities-workflow-instance.mjs","sources":["../../../../libs/modules/workflow-management/contracts/src/root-config.ts","../../../../libs/modules/workflow-management/contracts/src/WORKFLOW_INSTANCE_ACTIVITY_INSTANCES_PAGE_COMPONENT_KEY.ts","../../../../libs/modules/workflow-management/contracts/src/entities/workflow-instance/workflow-instance.entity.ts","../../../../libs/modules/workflow-management/contracts/src/acorex-platform-module-workflow-management-client-contracts-entities-workflow-instance.ts"],"sourcesContent":["const config = {\n i18n: 'workflow-management',\n module: 'WorkflowManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'workflow-management',\n name: config.module,\n title: '@workflow-management:module.title',\n icon: 'fa-light fa-diagram-project',\n },\n /** Task-board suspend activity type ids (match activity definition keys). */\n activities: {\n humanTask: 'workflow-activity:human-task',\n cartable: 'workflow-activity:cartable',\n },\n entities: {\n workflowDefinition: {\n name: 'WorkflowDefinition',\n fullName: `${config.module}.WorkflowDefinition`,\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.title',\n titlePlural: '@workflow-management:workflow-definitions.entities.workflow-definition.plural',\n icon: 'fa-light fa-diagram-project',\n },\n workflowInstance: {\n name: 'WorkflowInstance',\n fullName: `${config.module}.WorkflowInstance`,\n title: '@workflow-management:workflow-instances.entities.workflow-instance.title',\n titlePlural: '@workflow-management:workflow-instances.entities.workflow-instance.plural',\n icon: 'fa-light fa-play-circle',\n },\n activityDefinition: {\n name: 'ActivityDefinition',\n fullName: `${config.module}.ActivityDefinition`,\n title: '@workflow-management:activities.entities.activity-definition.title',\n titlePlural: '@workflow-management:activities.entities.activity-definition.plural',\n icon: 'fa-light fa-puzzle-piece',\n },\n automation: {\n name: 'Automation',\n fullName: `${config.module}.Automation`,\n title: '@workflow-management:automations.entities.automation.title',\n titlePlural: '@workflow-management:automations.entities.automation.plural',\n icon: 'fa-light fa-bolt',\n },\n },\n /**\n * Live dashboard queries bound to base DashboardManagement chart/KPI widgets.\n * Keys: `{module}:Dashboard:{Name}`.\n */\n queries: {\n dashboard: {\n definitionsKpi: `${config.module}:Dashboard:DefinitionsKpi`,\n activitiesKpi: `${config.module}:Dashboard:ActivitiesKpi`,\n definitionsByStatusBar: `${config.module}:Dashboard:DefinitionsByStatusBar`,\n activitiesByCategoryDonut: `${config.module}:Dashboard:ActivitiesByCategoryDonut`,\n publishedDefinitionsGauge: `${config.module}:Dashboard:PublishedDefinitionsGauge`,\n /** @deprecated Prefer {@link runningInstancesKpi} for runtime ops dashboards. */\n workflowDefinitionsKpi: `${config.module}:Dashboard:WorkflowDefinitionsKpi`,\n /** @deprecated Prefer {@link instancesBySubStatusDonut} for runtime ops dashboards. */\n workflowsByStatusBar: `${config.module}:Dashboard:WorkflowsByStatusBar`,\n runningInstancesKpi: `${config.module}:Dashboard:RunningInstancesKpi`,\n faultedInstancesKpi: `${config.module}:Dashboard:FaultedInstancesKpi`,\n awaitingActionInstancesKpi: `${config.module}:Dashboard:AwaitingActionInstancesKpi`,\n startedTodayInstancesKpi: `${config.module}:Dashboard:StartedTodayInstancesKpi`,\n completedTodayInstancesKpi: `${config.module}:Dashboard:CompletedTodayInstancesKpi`,\n avgRunningAgeHoursKpi: `${config.module}:Dashboard:AvgRunningAgeHoursKpi`,\n instancesBySubStatusDonut: `${config.module}:Dashboard:InstancesBySubStatusDonut`,\n instancesByDefinitionBar: `${config.module}:Dashboard:InstancesByDefinitionBar`,\n instancesThroughputLine: `${config.module}:Dashboard:InstancesThroughputLine`,\n instancesByCurrentActivityBar: `${config.module}:Dashboard:InstancesByCurrentActivityBar`,\n instancesFaultHeatmap: `${config.module}:Dashboard:InstancesFaultHeatmap`,\n },\n },\n} as const;\n","/** Component key for the Workflow Instance Activity instances tab. Register via AXP_PAGE_COMPONENT_PROVIDER. */\nexport const WORKFLOW_INSTANCE_ACTIVITY_INSTANCES_PAGE_COMPONENT_KEY =\n 'workflow-instance-activity-instances-page';\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\nimport { WORKFLOW_INSTANCE_ACTIVITY_INSTANCES_PAGE_COMPONENT_KEY } from '../../WORKFLOW_INSTANCE_ACTIVITY_INSTANCES_PAGE_COMPONENT_KEY';\n\nexport async function factoryWorkflowInstance(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.workflowInstance.name,\n title: RootConfig.entities.workflowInstance.title,\n icon: RootConfig.entities.workflowInstance.icon,\n pages: [\n {\n componentKey: WORKFLOW_INSTANCE_ACTIVITY_INSTANCES_PAGE_COMPONENT_KEY,\n title: '@workflow-management:workflow-instances.entities.workflow-instance.pages.activity-instances.title',\n icon: 'fa-light fa-list-ol',\n layout: { order: 1, position: 'after' },\n },\n ],\n formats: {\n individual: RootConfig.entities.workflowInstance.title,\n plural: RootConfig.entities.workflowInstance.titlePlural,\n searchResult: {\n title: '{{ workflowTitle || name || definitionId }}',\n description: '{{ statusDisplay }}',\n },\n },\n plugins: [{ name: 'history' }],\n groups: [\n {\n id: 'overview',\n title: '@workflow-management:workflow-instances.entities.workflow-instance.groups.overview',\n },\n {\n id: 'variables',\n title: '@workflow-management:workflow-instances.entities.workflow-instance.groups.variables',\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'overview',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'workflowTitle',\n title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.workflow-title.title',\n groupId: 'overview',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n readonly: true,\n },\n options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },\n },\n {\n name: 'statusDisplay',\n title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.status-display.title',\n groupId: 'overview',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n readonly: true,\n },\n options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },\n },\n {\n name: 'startedAt',\n title: 'Start Date',\n groupId: 'overview',\n schema: {\n dataType: 'datetime',\n interface: { type: AXPWidgetsCatalog.dateTime ,\n options: { format: 'datetime' },\n },\n readonly: true,\n },\n options: { filter: { advance: { enabled: true }, inline: { enabled: false } }, sort: { enabled: true } },\n },\n {\n name: 'assignUser',\n title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.assign-user-display.title',\n groupId: 'overview',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: 'SecurityManagement.User',\n textField: 'displayName',\n valueField: 'id',\n expose: [\n { source: 'id', target: 'assignUserRef.id' },\n { source: 'displayName', target: 'assignUserRef.displayName' },\n ],\n },\n },\n },\n options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: false } },\n },\n {\n name: 'currentActivityTitle',\n title: 'Current Activity',\n groupId: 'overview',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n readonly: true,\n },\n options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },\n },\n {\n name: 'nextActivityTitle',\n title: 'Next Activity',\n groupId: 'overview',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n readonly: true,\n },\n options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: true } },\n },\n {\n name: 'progressPercentage',\n title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.progress-percentage.title',\n groupId: 'overview',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsCatalog.progressBar,\n options: { total: 100, showText: true, textFormat: 'percentage' },\n },\n readonly: true,\n },\n options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: false } },\n },\n {\n name: 'workflowVariablesTable',\n title: '',\n groupId: 'variables',\n schema: {\n dataType: 'array',\n readonly: true,\n interface: {\n type: AXPWidgetsList.Advanced.DataList,\n options: {\n disabled: true,\n paging: false,\n showIndex: true,\n showHeader: true,\n columns: [\n {\n name: 'name',\n title:\n '@workflow-management:workflow-instances.entities.workflow-instance.fields.workflow-variables.column-key',\n width: '180px',\n },\n {\n name: 'title',\n title:\n '@workflow-management:workflow-instances.entities.workflow-instance.fields.workflow-variables.column-title',\n width: '200px',\n },\n {\n name: 'value',\n title:\n '@workflow-management:workflow-instances.entities.workflow-instance.fields.workflow-variables.column-value',\n },\n ],\n },\n },\n },\n options: { filter: { advance: { enabled: false }, inline: { enabled: false } }, sort: { enabled: false } },\n },\n ],\n columns: [\n {\n name: 'workflowTitle',\n title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.workflow-title.title',\n showAs: { type: AXPWidgetsCatalog.text },\n },\n {\n name: 'statusDisplay',\n title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.status-display.title',\n showAs: { type: AXPWidgetsCatalog.text },\n options: { width: '180px' },\n },\n {\n name: 'startedAt',\n title: 'Start Date',\n showAs: { type: AXPWidgetsCatalog.text },\n options: { width: '170px' },\n },\n {\n name: 'assignUser',\n title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.assign-user-display.title',\n options: { width: '220px', dataPath: 'assignUserRef.displayName' },\n },\n {\n name: 'currentActivityTitle',\n title: 'Current Activity',\n showAs: { type: AXPWidgetsCatalog.text },\n // options: { width: '220px' },\n },\n {\n name: 'progressPercentage',\n title: '@workflow-management:workflow-instances.entities.workflow-instance.fields.progress-percentage.title',\n showAs: { type: AXPWidgetsCatalog.progressBar },\n options: { width: '140px' },\n },\n {\n name: 'nextActivityTitle',\n title: 'Next Activity',\n showAs: { type: AXPWidgetsCatalog.text },\n // options: { width: '220px' },\n },\n ],\n interfaces: {\n master: {\n single: {\n title: '{{ workflowTitle || name || definitionId }}',\n sections: [\n { id: 'overview', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'variables', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'workflowTitle', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'statusDisplay', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'startedAt', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'assignUser', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'currentActivityTitle', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'nextActivityTitle', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'progressPercentage', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'workflowVariablesTable', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'createdAt', dir: 'desc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.workflow-instance';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,qBAAqB;AAC3B,IAAA,MAAM,EAAE,oBAAoB;CAC7B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,qBAAqB;QAC5B,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,mCAAmC;AAC1C,QAAA,IAAI,EAAE,6BAA6B;AACpC,KAAA;;AAED,IAAA,UAAU,EAAE;AACV,QAAA,SAAS,EAAE,8BAA8B;AACzC,QAAA,QAAQ,EAAE,4BAA4B;AACvC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,kBAAkB,EAAE;AAClB,YAAA,IAAI,EAAE,oBAAoB;AAC1B,YAAA,QAAQ,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,mBAAA,CAAqB;AAC/C,YAAA,KAAK,EAAE,8EAA8E;AACrF,YAAA,WAAW,EAAE,+EAA+E;AAC5F,YAAA,IAAI,EAAE,6BAA6B;AACpC,SAAA;AACD,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,kBAAkB;AACxB,YAAA,QAAQ,EAAE,CAAA,E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,EAAE,EAAE,EAAE;AAChF,wBAAA,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AAC7E,wBAAA,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AAC9E,wBAAA,EAAE,IAAI,EAAE,wBAAwB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACnF,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,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAC7E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;AC9PA;;AAEG;;"}
@@ -0,0 +1,103 @@
1
+ const config = {
2
+ i18n: 'workflow-management',
3
+ module: 'WorkflowManagement',
4
+ };
5
+ const RootConfig = {
6
+ config,
7
+ module: {
8
+ route: 'workflow-management',
9
+ name: config.module,
10
+ title: '@workflow-management:module.title',
11
+ icon: 'fa-light fa-diagram-project',
12
+ },
13
+ /** Task-board suspend activity type ids (match activity definition keys). */
14
+ activities: {
15
+ humanTask: 'workflow-activity:human-task',
16
+ cartable: 'workflow-activity:cartable',
17
+ },
18
+ entities: {
19
+ workflowDefinition: {
20
+ name: 'WorkflowDefinition',
21
+ fullName: `${config.module}.WorkflowDefinition`,
22
+ title: '@workflow-management:workflow-definitions.entities.workflow-definition.title',
23
+ titlePlural: '@workflow-management:workflow-definitions.entities.workflow-definition.plural',
24
+ icon: 'fa-light fa-diagram-project',
25
+ },
26
+ workflowInstance: {
27
+ name: 'WorkflowInstance',
28
+ fullName: `${config.module}.WorkflowInstance`,
29
+ title: '@workflow-management:workflow-instances.entities.workflow-instance.title',
30
+ titlePlural: '@workflow-management:workflow-instances.entities.workflow-instance.plural',
31
+ icon: 'fa-light fa-play-circle',
32
+ },
33
+ activityDefinition: {
34
+ name: 'ActivityDefinition',
35
+ fullName: `${config.module}.ActivityDefinition`,
36
+ title: '@workflow-management:activities.entities.activity-definition.title',
37
+ titlePlural: '@workflow-management:activities.entities.activity-definition.plural',
38
+ icon: 'fa-light fa-puzzle-piece',
39
+ },
40
+ automation: {
41
+ name: 'Automation',
42
+ fullName: `${config.module}.Automation`,
43
+ title: '@workflow-management:automations.entities.automation.title',
44
+ titlePlural: '@workflow-management:automations.entities.automation.plural',
45
+ icon: 'fa-light fa-bolt',
46
+ },
47
+ },
48
+ /**
49
+ * Live dashboard queries bound to base DashboardManagement chart/KPI widgets.
50
+ * Keys: `{module}:Dashboard:{Name}`.
51
+ */
52
+ queries: {
53
+ dashboard: {
54
+ definitionsKpi: `${config.module}:Dashboard:DefinitionsKpi`,
55
+ activitiesKpi: `${config.module}:Dashboard:ActivitiesKpi`,
56
+ definitionsByStatusBar: `${config.module}:Dashboard:DefinitionsByStatusBar`,
57
+ activitiesByCategoryDonut: `${config.module}:Dashboard:ActivitiesByCategoryDonut`,
58
+ publishedDefinitionsGauge: `${config.module}:Dashboard:PublishedDefinitionsGauge`,
59
+ /** @deprecated Prefer {@link runningInstancesKpi} for runtime ops dashboards. */
60
+ workflowDefinitionsKpi: `${config.module}:Dashboard:WorkflowDefinitionsKpi`,
61
+ /** @deprecated Prefer {@link instancesBySubStatusDonut} for runtime ops dashboards. */
62
+ workflowsByStatusBar: `${config.module}:Dashboard:WorkflowsByStatusBar`,
63
+ runningInstancesKpi: `${config.module}:Dashboard:RunningInstancesKpi`,
64
+ faultedInstancesKpi: `${config.module}:Dashboard:FaultedInstancesKpi`,
65
+ awaitingActionInstancesKpi: `${config.module}:Dashboard:AwaitingActionInstancesKpi`,
66
+ startedTodayInstancesKpi: `${config.module}:Dashboard:StartedTodayInstancesKpi`,
67
+ completedTodayInstancesKpi: `${config.module}:Dashboard:CompletedTodayInstancesKpi`,
68
+ avgRunningAgeHoursKpi: `${config.module}:Dashboard:AvgRunningAgeHoursKpi`,
69
+ instancesBySubStatusDonut: `${config.module}:Dashboard:InstancesBySubStatusDonut`,
70
+ instancesByDefinitionBar: `${config.module}:Dashboard:InstancesByDefinitionBar`,
71
+ instancesThroughputLine: `${config.module}:Dashboard:InstancesThroughputLine`,
72
+ instancesByCurrentActivityBar: `${config.module}:Dashboard:InstancesByCurrentActivityBar`,
73
+ instancesFaultHeatmap: `${config.module}:Dashboard:InstancesFaultHeatmap`,
74
+ },
75
+ },
76
+ };
77
+
78
+ //#region ----- Imports -----
79
+ //#endregion
80
+ //#region ----- Local entity catalog -----
81
+ /**
82
+ * Lazy per-entity layout factories. Do not re-export from the contracts barrel
83
+ * so RootConfig imports stay light. Server seed and client `local-entities`
84
+ * consume this catalog explicitly.
85
+ */
86
+ const workflowManagementLocalEntityCatalog = {
87
+ moduleName: RootConfig.module.name,
88
+ loaders: {
89
+ 'activity-category': () => import('./acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-1EWdojoP.mjs').then((m) => m.factoryActivityCategory()),
90
+ [RootConfig.entities.activityDefinition.name]: () => import('./acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-definition.entity-DYoF3vVe.mjs').then((m) => m.factoryActivityDefinition()),
91
+ [RootConfig.entities.automation.name]: () => import('./acorex-platform-module-workflow-management-client-contracts-entity-catalog-automation.entity-DbJeeZpQ.mjs').then((m) => m.factoryAutomation()),
92
+ [RootConfig.entities.workflowDefinition.name]: () => import('./acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-definition.entity-BVSAGT0z.mjs').then((m) => m.factoryWorkflowDefinition()),
93
+ [RootConfig.entities.workflowInstance.name]: () => import('./acorex-platform-module-workflow-management-client-contracts-entity-catalog-workflow-instance.entity-BEA4WQX2.mjs').then((m) => m.factoryWorkflowInstance()),
94
+ },
95
+ };
96
+ //#endregion
97
+
98
+ /**
99
+ * Generated bundle index. Do not edit.
100
+ */
101
+
102
+ export { RootConfig as R, workflowManagementLocalEntityCatalog as w };
103
+ //# sourceMappingURL=acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-DKDogTU7.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-workflow-management-client-contracts-entity-catalog-acorex-platform-module-workflow-management-client-contracts-entity-catalog-DKDogTU7.mjs","sources":["../../../../libs/modules/workflow-management/contracts/src/root-config.ts","../../../../libs/modules/workflow-management/contracts/src/entity-catalog.ts","../../../../libs/modules/workflow-management/contracts/src/acorex-platform-module-workflow-management-client-contracts-entity-catalog.ts"],"sourcesContent":["const config = {\n i18n: 'workflow-management',\n module: 'WorkflowManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'workflow-management',\n name: config.module,\n title: '@workflow-management:module.title',\n icon: 'fa-light fa-diagram-project',\n },\n /** Task-board suspend activity type ids (match activity definition keys). */\n activities: {\n humanTask: 'workflow-activity:human-task',\n cartable: 'workflow-activity:cartable',\n },\n entities: {\n workflowDefinition: {\n name: 'WorkflowDefinition',\n fullName: `${config.module}.WorkflowDefinition`,\n title: '@workflow-management:workflow-definitions.entities.workflow-definition.title',\n titlePlural: '@workflow-management:workflow-definitions.entities.workflow-definition.plural',\n icon: 'fa-light fa-diagram-project',\n },\n workflowInstance: {\n name: 'WorkflowInstance',\n fullName: `${config.module}.WorkflowInstance`,\n title: '@workflow-management:workflow-instances.entities.workflow-instance.title',\n titlePlural: '@workflow-management:workflow-instances.entities.workflow-instance.plural',\n icon: 'fa-light fa-play-circle',\n },\n activityDefinition: {\n name: 'ActivityDefinition',\n fullName: `${config.module}.ActivityDefinition`,\n title: '@workflow-management:activities.entities.activity-definition.title',\n titlePlural: '@workflow-management:activities.entities.activity-definition.plural',\n icon: 'fa-light fa-puzzle-piece',\n },\n automation: {\n name: 'Automation',\n fullName: `${config.module}.Automation`,\n title: '@workflow-management:automations.entities.automation.title',\n titlePlural: '@workflow-management:automations.entities.automation.plural',\n icon: 'fa-light fa-bolt',\n },\n },\n /**\n * Live dashboard queries bound to base DashboardManagement chart/KPI widgets.\n * Keys: `{module}:Dashboard:{Name}`.\n */\n queries: {\n dashboard: {\n definitionsKpi: `${config.module}:Dashboard:DefinitionsKpi`,\n activitiesKpi: `${config.module}:Dashboard:ActivitiesKpi`,\n definitionsByStatusBar: `${config.module}:Dashboard:DefinitionsByStatusBar`,\n activitiesByCategoryDonut: `${config.module}:Dashboard:ActivitiesByCategoryDonut`,\n publishedDefinitionsGauge: `${config.module}:Dashboard:PublishedDefinitionsGauge`,\n /** @deprecated Prefer {@link runningInstancesKpi} for runtime ops dashboards. */\n workflowDefinitionsKpi: `${config.module}:Dashboard:WorkflowDefinitionsKpi`,\n /** @deprecated Prefer {@link instancesBySubStatusDonut} for runtime ops dashboards. */\n workflowsByStatusBar: `${config.module}:Dashboard:WorkflowsByStatusBar`,\n runningInstancesKpi: `${config.module}:Dashboard:RunningInstancesKpi`,\n faultedInstancesKpi: `${config.module}:Dashboard:FaultedInstancesKpi`,\n awaitingActionInstancesKpi: `${config.module}:Dashboard:AwaitingActionInstancesKpi`,\n startedTodayInstancesKpi: `${config.module}:Dashboard:StartedTodayInstancesKpi`,\n completedTodayInstancesKpi: `${config.module}:Dashboard:CompletedTodayInstancesKpi`,\n avgRunningAgeHoursKpi: `${config.module}:Dashboard:AvgRunningAgeHoursKpi`,\n instancesBySubStatusDonut: `${config.module}:Dashboard:InstancesBySubStatusDonut`,\n instancesByDefinitionBar: `${config.module}:Dashboard:InstancesByDefinitionBar`,\n instancesThroughputLine: `${config.module}:Dashboard:InstancesThroughputLine`,\n instancesByCurrentActivityBar: `${config.module}:Dashboard:InstancesByCurrentActivityBar`,\n instancesFaultHeatmap: `${config.module}:Dashboard:InstancesFaultHeatmap`,\n },\n },\n} as const;\n","//#region ----- Imports -----\n\nimport type { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ----- Local entity catalog -----\n\n/**\n * Lazy per-entity layout factories. Do not re-export from the contracts barrel\n * so RootConfig imports stay light. Server seed and client `local-entities`\n * consume this catalog explicitly.\n */\nexport const workflowManagementLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n 'activity-category': () =>\n import('./entities/activity-category/activity-category.entity.js').then((m) => m.factoryActivityCategory()),\n [RootConfig.entities.activityDefinition.name]: () =>\n import('./entities/activity-definition/activity-definition.entity.js').then((m) => m.factoryActivityDefinition()),\n [RootConfig.entities.automation.name]: () =>\n import('./entities/automation/automation.entity.js').then((m) => m.factoryAutomation()),\n [RootConfig.entities.workflowDefinition.name]: () =>\n import('./entities/workflow-definition/workflow-definition.entity.js').then((m) => m.factoryWorkflowDefinition()),\n [RootConfig.entities.workflowInstance.name]: () =>\n import('./entities/workflow-instance/workflow-instance.entity.js').then((m) => m.factoryWorkflowInstance()),\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-catalog';\n"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,qBAAqB;AAC3B,IAAA,MAAM,EAAE,oBAAoB;CAC7B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,qBAAqB;QAC5B,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,mCAAmC;AAC1C,QAAA,IAAI,EAAE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,MAAM,CAAC,MAAM,CAAA,wCAAA,CAA0C;AACzF,YAAA,qBAAqB,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,gCAAA,CAAkC;AAC1E,SAAA;AACF,KAAA;;;AC3EH;AAMA;AAEA;AAEA;;;;AAIG;AACI,MAAM,oCAAoC,GAA0B;AACzE,IAAA,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAClC,IAAA,OAAO,EAAE;QACP,mBAAmB,EAAE,MACnB,OAAO,oHAA0D,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,EAAE,CAAC;AAC7G,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,GAAG,MAC7C,OAAO,sHAA8D,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,EAAE,CAAC;AACnH,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,GAAG,MACrC,OAAO,6GAA4C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,CAAC;AACzF,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,GAAG,MAC7C,OAAO,sHAA8D,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,EAAE,CAAC;AACnH,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,GAAG,MAC3C,OAAO,oHAA0D,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,EAAE,CAAC;AAC9G,KAAA;;AAGH;;AC/BA;;AAEG;;"}
@@ -0,0 +1,120 @@
1
+ import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions, entityMasterDeleteAction } 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
+ /** @deprecated Use category plugin (ActivityDefinitionCategory). This entity is no longer loaded by the module. */
6
+ async function factoryActivityCategory() {
7
+ const entityDef = {
8
+ module: RootConfig.module.name,
9
+ name: 'ActivityCategory',
10
+ title: '@workflow-management:activities.entities.activity-category.title',
11
+ icon: 'fa-light fa-folder',
12
+ parentKey: 'parentId',
13
+ formats: {
14
+ individual: '@workflow-management:activities.entities.activity-category.title',
15
+ plural: '@workflow-management:activities.entities.activity-category.plural',
16
+ searchResult: {
17
+ title: '{{ title }}',
18
+ description: '{{ description }}',
19
+ },
20
+ },
21
+ plugins: [{ name: 'history' }],
22
+ groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
23
+ properties: [
24
+ {
25
+ name: 'id',
26
+ title: 'ID',
27
+ groupId: 'basic-info',
28
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
29
+ },
30
+ {
31
+ name: 'title',
32
+ title: '@general:terms.common.title',
33
+ groupId: 'basic-info',
34
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
35
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
36
+ validations: [{ rule: 'required' }],
37
+ },
38
+ {
39
+ name: 'parentId',
40
+ title: '@general:terms.classification.parent',
41
+ groupId: 'basic-info',
42
+ schema: {
43
+ dataType: 'string',
44
+ interface: {
45
+ type: AXPWidgetsList.Editors.EntityCategory,
46
+ options: {
47
+ entity: `${RootConfig.module.name}.ActivityCategory`,
48
+ multiple: true,
49
+ textField: 'title',
50
+ valueField: 'id',
51
+ parentKey: 'parentId',
52
+ },
53
+ },
54
+ },
55
+ options: { filter: { advance: { enabled: true }, inline: { enabled: true } } },
56
+ },
57
+ {
58
+ name: 'description',
59
+ title: '@general:terms.common.description',
60
+ groupId: 'basic-info',
61
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },
62
+ },
63
+ {
64
+ name: 'childrenCount',
65
+ title: '@general:terms.classification.children',
66
+ groupId: 'basic-info',
67
+ schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number }, readonly: true },
68
+ },
69
+ {
70
+ name: 'itemsCount',
71
+ title: '@general:terms.classification.items',
72
+ groupId: 'basic-info',
73
+ schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number }, readonly: true },
74
+ },
75
+ ],
76
+ columns: [{ name: 'title' }, { name: 'description' }, { name: 'childrenCount' }, { name: 'itemsCount' }],
77
+ interfaces: {
78
+ master: {
79
+ create: {
80
+ sections: [{ id: 'basic-info' }],
81
+ properties: [
82
+ { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
83
+ { name: 'parentId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
84
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
85
+ ],
86
+ },
87
+ update: {
88
+ sections: [{ id: 'basic-info' }],
89
+ properties: [
90
+ { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
91
+ { name: 'parentId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
92
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
93
+ { name: 'childrenCount', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
94
+ { name: 'itemsCount', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
95
+ ],
96
+ },
97
+ single: {
98
+ title: '{{title}}',
99
+ sections: [{ id: 'basic-info' }],
100
+ properties: [
101
+ { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
102
+ { name: 'parentId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
103
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
104
+ { name: 'childrenCount', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
105
+ { name: 'itemsCount', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
106
+ ],
107
+ actions: [...entityMasterRecordActions(), entityMasterDeleteAction()],
108
+ },
109
+ list: {
110
+ actions: [...entityMasterCrudActions()],
111
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
112
+ },
113
+ },
114
+ },
115
+ };
116
+ return entityDef;
117
+ }
118
+
119
+ export { factoryActivityCategory };
120
+ //# sourceMappingURL=acorex-platform-module-workflow-management-client-contracts-entity-catalog-activity-category.entity-1EWdojoP.mjs.map