@sumaris-net/ngx-components 1.10.3 → 1.10.6

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.
@@ -14582,7 +14582,7 @@ class AccountService extends BaseGraphqlService {
14582
14582
  }
14583
14583
  AccountService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountService_Factory() { return new AccountService(i0.ɵɵinject(CryptoService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i3$1.Storage), i0.ɵɵinject(FileService), i0.ɵɵinject(i1$1.TranslateService, 8), i0.ɵɵinject(i1$4.ToastController, 8), i0.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
14584
14584
  AccountService.decorators = [
14585
- { type: Injectable, args: [{ providedIn: 'root' },] }
14585
+ { type: Injectable, args: [{ providedIn: 'root', deps: [ENVIRONMENT] },] }
14586
14586
  ];
14587
14587
  AccountService.ctorParameters = () => [
14588
14588
  { type: CryptoService },
@@ -20501,13 +20501,12 @@ AppIconComponent.propDecorators = {
20501
20501
  };
20502
20502
 
20503
20503
  class CoreModule {
20504
- static forRoot(environment) {
20504
+ static forRoot() {
20505
20505
  console.info('[core] Creating module (root)');
20506
20506
  return {
20507
20507
  ngModule: CoreModule,
20508
20508
  providers: [
20509
- PlatformService,
20510
- { provide: ENVIRONMENT, useValue: environment }
20509
+ PlatformService
20511
20510
  ]
20512
20511
  };
20513
20512
  }
@@ -22219,10 +22218,6 @@ class AppTable {
22219
22218
  if (deleted) {
22220
22219
  this.visibleRowCount--;
22221
22220
  this.totalRowCount--;
22222
- // Forget is was the edited row
22223
- if (row === this.editedRow) {
22224
- this.editedRow = undefined;
22225
- }
22226
22221
  return res;
22227
22222
  }
22228
22223
  }
@@ -23581,6 +23576,7 @@ class AppEditorOptions extends AppTabEditorOptions {
23581
23576
  // eslint-disable-next-line @angular-eslint/directive-class-suffix
23582
23577
  class AppEntityEditor extends AppTabEditor {
23583
23578
  constructor(injector, dataType, dataService, options) {
23579
+ var _a, _b;
23584
23580
  super(injector.get(ActivatedRoute), injector.get(Router), injector.get(AlertController), injector.get(TranslateService), options);
23585
23581
  this.dataType = dataType;
23586
23582
  this.dataService = dataService;
@@ -23590,7 +23586,7 @@ class AppEntityEditor extends AppTabEditor {
23590
23586
  this.environement = injector.get(ENVIRONMENT);
23591
23587
  options = Object.assign({
23592
23588
  // Default options
23593
- enableListenChanges: !this.environement.entityEditor || this.environement.entityEditor.enableListenChanges !== false, listenIntervalInSeconds: toNumber(this.environement.entityEditor && this.environement.entityEditor.listenIntervalInSeconds, 0), pathIdAttribute: 'id', autoLoad: true, autoUpdateRoute: true, i18nPrefix: '' }, options);
23589
+ enableListenChanges: ((_a = this.environement.entityEditor) === null || _a === void 0 ? void 0 : _a.enableListenChanges) || false, listenIntervalInSeconds: toNumber((_b = this.environement.entityEditor) === null || _b === void 0 ? void 0 : _b.listenIntervalInSeconds, 0), pathIdAttribute: 'id', autoLoad: true, autoUpdateRoute: true, i18nPrefix: '' }, options);
23594
23590
  this.settings = injector.get(LocalSettingsService);
23595
23591
  this.errorTranslator = injector.get(FormErrorTranslator);
23596
23592
  this.cd = injector.get(ChangeDetectorRef);