tnx-shared 5.1.504 → 5.1.506

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.
@@ -24814,14 +24814,23 @@
24814
24814
  }
24815
24815
  CrudListComponent.prototype.ngOnInit = function () {
24816
24816
  var _a;
24817
+ var defaultSetting = new CrudListSetting();
24817
24818
  if (this.environment.customizeUi) {
24818
- this.setting.showExportWordSelectedItems = this.environment.customizeUi.showExportWordSelectedItems;
24819
+ if (this.setting.showExportWordSelectedItems != defaultSetting.showExportWordSelectedItems
24820
+ && this.environment.customizeUi.showExportWordSelectedItems != undefined
24821
+ && this.setting.showExportWordSelectedItems != this.environment.customizeUi.showExportWordSelectedItems) {
24822
+ this.setting.showExportWordSelectedItems = this.environment.customizeUi.showExportWordSelectedItems;
24823
+ }
24819
24824
  }
24820
24825
  if ((_a = this.rootContext.data) === null || _a === void 0 ? void 0 : _a.currentAppMetadata) {
24821
24826
  if (this.rootContext.data.currentAppMetadata.setting) {
24822
24827
  var setting = this.rootContext.data.currentAppMetadata.setting;
24823
24828
  for (var key in setting) {
24824
- this.setting[key] = setting[key];
24829
+ if (defaultSetting[key] == this.setting[key]
24830
+ && setting[key] != undefined
24831
+ && this.setting[key] != setting[key]) {
24832
+ this.setting[key] = setting[key];
24833
+ }
24825
24834
  }
24826
24835
  }
24827
24836
  }
@@ -52848,15 +52857,15 @@
52848
52857
  _this.readyToGetData = false;
52849
52858
  _this._menuButtons = [];
52850
52859
  _this._moduleConfig = _this._moduleConfigService.getConfig();
52851
- _this.setting.baseService = _this._fileVersionService;
52852
52860
  return _this;
52853
52861
  }
52854
52862
  FileVersionListComponent.prototype.ngOnInit = function () {
52863
+ this.setting.baseService = this._fileVersionService;
52855
52864
  this.loadDetailFromQueryParam = true;
52856
52865
  this.plusUrl = 'GetListVersionByFileId';
52857
52866
  this.setting.modelSchemas = [
52858
52867
  new ModelSchema({
52859
- field: 'version',
52868
+ field: 'versionName',
52860
52869
  name: 'Phiên bản',
52861
52870
  fullName: 'Phiên bản',
52862
52871
  description: 'Phiên bản'
@@ -52891,17 +52900,17 @@
52891
52900
  this.setting.cols = [
52892
52901
  new ColumnSchemaBase({
52893
52902
  field: 'versionName',
52894
- width: '5em'
52903
+ width: '8em'
52895
52904
  }),
52896
52905
  new ColumnSchemaBase({
52897
52906
  field: 'size',
52898
52907
  dataType: 'fileSize',
52899
- width: '5em'
52908
+ width: '8em'
52900
52909
  }),
52901
52910
  new ColumnSchemaBase({
52902
52911
  field: 'created',
52903
52912
  dataType: 'datetime',
52904
- width: '6em'
52913
+ width: '8em'
52905
52914
  }),
52906
52915
  new ColumnSchemaBase({
52907
52916
  field: 'createdByUser',
@@ -52921,6 +52930,7 @@
52921
52930
  };
52922
52931
  FileVersionListComponent.prototype.initSetting = function () {
52923
52932
  this.setting.heightType = exports.HeightType.dynamic;
52933
+ this.setting.fixHeightTypeInDialog = false;
52924
52934
  this.setting.hiddenFilterRow = true;
52925
52935
  this.setting.hiddenHeader = true;
52926
52936
  this.setting.hiddenSetting = true;