ps-toolkit-ui 0.0.122 → 0.0.126
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 +6 -5
- 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 +7 -6
- package/fesm2015/ps-toolkit-ui.js +6 -5
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2567,6 +2567,7 @@
|
|
|
2567
2567
|
[this.addChildren] : [];
|
|
2568
2568
|
var _loop_1 = function (option) {
|
|
2569
2569
|
var opt = new InputClass(this_1.table.environment, this_1.table.l, option.Name, option.Icon, option.InputType === exports.PermissionInputTypeEnum.Icon ? exports.InputType.Icon : exports.InputType.Button, 'blue h-25 m-h-5 d-ib va-m f-u');
|
|
2570
|
+
opt.row = this_1.row;
|
|
2570
2571
|
if (option.Action === 'Update') {
|
|
2571
2572
|
if (this_1.table.form) {
|
|
2572
2573
|
opt.onClick = function () {
|
|
@@ -2634,7 +2635,7 @@
|
|
|
2634
2635
|
var e_2, _a;
|
|
2635
2636
|
if (opt.modal.table) {
|
|
2636
2637
|
var p = new PermissionClass();
|
|
2637
|
-
p.RelatedId = btn.row.Id;
|
|
2638
|
+
p.RelatedId = btn.row.Data.Id;
|
|
2638
2639
|
p.Area = _this.table.permissions.Area;
|
|
2639
2640
|
p.Controller = _this.table.permissions.Controller;
|
|
2640
2641
|
p.Action = option.Action;
|
|
@@ -2648,8 +2649,8 @@
|
|
|
2648
2649
|
}
|
|
2649
2650
|
if (opt.modal.form) {
|
|
2650
2651
|
opt.modal.form.name = option.Name;
|
|
2651
|
-
opt.modal.form.url = opt.modal.form.baseUrl + 'Update/' + btn.row.Id;
|
|
2652
|
-
opt.modal.form.loadData(opt.modal.form.baseUrl + 'Get/' + btn.row.Id);
|
|
2652
|
+
opt.modal.form.url = opt.modal.form.baseUrl + 'Update/' + btn.row.Data.Id;
|
|
2653
|
+
opt.modal.form.loadData(opt.modal.form.baseUrl + 'Get/' + btn.row.Data.Id);
|
|
2653
2654
|
opt.modal.form.onSuccessBase = function () {
|
|
2654
2655
|
opt.modal.hide();
|
|
2655
2656
|
};
|
|
@@ -2660,7 +2661,7 @@
|
|
|
2660
2661
|
var r = _c.value;
|
|
2661
2662
|
if (r.table) {
|
|
2662
2663
|
var p = new PermissionClass();
|
|
2663
|
-
p.RelatedId = btn.row.Id;
|
|
2664
|
+
p.RelatedId = btn.row.Data.Id;
|
|
2664
2665
|
p.Area = _this.table.permissions.Area;
|
|
2665
2666
|
p.Controller = _this.table.permissions.Controller;
|
|
2666
2667
|
p.Action = r.name;
|
|
@@ -2709,7 +2710,7 @@
|
|
|
2709
2710
|
p.Area = _this.table.permissions.Area;
|
|
2710
2711
|
p.Controller = _this.table.permissions.Controller;
|
|
2711
2712
|
p.Action = option.Action;
|
|
2712
|
-
_this.table.showConfirm(_this.table.l(option.Action + 'Confirm'), p.getUrl() + '/' + btn.row.Id, null, function () {
|
|
2713
|
+
_this.table.showConfirm(_this.table.l(option.Action + 'Confirm'), p.getUrl() + '/' + btn.row.Data.Id, null, function () {
|
|
2713
2714
|
_this.table.load();
|
|
2714
2715
|
});
|
|
2715
2716
|
};
|