@alfresco/aca-shared 4.3.0-6485117949 → 4.3.0-6531164447
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/esm2020/lib/services/app.extension.service.mjs +6 -1
- package/fesm2015/alfresco-aca-shared.mjs +5 -0
- package/fesm2015/alfresco-aca-shared.mjs.map +1 -1
- package/fesm2020/alfresco-aca-shared.mjs +5 -0
- package/fesm2020/alfresco-aca-shared.mjs.map +1 -1
- package/lib/services/app.extension.service.d.ts +2 -0
- package/package.json +5 -5
|
@@ -1294,6 +1294,7 @@ class AppExtensionService {
|
|
|
1294
1294
|
this._sidebarActions = new BehaviorSubject([]);
|
|
1295
1295
|
this._badges = new BehaviorSubject([]);
|
|
1296
1296
|
this._filesDocumentListPreset = new BehaviorSubject([]);
|
|
1297
|
+
this._customMetadataPanels = new BehaviorSubject([]);
|
|
1297
1298
|
this.documentListPresets = {
|
|
1298
1299
|
libraries: [],
|
|
1299
1300
|
favoriteLibraries: [],
|
|
@@ -1336,6 +1337,7 @@ class AppExtensionService {
|
|
|
1336
1337
|
this._mainActions.next(this.loader.getFeatures(config).mainAction);
|
|
1337
1338
|
this._badges.next(this.loader.getElements(config, 'features.badges'));
|
|
1338
1339
|
this._filesDocumentListPreset.next(this.getDocumentListPreset(config, 'files'));
|
|
1340
|
+
this._customMetadataPanels.next(this.loader.getElements(config, 'features.customMetadataPanels'));
|
|
1339
1341
|
this.navbar = this.loadNavBar(config);
|
|
1340
1342
|
this.sidebarTabs = this.loader.getElements(config, 'features.sidebar.tabs');
|
|
1341
1343
|
this.contentMetadata = this.loadContentMetadata(config);
|
|
@@ -1513,6 +1515,9 @@ class AppExtensionService {
|
|
|
1513
1515
|
getBadges(node) {
|
|
1514
1516
|
return this._badges.pipe(map((badges) => badges.filter((badge) => this.evaluateRule(badge.rules.visible, node))));
|
|
1515
1517
|
}
|
|
1518
|
+
getCustomMetadataPanels(node) {
|
|
1519
|
+
return this._customMetadataPanels.pipe(map((panels) => panels.filter((panel) => this.evaluateRule(panel.rules.visible, node))));
|
|
1520
|
+
}
|
|
1516
1521
|
buildMenu(actionRef) {
|
|
1517
1522
|
if (actionRef.type === ContentActionType.menu && actionRef.children && actionRef.children.length > 0) {
|
|
1518
1523
|
const children = actionRef.children.filter((action) => this.filterVisible(action)).map((action) => this.buildMenu(action));
|