ngx-rs-ant 0.10.7 → 0.10.8

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.
@@ -1000,6 +1000,7 @@ class DataGridComponent {
1000
1000
  caption: field.caption,
1001
1001
  dataType: 'string',
1002
1002
  alignment: 'center',
1003
+ cssClass: 'cell-vertical-middle',
1003
1004
  allowHeaderFiltering: false,
1004
1005
  allowFiltering: false,
1005
1006
  allowSorting: false,
@@ -1014,6 +1015,7 @@ class DataGridComponent {
1014
1015
  caption: field.caption,
1015
1016
  dataType: this.typeMap[field.dataType].dataType,
1016
1017
  alignment: 'left',
1018
+ cssClass: 'cell-vertical-middle',
1017
1019
  allowHeaderFiltering: true,
1018
1020
  headerFilter: {
1019
1021
  allowSelectAll: false
@@ -1235,6 +1237,7 @@ class DataGridComponent {
1235
1237
  caption: field.caption,
1236
1238
  dataType: 'string',
1237
1239
  alignment: 'left',
1240
+ cssClass: 'cell-vertical-middle',
1238
1241
  allowHeaderFiltering: false,
1239
1242
  allowFiltering: false,
1240
1243
  visible: field.visible,
@@ -1248,6 +1251,7 @@ class DataGridComponent {
1248
1251
  caption: field.caption,
1249
1252
  dataType: 'string',
1250
1253
  alignment: 'left',
1254
+ cssClass: 'cell-vertical-middle',
1251
1255
  allowHeaderFiltering: false,
1252
1256
  filterOperations: ['='],
1253
1257
  visible: field.visible,
@@ -1454,12 +1458,13 @@ class FormService {
1454
1458
  }
1455
1459
  });
1456
1460
  }
1457
- getOne(tenant, className, oid, template) {
1461
+ getOne(tenant, className, oid, template, isCopy) {
1458
1462
  let api = 'api/data/' + className + '/' + oid;
1459
1463
  return this.http.get(api, {
1460
1464
  params: {
1461
1465
  tenant,
1462
- template: template || ''
1466
+ template: template || '',
1467
+ isCopy: !!isCopy
1463
1468
  }
1464
1469
  });
1465
1470
  }
@@ -1505,11 +1510,8 @@ class FormComponent {
1505
1510
  this.service.getFormTemplateConfig(this.tenant, this.className, this.template).subscribe(response => {
1506
1511
  this.config = response.data.template;
1507
1512
  if (this.copyOid || this.oid) {
1508
- this.service.getOne(this.tenant, this.className, this.copyOid || this.oid, this.template)
1513
+ this.service.getOne(this.tenant, this.className, this.copyOid || this.oid, this.template, this.copyOid)
1509
1514
  .subscribe(response => {
1510
- if (this.copyOid) {
1511
- delete response.data.oid;
1512
- }
1513
1515
  this.model = response.data;
1514
1516
  this.loaded = true;
1515
1517
  this.loading = false;