ps-toolkit-ui 1.5.26 → 1.5.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 +5 -0
- 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/currentDataClass.js +3 -1
- package/esm2015/lib/classes/form.class.js +2 -1
- package/esm2015/lib/classes/table.class.js +2 -1
- package/esm2015/lib/components/table/row/table.row.component.js +2 -1
- package/fesm2015/ps-toolkit-ui.js +5 -0
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/currentDataClass.d.ts +1 -0
- package/lib/classes/form.class.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1559,6 +1559,7 @@
|
|
|
1559
1559
|
if (url === void 0) { url = null; }
|
|
1560
1560
|
if (cls === void 0) { cls = null; }
|
|
1561
1561
|
this.environment = null;
|
|
1562
|
+
this.isEdit = false;
|
|
1562
1563
|
this.subName = null;
|
|
1563
1564
|
this.method = exports.Method.Post;
|
|
1564
1565
|
this.loading = false;
|
|
@@ -2912,6 +2913,7 @@
|
|
|
2912
2913
|
};
|
|
2913
2914
|
TableRowComponent.prototype.edit = function (opt, option) {
|
|
2914
2915
|
var _this = this;
|
|
2916
|
+
this.table.form.isEdit = true;
|
|
2915
2917
|
if (this.table.permissions.Type === exports.PermissionTypeEnum.Form) {
|
|
2916
2918
|
this.table.form.name = opt.name;
|
|
2917
2919
|
this.table.form.setData(this.row.Data);
|
|
@@ -7499,6 +7501,7 @@
|
|
|
7499
7501
|
TableClass.prototype.showInsertModal = function (cId) {
|
|
7500
7502
|
if (cId === void 0) { cId = null; }
|
|
7501
7503
|
var insertAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.Insert);
|
|
7504
|
+
this.form.isEdit = false;
|
|
7502
7505
|
this.form.url = this.form.baseUrl = insertAccess.Url.replace('{}', this.permissions.RelatedId) + (cId ? '/' + cId : '');
|
|
7503
7506
|
this.form.name = insertAccess.Name;
|
|
7504
7507
|
this.form.method = exports.Method.Post;
|
|
@@ -7829,11 +7832,13 @@
|
|
|
7829
7832
|
this.permissions = [];
|
|
7830
7833
|
this.modules = [];
|
|
7831
7834
|
this.software = { Version: '0.0' };
|
|
7835
|
+
this.setting = {};
|
|
7832
7836
|
if (data != null) {
|
|
7833
7837
|
this.user = data.User;
|
|
7834
7838
|
this.permissions = data.Permissions;
|
|
7835
7839
|
this.modules = data.Modules;
|
|
7836
7840
|
this.software = data.Software;
|
|
7841
|
+
this.setting = data.Setting;
|
|
7837
7842
|
}
|
|
7838
7843
|
}
|
|
7839
7844
|
return CurrentDataClass;
|