ps-toolkit-ui 0.0.169 → 0.0.171
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 +4 -4
- 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 +3 -3
- package/esm2015/lib/components/table/row/table.row.component.js +2 -3
- package/fesm2015/ps-toolkit-ui.js +3 -4
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/table.class.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2504,13 +2504,12 @@
|
|
|
2504
2504
|
if (this.table.permissions.hasAccess(exports.PermissionAccessTypeEnum.Insert)) {
|
|
2505
2505
|
this.addChildren = new InputClass(this.table.environment, this.table.l, this.table.name + 'AddSubsetTitle', 'fad fa-plus fa-rotate-90', exports.InputType.Icon, 'green m-h-5 h-25 d-ib va-m f-u');
|
|
2506
2506
|
this.addChildren.onClick = function () {
|
|
2507
|
-
_this.table.form.url = _this.table.url + 'Insert/' + _this.row.Data.Id;
|
|
2508
2507
|
_this.table.form.onSuccessBase = function () {
|
|
2509
2508
|
_this.table.modal.hide();
|
|
2510
2509
|
_this.showChildren.type = exports.InputType.Icon;
|
|
2511
2510
|
_this.loadChildren(_this.row.Data.Id);
|
|
2512
2511
|
};
|
|
2513
|
-
_this.table.showInsertModal();
|
|
2512
|
+
_this.table.showInsertModal(_this.row.Data.Id);
|
|
2514
2513
|
};
|
|
2515
2514
|
}
|
|
2516
2515
|
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) ? exports.InputType.Icon : exports.InputType.Hidden, 'h-25 m-h-5 d-ib va-m f-u');
|
|
@@ -7207,9 +7206,10 @@
|
|
|
7207
7206
|
TableClass.prototype.getUrl = function () {
|
|
7208
7207
|
return this.url + 'List';
|
|
7209
7208
|
};
|
|
7210
|
-
TableClass.prototype.showInsertModal = function () {
|
|
7209
|
+
TableClass.prototype.showInsertModal = function (cId) {
|
|
7210
|
+
if (cId === void 0) { cId = null; }
|
|
7211
7211
|
var insertAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.Insert);
|
|
7212
|
-
this.form.url = this.form.baseUrl = this.url + 'Insert';
|
|
7212
|
+
this.form.url = this.form.baseUrl = this.url + 'Insert' + cId ? ('/' + cId) : '';
|
|
7213
7213
|
this.form.name = insertAccess.Name;
|
|
7214
7214
|
this.form.method = exports.Method.Post;
|
|
7215
7215
|
this.form.inputs.filter(function (x) { return x.inEditDisabled; }).forEach(function (x) { return x.disabled = false; });
|