ps-toolkit-ui 1.9.77 → 1.9.79
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 -12
- 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/request.class.js +2 -1
- package/esm2015/lib/classes/table.class.js +5 -1
- package/esm2015/lib/components/table/table.component.js +1 -13
- package/fesm2015/ps-toolkit-ui.js +5 -12
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/table.class.d.ts +1 -0
- package/lib/components/table/table.component.d.ts +0 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1451,6 +1451,7 @@
|
|
|
1451
1451
|
}
|
|
1452
1452
|
btn.loading = true;
|
|
1453
1453
|
}
|
|
1454
|
+
console.log(table.searchData(), 'table.searchData()');
|
|
1454
1455
|
this.getClient(table.url, table.method, table.searchData(), function (res) {
|
|
1455
1456
|
if (res.status === exports.ResultStatusEnum.Success) {
|
|
1456
1457
|
table.rows = res.result.List;
|
|
@@ -3219,7 +3220,6 @@
|
|
|
3219
3220
|
}
|
|
3220
3221
|
this.reload = new InputClass(this.table.environment, this.table.l, 'Reload', 'fa-duotone fa-sync-alt', exports.InputType.Icon, 'm-r-10-p');
|
|
3221
3222
|
this.maximum = new InputClass(this.table.environment, this.table.l, 'Maximum', 'fa-duotone fa-arrows-maximize', exports.InputType.Icon, 'm-r-10-p');
|
|
3222
|
-
this.optDelete = new InputClass(this.table.environment, this.table.l, 'Delete', 'fa-duotone fa-trash', exports.InputType.Icon, 'red h-25 m-h-5 d-ib va-m f-u');
|
|
3223
3223
|
try {
|
|
3224
3224
|
for (var _b = __values(this.table.cols.filter(function (x) { return x.withSearch; })), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
3225
3225
|
var c = _c.value;
|
|
@@ -3289,17 +3289,6 @@
|
|
|
3289
3289
|
_this.maximum.icon = _this.maximum.name === 'Minimum' ? 'fa-duotone fa-arrows-maximize' : 'fa-duotone fa-arrows-minimize';
|
|
3290
3290
|
_this.maximum.name = _this.maximum.name === 'Minimum' ? 'Maximum' : 'Minimum';
|
|
3291
3291
|
};
|
|
3292
|
-
this.optDelete.onClick = function (i) {
|
|
3293
|
-
if (_this.table.form) {
|
|
3294
|
-
_this.table.form.clear();
|
|
3295
|
-
}
|
|
3296
|
-
var data = {
|
|
3297
|
-
ids: _this.table.rows.filter(function (x) { return x.selected; }).map(function (x) { return x.id; })
|
|
3298
|
-
};
|
|
3299
|
-
_this.confirm.show(_this.table.l('DeleteConfirm'), _this.table.url + '/Delete/' + 0, data, function () {
|
|
3300
|
-
_this.table.load(null);
|
|
3301
|
-
});
|
|
3302
|
-
};
|
|
3303
3292
|
this.table.showConfirm = function (l, url, data, accept) {
|
|
3304
3293
|
_this.confirm.show(l, url, data, accept);
|
|
3305
3294
|
};
|
|
@@ -8104,6 +8093,9 @@
|
|
|
8104
8093
|
this.loading = false;
|
|
8105
8094
|
}
|
|
8106
8095
|
};
|
|
8096
|
+
TableClass.prototype.data = function () {
|
|
8097
|
+
return this.rows.filter(function (x) { return x.selected; }).map(function (x) { return x.Data; });
|
|
8098
|
+
};
|
|
8107
8099
|
TableClass.prototype.searchData = function (report) {
|
|
8108
8100
|
var e_1, _a;
|
|
8109
8101
|
if (report === void 0) { report = false; }
|
|
@@ -8133,6 +8125,7 @@
|
|
|
8133
8125
|
}
|
|
8134
8126
|
finally { if (e_1) throw e_1.error; }
|
|
8135
8127
|
}
|
|
8128
|
+
console.log(this.searchForm.json(), 'this.searchForm.json()');
|
|
8136
8129
|
return this.searchForm ? this.searchForm.json(d) : d;
|
|
8137
8130
|
};
|
|
8138
8131
|
TableClass.prototype.getUrl = function (url) {
|