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.
- package/bundles/tnx-shared.umd.js +12 -9
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/classes/base/list-component-base.d.ts.map +1 -1
- package/classes/form-schema.d.ts +1 -0
- package/classes/form-schema.d.ts.map +1 -1
- package/components/user-picker/user-picker.component.d.ts.map +1 -1
- package/directives/authorize.directive.d.ts.map +1 -1
- package/esm2015/classes/base/list-component-base.js +5 -5
- package/esm2015/classes/form-schema.js +2 -1
- package/esm2015/components/common-app-component/common-app-component.js +2 -2
- package/esm2015/components/user-picker/user-picker.component.js +3 -2
- package/esm2015/directives/authorize.directive.js +1 -1
- package/esm2015/services/permission.service.js +5 -4
- package/fesm2015/tnx-shared.js +12 -9
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/permission.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -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() !=
|
|
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." +
|
|
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 (
|
|
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.
|
|
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();
|