mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
Merge upstream
This commit is contained in:
commit
e5b5fdb984
27 changed files with 1142 additions and 1031 deletions
|
@ -195,16 +195,14 @@
|
|||
$: if (radio || batchSelection) selectable = true;
|
||||
$: tableSortable.set(sortable);
|
||||
$: headerKeys = headers.map(({ key }) => key);
|
||||
$: tableRows.set(
|
||||
rows.map((row) => ({
|
||||
...row,
|
||||
cells: headerKeys.map((key, index) => ({
|
||||
key,
|
||||
value: resolvePath(row, key),
|
||||
display: headers[index].display,
|
||||
})),
|
||||
}))
|
||||
);
|
||||
$: $tableRows = rows.map((row) => ({
|
||||
...row,
|
||||
cells: headerKeys.map((key, index) => ({
|
||||
key,
|
||||
value: resolvePath(row, key),
|
||||
display: headers[index].display,
|
||||
})),
|
||||
}));
|
||||
$: sortedRows = [...$tableRows];
|
||||
$: ascending = $sortHeader.sortDirection === "ascending";
|
||||
$: sortKey = $sortHeader.key;
|
||||
|
|
|
@ -77,6 +77,7 @@
|
|||
<span class:bx--tag__label="{true}">{type}</span>
|
||||
</slot>
|
||||
<button
|
||||
type="button"
|
||||
aria-labelledby="{id}"
|
||||
class:bx--tag__close-icon="{true}"
|
||||
disabled="{disabled}"
|
||||
|
@ -94,6 +95,7 @@
|
|||
</div>
|
||||
{:else if interactive}
|
||||
<button
|
||||
type="button"
|
||||
id="{id}"
|
||||
disabled="{disabled}"
|
||||
aria-disabled="{disabled}"
|
||||
|
|
|
@ -21,6 +21,6 @@
|
|||
on:click
|
||||
>
|
||||
<slot>
|
||||
<svelte:component this="{icon}" />
|
||||
<svelte:component this="{icon}" size="{20}" />
|
||||
</slot>
|
||||
</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue