@sumaris-net/ngx-components 2.4.137 → 2.4.138

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.
@@ -12962,7 +12962,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
12962
12962
  class StorageService extends StartableService {
12963
12963
  constructor(platform, storage, environment) {
12964
12964
  super(platform);
12965
- this.platform = platform;
12966
12965
  this.storage = storage;
12967
12966
  this.environment = environment;
12968
12967
  this._debug = !environment.production;
@@ -13074,7 +13073,8 @@ StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", versi
13074
13073
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StorageService, decorators: [{
13075
13074
  type: Injectable,
13076
13075
  args: [{
13077
- providedIn: 'root', deps: [ENVIRONMENT]
13076
+ providedIn: 'root',
13077
+ deps: [ENVIRONMENT],
13078
13078
  }]
13079
13079
  }], ctorParameters: function () { return [{ type: i2.Platform }, { type: i3$1.Storage }, { type: Environment, decorators: [{
13080
13080
  type: Inject,
@@ -23083,7 +23083,7 @@ const APP_MENU_ITEMS = new InjectionToken('menuItems');
23083
23083
  const APP_MENU_OPTIONS = new InjectionToken('menuOptions');
23084
23084
  class MenuService extends StartableObservableService {
23085
23085
  constructor(settings, configService, accountService, router, environment, options, staticItems) {
23086
- super();
23086
+ super(settings);
23087
23087
  this.settings = settings;
23088
23088
  this.configService = configService;
23089
23089
  this.accountService = accountService;
@@ -23102,7 +23102,7 @@ class MenuService extends StartableObservableService {
23102
23102
  this.options = {
23103
23103
  enableSubMenuIcon: true,
23104
23104
  ...options,
23105
- enableSubMenus: !this.settings.mobile && options.enableSubMenuIcon
23105
+ enableSubMenus: !this.settings.mobile && options.enableSubMenus !== false
23106
23106
  };
23107
23107
  this._$subMenuEnabled = new BehaviorSubject(this.options.enableSubMenus);
23108
23108
  this._debug = !environment.production;