@trudb/tru-common-lib 0.2.393 → 0.2.396

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,10 @@ 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);
6625
+ let excludedFromCloning = property ? property.excludeFromCloning : false;
6622
6626
  if (typeof selectedRow.$entity.setProperty !== 'undefined' &&
6623
- selectedRow[propertyName] && selectedRow[propertyName].property.canEdit &&
6627
+ excludedFromCloning &&
6624
6628
  propertyName !== config.tableName + 'Ref' &&
6625
6629
  propertyName !== 'rowver' &&
6626
6630
  propertyName !== 'Merge_Data_Set' &&
@@ -6642,7 +6646,10 @@ class TruDataGridClipboard {
6642
6646
  let properties = row.$entity.entityType.getPropertyNames();
6643
6647
  properties
6644
6648
  .filter((propertyName) => {
6649
+ let property = this.modelPropertyLookup.lookup.get(this.tableName + '.' + propertyName);
6650
+ let excludedFromCloning = property ? property.excludeFromCloning : false;
6645
6651
  return propertyName !== 'Ref' &&
6652
+ !excludedFromCloning &&
6646
6653
  propertyName !== config.resultConfig.entityType.name + 'Ref' &&
6647
6654
  !this.util.isLowerCase(propertyName.charAt(0));
6648
6655
  })
@@ -6660,7 +6667,7 @@ class TruDataGridClipboard {
6660
6667
  getCopiedCell = () => {
6661
6668
  return this.copiedCellEntity;
6662
6669
  };
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 });
6670
+ 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
6671
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TruDataGridClipboard, providedIn: 'root' });
6665
6672
  }
6666
6673
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TruDataGridClipboard, decorators: [{
@@ -6668,7 +6675,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
6668
6675
  args: [{
6669
6676
  providedIn: 'root',
6670
6677
  }]
6671
- }], ctorParameters: () => [{ type: TruUtil }, { type: TruFormatter }, { type: TruUiNotification }] });
6678
+ }], ctorParameters: () => [{ type: TruUtil }, { type: TruFormatter }, { type: TruUiNotification }, { type: TruModelPropertyLookup }] });
6672
6679
 
6673
6680
  class TruDataGridPkeyCellRenderer {
6674
6681
  dataContext;