ps-toolkit-ui 1.4.33 → 1.4.36
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 +18 -15
- 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/components/table/row/table.row.component.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +1 -1
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2705,24 +2705,27 @@
|
|
|
2705
2705
|
};
|
|
2706
2706
|
}
|
|
2707
2707
|
if (opt.modal.accordion) {
|
|
2708
|
+
var _loop_3 = function (r) {
|
|
2709
|
+
if (r.table) {
|
|
2710
|
+
var p = new PermissionClass();
|
|
2711
|
+
p.RelatedId = _this.row.Data.Id;
|
|
2712
|
+
p.Area = _this.table.permissions.Area;
|
|
2713
|
+
p.Controller = option.Controller;
|
|
2714
|
+
p.Action = r.name;
|
|
2715
|
+
p.Accesses = _this.row.Options.filter(function (x) { return x.ParentId === option.Id; });
|
|
2716
|
+
p.Accesses.forEach(function (x) { return x.Url = x.Url.replace('{action}', r.name.toLowerCase()); });
|
|
2717
|
+
r.table.permissions = p;
|
|
2718
|
+
if (r.table.form) {
|
|
2719
|
+
r.table.form.url = option.Url + 'insert';
|
|
2720
|
+
r.table.form.baseUrl = option.Url + 'insert';
|
|
2721
|
+
}
|
|
2722
|
+
r.table.set();
|
|
2723
|
+
}
|
|
2724
|
+
};
|
|
2708
2725
|
try {
|
|
2709
2726
|
for (var _b = (e_3 = void 0, __values(opt.modal.accordion.rows)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
2710
2727
|
var r = _c.value;
|
|
2711
|
-
|
|
2712
|
-
var p = new PermissionClass();
|
|
2713
|
-
p.RelatedId = _this.row.Data.Id;
|
|
2714
|
-
p.Area = _this.table.permissions.Area;
|
|
2715
|
-
p.Controller = option.Controller;
|
|
2716
|
-
p.Action = r.name;
|
|
2717
|
-
p.Accesses = _this.row.Options.filter(function (x) { return x.ParentId === option.Id; });
|
|
2718
|
-
console.log(p.Accesses, 'p.Accesses');
|
|
2719
|
-
r.table.permissions = p;
|
|
2720
|
-
if (r.table.form) {
|
|
2721
|
-
r.table.form.url = option.Url + 'insert';
|
|
2722
|
-
r.table.form.baseUrl = option.Url + 'insert';
|
|
2723
|
-
}
|
|
2724
|
-
r.table.set();
|
|
2725
|
-
}
|
|
2728
|
+
_loop_3(r);
|
|
2726
2729
|
}
|
|
2727
2730
|
}
|
|
2728
2731
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|