@svelte-lean/table 0.1.0 → 0.1.1
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/CHANGELOG.md +6 -0
- package/dist/table/data-table.svelte +8 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @svelte-lean/table
|
|
2
2
|
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Body cells no longer contain whitespace text nodes around their content: a cell's `textContent` is exactly its value, and a page of 1000 rows carries tens of thousands fewer DOM nodes.
|
|
8
|
+
|
|
3
9
|
## 0.1.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -976,8 +976,7 @@
|
|
|
976
976
|
if (expandRowByClick && expandable(node, row)) toggleExpanded(node.id, row);
|
|
977
977
|
onRowClick?.(row, e, index);
|
|
978
978
|
}}
|
|
979
|
-
|
|
980
|
-
{#if editing?.id === node.id && editing.column === col.id}<div
|
|
979
|
+
>{#if editing?.id === node.id && editing.column === col.id}<div
|
|
981
980
|
class="slean-table-editor"
|
|
982
981
|
>
|
|
983
982
|
{#if col.editor === 'select'}<select
|
|
@@ -1041,8 +1040,7 @@
|
|
|
1041
1040
|
if (target) onRowMove?.(node.id, target.id);
|
|
1042
1041
|
}}>{@render icon('desc')}</button
|
|
1043
1042
|
></span
|
|
1044
|
-
>{/if}
|
|
1045
|
-
{#if ci === 0 && !expander && expandable(node, row)}<button
|
|
1043
|
+
>{/if}{#if ci === 0 && !expander && expandable(node, row)}<button
|
|
1046
1044
|
type="button"
|
|
1047
1045
|
class="slean-table-button slean-table-expand"
|
|
1048
1046
|
aria-label={`${open ? m.collapse : m.expand}: ${nameOf(node, row)}`}
|
|
@@ -1051,23 +1049,23 @@
|
|
|
1051
1049
|
>{@render icon(open ? 'collapse' : 'expand')}</button
|
|
1052
1050
|
>{:else if ci === 0 && !expander && (rowDetails || getSubRows)}<span
|
|
1053
1051
|
class="slean-table-expand-spacer"
|
|
1054
|
-
></span>{/if}
|
|
1055
|
-
|
|
1052
|
+
></span>{/if}{#if col.cell}{@render col.cell(
|
|
1053
|
+
context
|
|
1054
|
+
)}{:else}{@const text = textOf(
|
|
1056
1055
|
col,
|
|
1057
1056
|
value,
|
|
1058
1057
|
row
|
|
1059
1058
|
)}{#if text !== null}{text}{:else if placeholder}<span
|
|
1060
1059
|
class="slean-table-placeholder">{placeholder}</span
|
|
1061
|
-
>{/if}{/if}
|
|
1062
|
-
{#if editable(row, col)}<button
|
|
1060
|
+
>{/if}{/if}{#if editable(row, col)}<button
|
|
1063
1061
|
type="button"
|
|
1064
1062
|
class="slean-table-button slean-table-edit"
|
|
1065
1063
|
tabindex="-1"
|
|
1066
1064
|
aria-label={`${m.edit}: ${col.header}`}
|
|
1067
1065
|
onclick={() => startEdit(row, col)}>{@render icon('edit')}</button
|
|
1068
1066
|
>{/if}
|
|
1069
|
-
</div>{/if}
|
|
1070
|
-
|
|
1067
|
+
</div>{/if}</td
|
|
1068
|
+
>{/if}
|
|
1071
1069
|
{/each}
|
|
1072
1070
|
</tr>
|
|
1073
1071
|
{#if rowDetails && open && rowExpandable(row)}<tr class="slean-table-detail"
|