@acorex/platform 20.3.0-next.6 → 20.3.0-next.8
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/core/index.d.ts +331 -2
- package/fesm2022/acorex-platform-core.mjs +347 -45
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +2 -2
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +670 -51
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +9 -5
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +15 -0
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-view.component-KpZWpnOJ.mjs → acorex-platform-themes-shared-icon-chooser-view.component-BgEh06Tn.mjs} +21 -11
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-BgEh06Tn.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-column.component-BvOiVCgt.mjs → acorex-platform-themes-shared-theme-color-chooser-column.component-AeOQxjbS.mjs} +20 -5
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-AeOQxjbS.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-view.component-BW0rfkjk.mjs → acorex-platform-themes-shared-theme-color-chooser-view.component-DEVzRd6-.mjs} +20 -5
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-DEVzRd6-.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +51 -15
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-view.component-C-4bWr9G.mjs → acorex-platform-widgets-checkbox-widget-view.component-KYCQ2qTJ.mjs} +51 -35
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-KYCQ2qTJ.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +1089 -1657
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/index.d.ts +2 -3
- package/layout/components/index.d.ts +286 -7
- package/layout/entity/index.d.ts +8 -1
- package/package.json +1 -1
- package/widgets/index.d.ts +1240 -284
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-KpZWpnOJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-BvOiVCgt.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-BW0rfkjk.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-C-4bWr9G.mjs.map +0 -1
|
@@ -1027,6 +1027,98 @@ const AXPAppStartUpProvider = provideAppInitializer(() => {
|
|
|
1027
1027
|
return initializerFn();
|
|
1028
1028
|
});
|
|
1029
1029
|
|
|
1030
|
+
/**
|
|
1031
|
+
* Additional suggested generic actions for future consideration:
|
|
1032
|
+
*
|
|
1033
|
+
* Data & Content Actions:
|
|
1034
|
+
* - Search = 'search' - Search functionality
|
|
1035
|
+
* - Filter = 'filter' - Apply filters
|
|
1036
|
+
* - Sort = 'sort' - Sort data
|
|
1037
|
+
* - Group = 'group' - Group data
|
|
1038
|
+
* - Expand = 'expand' - Expand details
|
|
1039
|
+
* - Collapse = 'collapse' - Collapse details
|
|
1040
|
+
* - Pin = 'pin' - Pin to favorites
|
|
1041
|
+
* - Bookmark = 'bookmark' - Bookmark item
|
|
1042
|
+
* - Favorite = 'favorite' - Mark as favorite
|
|
1043
|
+
* - Star = 'star' - Star rating
|
|
1044
|
+
*
|
|
1045
|
+
* Workflow Actions:
|
|
1046
|
+
* - Start = 'start' - Start process/workflow
|
|
1047
|
+
* - Stop = 'stop' - Stop process
|
|
1048
|
+
* - Pause = 'pause' - Pause process
|
|
1049
|
+
* - Resume = 'resume' - Resume process
|
|
1050
|
+
* - Cancel = 'cancel' - Cancel operation
|
|
1051
|
+
* - Complete = 'complete' - Mark as complete
|
|
1052
|
+
* - Close = 'close' - Close item
|
|
1053
|
+
* - Reopen = 'reopen' - Reopen closed item
|
|
1054
|
+
* - Forward = 'forward' - Forward to next step
|
|
1055
|
+
* - Back = 'back' - Go back
|
|
1056
|
+
*
|
|
1057
|
+
* Communication Actions:
|
|
1058
|
+
* - Reply = 'reply' - Reply to message
|
|
1059
|
+
* - Forward = 'forward' - Forward message
|
|
1060
|
+
* - Notify = 'notify' - Send notification
|
|
1061
|
+
* - Invite = 'invite' - Invite user
|
|
1062
|
+
* - Join = 'join' - Join group/meeting
|
|
1063
|
+
* - Leave = 'leave' - Leave group/meeting
|
|
1064
|
+
*
|
|
1065
|
+
* Security Actions:
|
|
1066
|
+
* - Login = 'login' - User login
|
|
1067
|
+
* - Logout = 'logout' - User logout
|
|
1068
|
+
* - Block = 'block' - Block user/content
|
|
1069
|
+
* - Unblock = 'unblock' - Unblock user/content
|
|
1070
|
+
* - Ban = 'ban' - Ban user
|
|
1071
|
+
* - Unban = 'unban' - Unban user
|
|
1072
|
+
* - Verify = 'verify' - Verify identity
|
|
1073
|
+
* - Authenticate = 'authenticate' - Authenticate
|
|
1074
|
+
*
|
|
1075
|
+
* File & Media Actions:
|
|
1076
|
+
* - Open = 'open' - Open file
|
|
1077
|
+
* - Save = 'save' - Save file
|
|
1078
|
+
* - SaveAs = 'save-as' - Save as new file
|
|
1079
|
+
* - Attach = 'attach' - Attach file
|
|
1080
|
+
* - Detach = 'detach' - Detach file
|
|
1081
|
+
* - Compress = 'compress' - Compress files
|
|
1082
|
+
* - Extract = 'extract' - Extract archive
|
|
1083
|
+
* - Convert = 'convert' - Convert format
|
|
1084
|
+
* - Crop = 'crop' - Crop image
|
|
1085
|
+
* - Resize = 'resize' - Resize image
|
|
1086
|
+
*
|
|
1087
|
+
* System Actions:
|
|
1088
|
+
* - Sync = 'sync' - Synchronize data
|
|
1089
|
+
* - Backup = 'backup' - Create backup
|
|
1090
|
+
* - Restore = 'restore' - Restore from backup
|
|
1091
|
+
* - Reset = 'reset' - Reset to defaults
|
|
1092
|
+
* - Clear = 'clear' - Clear data
|
|
1093
|
+
* - Optimize = 'optimize' - Optimize performance
|
|
1094
|
+
* - Update = 'update' - Update system
|
|
1095
|
+
* - Install = 'install' - Install component
|
|
1096
|
+
* - Uninstall = 'uninstall' - Uninstall component
|
|
1097
|
+
* - Enable = 'enable' - Enable feature
|
|
1098
|
+
* - Disable = 'disable' - Disable feature
|
|
1099
|
+
*
|
|
1100
|
+
* Analytics & Monitoring:
|
|
1101
|
+
* - Monitor = 'monitor' - Monitor activity
|
|
1102
|
+
* - Track = 'track' - Track progress
|
|
1103
|
+
* - Analyze = 'analyze' - Analyze data
|
|
1104
|
+
* - Debug = 'debug' - Debug issue
|
|
1105
|
+
* - Log = 'log' - View logs
|
|
1106
|
+
* - Alert = 'alert' - Set alert
|
|
1107
|
+
* - Dashboard = 'dashboard' - View dashboard
|
|
1108
|
+
* - Metrics = 'metrics' - View metrics
|
|
1109
|
+
*
|
|
1110
|
+
* Collaboration Actions:
|
|
1111
|
+
* - Collaborate = 'collaborate' - Start collaboration
|
|
1112
|
+
* - Share = 'share' - Share content
|
|
1113
|
+
* - Comment = 'comment' - Add comment
|
|
1114
|
+
* - Like = 'like' - Like content
|
|
1115
|
+
* - Follow = 'follow' - Follow user/content
|
|
1116
|
+
* - Subscribe = 'subscribe' - Subscribe to updates
|
|
1117
|
+
* - Unsubscribe = 'unsubscribe' - Unsubscribe
|
|
1118
|
+
* - Rate = 'rate' - Rate content
|
|
1119
|
+
* - Review = 'review' - Review content
|
|
1120
|
+
* - Recommend = 'recommend' - Recommend content
|
|
1121
|
+
*/
|
|
1030
1122
|
var AXPSystemActionType;
|
|
1031
1123
|
(function (AXPSystemActionType) {
|
|
1032
1124
|
AXPSystemActionType["View"] = "view";
|
|
@@ -1069,6 +1161,23 @@ var AXPSystemActionType;
|
|
|
1069
1161
|
AXPSystemActionType["Report"] = "report";
|
|
1070
1162
|
AXPSystemActionType["Sent"] = "sent";
|
|
1071
1163
|
AXPSystemActionType["Review"] = "review";
|
|
1164
|
+
AXPSystemActionType["Generate"] = "generate";
|
|
1165
|
+
AXPSystemActionType["Refresh"] = "refresh";
|
|
1166
|
+
AXPSystemActionType["Reload"] = "reload";
|
|
1167
|
+
AXPSystemActionType["Search"] = "search";
|
|
1168
|
+
AXPSystemActionType["Filter"] = "filter";
|
|
1169
|
+
AXPSystemActionType["Sort"] = "sort";
|
|
1170
|
+
AXPSystemActionType["Start"] = "start";
|
|
1171
|
+
AXPSystemActionType["Stop"] = "stop";
|
|
1172
|
+
AXPSystemActionType["Pause"] = "pause";
|
|
1173
|
+
AXPSystemActionType["Cancel"] = "cancel";
|
|
1174
|
+
AXPSystemActionType["Close"] = "close";
|
|
1175
|
+
AXPSystemActionType["Complete"] = "complete";
|
|
1176
|
+
AXPSystemActionType["Save"] = "save";
|
|
1177
|
+
AXPSystemActionType["SaveAs"] = "save-as";
|
|
1178
|
+
AXPSystemActionType["Sync"] = "sync";
|
|
1179
|
+
AXPSystemActionType["Reset"] = "reset";
|
|
1180
|
+
AXPSystemActionType["Clear"] = "clear";
|
|
1072
1181
|
})(AXPSystemActionType || (AXPSystemActionType = {}));
|
|
1073
1182
|
const i18n = (key) => `@general:actions.${key}`;
|
|
1074
1183
|
const AXPSystemActions = Object.freeze({
|
|
@@ -1555,6 +1664,213 @@ const AXPSystemActions = Object.freeze({
|
|
|
1555
1664
|
audit: i18n('review.audit')
|
|
1556
1665
|
}
|
|
1557
1666
|
},
|
|
1667
|
+
Generate: {
|
|
1668
|
+
key: AXPSystemActionType.Generate,
|
|
1669
|
+
title: i18n('generate.title'),
|
|
1670
|
+
icon: 'fa-light fa-wand-magic-sparkles',
|
|
1671
|
+
color: 'primary',
|
|
1672
|
+
descriptions: {
|
|
1673
|
+
button: i18n('generate.button'),
|
|
1674
|
+
tooltip: i18n('generate.tooltip'),
|
|
1675
|
+
permission: i18n('generate.permission'),
|
|
1676
|
+
audit: i18n('generate.audit')
|
|
1677
|
+
}
|
|
1678
|
+
},
|
|
1679
|
+
Refresh: {
|
|
1680
|
+
key: AXPSystemActionType.Refresh,
|
|
1681
|
+
title: i18n('refresh.title'),
|
|
1682
|
+
icon: 'fa-light fa-arrows-rotate',
|
|
1683
|
+
color: 'default',
|
|
1684
|
+
descriptions: {
|
|
1685
|
+
button: i18n('refresh.button'),
|
|
1686
|
+
tooltip: i18n('refresh.tooltip'),
|
|
1687
|
+
permission: i18n('refresh.permission'),
|
|
1688
|
+
audit: i18n('refresh.audit')
|
|
1689
|
+
}
|
|
1690
|
+
},
|
|
1691
|
+
Reload: {
|
|
1692
|
+
key: AXPSystemActionType.Reload,
|
|
1693
|
+
title: i18n('reload.title'),
|
|
1694
|
+
icon: 'fa-light fa-arrows-rotate',
|
|
1695
|
+
color: 'default',
|
|
1696
|
+
descriptions: {
|
|
1697
|
+
button: i18n('reload.button'),
|
|
1698
|
+
tooltip: i18n('reload.tooltip'),
|
|
1699
|
+
permission: i18n('reload.permission'),
|
|
1700
|
+
audit: i18n('reload.audit')
|
|
1701
|
+
}
|
|
1702
|
+
},
|
|
1703
|
+
Search: {
|
|
1704
|
+
key: AXPSystemActionType.Search,
|
|
1705
|
+
title: i18n('search.title'),
|
|
1706
|
+
icon: 'fa-light fa-magnifying-glass',
|
|
1707
|
+
color: 'default',
|
|
1708
|
+
descriptions: {
|
|
1709
|
+
button: i18n('search.button'),
|
|
1710
|
+
tooltip: i18n('search.tooltip'),
|
|
1711
|
+
permission: i18n('search.permission'),
|
|
1712
|
+
audit: i18n('search.audit')
|
|
1713
|
+
}
|
|
1714
|
+
},
|
|
1715
|
+
Filter: {
|
|
1716
|
+
key: AXPSystemActionType.Filter,
|
|
1717
|
+
title: i18n('filter.title'),
|
|
1718
|
+
icon: 'fa-light fa-filter',
|
|
1719
|
+
color: 'default',
|
|
1720
|
+
descriptions: {
|
|
1721
|
+
button: i18n('filter.button'),
|
|
1722
|
+
tooltip: i18n('filter.tooltip'),
|
|
1723
|
+
permission: i18n('filter.permission'),
|
|
1724
|
+
audit: i18n('filter.audit')
|
|
1725
|
+
}
|
|
1726
|
+
},
|
|
1727
|
+
Sort: {
|
|
1728
|
+
key: AXPSystemActionType.Sort,
|
|
1729
|
+
title: i18n('sort.title'),
|
|
1730
|
+
icon: 'fa-light fa-arrow-down-up-across-line',
|
|
1731
|
+
color: 'default',
|
|
1732
|
+
descriptions: {
|
|
1733
|
+
button: i18n('sort.button'),
|
|
1734
|
+
tooltip: i18n('sort.tooltip'),
|
|
1735
|
+
permission: i18n('sort.permission'),
|
|
1736
|
+
audit: i18n('sort.audit')
|
|
1737
|
+
}
|
|
1738
|
+
},
|
|
1739
|
+
Start: {
|
|
1740
|
+
key: AXPSystemActionType.Start,
|
|
1741
|
+
title: i18n('start.title'),
|
|
1742
|
+
icon: 'fa-light fa-play',
|
|
1743
|
+
color: 'success',
|
|
1744
|
+
descriptions: {
|
|
1745
|
+
button: i18n('start.button'),
|
|
1746
|
+
tooltip: i18n('start.tooltip'),
|
|
1747
|
+
permission: i18n('start.permission'),
|
|
1748
|
+
audit: i18n('start.audit')
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1751
|
+
Stop: {
|
|
1752
|
+
key: AXPSystemActionType.Stop,
|
|
1753
|
+
title: i18n('stop.title'),
|
|
1754
|
+
icon: 'fa-light fa-stop',
|
|
1755
|
+
color: 'danger',
|
|
1756
|
+
critical: true,
|
|
1757
|
+
descriptions: {
|
|
1758
|
+
button: i18n('stop.button'),
|
|
1759
|
+
tooltip: i18n('stop.tooltip'),
|
|
1760
|
+
permission: i18n('stop.permission'),
|
|
1761
|
+
audit: i18n('stop.audit')
|
|
1762
|
+
}
|
|
1763
|
+
},
|
|
1764
|
+
Pause: {
|
|
1765
|
+
key: AXPSystemActionType.Pause,
|
|
1766
|
+
title: i18n('pause.title'),
|
|
1767
|
+
icon: 'fa-light fa-pause',
|
|
1768
|
+
color: 'warning',
|
|
1769
|
+
descriptions: {
|
|
1770
|
+
button: i18n('pause.button'),
|
|
1771
|
+
tooltip: i18n('pause.tooltip'),
|
|
1772
|
+
permission: i18n('pause.permission'),
|
|
1773
|
+
audit: i18n('pause.audit')
|
|
1774
|
+
}
|
|
1775
|
+
},
|
|
1776
|
+
Cancel: {
|
|
1777
|
+
key: AXPSystemActionType.Cancel,
|
|
1778
|
+
title: i18n('cancel.title'),
|
|
1779
|
+
icon: 'fa-light fa-xmark',
|
|
1780
|
+
color: 'danger',
|
|
1781
|
+
critical: true,
|
|
1782
|
+
descriptions: {
|
|
1783
|
+
button: i18n('cancel.button'),
|
|
1784
|
+
tooltip: i18n('cancel.tooltip'),
|
|
1785
|
+
permission: i18n('cancel.permission'),
|
|
1786
|
+
audit: i18n('cancel.audit')
|
|
1787
|
+
}
|
|
1788
|
+
},
|
|
1789
|
+
Close: {
|
|
1790
|
+
key: AXPSystemActionType.Close,
|
|
1791
|
+
title: i18n('close.title'),
|
|
1792
|
+
icon: 'fa-light fa-xmark',
|
|
1793
|
+
color: 'default',
|
|
1794
|
+
descriptions: {
|
|
1795
|
+
button: i18n('close.button'),
|
|
1796
|
+
tooltip: i18n('close.tooltip'),
|
|
1797
|
+
permission: i18n('close.permission'),
|
|
1798
|
+
audit: i18n('close.audit')
|
|
1799
|
+
}
|
|
1800
|
+
},
|
|
1801
|
+
Complete: {
|
|
1802
|
+
key: AXPSystemActionType.Complete,
|
|
1803
|
+
title: i18n('complete.title'),
|
|
1804
|
+
icon: 'fa-light fa-check',
|
|
1805
|
+
color: 'success',
|
|
1806
|
+
descriptions: {
|
|
1807
|
+
button: i18n('complete.button'),
|
|
1808
|
+
tooltip: i18n('complete.tooltip'),
|
|
1809
|
+
permission: i18n('complete.permission'),
|
|
1810
|
+
audit: i18n('complete.audit')
|
|
1811
|
+
}
|
|
1812
|
+
},
|
|
1813
|
+
Save: {
|
|
1814
|
+
key: AXPSystemActionType.Save,
|
|
1815
|
+
title: i18n('save.title'),
|
|
1816
|
+
icon: 'fa-light fa-floppy-disk',
|
|
1817
|
+
color: 'primary',
|
|
1818
|
+
descriptions: {
|
|
1819
|
+
button: i18n('save.button'),
|
|
1820
|
+
tooltip: i18n('save.tooltip'),
|
|
1821
|
+
permission: i18n('save.permission'),
|
|
1822
|
+
audit: i18n('save.audit')
|
|
1823
|
+
}
|
|
1824
|
+
},
|
|
1825
|
+
SaveAs: {
|
|
1826
|
+
key: AXPSystemActionType.SaveAs,
|
|
1827
|
+
title: i18n('save-as.title'),
|
|
1828
|
+
icon: 'fa-light fa-floppy-disk',
|
|
1829
|
+
color: 'default',
|
|
1830
|
+
descriptions: {
|
|
1831
|
+
button: i18n('save-as.button'),
|
|
1832
|
+
tooltip: i18n('save-as.tooltip'),
|
|
1833
|
+
permission: i18n('save-as.permission'),
|
|
1834
|
+
audit: i18n('save-as.audit')
|
|
1835
|
+
}
|
|
1836
|
+
},
|
|
1837
|
+
Sync: {
|
|
1838
|
+
key: AXPSystemActionType.Sync,
|
|
1839
|
+
title: i18n('sync.title'),
|
|
1840
|
+
icon: 'fa-light fa-arrows-rotate',
|
|
1841
|
+
color: 'default',
|
|
1842
|
+
descriptions: {
|
|
1843
|
+
button: i18n('sync.button'),
|
|
1844
|
+
tooltip: i18n('sync.tooltip'),
|
|
1845
|
+
permission: i18n('sync.permission'),
|
|
1846
|
+
audit: i18n('sync.audit')
|
|
1847
|
+
}
|
|
1848
|
+
},
|
|
1849
|
+
Reset: {
|
|
1850
|
+
key: AXPSystemActionType.Reset,
|
|
1851
|
+
title: i18n('reset.title'),
|
|
1852
|
+
icon: 'fa-light fa-arrow-rotate-left',
|
|
1853
|
+
color: 'warning',
|
|
1854
|
+
critical: true,
|
|
1855
|
+
descriptions: {
|
|
1856
|
+
button: i18n('reset.button'),
|
|
1857
|
+
tooltip: i18n('reset.tooltip'),
|
|
1858
|
+
permission: i18n('reset.permission'),
|
|
1859
|
+
audit: i18n('reset.audit')
|
|
1860
|
+
}
|
|
1861
|
+
},
|
|
1862
|
+
Clear: {
|
|
1863
|
+
key: AXPSystemActionType.Clear,
|
|
1864
|
+
title: i18n('clear.title'),
|
|
1865
|
+
icon: 'fa-light fa-eraser',
|
|
1866
|
+
color: 'default',
|
|
1867
|
+
descriptions: {
|
|
1868
|
+
button: i18n('clear.button'),
|
|
1869
|
+
tooltip: i18n('clear.tooltip'),
|
|
1870
|
+
permission: i18n('clear.permission'),
|
|
1871
|
+
audit: i18n('clear.audit')
|
|
1872
|
+
}
|
|
1873
|
+
},
|
|
1558
1874
|
});
|
|
1559
1875
|
function getSystemActions(type) {
|
|
1560
1876
|
return Object.values(AXPSystemActions).find(action => action.key === type);
|
|
@@ -1564,51 +1880,8 @@ function getSystemActions(type) {
|
|
|
1564
1880
|
* using the system actions from the core module.
|
|
1565
1881
|
*/
|
|
1566
1882
|
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
1883
|
// Try to get system action first
|
|
1611
|
-
const systemActionType =
|
|
1884
|
+
const systemActionType = actionType;
|
|
1612
1885
|
if (systemActionType) {
|
|
1613
1886
|
const systemAction = getSystemActions(systemActionType);
|
|
1614
1887
|
if (systemAction) {
|
|
@@ -1624,6 +1897,35 @@ function resolveActionLook(actionType) {
|
|
|
1624
1897
|
icon: ''
|
|
1625
1898
|
};
|
|
1626
1899
|
}
|
|
1900
|
+
/**
|
|
1901
|
+
* Resolves the title, description, icon and color for button actions
|
|
1902
|
+
* using the system actions from the core module.
|
|
1903
|
+
* @param actionType
|
|
1904
|
+
* @returns
|
|
1905
|
+
*/
|
|
1906
|
+
function getActionButton(actionType) {
|
|
1907
|
+
const systemActionType = actionType;
|
|
1908
|
+
if (systemActionType) {
|
|
1909
|
+
const systemAction = getSystemActions(systemActionType);
|
|
1910
|
+
if (systemAction) {
|
|
1911
|
+
return {
|
|
1912
|
+
name: actionType,
|
|
1913
|
+
icon: systemAction.icon || '',
|
|
1914
|
+
color: systemAction.color || 'default',
|
|
1915
|
+
title: systemAction.title,
|
|
1916
|
+
description: systemAction.descriptions.button
|
|
1917
|
+
};
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
// Fallback for unknown actions
|
|
1921
|
+
return {
|
|
1922
|
+
name: actionType,
|
|
1923
|
+
title: actionType,
|
|
1924
|
+
description: `Perform ${actionType} action`,
|
|
1925
|
+
icon: '',
|
|
1926
|
+
color: 'default'
|
|
1927
|
+
};
|
|
1928
|
+
}
|
|
1627
1929
|
|
|
1628
1930
|
function getNestedKeys(obj, prefix = '') {
|
|
1629
1931
|
let keys = [];
|
|
@@ -2294,5 +2596,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
2294
2596
|
* Generated bundle index. Do not edit.
|
|
2295
2597
|
*/
|
|
2296
2598
|
|
|
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 };
|
|
2599
|
+
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, getActionButton, getChangedPaths, getDetailedChanges, getEnumValues, getNestedKeys, getSmart, getSystemActions, objectKeyValueTransforms, resolveActionLook, resolvePlatformScopeKey, resolvePlatformScopeName, setSmart };
|
|
2298
2600
|
//# sourceMappingURL=acorex-platform-core.mjs.map
|