@sumaris-net/ngx-components 2.6.28 → 2.6.29

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.
@@ -10116,13 +10116,9 @@ class TreeItemEntityUtils {
10116
10116
  }
10117
10117
  static first(node, filterFn) {
10118
10118
  // Node has children: dive into children
10119
- const child = (node.children || []).find((c) => !filterFn || filterFn(c));
10119
+ const child = (node.children || []).find((c) => this.first(c, filterFn));
10120
10120
  if (child)
10121
10121
  return child;
10122
- // Lookup in descendants
10123
- const descendant = (node.children || []).map((c) => this.first(c, filterFn)).find(isNotNil);
10124
- if (descendant)
10125
- return descendant;
10126
10122
  // Node match: use it
10127
10123
  return !filterFn || filterFn(node) ? node : undefined;
10128
10124
  }
@@ -10834,10 +10830,9 @@ const DEFAULT_SETTINGS = {
10834
10830
  const APP_LOCAL_SETTINGS = new InjectionToken('DefaultLocalSettings');
10835
10831
  const APP_LOCAL_SETTINGS_OPTIONS = new InjectionToken('LocalSettingsOptions');
10836
10832
  class LocalSettingsService extends StartableService {
10837
- constructor(translate, platform, storage, environment, defaultSettings, options) {
10833
+ constructor(platform, translate, storage, environment, defaultSettings, options) {
10838
10834
  super(platform);
10839
10835
  this.translate = translate;
10840
- this.platform = platform;
10841
10836
  this.storage = storage;
10842
10837
  this.environment = environment;
10843
10838
  this.defaultSettings = defaultSettings;
@@ -11244,7 +11239,7 @@ class LocalSettingsService extends StartableService {
11244
11239
  return page;
11245
11240
  }
11246
11241
  }
11247
- LocalSettingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LocalSettingsService, deps: [{ token: i1$1.TranslateService }, { token: i2$1.Platform }, { token: i2$3.Storage }, { token: ENVIRONMENT }, { token: APP_LOCAL_SETTINGS, optional: true }, { token: APP_LOCAL_SETTINGS_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
11242
+ LocalSettingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LocalSettingsService, deps: [{ token: i2$1.Platform }, { token: i1$1.TranslateService }, { token: i2$3.Storage }, { token: ENVIRONMENT }, { token: APP_LOCAL_SETTINGS, optional: true }, { token: APP_LOCAL_SETTINGS_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
11248
11243
  LocalSettingsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LocalSettingsService, providedIn: 'root' });
11249
11244
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LocalSettingsService, decorators: [{
11250
11245
  type: Injectable,
@@ -11252,7 +11247,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
11252
11247
  providedIn: 'root'
11253
11248
  //deps: [APP_LOCAL_SETTINGS, APP_LOCAL_SETTINGS_OPTIONS]
11254
11249
  }]
11255
- }], ctorParameters: function () { return [{ type: i1$1.TranslateService }, { type: i2$1.Platform }, { type: i2$3.Storage }, { type: Environment, decorators: [{
11250
+ }], ctorParameters: function () { return [{ type: i2$1.Platform }, { type: i1$1.TranslateService }, { type: i2$3.Storage }, { type: Environment, decorators: [{
11256
11251
  type: Inject,
11257
11252
  args: [ENVIRONMENT]
11258
11253
  }] }, { type: undefined, decorators: [{