@trudb/tru-common-lib 0.2.393 → 0.2.394

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.
@@ -6518,6 +6518,7 @@ class TruDataGridClipboard {
6518
6518
  util;
6519
6519
  formatter;
6520
6520
  uiNotification;
6521
+ modelPropertyLookup;
6521
6522
  tableName = null;
6522
6523
  columnName = null;
6523
6524
  copiedCellData = null;
@@ -6525,10 +6526,11 @@ class TruDataGridClipboard {
6525
6526
  copiedCellEntity = null;
6526
6527
  copiedCellParams = null;
6527
6528
  copiedRows = [];
6528
- constructor(util, formatter, uiNotification) {
6529
+ constructor(util, formatter, uiNotification, modelPropertyLookup) {
6529
6530
  this.util = util;
6530
6531
  this.formatter = formatter;
6531
6532
  this.uiNotification = uiNotification;
6533
+ this.modelPropertyLookup = modelPropertyLookup;
6532
6534
  }
6533
6535
  formatCellValue = (controlConfig, propertyConfig, entity, value) => {
6534
6536
  if (propertyConfig.typeName === 'rich-text-unbounded')
@@ -6619,8 +6621,9 @@ class TruDataGridClipboard {
6619
6621
  let properties = copiedRow.$entity.entityType.getPropertyNames();
6620
6622
  properties
6621
6623
  .forEach((propertyName) => {
6624
+ let property = this.modelPropertyLookup.lookup.get(this.tableName + '.' + propertyName);
6622
6625
  if (typeof selectedRow.$entity.setProperty !== 'undefined' &&
6623
- selectedRow[propertyName] && selectedRow[propertyName].property.canEdit &&
6626
+ !property?.excludeFromCloning &&
6624
6627
  propertyName !== config.tableName + 'Ref' &&
6625
6628
  propertyName !== 'rowver' &&
6626
6629
  propertyName !== 'Merge_Data_Set' &&
@@ -6642,7 +6645,9 @@ class TruDataGridClipboard {
6642
6645
  let properties = row.$entity.entityType.getPropertyNames();
6643
6646
  properties
6644
6647
  .filter((propertyName) => {
6648
+ let property = this.modelPropertyLookup.lookup.get(this.tableName + '.' + propertyName);
6645
6649
  return propertyName !== 'Ref' &&
6650
+ !property?.excludeFromCloning &&
6646
6651
  propertyName !== config.resultConfig.entityType.name + 'Ref' &&
6647
6652
  !this.util.isLowerCase(propertyName.charAt(0));
6648
6653
  })
@@ -6660,7 +6665,7 @@ class TruDataGridClipboard {
6660
6665
  getCopiedCell = () => {
6661
6666
  return this.copiedCellEntity;
6662
6667
  };
6663
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TruDataGridClipboard, deps: [{ token: TruUtil }, { token: TruFormatter }, { token: TruUiNotification }], target: i0.ɵɵFactoryTarget.Injectable });
6668
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TruDataGridClipboard, deps: [{ token: TruUtil }, { token: TruFormatter }, { token: TruUiNotification }, { token: TruModelPropertyLookup }], target: i0.ɵɵFactoryTarget.Injectable });
6664
6669
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TruDataGridClipboard, providedIn: 'root' });
6665
6670
  }
6666
6671
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TruDataGridClipboard, decorators: [{
@@ -6668,7 +6673,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
6668
6673
  args: [{
6669
6674
  providedIn: 'root',
6670
6675
  }]
6671
- }], ctorParameters: () => [{ type: TruUtil }, { type: TruFormatter }, { type: TruUiNotification }] });
6676
+ }], ctorParameters: () => [{ type: TruUtil }, { type: TruFormatter }, { type: TruUiNotification }, { type: TruModelPropertyLookup }] });
6672
6677
 
6673
6678
  class TruDataGridPkeyCellRenderer {
6674
6679
  dataContext;