tnx-shared 5.1.415 → 5.1.417

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.
@@ -1746,6 +1746,7 @@
1746
1746
  _this.useVbDen = true;
1747
1747
  _this.useVbDi = true;
1748
1748
  _this.readOnly = false;
1749
+ _this.readonly = false;
1749
1750
  _this.loaiVanBan = exports.EnumLoaiVanBanBase.VB_DI;
1750
1751
  for (var key in init) {
1751
1752
  _this[key] = init[key];
@@ -20058,7 +20059,7 @@
20058
20059
  PermissionService.prototype.getAllBasePermission = function (userId) {
20059
20060
  var _a, _b, _c;
20060
20061
  return __awaiter(this, void 0, void 0, function () {
20061
- var url, user, res, lstAppCodes, promiseArr, lstAppCodes_1, lstAppCodes_1_1, code, lstAppCodes_2, lstAppCodes_2_1, service, permissions, key_1, key, storageItem;
20062
+ var url, user, res, lstAppCodes, promiseArr, lstAppCodes_1, lstAppCodes_1_1, code, lstAppCodes_2, lstAppCodes_2_1, service, permissions, serviceCode, key_1, key, storageItem;
20062
20063
  var e_1, _d, e_2, _e;
20063
20064
  return __generator(this, function (_f) {
20064
20065
  switch (_f.label) {
@@ -20107,14 +20108,15 @@
20107
20108
  for (lstAppCodes_2 = __values(lstAppCodes), lstAppCodes_2_1 = lstAppCodes_2.next(); !lstAppCodes_2_1.done; lstAppCodes_2_1 = lstAppCodes_2.next()) {
20108
20109
  service = lstAppCodes_2_1.value;
20109
20110
  permissions = [];
20111
+ serviceCode = service.toUpperCase();
20110
20112
  for (key_1 in res.data) {
20111
- if (key_1.toUpperCase() != service.toUpperCase()) {
20113
+ if (key_1.toUpperCase() != serviceCode) {
20112
20114
  continue;
20113
20115
  }
20114
20116
  permissions = res.data[key_1];
20115
20117
  break;
20116
20118
  }
20117
- key = "AUTHORIZATION." + service.toUpperCase();
20119
+ key = "AUTHORIZATION." + serviceCode;
20118
20120
  storageItem = this.storage.getItem(key);
20119
20121
  if (storageItem != null) {
20120
20122
  this.storage.removeItem(key);
@@ -21088,17 +21090,17 @@
21088
21090
  if (!this.serviceCode && this.setting.baseService) {
21089
21091
  this.serviceCode = this.setting.baseService.serviceCode;
21090
21092
  }
21091
- if (!this.authorizePath) {
21093
+ if (this.authorizePath) {
21092
21094
  this.authorizePaths[ComCtxConstants.COMMON.ADD] = this.authorizePath + "/ADD";
21093
21095
  this.authorizePaths[ComCtxConstants.COMMON.EDIT] = this.authorizePath + "/EDIT";
21094
21096
  this.authorizePaths[ComCtxConstants.COMMON.DELETE] = this.authorizePath + "/DELETE";
21095
21097
  this.authorizePaths[ComCtxConstants.COMMON.DELETE_MULTIPLE] = this.authorizePath + "/DELETE_MULTIPLE";
21096
21098
  this.authorizePaths[ComCtxConstants.COMMON.EXPORT_EXCEL] = this.authorizePath + "/EXPORT_EXCEL";
21097
21099
  this.authorizePaths[ComCtxConstants.COMMON.EXPORT_ALL_EXCEL] = this.authorizePath + "/EXPORT_ALL_EXCEL";
21100
+ this.authorizeButtons.forEach(function (button) {
21101
+ _this.buttonApplyAuthorize[button] = true;
21102
+ });
21098
21103
  }
21099
- this.authorizeButtons.forEach(function (button) {
21100
- _this.buttonApplyAuthorize[button] = true;
21101
- });
21102
21104
  var userService = this._injector.get(UserService);
21103
21105
  var temp = userService.getCurrentUser();
21104
21106
  if (temp != null) {
@@ -31546,7 +31548,7 @@
31546
31548
  var res;
31547
31549
  return __generator(this, function (_a) {
31548
31550
  switch (_a.label) {
31549
- case 0: return [4 /*yield*/, this._permissionService.clearPermissionCacheAll()];
31551
+ case 0: return [4 /*yield*/, this._permissionService.clearPermissionCache([])];
31550
31552
  case 1:
31551
31553
  res = _a.sent();
31552
31554
  if (!res.success) {
@@ -56894,8 +56896,9 @@
56894
56896
  return value[_this.control.valueField];
56895
56897
  };
56896
56898
  }
56897
- else
56899
+ else {
56898
56900
  this.funcReturnValue = function (value) { return value; };
56901
+ }
56899
56902
  this.buildFilterKeyword();
56900
56903
  this.buildSettingEntityPicker();
56901
56904
  this.createSchemaSearch();