tnx-shared 5.3.378 → 5.3.380

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.
@@ -1106,6 +1106,7 @@
1106
1106
  this.entityKey = 'id';
1107
1107
  this.modelSchemas = [];
1108
1108
  this.cols = [];
1109
+ this.rawCols = [];
1109
1110
  this.commonSchemas = [];
1110
1111
  this.columnSetting = new ColumnSetting();
1111
1112
  this.pageSetting = new PageSetting();
@@ -27376,6 +27377,7 @@
27376
27377
  this.model.baseReady = false;
27377
27378
  if (this.setting.cols) {
27378
27379
  this.setting.cols = this.setting.cols.filter(function (q) { return !q.removeOnInit; });
27380
+ Object.assign(this.setting.rawCols, this.setting.cols);
27379
27381
  }
27380
27382
  this.setting.customGetData = this.customGetData;
27381
27383
  this.mergeInfoToColumnSchema();
@@ -30173,35 +30175,49 @@
30173
30175
  var result = [
30174
30176
  {
30175
30177
  path: '',
30176
- component: SplashComponentComponent,
30178
+ component: SplashComponentComponent
30177
30179
  },
30178
30180
  {
30179
30181
  path: 'dashboard',
30180
30182
  component: CommonDashboardComponent,
30183
+ canActivate: [],
30184
+ canActivateChild: []
30181
30185
  },
30182
30186
  {
30183
30187
  path: 'access-denied',
30184
30188
  component: AccessDeniedComponent,
30189
+ canActivate: [],
30190
+ canActivateChild: []
30185
30191
  },
30186
30192
  {
30187
30193
  path: 'universal-link',
30188
30194
  component: UniversalLinkProcessorComponent,
30195
+ canActivate: [],
30196
+ canActivateChild: []
30189
30197
  },
30190
30198
  {
30191
30199
  path: 'thong-bao',
30192
30200
  component: ThongBaoComponent,
30201
+ canActivate: [],
30202
+ canActivateChild: []
30193
30203
  },
30194
30204
  {
30195
30205
  path: 'my-drive',
30196
30206
  component: MyDriveComponent,
30207
+ canActivate: [],
30208
+ canActivateChild: []
30197
30209
  },
30198
30210
  {
30199
30211
  path: 'change-password',
30200
30212
  component: ChangePasswordComponent,
30213
+ canActivate: [],
30214
+ canActivateChild: []
30201
30215
  },
30202
30216
  {
30203
30217
  path: 'profile',
30204
30218
  component: ProfileComponent,
30219
+ canActivate: [],
30220
+ canActivateChild: []
30205
30221
  },
30206
30222
  ];
30207
30223
  result.forEach(function (item) {
@@ -33385,7 +33401,7 @@
33385
33401
  this.mdWidth = this.parentSetting.mdWidthCommonSearch;
33386
33402
  this.setting.baseService = this.parentSetting.baseService;
33387
33403
  this.isCustomGenerateSearch = this.parentSetting.commonSchemas.length > 0;
33388
- var columnFilters = this.parentSetting.cols.filter(function (p) { return p.allowFilter && !p.field.startsWith('str'); }).sort(function (a, b) {
33404
+ var columnFilters = this.parentSetting.rawCols.filter(function (p) { return p.allowFilter && !p.field.startsWith('str'); }).sort(function (a, b) {
33389
33405
  if (a.order < b.order) {
33390
33406
  return -1;
33391
33407
  }
@@ -33612,7 +33628,7 @@
33612
33628
  var _a;
33613
33629
  if (!data.hasOwnProperty(item) || (!data[item] || data[item].length < 1))
33614
33630
  return;
33615
- var valueField = ((_a = _this.parentSetting.cols.find(function (p) { return p.field === item; })) === null || _a === void 0 ? void 0 : _a.valueField) || 'id';
33631
+ var valueField = ((_a = _this.parentSetting.rawCols.find(function (p) { return p.field === item; })) === null || _a === void 0 ? void 0 : _a.valueField) || 'id';
33616
33632
  if (data[item].length) {
33617
33633
  data[item] = data[item].map(function (p) { return p[valueField]; });
33618
33634
  }
@@ -39574,7 +39590,7 @@
39574
39590
  top.location.href = '/';
39575
39591
  }
39576
39592
  else {
39577
- top.location.href = '/access-denied';
39593
+ top.location.href = window['baseHref'] + '/access-denied';
39578
39594
  }
39579
39595
  resolve(false);
39580
39596
  }