tnx-shared 5.1.469 → 5.1.471

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.
@@ -14052,8 +14052,8 @@
14052
14052
  set: function (value) {
14053
14053
  this.canPrint = false;
14054
14054
  if (this._minimizedData != value && isLiteralObject(value)) {
14055
- this._modelData = mergeJSON(this._modelData, value);
14056
14055
  this.clean();
14056
+ this._modelData = mergeJSON(this._modelData, value);
14057
14057
  this.reInitControlModelAndRootNode();
14058
14058
  this._minimizedData = this.getMinimizeData(this._modelData);
14059
14059
  if (!this.loadedDataEditOld && this.loadedDataEdit) {
@@ -14123,7 +14123,12 @@
14123
14123
  }
14124
14124
  }
14125
14125
  else {
14126
- this.cleanModel(model[key]);
14126
+ if (typeof (model[key]) == 'object') {
14127
+ this.cleanModel(model[key]);
14128
+ }
14129
+ else {
14130
+ model[key] = undefined;
14131
+ }
14127
14132
  }
14128
14133
  }
14129
14134
  }
@@ -35163,19 +35168,20 @@
35163
35168
  // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> BREADCRUMBS.
35164
35169
  FileManagerComponent.prototype.setBreadcrumbs = function () {
35165
35170
  return __awaiter(this, void 0, void 0, function () {
35166
- var rsFolder, rs, index_1, breadcrumbs;
35171
+ var currentFolderId, rsFolder, rs, index_1, breadcrumbs;
35167
35172
  var _this = this;
35168
35173
  return __generator(this, function (_b) {
35169
35174
  switch (_b.label) {
35170
35175
  case 0:
35171
- if (!this.data.currentFolderId) return [3 /*break*/, 3];
35172
- return [4 /*yield*/, this._folderService.getDetailWithPermission(this.data.currentFolderId)];
35176
+ currentFolderId = this.data.currentFolderId;
35177
+ if (!currentFolderId) return [3 /*break*/, 3];
35178
+ return [4 /*yield*/, this._folderService.getDetailWithPermission(currentFolderId)];
35173
35179
  case 1:
35174
35180
  rsFolder = _b.sent();
35175
35181
  if (rsFolder.data) {
35176
35182
  this.basePermission = rsFolder.data.basePermission;
35177
35183
  }
35178
- return [4 /*yield*/, this._folderService.getFullFolderPath(this.data.currentFolderId)];
35184
+ return [4 /*yield*/, this._folderService.getFullFolderPath(currentFolderId)];
35179
35185
  case 2:
35180
35186
  rs = _b.sent();
35181
35187
  if (rs.success && rs.data) {
@@ -35185,7 +35191,7 @@
35185
35191
  var breadcrumb = {
35186
35192
  label: index_1 == 0 ? _this.getRootFolderName(folder.name) : folder.name,
35187
35193
  id: folder.id,
35188
- styleClass: folder.id != _this.data.currentFolderId ? 'fm-clickable' : 'fm-current-folder',
35194
+ styleClass: folder.id != currentFolderId ? 'fm-clickable' : 'fm-current-folder',
35189
35195
  command: function (event) {
35190
35196
  _this.getFolderContent(folder.id);
35191
35197
  },