ps-toolkit-ui 1.4.25 → 1.4.28
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 -15
- 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 +5 -2
- package/esm2015/lib/components/table/table.component.js +1 -15
- package/fesm2015/ps-toolkit-ui.js +4 -15
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2988,20 +2988,6 @@
|
|
|
2988
2988
|
TableComponent.prototype.ngOnInit = function () {
|
|
2989
2989
|
var e_1, _a;
|
|
2990
2990
|
var _this = this;
|
|
2991
|
-
// if (this.app.isReport){
|
|
2992
|
-
// this.table.perPage = -1;
|
|
2993
|
-
// this.table.extraButtons = false;
|
|
2994
|
-
// this.table.displayLabel = false;
|
|
2995
|
-
// this.table.isReport = true;
|
|
2996
|
-
// this.table.permissions.Accesses = ['List'];
|
|
2997
|
-
// this.table.permissions.Options = [];
|
|
2998
|
-
// this.table.cols.forEach(x => x.sort = false);
|
|
2999
|
-
// this.table.onLoad = () => {
|
|
3000
|
-
// setTimeout(() => {
|
|
3001
|
-
// window.print();
|
|
3002
|
-
// }, 500);
|
|
3003
|
-
// };
|
|
3004
|
-
// }
|
|
3005
2991
|
this.loadIcon = new InputClass(this.table.environment, null, 'LoadIcon');
|
|
3006
2992
|
this.sizeIcon = new InputClass(this.table.environment, null, 'SizeIcon');
|
|
3007
2993
|
if (this.table.hasChildren) {
|
|
@@ -7438,7 +7424,10 @@
|
|
|
7438
7424
|
TableClass.prototype.showInsertModal = function (cId) {
|
|
7439
7425
|
if (cId === void 0) { cId = null; }
|
|
7440
7426
|
var insertAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.Insert);
|
|
7441
|
-
|
|
7427
|
+
console.log(insertAccess);
|
|
7428
|
+
console.log(cId, 'cId');
|
|
7429
|
+
console.log(insertAccess.Url.replace('{}', this.permissions.RelatedId) + (cId ? '/' + cId : ''));
|
|
7430
|
+
this.form.url = this.form.baseUrl = insertAccess.Url.replace('{}', this.permissions.RelatedId) + (cId ? '/' + cId : '');
|
|
7442
7431
|
this.form.name = insertAccess.Name;
|
|
7443
7432
|
this.form.method = exports.Method.Post;
|
|
7444
7433
|
this.form.inputs.filter(function (x) { return x.inEditDisabled; }).forEach(function (x) { return x.disabled = false; });
|