ps-toolkit-ui 1.4.28 → 1.4.29
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 -6
- 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 -4
- package/esm2015/lib/components/table/row/table.row.component.js +8 -3
- package/esm2015/lib/components/table/table.component.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +8 -6
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2654,14 +2654,19 @@
|
|
|
2654
2654
|
_this.changeRows.emit(_this.row.Data);
|
|
2655
2655
|
}
|
|
2656
2656
|
else {
|
|
2657
|
-
|
|
2657
|
+
console.log(_this.table.permissions, 'this.table.permissions');
|
|
2658
|
+
_this.confirmShow.emit({
|
|
2659
|
+
action: _this.table.permissions.Action,
|
|
2660
|
+
url: _this.getOptionUrl(option.Url, _this.table.permissions.RelatedId, _this.row.Data.Id),
|
|
2661
|
+
accept: function () {
|
|
2658
2662
|
if (_this.table.hasChildren && _this.table.childrenAutoLoad && _this.row.Data.ParentId != null) {
|
|
2659
2663
|
_this.loadParent.emit(_this.row.Data.ParentId);
|
|
2660
2664
|
}
|
|
2661
2665
|
else {
|
|
2662
2666
|
_this.table.load();
|
|
2663
2667
|
}
|
|
2664
|
-
}
|
|
2668
|
+
}
|
|
2669
|
+
});
|
|
2665
2670
|
}
|
|
2666
2671
|
};
|
|
2667
2672
|
}
|
|
@@ -3112,7 +3117,7 @@
|
|
|
3112
3117
|
return this.changeRows.emit(e);
|
|
3113
3118
|
};
|
|
3114
3119
|
TableComponent.prototype.onConfirmShow = function (e) {
|
|
3115
|
-
this.confirm.show(this.table.l('
|
|
3120
|
+
this.confirm.show(this.table.l(e.action + 'Confirm'), e.url, null, e.accept);
|
|
3116
3121
|
};
|
|
3117
3122
|
TableComponent.prototype.changeSort = function (e, s) {
|
|
3118
3123
|
if ($__namespace(e.target).closest('.header-search').hasClass('header-search')) {
|
|
@@ -7424,9 +7429,6 @@
|
|
|
7424
7429
|
TableClass.prototype.showInsertModal = function (cId) {
|
|
7425
7430
|
if (cId === void 0) { cId = null; }
|
|
7426
7431
|
var insertAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.Insert);
|
|
7427
|
-
console.log(insertAccess);
|
|
7428
|
-
console.log(cId, 'cId');
|
|
7429
|
-
console.log(insertAccess.Url.replace('{}', this.permissions.RelatedId) + (cId ? '/' + cId : ''));
|
|
7430
7432
|
this.form.url = this.form.baseUrl = insertAccess.Url.replace('{}', this.permissions.RelatedId) + (cId ? '/' + cId : '');
|
|
7431
7433
|
this.form.name = insertAccess.Name;
|
|
7432
7434
|
this.form.method = exports.Method.Post;
|