tnx-shared 5.3.225 → 5.3.226
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/tnx-shared.umd.js +5 -2
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/classes/base/list-base.d.ts +3 -0
- package/classes/base/list-base.d.ts.map +1 -1
- package/esm2015/classes/base/list-base.js +6 -3
- package/fesm2015/tnx-shared.js +5 -2
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -26317,6 +26317,9 @@
|
|
|
26317
26317
|
_this.plusUrl = '';
|
|
26318
26318
|
_this.dataSearchCommon = {};
|
|
26319
26319
|
_this.popupSizeMax = new PopupSize({ maximize: true });
|
|
26320
|
+
_this.useDefaltSort = true;
|
|
26321
|
+
_this.defaultSortField = 'created';
|
|
26322
|
+
_this.defaultSortDir = -1;
|
|
26320
26323
|
/**
|
|
26321
26324
|
* Addtional fields to add to gridInfo.fields when using setting.autoGenerateSelectFields
|
|
26322
26325
|
* @date 11/4/2022 - 2:03:19 PM
|
|
@@ -26642,8 +26645,8 @@
|
|
|
26642
26645
|
return [4 /*yield*/, this.modifyGridInfo(gridInfo)];
|
|
26643
26646
|
case 1:
|
|
26644
26647
|
resultModify = _b.sent();
|
|
26645
|
-
if (gridInfo.sorts.length == 0) {
|
|
26646
|
-
gridInfo.sorts.unshift(this.newSort(
|
|
26648
|
+
if (this.useDefaltSort && gridInfo.sorts.length == 0) {
|
|
26649
|
+
gridInfo.sorts.unshift(this.newSort(this.defaultSortField, this.defaultSortDir));
|
|
26647
26650
|
}
|
|
26648
26651
|
if (resultModify === false) {
|
|
26649
26652
|
this.model.dataSource = [];
|