@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.
- package/common/index.d.ts +1 -1
- package/core/index.d.ts +1 -0
- package/fesm2022/acorex-platform-auth.mjs +1 -1
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +16 -2
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +29 -6
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +372 -25
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +172 -63
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +47 -6
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +14 -4
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/components/index.d.ts +159 -9
- package/layout/entity/index.d.ts +28 -2
- package/layout/views/index.d.ts +14 -4
- package/package.json +5 -5
- package/workflow/index.d.ts +1 -0
|
@@ -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.
|
|
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) {
|