@acorex/platform 20.3.0-next.4 → 20.3.0-next.5

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 (23) hide show
  1. package/common/index.d.ts +6 -6
  2. package/core/index.d.ts +187 -11
  3. package/fesm2022/acorex-platform-common.mjs +4 -52
  4. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  5. package/fesm2022/acorex-platform-core.mjs +243 -10
  6. package/fesm2022/acorex-platform-core.mjs.map +1 -1
  7. package/fesm2022/acorex-platform-layout-entity.mjs +344 -212
  8. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  9. package/fesm2022/acorex-platform-layout-views.mjs +3 -3
  10. package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
  11. package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-X0hLRZhX.mjs → acorex-platform-themes-default-entity-master-list-view.component-gQIK6PIx.mjs} +13 -15
  12. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-gQIK6PIx.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-themes-default.mjs +2 -2
  14. package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-JC_nYunG.mjs → acorex-platform-widgets-checkbox-widget-designer.component-BXPrXy-h.mjs} +4 -4
  15. package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-JC_nYunG.mjs.map → acorex-platform-widgets-checkbox-widget-designer.component-BXPrXy-h.mjs.map} +1 -1
  16. package/fesm2022/{acorex-platform-widgets-color-box-widget-designer.component-CxgKO2VI.mjs → acorex-platform-widgets-color-box-widget-designer.component-BVZ7lWm9.mjs} +5 -5
  17. package/fesm2022/{acorex-platform-widgets-color-box-widget-designer.component-CxgKO2VI.mjs.map → acorex-platform-widgets-color-box-widget-designer.component-BVZ7lWm9.mjs.map} +1 -1
  18. package/fesm2022/acorex-platform-widgets.mjs +282 -210
  19. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  20. package/layout/entity/index.d.ts +80 -3
  21. package/package.json +1 -1
  22. package/widgets/index.d.ts +9 -5
  23. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-X0hLRZhX.mjs.map +0 -1
@@ -1057,14 +1057,26 @@ var AXPSystemActionType;
1057
1057
  AXPSystemActionType["Rename"] = "rename";
1058
1058
  AXPSystemActionType["Restore"] = "restore";
1059
1059
  AXPSystemActionType["Manage"] = "manage";
1060
+ AXPSystemActionType["Info"] = "info";
1061
+ AXPSystemActionType["Confirm"] = "confirm";
1062
+ AXPSystemActionType["Design"] = "design";
1063
+ AXPSystemActionType["VersionHistory"] = "version-history";
1064
+ AXPSystemActionType["Compare"] = "compare";
1065
+ AXPSystemActionType["Comments"] = "comments";
1066
+ AXPSystemActionType["Sign"] = "sign";
1067
+ AXPSystemActionType["Setup"] = "setup";
1068
+ AXPSystemActionType["Send"] = "send";
1069
+ AXPSystemActionType["Report"] = "report";
1070
+ AXPSystemActionType["Sent"] = "sent";
1071
+ AXPSystemActionType["Review"] = "review";
1060
1072
  })(AXPSystemActionType || (AXPSystemActionType = {}));
1061
- const i18n = (key) => `t('actions.${key}',{scope:'general'})`;
1073
+ const i18n = (key) => `@general:actions.${key}`;
1062
1074
  const AXPSystemActions = Object.freeze({
1063
1075
  View: {
1064
1076
  key: AXPSystemActionType.View,
1065
1077
  title: i18n('view.title'),
1066
1078
  icon: 'fa-light fa-eye',
1067
- color: 'default',
1079
+ color: 'primary',
1068
1080
  descriptions: {
1069
1081
  button: i18n('view.button'),
1070
1082
  tooltip: i18n('view.tooltip'),
@@ -1076,7 +1088,7 @@ const AXPSystemActions = Object.freeze({
1076
1088
  key: AXPSystemActionType.Create,
1077
1089
  title: i18n('create.title'),
1078
1090
  icon: 'fa-light fa-plus',
1079
- color: 'success',
1091
+ color: 'primary',
1080
1092
  descriptions: {
1081
1093
  button: i18n('create.button'),
1082
1094
  tooltip: i18n('create.tooltip'),
@@ -1088,7 +1100,7 @@ const AXPSystemActions = Object.freeze({
1088
1100
  key: AXPSystemActionType.Update,
1089
1101
  title: i18n('edit.title'),
1090
1102
  icon: 'fa-light fa-pen',
1091
- color: 'primary',
1103
+ color: 'default',
1092
1104
  descriptions: {
1093
1105
  button: i18n('edit.button'),
1094
1106
  tooltip: i18n('edit.tooltip'),
@@ -1199,7 +1211,7 @@ const AXPSystemActions = Object.freeze({
1199
1211
  key: AXPSystemActionType.Archive,
1200
1212
  title: i18n('archive.title'),
1201
1213
  icon: 'fa-light fa-box-archive',
1202
- color: 'neutral',
1214
+ color: 'default',
1203
1215
  descriptions: {
1204
1216
  button: i18n('archive.button'),
1205
1217
  tooltip: i18n('archive.tooltip'),
@@ -1211,7 +1223,7 @@ const AXPSystemActions = Object.freeze({
1211
1223
  key: AXPSystemActionType.Restore,
1212
1224
  title: i18n('restore.title'),
1213
1225
  icon: 'fa-light fa-arrow-rotate-left',
1214
- color: 'info',
1226
+ color: 'default',
1215
1227
  descriptions: {
1216
1228
  button: i18n('restore.button'),
1217
1229
  tooltip: i18n('restore.tooltip'),
@@ -1331,7 +1343,7 @@ const AXPSystemActions = Object.freeze({
1331
1343
  key: AXPSystemActionType.Upload,
1332
1344
  title: i18n('upload.title'),
1333
1345
  icon: 'fa-light fa-upload',
1334
- color: 'primary',
1346
+ color: 'default',
1335
1347
  descriptions: {
1336
1348
  button: i18n('upload.button'),
1337
1349
  tooltip: i18n('upload.tooltip'),
@@ -1343,7 +1355,7 @@ const AXPSystemActions = Object.freeze({
1343
1355
  key: AXPSystemActionType.Download,
1344
1356
  title: i18n('download.title'),
1345
1357
  icon: 'fa-light fa-download',
1346
- color: 'success',
1358
+ color: 'default',
1347
1359
  descriptions: {
1348
1360
  button: i18n('download.button'),
1349
1361
  tooltip: i18n('download.tooltip'),
@@ -1355,7 +1367,7 @@ const AXPSystemActions = Object.freeze({
1355
1367
  key: AXPSystemActionType.Copy,
1356
1368
  title: i18n('copy.title'),
1357
1369
  icon: 'fa-light fa-copy',
1358
- color: 'primary',
1370
+ color: 'default',
1359
1371
  descriptions: {
1360
1372
  button: i18n('copy.button'),
1361
1373
  tooltip: i18n('copy.tooltip'),
@@ -1387,10 +1399,231 @@ const AXPSystemActions = Object.freeze({
1387
1399
  audit: i18n('rename.audit')
1388
1400
  }
1389
1401
  },
1402
+ Manage: {
1403
+ key: AXPSystemActionType.Manage,
1404
+ title: i18n('manage.title'),
1405
+ icon: 'fa-light fa-gear',
1406
+ color: 'default',
1407
+ descriptions: {
1408
+ button: i18n('manage.button'),
1409
+ tooltip: i18n('manage.tooltip'),
1410
+ permission: i18n('manage.permission'),
1411
+ audit: i18n('manage.audit')
1412
+ }
1413
+ },
1414
+ Info: {
1415
+ key: AXPSystemActionType.Info,
1416
+ title: i18n('info.title'),
1417
+ icon: 'fa-light fa-info',
1418
+ color: 'default',
1419
+ descriptions: {
1420
+ button: i18n('info.button'),
1421
+ tooltip: i18n('info.tooltip'),
1422
+ permission: i18n('info.permission'),
1423
+ audit: i18n('info.audit')
1424
+ }
1425
+ },
1426
+ Confirm: {
1427
+ key: AXPSystemActionType.Confirm,
1428
+ title: i18n('confirm.title'),
1429
+ icon: 'fa-light fa-check',
1430
+ color: 'success',
1431
+ descriptions: {
1432
+ button: i18n('confirm.button'),
1433
+ tooltip: i18n('confirm.tooltip'),
1434
+ permission: i18n('confirm.permission'),
1435
+ audit: i18n('confirm.audit')
1436
+ }
1437
+ },
1438
+ Design: {
1439
+ key: AXPSystemActionType.Design,
1440
+ title: i18n('design.title'),
1441
+ icon: 'fa-light fa-paintbrush',
1442
+ color: 'default',
1443
+ descriptions: {
1444
+ button: i18n('design.button'),
1445
+ tooltip: i18n('design.tooltip'),
1446
+ permission: i18n('design.permission'),
1447
+ audit: i18n('design.audit')
1448
+ }
1449
+ },
1450
+ VersionHistory: {
1451
+ key: AXPSystemActionType.VersionHistory,
1452
+ title: i18n('version-history.title'),
1453
+ icon: 'fa-light fa-history',
1454
+ color: 'default',
1455
+ descriptions: {
1456
+ button: i18n('version-history.button'),
1457
+ tooltip: i18n('version-history.tooltip'),
1458
+ permission: i18n('version-history.permission'),
1459
+ audit: i18n('version-history.audit')
1460
+ }
1461
+ },
1462
+ Compare: {
1463
+ key: AXPSystemActionType.Compare,
1464
+ title: i18n('compare.title'),
1465
+ icon: 'fa-light fa-code-compare',
1466
+ color: 'default',
1467
+ descriptions: {
1468
+ button: i18n('compare.button'),
1469
+ tooltip: i18n('compare.tooltip'),
1470
+ permission: i18n('compare.permission'),
1471
+ audit: i18n('compare.audit')
1472
+ }
1473
+ },
1474
+ Comments: {
1475
+ key: AXPSystemActionType.Comments,
1476
+ title: i18n('comments.title'),
1477
+ icon: 'fa-light fa-comments',
1478
+ color: 'default',
1479
+ descriptions: {
1480
+ button: i18n('comments.button'),
1481
+ tooltip: i18n('comments.tooltip'),
1482
+ permission: i18n('comments.permission'),
1483
+ audit: i18n('comments.audit')
1484
+ }
1485
+ },
1486
+ Sign: {
1487
+ key: AXPSystemActionType.Sign,
1488
+ title: i18n('sign.title'),
1489
+ icon: 'fa-light fa-signature',
1490
+ color: 'default',
1491
+ descriptions: {
1492
+ button: i18n('sign.button'),
1493
+ tooltip: i18n('sign.tooltip'),
1494
+ permission: i18n('sign.permission'),
1495
+ audit: i18n('sign.audit')
1496
+ }
1497
+ },
1498
+ Setup: {
1499
+ key: AXPSystemActionType.Setup,
1500
+ title: i18n('setup.title'),
1501
+ icon: 'fa-light fa-cog',
1502
+ color: 'default',
1503
+ descriptions: {
1504
+ button: i18n('setup.button'),
1505
+ tooltip: i18n('setup.tooltip'),
1506
+ permission: i18n('setup.permission'),
1507
+ audit: i18n('setup.audit')
1508
+ }
1509
+ },
1510
+ Send: {
1511
+ key: AXPSystemActionType.Send,
1512
+ title: i18n('send.title'),
1513
+ icon: 'fa-light fa-envelope',
1514
+ color: 'default',
1515
+ descriptions: {
1516
+ button: i18n('send.button'),
1517
+ tooltip: i18n('send.tooltip'),
1518
+ permission: i18n('send.permission'),
1519
+ audit: i18n('send.audit')
1520
+ }
1521
+ },
1522
+ Report: {
1523
+ key: AXPSystemActionType.Report,
1524
+ title: i18n('report.title'),
1525
+ icon: 'fa-light fa-chart-line',
1526
+ color: 'default',
1527
+ descriptions: {
1528
+ button: i18n('report.button'),
1529
+ tooltip: i18n('report.tooltip'),
1530
+ permission: i18n('report.permission'),
1531
+ audit: i18n('report.audit')
1532
+ }
1533
+ },
1534
+ Sent: {
1535
+ key: AXPSystemActionType.Sent,
1536
+ title: i18n('sent.title'),
1537
+ icon: 'fa-light fa-paper-plane',
1538
+ color: 'default',
1539
+ descriptions: {
1540
+ button: i18n('sent.button'),
1541
+ tooltip: i18n('sent.tooltip'),
1542
+ permission: i18n('sent.permission'),
1543
+ audit: i18n('sent.audit')
1544
+ }
1545
+ },
1546
+ Review: {
1547
+ key: AXPSystemActionType.Review,
1548
+ title: i18n('review.title'),
1549
+ icon: 'fa-light fa-eye',
1550
+ color: 'default',
1551
+ descriptions: {
1552
+ button: i18n('review.button'),
1553
+ tooltip: i18n('review.tooltip'),
1554
+ permission: i18n('review.permission'),
1555
+ audit: i18n('review.audit')
1556
+ }
1557
+ },
1390
1558
  });
1391
1559
  function getSystemActions(type) {
1392
1560
  return Object.values(AXPSystemActions).find(action => action.key === type);
1393
1561
  }
1562
+ /**
1563
+ * Resolves the visual appearance (color and icon) for entity actions
1564
+ * using the system actions from the core module.
1565
+ */
1566
+ function resolveActionLook(actionType) {
1567
+ // Map action types to system action types
1568
+ const actionTypeMap = {
1569
+ 'create': AXPSystemActionType.Create,
1570
+ 'view': AXPSystemActionType.View,
1571
+ 'update': AXPSystemActionType.Update,
1572
+ 'delete': AXPSystemActionType.Delete,
1573
+ 'copy': AXPSystemActionType.Copy,
1574
+ 'print': AXPSystemActionType.Print,
1575
+ 'archive': AXPSystemActionType.Archive,
1576
+ 'restore': AXPSystemActionType.Restore,
1577
+ 'upload': AXPSystemActionType.Upload,
1578
+ 'download': AXPSystemActionType.Download,
1579
+ 'lock': AXPSystemActionType.Lock,
1580
+ 'unlock': AXPSystemActionType.Unlock,
1581
+ 'assign': AXPSystemActionType.Assign,
1582
+ 'share': AXPSystemActionType.Share,
1583
+ 'configure': AXPSystemActionType.Configure,
1584
+ 'reorder': AXPSystemActionType.Reorder,
1585
+ 'preview': AXPSystemActionType.Preview,
1586
+ 'publish': AXPSystemActionType.Publish,
1587
+ 'unpublish': AXPSystemActionType.Unpublish,
1588
+ 'approve': AXPSystemActionType.Approve,
1589
+ 'reject': AXPSystemActionType.Reject,
1590
+ 'submit': AXPSystemActionType.Submit,
1591
+ 'export': AXPSystemActionType.Export,
1592
+ 'import': AXPSystemActionType.Import,
1593
+ 'duplicate': AXPSystemActionType.Duplicate,
1594
+ 'move': AXPSystemActionType.Move,
1595
+ 'rename': AXPSystemActionType.Rename,
1596
+ 'manage': AXPSystemActionType.Manage,
1597
+ 'info': AXPSystemActionType.Info,
1598
+ 'confirm': AXPSystemActionType.Confirm,
1599
+ 'design': AXPSystemActionType.Design,
1600
+ 'version-history': AXPSystemActionType.VersionHistory,
1601
+ 'compare': AXPSystemActionType.Compare,
1602
+ 'comments': AXPSystemActionType.Comments,
1603
+ 'sign': AXPSystemActionType.Sign,
1604
+ 'setup': AXPSystemActionType.Setup,
1605
+ 'send': AXPSystemActionType.Send,
1606
+ 'report': AXPSystemActionType.Report,
1607
+ 'sent': AXPSystemActionType.Sent,
1608
+ 'review': AXPSystemActionType.Review
1609
+ };
1610
+ // Try to get system action first
1611
+ const systemActionType = actionTypeMap[actionType];
1612
+ if (systemActionType) {
1613
+ const systemAction = getSystemActions(systemActionType);
1614
+ if (systemAction) {
1615
+ return {
1616
+ color: (systemAction.color || 'default'),
1617
+ icon: systemAction.icon || ''
1618
+ };
1619
+ }
1620
+ }
1621
+ // Fallback for unknown actions
1622
+ return {
1623
+ color: 'default',
1624
+ icon: ''
1625
+ };
1626
+ }
1394
1627
 
1395
1628
  function getNestedKeys(obj, prefix = '') {
1396
1629
  let keys = [];
@@ -2061,5 +2294,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
2061
2294
  * Generated bundle index. Do not edit.
2062
2295
  */
2063
2296
 
2064
- export { AXHighlightService, AXPActivityLogProvider, AXPActivityLogService, AXPAppStartUpProvider, AXPAppStartUpService, AXPBroadcastEventService, AXPComponentLogoConfig, AXPContentCheckerDirective, AXPContextChangeEvent, AXPContextStore, AXPCountdownPipe, AXPDataGenerator, AXPDataSourceDefinitionProviderService, AXPDblClickDirective, AXPDistributedEventListenerService, AXPElementDataDirective, AXPExportTemplateToken, AXPExpressionEvaluatorScopeProviderContext, AXPExpressionEvaluatorScopeProviderService, AXPExpressionEvaluatorService, AXPGridLayoutDirective, AXPHookService, AXPImageUrlLogoConfig, AXPPlatformScope, AXPSystemActionType, AXPSystemActions, AXP_ACTIVITY_LOG_PROVIDER, AXP_DATASOURCE_DEFINITION_PROVIDER, AXP_DISTRIBUTED_EVENT_LISTENER_PROVIDER, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, applyFilterArray, applyPagination, applyQueryArray, applySortArray, applySystemActionDefault, cleanDeep, extractNestedFieldsWildcard, extractTextFromHtml, extractValue, getChangedPaths, getDetailedChanges, getEnumValues, getNestedKeys, getSmart, getSystemActions, objectKeyValueTransforms, resolvePlatformScopeKey, resolvePlatformScopeName, setSmart };
2297
+ export { AXHighlightService, AXPActivityLogProvider, AXPActivityLogService, AXPAppStartUpProvider, AXPAppStartUpService, AXPBroadcastEventService, AXPComponentLogoConfig, AXPContentCheckerDirective, AXPContextChangeEvent, AXPContextStore, AXPCountdownPipe, AXPDataGenerator, AXPDataSourceDefinitionProviderService, AXPDblClickDirective, AXPDistributedEventListenerService, AXPElementDataDirective, AXPExportTemplateToken, AXPExpressionEvaluatorScopeProviderContext, AXPExpressionEvaluatorScopeProviderService, AXPExpressionEvaluatorService, AXPGridLayoutDirective, AXPHookService, AXPImageUrlLogoConfig, AXPPlatformScope, AXPSystemActionType, AXPSystemActions, AXP_ACTIVITY_LOG_PROVIDER, AXP_DATASOURCE_DEFINITION_PROVIDER, AXP_DISTRIBUTED_EVENT_LISTENER_PROVIDER, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, applyFilterArray, applyPagination, applyQueryArray, applySortArray, applySystemActionDefault, cleanDeep, extractNestedFieldsWildcard, extractTextFromHtml, extractValue, getChangedPaths, getDetailedChanges, getEnumValues, getNestedKeys, getSmart, getSystemActions, objectKeyValueTransforms, resolveActionLook, resolvePlatformScopeKey, resolvePlatformScopeName, setSmart };
2065
2298
  //# sourceMappingURL=acorex-platform-core.mjs.map