@sumaris-net/ngx-components 2.4.124 → 2.4.126
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/src/app/core/menu/menu.model.mjs +4 -4
- package/esm2020/src/app/core/menu/menu.service.mjs +2 -2
- package/esm2020/src/app/core/table/table.class.mjs +1 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +4 -5
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +4 -5
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/menu/menu.service.d.ts +1 -1
|
@@ -23073,7 +23073,7 @@ class MenuItems {
|
|
|
23073
23073
|
const hasProfile = AccountUtils.hasMinProfile(account, item.profile);
|
|
23074
23074
|
if (!hasProfile) {
|
|
23075
23075
|
if (opts.debug)
|
|
23076
|
-
console.debug(`${opts && opts.logPrefix || '[menu]'} Hide item '${item.title}': need the min profile '${item.profile}' to access path '${item.path}'`);
|
|
23076
|
+
console.debug(`${opts && opts.logPrefix || '[menu-service]'} Hide item '${item.title}': need the min profile '${item.profile}' to access path '${item.path}'`);
|
|
23077
23077
|
return false;
|
|
23078
23078
|
}
|
|
23079
23079
|
}
|
|
@@ -23081,7 +23081,7 @@ class MenuItems {
|
|
|
23081
23081
|
const hasExactProfile = AccountUtils.hasExactProfile(account, item.exactProfile);
|
|
23082
23082
|
if (!hasExactProfile) {
|
|
23083
23083
|
if (opts.debug)
|
|
23084
|
-
console.debug(`${opts && opts.logPrefix || '[menu]'} Hide item '${item.title}': need exact profile '${item.exactProfile}' to access path '${item.path}'`);
|
|
23084
|
+
console.debug(`${opts && opts.logPrefix || '[menu-service]'} Hide item '${item.title}': need exact profile '${item.exactProfile}' to access path '${item.path}'`);
|
|
23085
23085
|
return false;
|
|
23086
23086
|
}
|
|
23087
23087
|
}
|
|
@@ -23091,7 +23091,7 @@ class MenuItems {
|
|
|
23091
23091
|
const isEnableByConfig = config && config.properties[item.ifProperty] === 'true';
|
|
23092
23092
|
if (!isEnableByConfig) {
|
|
23093
23093
|
if (opts.debug)
|
|
23094
|
-
console.debug('[menu] Config property \'' + item.ifProperty + '\' not \'true\' for ', item.path);
|
|
23094
|
+
console.debug('[menu-service] Config property \'' + item.ifProperty + '\' not \'true\' for ', item.path);
|
|
23095
23095
|
return false;
|
|
23096
23096
|
}
|
|
23097
23097
|
}
|
|
@@ -23247,7 +23247,7 @@ class MenuService extends StartableObservableService {
|
|
|
23247
23247
|
// TODO Restore old excluded items
|
|
23248
23248
|
// this.addSubMenuItems();
|
|
23249
23249
|
}));
|
|
23250
|
-
return
|
|
23250
|
+
return undefined; // not yet loaded
|
|
23251
23251
|
});
|
|
23252
23252
|
}
|
|
23253
23253
|
loadMenuItems(config, account) {
|
|
@@ -29419,7 +29419,6 @@ class AppTable {
|
|
|
29419
29419
|
this.registerSubscription(this.dataSource.rowsSubject
|
|
29420
29420
|
// restore the 'adding' selection (for example after a page or sort change)
|
|
29421
29421
|
.subscribe((rows) => {
|
|
29422
|
-
this.visibleRowCount = rows.length;
|
|
29423
29422
|
selectionChangedPrevented = true;
|
|
29424
29423
|
try {
|
|
29425
29424
|
const permanentSelectionIds = (this.permanentSelection.selected || []).map(EntityUtils.getId);
|