ps-toolkit-ui 0.0.137 → 0.0.138
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 +8 -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/table.class.js +1 -3
- package/esm2015/lib/components/table/row/table.row.component.js +9 -10
- package/fesm2015/ps-toolkit-ui.js +8 -11
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2647,19 +2647,18 @@
|
|
|
2647
2647
|
var p = new PermissionClass();
|
|
2648
2648
|
p.RelatedId = this_1.table.permissions.RelatedId;
|
|
2649
2649
|
p.Area = this_1.table.permissions.Area;
|
|
2650
|
-
p.Controller = option.Controller
|
|
2651
|
-
p.Action =
|
|
2652
|
-
opt.url = p.getUrl() +
|
|
2650
|
+
p.Controller = option.Controller;
|
|
2651
|
+
p.Action = option.Action;
|
|
2652
|
+
opt.url = p.getUrl() + '/' + this_1.row.Data.Id;
|
|
2653
2653
|
opt.urlNewTab = option.InputAction === exports.PermissionInputActionEnum.LinkNewTab;
|
|
2654
2654
|
}
|
|
2655
2655
|
else if (option.InputAction === exports.PermissionInputActionEnum.Modal) {
|
|
2656
2656
|
opt.modal = this_1.table.modals.find(function (x) { return x.name === option.Action; });
|
|
2657
|
-
opt.onClick = function (
|
|
2657
|
+
opt.onClick = function () {
|
|
2658
2658
|
var e_2, _a;
|
|
2659
2659
|
if (opt.modal.table) {
|
|
2660
|
-
console.log(_this.row.Options.filter(function (x) { return x.ParentId === option.Id; }), 'this.row.Options.filter(x => x.ParentId === option.Id)');
|
|
2661
2660
|
var p = new PermissionClass();
|
|
2662
|
-
p.RelatedId =
|
|
2661
|
+
p.RelatedId = _this.row.Data.Id;
|
|
2663
2662
|
p.Area = _this.table.permissions.Area;
|
|
2664
2663
|
p.Controller = _this.table.permissions.Controller;
|
|
2665
2664
|
p.Action = option.Action;
|
|
@@ -2673,8 +2672,8 @@
|
|
|
2673
2672
|
}
|
|
2674
2673
|
if (opt.modal.form) {
|
|
2675
2674
|
opt.modal.form.name = option.Name;
|
|
2676
|
-
opt.modal.form.url = opt.modal.form.baseUrl + 'Update/' +
|
|
2677
|
-
opt.modal.form.loadData(opt.modal.form.baseUrl + 'Get/' +
|
|
2675
|
+
opt.modal.form.url = opt.modal.form.baseUrl + 'Update/' + _this.row.Data.Id;
|
|
2676
|
+
opt.modal.form.loadData(opt.modal.form.baseUrl + 'Get/' + _this.row.Data.Id);
|
|
2678
2677
|
opt.modal.form.onSuccessBase = function () {
|
|
2679
2678
|
opt.modal.hide();
|
|
2680
2679
|
};
|
|
@@ -2685,7 +2684,7 @@
|
|
|
2685
2684
|
var r = _c.value;
|
|
2686
2685
|
if (r.table) {
|
|
2687
2686
|
var p = new PermissionClass();
|
|
2688
|
-
p.RelatedId =
|
|
2687
|
+
p.RelatedId = _this.row.Data.Id;
|
|
2689
2688
|
p.Area = _this.table.permissions.Area;
|
|
2690
2689
|
p.Controller = _this.table.permissions.Controller;
|
|
2691
2690
|
p.Action = r.name;
|
|
@@ -7244,7 +7243,6 @@
|
|
|
7244
7243
|
var accessInp = new InputClass(this_1.environment, this_1.l, access.Name, access.Icon, access.InputType === exports.PermissionInputTypeEnum.Button ? exports.InputType.Button : exports.InputType.Icon, 'blue w-u h-30');
|
|
7245
7244
|
if (access.AccessType === exports.PermissionAccessTypeEnum.Insert) {
|
|
7246
7245
|
accessInp.class = accessInp.class.replace('blue', 'green');
|
|
7247
|
-
console.log(this_1.name, this_1.form, '111111111111');
|
|
7248
7246
|
if (this_1.form) {
|
|
7249
7247
|
this_1.form.url = this_1.form.baseUrl = this_1.url + 'Insert';
|
|
7250
7248
|
if (!this_1.form.onTop) {
|
|
@@ -7258,7 +7256,6 @@
|
|
|
7258
7256
|
}
|
|
7259
7257
|
else {
|
|
7260
7258
|
this_1.form.displayLabel = false;
|
|
7261
|
-
console.log(this_1.form, '222222222');
|
|
7262
7259
|
return "continue";
|
|
7263
7260
|
}
|
|
7264
7261
|
}
|