@isoftdata/svelte-table 2.9.2 → 2.9.3
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/DraggableRows.svelte +9 -0
- package/dist/Table.svelte +1 -1
- package/package.json +1 -1
|
@@ -273,4 +273,13 @@
|
|
|
273
273
|
.hovered-row-desc {
|
|
274
274
|
border-bottom: 5px solid var(--dark, var(--bs-dark, black));
|
|
275
275
|
}
|
|
276
|
+
|
|
277
|
+
/* Dark Mode! (BS5 Only) */
|
|
278
|
+
:global([data-bs-theme='dark']) .hovered-row-asc {
|
|
279
|
+
border-top: 5px solid var(--bs-light, white);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
:global([data-bs-theme='dark']) .hovered-row-desc {
|
|
283
|
+
border-bottom: 5px solid var(--bs-light, white);
|
|
284
|
+
}
|
|
276
285
|
</style>
|
package/dist/Table.svelte
CHANGED
|
@@ -933,7 +933,7 @@
|
|
|
933
933
|
Only key the #each if the idProp is in the original row.
|
|
934
934
|
Otherwise, the table will re-render all rows if idProp is 'uuid' and your original row doesn't have one
|
|
935
935
|
-->
|
|
936
|
-
{:else if idProp in rows[currentPageRows[0]?.originalIndex]}
|
|
936
|
+
{:else if idProp in (rows[currentPageRows[0]?.originalIndex] ?? {})}
|
|
937
937
|
{#each currentPageRows as row, index (row[idProp])}
|
|
938
938
|
{@render tableRow(row, index)}
|
|
939
939
|
{/each}
|