ngx-material-entity 18.2.5 → 18.2.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.
@@ -6374,8 +6374,7 @@ class NgxMatEntityInputComponent {
6374
6374
  isLoading: false,
6375
6375
  shouldShowMissingError: this.metadataEntityArray.required(this.entity),
6376
6376
  selection: new SelectionModel(true, []),
6377
- // eslint-disable-next-line typescript/no-misused-promises
6378
- clickCell: (entity, dCol) => this.editArrayItem(entity, dCol)
6377
+ clickCell: (entity, dCol) => void this.editArrayItem(entity, dCol)
6379
6378
  }
6380
6379
  };
6381
6380
  this.entityArrayTableContext.$implicit.dataSource.data = this.entity[this.propertyKey];
@@ -6393,7 +6392,15 @@ class NgxMatEntityInputComponent {
6393
6392
  hideOmitForCreate: true
6394
6393
  }
6395
6394
  };
6396
- this.addArrayItemFormContext2 = LodashUtilities.cloneDeep(this.addArrayItemFormContext);
6395
+ this.addArrayItemFormContext2 = {
6396
+ $implicit: {
6397
+ entity: this.arrayItem,
6398
+ tabs: EntityUtilities.getEntityTabs(this.arrayItem, this.injector, true),
6399
+ inputChangeEvent: () => { },
6400
+ hideOmitForCreate: true,
6401
+ isReadOnly: () => true
6402
+ }
6403
+ };
6397
6404
  this.addArrayItemDialogData = new CreateDataBuilder(this.globalConfig, this.metadataEntityArray.createDialogData)
6398
6405
  .withDefault('createButtonLabel', this.globalConfig.addLabel)
6399
6406
  .withDefault('title', this.globalConfig.addArrayItemTitle)
@@ -6906,7 +6913,6 @@ class NgxMatEntityInputComponent {
6906
6913
  hideOmitForCreate: true
6907
6914
  }
6908
6915
  };
6909
- this.addArrayItemFormContext2 = LodashUtilities.cloneDeep(this.addArrayItemFormContext);
6910
6916
  this.addArrayItemDialogRef = this.dialog.open(this.addArrayItemDialog, {
6911
6917
  minWidth: '60%',
6912
6918
  autoFocus: false,
@@ -6949,7 +6955,7 @@ class NgxMatEntityInputComponent {
6949
6955
  };
6950
6956
  await this.checkIsArrayItemValid();
6951
6957
  this.emitChange();
6952
- }, 1);
6958
+ }, 150);
6953
6959
  }
6954
6960
  /**
6955
6961
  * Adds the array item defined in the dialog.