@acorex/platform 20.2.4-next.9 → 20.3.0-next.0

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.
@@ -21,6 +21,7 @@ import { AXPlatform } from '@acorex/core/platform';
21
21
  import * as i1 from '@angular/common';
22
22
  import { CommonModule } from '@angular/common';
23
23
  import { signalStore, withState, withMethods, patchState, withHooks } from '@ngrx/signals';
24
+ import { AXPCommandExecutor } from '@acorex/platform/runtime';
24
25
  import { AXFormatService } from '@acorex/core/format';
25
26
  import { AXDialogService } from '@acorex/components/dialog';
26
27
  import * as i5 from '@acorex/components/button';
@@ -167,6 +168,14 @@ function resolveActionLook(tr) {
167
168
  return { color: 'default', icon: `${icon} fa-code-compare` };
168
169
  case 'comments':
169
170
  return { color: 'default', icon: `${icon} fa-comments` };
171
+ case 'assign':
172
+ return { color: 'default', icon: `${icon} fa-rotate-left` };
173
+ case 'sign':
174
+ return { color: 'default', icon: `${icon} fa-signature` };
175
+ case 'setup':
176
+ return { color: 'default', icon: `${icon} fa-cog` };
177
+ case 'send':
178
+ return { color: 'default', icon: `${icon} fa-envelope` };
170
179
  default:
171
180
  return { color: 'default', icon: '' };
172
181
  }
@@ -1501,7 +1510,7 @@ withState((router = inject(Router)) => {
1501
1510
  };
1502
1511
  }),
1503
1512
  // Methods for State Management
1504
- withMethods((store, router = inject(Router), workflow = inject(AXPWorkflowService)) => {
1513
+ withMethods((store, router = inject(Router), workflow = inject(AXPWorkflowService), commandExecutor = inject(AXPCommandExecutor)) => {
1505
1514
  return {
1506
1515
  setMenuItems(items) {
1507
1516
  patchState(store, { items: items });
@@ -1574,7 +1583,12 @@ withMethods((store, router = inject(Router), workflow = inject(AXPWorkflowServic
1574
1583
  }
1575
1584
  if (item.command) {
1576
1585
  const command = item.command;
1577
- workflow.execute(command.name, command.options);
1586
+ if (workflow.exists(command?.name)) {
1587
+ workflow.execute(command.name, command.options);
1588
+ }
1589
+ else {
1590
+ commandExecutor.execute(command.name, command.options);
1591
+ }
1578
1592
  }
1579
1593
  },
1580
1594
  isItemOpen(item) {