@unifylib/ui-lib 1.1.57 → 1.1.58
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/esm2022/lib/base-model/table-column.interface.mjs +1 -1
- package/esm2022/lib/components/base-table/base-table.component.mjs +6 -4
- package/fesm2022/iq-ui-lib.mjs +5 -3
- package/fesm2022/iq-ui-lib.mjs.map +1 -1
- package/fesm2022/unifylib-ui-lib.mjs +5 -3
- package/fesm2022/unifylib-ui-lib.mjs.map +1 -1
- package/lib/base-model/table-column.interface.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3348,9 +3348,11 @@ class BaseTableComponent extends BaseUtils {
|
|
|
3348
3348
|
return !groupByValues.some(v => value.includes(v) && value.length >= v.length);
|
|
3349
3349
|
}
|
|
3350
3350
|
onSortAction($event) {
|
|
3351
|
-
this.
|
|
3352
|
-
|
|
3353
|
-
|
|
3351
|
+
const col = this.columns.find(c => c.property === $event.active);
|
|
3352
|
+
this.reportRequest.filterRequest.sortKey =
|
|
3353
|
+
$event.active && $event.direction
|
|
3354
|
+
? (col?.sortKey ?? $event.active)
|
|
3355
|
+
: 'id';
|
|
3354
3356
|
this.reportRequest.filterRequest.sortDirection = $event.direction === 'asc' ? 'ASC' : 'DESC';
|
|
3355
3357
|
this.reportRequest.filterRequest.pageIndex = 0;
|
|
3356
3358
|
this.selectedColumn.emit($event);
|