@isoftdata/svelte-table 2.10.4 → 2.11.0
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/dist/Table.svelte +7 -3
- package/dist/Table.svelte.d.ts +3 -2
- package/dist/Td.svelte +1 -1
- package/package.json +1 -1
package/dist/Table.svelte
CHANGED
|
@@ -458,13 +458,17 @@
|
|
|
458
458
|
paginationComponent?.setPageVisibleByItemIndex(index)
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
+
/**
|
|
462
|
+
* Sorts the rows in the table. `rows` should be pre-filtered, and defaults to `filteredRows` if omitted
|
|
463
|
+
*/
|
|
461
464
|
export function doSort({
|
|
462
|
-
rows,
|
|
465
|
+
rows = filteredRows,
|
|
463
466
|
sortColumn,
|
|
464
467
|
sortDirection,
|
|
465
468
|
sameSortOrder,
|
|
466
469
|
}: {
|
|
467
|
-
|
|
470
|
+
/** Defaults to `filteredRows` if omitted */
|
|
471
|
+
rows?: Array<IndexedRow>
|
|
468
472
|
sortColumn: Column | undefined
|
|
469
473
|
sortDirection: SortDirection
|
|
470
474
|
sameSortOrder: boolean
|
|
@@ -1151,7 +1155,7 @@
|
|
|
1151
1155
|
|
|
1152
1156
|
th.pinned {
|
|
1153
1157
|
position: sticky;
|
|
1154
|
-
z-index:
|
|
1158
|
+
z-index: 11 !important;
|
|
1155
1159
|
left: var(--pinned-column-offset, -1);
|
|
1156
1160
|
}
|
|
1157
1161
|
|
package/dist/Table.svelte.d.ts
CHANGED
|
@@ -196,10 +196,11 @@ declare class __sveltets_Render<R extends UuidRowProps> {
|
|
|
196
196
|
keyName: keyof R;
|
|
197
197
|
}) => void;
|
|
198
198
|
doSort: ({ rows, sortColumn, sortDirection, sameSortOrder, }: {
|
|
199
|
-
|
|
199
|
+
/** Defaults to `filteredRows` if omitted */
|
|
200
|
+
rows?: (R & {
|
|
200
201
|
originalIndex: number;
|
|
201
202
|
uuid: string;
|
|
202
|
-
})[];
|
|
203
|
+
})[] | undefined;
|
|
203
204
|
sortColumn: GenericColumn<R & {}> | undefined;
|
|
204
205
|
sortDirection: SortDirection;
|
|
205
206
|
sameSortOrder: boolean;
|
package/dist/Td.svelte
CHANGED