ps-toolkit-ui 1.22.11 → 1.22.15
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/ps-toolkit-ui.umd.js +11 -11
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/form.class.js +6 -1
- package/esm2015/lib/components/table/row/table.row.component.js +3 -8
- package/fesm2015/ps-toolkit-ui.js +7 -7
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -2640,6 +2640,11 @@
|
|
|
2640
2640
|
_this.setOptions(r);
|
|
2641
2641
|
}
|
|
2642
2642
|
else if (_this.type === exports.InputType.Tree || _this.type === exports.InputType.TreeRadio) {
|
|
2643
|
+
result.forEach(function (x) {
|
|
2644
|
+
var _a;
|
|
2645
|
+
x.Id = x.Id.toString();
|
|
2646
|
+
x.ParentId = ((_a = x.ParentId) !== null && _a !== void 0 ? _a : null) !== null ? x.ParentId.toString() : null;
|
|
2647
|
+
});
|
|
2643
2648
|
_this.rows = _this.getRows(result, null);
|
|
2644
2649
|
if (_this.value != null) {
|
|
2645
2650
|
setTimeout(function () {
|
|
@@ -4246,6 +4251,7 @@
|
|
|
4246
4251
|
if (this.table.hasChildren || this.subTable != null) {
|
|
4247
4252
|
this.showChildren = new InputClass(this.table.environment, this.table.l, this.table.name + 'SubsetTitle', 'fad fa-angle-left f-s-22', this.row.Data.CountChild > 0 || (!this.table.childrenAutoLoad && this.children.length > 0) || this.subTable != null ? exports.InputType.Icon : exports.InputType.Hidden, 'h-25 m-h-5 d-ib va-m f-u');
|
|
4248
4253
|
this.showChildren.onClick = function () {
|
|
4254
|
+
var _a, _b;
|
|
4249
4255
|
if ($(_this.childrenDiv.nativeElement).is(':visible')) {
|
|
4250
4256
|
$(_this.childrenDiv.nativeElement).slideUp();
|
|
4251
4257
|
_this.showChildren.icon = 'fad fa-angle-left f-s-22';
|
|
@@ -4254,20 +4260,14 @@
|
|
|
4254
4260
|
_this.loadChildren(_this.row.Data.Id);
|
|
4255
4261
|
}
|
|
4256
4262
|
else if (_this.subTable != null && _this.subTable.permissions == null) {
|
|
4257
|
-
var
|
|
4258
|
-
console.log(_this.table.permissions.Accesses);
|
|
4259
|
-
console.log(_this.subTable.name);
|
|
4260
|
-
console.log(acc);
|
|
4263
|
+
var acc_1 = _this.table.permissions.Accesses.find(function (x) { return x.Action === _this.subTable.name; });
|
|
4261
4264
|
var ps = new PermissionClass();
|
|
4262
4265
|
ps.RelatedId = _this.row.Data.Id;
|
|
4263
|
-
ps.Area =
|
|
4264
|
-
ps.Controller =
|
|
4265
|
-
ps.Action =
|
|
4266
|
-
|
|
4267
|
-
console.log(acc.Accesses);
|
|
4268
|
-
ps.Accesses = acc.Accesses;
|
|
4266
|
+
ps.Area = acc_1.Area;
|
|
4267
|
+
ps.Controller = acc_1.Controller;
|
|
4268
|
+
ps.Action = acc_1.Action;
|
|
4269
|
+
ps.Accesses = (_b = (_a = _this.table.permissions.Accesses) === null || _a === void 0 ? void 0 : _a.filter(function (x) { return x.ParentId === acc_1.Id; })) !== null && _b !== void 0 ? _b : [];
|
|
4269
4270
|
_this.subTable.permissions = ps;
|
|
4270
|
-
console.log(ps);
|
|
4271
4271
|
_this.subTable.set();
|
|
4272
4272
|
$(_this.childrenDiv.nativeElement).slideDown();
|
|
4273
4273
|
_this.showChildren.icon = 'fad fa-angle-down f-s-22';
|