|
|
@ -30,6 +30,7 @@ |
|
|
export let disableSorting = false |
|
|
export let disableSorting = false |
|
|
|
|
|
|
|
|
const dispatch = createEventDispatcher() |
|
|
const dispatch = createEventDispatcher() |
|
|
|
|
|
rowCount = 8 |
|
|
|
|
|
|
|
|
// Config |
|
|
// Config |
|
|
const rowHeight = 55 |
|
|
const rowHeight = 55 |
|
|
@ -45,11 +46,12 @@ |
|
|
let loaded = false |
|
|
let loaded = false |
|
|
$: schema = fixSchema(schema) |
|
|
$: schema = fixSchema(schema) |
|
|
$: if (!loading) loaded = true |
|
|
$: if (!loading) loaded = true |
|
|
$: rows = data ?? [] |
|
|
$: fields = getFields(schema, showAutoColumns) |
|
|
|
|
|
$: rows = fields?.length ? data || [] : [] |
|
|
$: visibleRowCount = getVisibleRowCount(loaded, height, rows.length, rowCount) |
|
|
$: visibleRowCount = getVisibleRowCount(loaded, height, rows.length, rowCount) |
|
|
$: contentStyle = getContentStyle(visibleRowCount, rowCount) |
|
|
$: contentStyle = getContentStyle(visibleRowCount, rowCount) |
|
|
$: sortedRows = sortRows(rows, sortColumn, sortOrder) |
|
|
$: sortedRows = sortRows(rows, sortColumn, sortOrder) |
|
|
$: fields = getFields(schema, showAutoColumns) |
|
|
$: gridStyle = getGridStyle(fields, schema, showEditColumn) |
|
|
$: showEditColumn = allowEditRows || allowSelectRows |
|
|
$: showEditColumn = allowEditRows || allowSelectRows |
|
|
|
|
|
|
|
|
// Scrolling state |
|
|
// Scrolling state |
|
|
@ -107,6 +109,23 @@ |
|
|
return `height: ${headerHeight + visibleRows * (rowHeight + 1)}px;` |
|
|
return `height: ${headerHeight + visibleRows * (rowHeight + 1)}px;` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const getGridStyle = (fields, schema, showEditColumn) => { |
|
|
|
|
|
let style = "grid-template-columns:" |
|
|
|
|
|
if (showEditColumn) { |
|
|
|
|
|
style += " auto" |
|
|
|
|
|
} |
|
|
|
|
|
fields?.forEach(field => { |
|
|
|
|
|
const fieldSchema = schema[field] |
|
|
|
|
|
if (fieldSchema.width) { |
|
|
|
|
|
style += ` ${fieldSchema.width}` |
|
|
|
|
|
} else { |
|
|
|
|
|
style += " minmax(auto, 1fr)" |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
style += ";" |
|
|
|
|
|
return style |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const sortRows = (rows, sortColumn, sortOrder) => { |
|
|
const sortRows = (rows, sortColumn, sortOrder) => { |
|
|
if (!sortColumn || !sortOrder || disableSorting) { |
|
|
if (!sortColumn || !sortOrder || disableSorting) { |
|
|
return rows |
|
|
return rows |
|
|
@ -215,168 +234,187 @@ |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<div class="wrapper" bind:offsetHeight={height}> |
|
|
<div |
|
|
|
|
|
class="wrapper" |
|
|
|
|
|
class:wrapper--quiet={quiet} |
|
|
|
|
|
bind:offsetHeight={height} |
|
|
|
|
|
style={`--row-height: ${rowHeight}px; --header-height: ${headerHeight}px;`} |
|
|
|
|
|
> |
|
|
{#if !loaded} |
|
|
{#if !loaded} |
|
|
<div class="loading" style={contentStyle} /> |
|
|
<div class="loading" style={contentStyle} /> |
|
|
{:else} |
|
|
{:else} |
|
|
<div |
|
|
<div |
|
|
on:scroll={onScroll} |
|
|
on:scroll={onScroll} |
|
|
class:quiet |
|
|
class="spectrum-Table" |
|
|
style={`--row-height: ${rowHeight}px; --header-height: ${headerHeight}px;`} |
|
|
style={`${contentStyle}${gridStyle}`} |
|
|
class="container" |
|
|
|
|
|
> |
|
|
> |
|
|
<div style={contentStyle}> |
|
|
{#if fields.length} |
|
|
<table class="spectrum-Table" class:spectrum-Table--quiet={quiet}> |
|
|
{#if showEditColumn} |
|
|
{#if fields.length} |
|
|
<div class="spectrum-Table-headCell"> |
|
|
<thead class="spectrum-Table-head"> |
|
|
{editColumnTitle || ""} |
|
|
<tr> |
|
|
</div> |
|
|
{#if showEditColumn} |
|
|
{/if} |
|
|
<th class="spectrum-Table-headCell"> |
|
|
{#each fields as field} |
|
|
<div class="spectrum-Table-headCell-content"> |
|
|
<div |
|
|
{editColumnTitle || ""} |
|
|
class="spectrum-Table-headCell" |
|
|
</div> |
|
|
class:is-sortable={schema[field].sortable !== false} |
|
|
</th> |
|
|
class:is-sorted-desc={sortColumn === field && |
|
|
{/if} |
|
|
sortOrder === "Descending"} |
|
|
{#each fields as field} |
|
|
class:is-sorted-asc={sortColumn === field && |
|
|
<th |
|
|
sortOrder === "Ascending"} |
|
|
class="spectrum-Table-headCell" |
|
|
on:click={() => sortBy(schema[field])} |
|
|
class:is-sortable={schema[field].sortable !== false} |
|
|
> |
|
|
class:is-sorted-desc={sortColumn === field && |
|
|
<div class="spectrum-Table-headCell-content"> |
|
|
sortOrder === "Descending"} |
|
|
<div class="title">{getDisplayName(schema[field])}</div> |
|
|
class:is-sorted-asc={sortColumn === field && |
|
|
{#if schema[field]?.autocolumn} |
|
|
sortOrder === "Ascending"} |
|
|
<svg |
|
|
on:click={() => sortBy(schema[field])} |
|
|
class="spectrum-Icon spectrum-Table-autoIcon" |
|
|
> |
|
|
focusable="false" |
|
|
<div class="spectrum-Table-headCell-content"> |
|
|
> |
|
|
<div class="title">{getDisplayName(schema[field])}</div> |
|
|
<use xlink:href="#spectrum-icon-18-MagicWand" /> |
|
|
{#if schema[field]?.autocolumn} |
|
|
</svg> |
|
|
<svg |
|
|
{/if} |
|
|
class="spectrum-Icon spectrum-Table-autoIcon" |
|
|
{#if sortColumn === field} |
|
|
focusable="false" |
|
|
<svg |
|
|
> |
|
|
class="spectrum-Icon spectrum-UIIcon-ArrowDown100 spectrum-Table-sortedIcon" |
|
|
<use xlink:href="#spectrum-icon-18-MagicWand" /> |
|
|
focusable="false" |
|
|
</svg> |
|
|
aria-hidden="true" |
|
|
{/if} |
|
|
> |
|
|
{#if sortColumn === field} |
|
|
<use xlink:href="#spectrum-css-icon-Arrow100" /> |
|
|
<svg |
|
|
</svg> |
|
|
class="spectrum-Icon spectrum-UIIcon-ArrowDown100 spectrum-Table-sortedIcon" |
|
|
{/if} |
|
|
focusable="false" |
|
|
{#if allowEditColumns && schema[field]?.editable !== false} |
|
|
aria-hidden="true" |
|
|
<svg |
|
|
> |
|
|
class="spectrum-Icon spectrum-Table-editIcon" |
|
|
<use xlink:href="#spectrum-css-icon-Arrow100" /> |
|
|
focusable="false" |
|
|
</svg> |
|
|
on:click={e => editColumn(e, field)} |
|
|
{/if} |
|
|
> |
|
|
{#if allowEditColumns && schema[field]?.editable !== false} |
|
|
<use xlink:href="#spectrum-icon-18-Edit" /> |
|
|
<svg |
|
|
</svg> |
|
|
class="spectrum-Icon spectrum-Table-editIcon" |
|
|
{/if} |
|
|
focusable="false" |
|
|
</div> |
|
|
on:click={e => editColumn(e, field)} |
|
|
</div> |
|
|
> |
|
|
{/each} |
|
|
<use xlink:href="#spectrum-icon-18-Edit" /> |
|
|
{/if} |
|
|
</svg> |
|
|
{#if sortedRows?.length} |
|
|
{/if} |
|
|
{#each sortedRows as row, idx} |
|
|
</div> |
|
|
<div |
|
|
</th> |
|
|
class="spectrum-Table-row" |
|
|
{/each} |
|
|
on:click={() => dispatch("click", row)} |
|
|
</tr> |
|
|
on:click={() => toggleSelectRow(row)} |
|
|
</thead> |
|
|
> |
|
|
{/if} |
|
|
{#if idx >= firstVisibleRow && idx <= lastVisibleRow} |
|
|
<tbody class="spectrum-Table-body"> |
|
|
{#if showEditColumn} |
|
|
{#if sortedRows?.length && fields.length} |
|
|
<div |
|
|
{#each sortedRows as row, idx} |
|
|
class="spectrum-Table-cell spectrum-Table-cell--divider spectrum-Table-cell--edit" |
|
|
<tr |
|
|
> |
|
|
on:click={() => dispatch("click", row)} |
|
|
<SelectEditRenderer |
|
|
on:click={() => toggleSelectRow(row)} |
|
|
data={row} |
|
|
class="spectrum-Table-row" |
|
|
selected={selectedRows.includes(row)} |
|
|
class:hidden={idx < firstVisibleRow || idx > lastVisibleRow} |
|
|
onToggleSelection={() => toggleSelectRow(row)} |
|
|
|
|
|
onEdit={e => editRow(e, row)} |
|
|
|
|
|
{allowSelectRows} |
|
|
|
|
|
{allowEditRows} |
|
|
|
|
|
/> |
|
|
|
|
|
</div> |
|
|
|
|
|
{/if} |
|
|
|
|
|
{#each fields as field} |
|
|
|
|
|
<div |
|
|
|
|
|
class="spectrum-Table-cell" |
|
|
|
|
|
class:spectrum-Table-cell--divider={!!schema[field].divider} |
|
|
> |
|
|
> |
|
|
{#if idx >= firstVisibleRow && idx <= lastVisibleRow} |
|
|
<CellRenderer |
|
|
{#if showEditColumn} |
|
|
{customRenderers} |
|
|
<td |
|
|
{row} |
|
|
class="spectrum-Table-cell spectrum-Table-cell--divider" |
|
|
schema={schema[field]} |
|
|
> |
|
|
value={deepGet(row, field)} |
|
|
<div class="spectrum-Table-cell-content"> |
|
|
on:clickrelationship |
|
|
<SelectEditRenderer |
|
|
> |
|
|
data={row} |
|
|
<slot /> |
|
|
selected={selectedRows.includes(row)} |
|
|
</CellRenderer> |
|
|
onToggleSelection={() => toggleSelectRow(row)} |
|
|
</div> |
|
|
onEdit={e => editRow(e, row)} |
|
|
|
|
|
{allowSelectRows} |
|
|
|
|
|
{allowEditRows} |
|
|
|
|
|
/> |
|
|
|
|
|
</div> |
|
|
|
|
|
</td> |
|
|
|
|
|
{/if} |
|
|
|
|
|
{#each fields as field} |
|
|
|
|
|
<td |
|
|
|
|
|
class="spectrum-Table-cell" |
|
|
|
|
|
class:spectrum-Table-cell--divider={!!schema[field] |
|
|
|
|
|
.divider} |
|
|
|
|
|
> |
|
|
|
|
|
<div class="spectrum-Table-cell-content"> |
|
|
|
|
|
<CellRenderer |
|
|
|
|
|
{customRenderers} |
|
|
|
|
|
{row} |
|
|
|
|
|
schema={schema[field]} |
|
|
|
|
|
value={deepGet(row, field)} |
|
|
|
|
|
on:clickrelationship |
|
|
|
|
|
> |
|
|
|
|
|
<slot /> |
|
|
|
|
|
</CellRenderer> |
|
|
|
|
|
</div> |
|
|
|
|
|
</td> |
|
|
|
|
|
{/each} |
|
|
|
|
|
{/if} |
|
|
|
|
|
</tr> |
|
|
|
|
|
{/each} |
|
|
{/each} |
|
|
{:else} |
|
|
{:else} |
|
|
<tr class="placeholder-row"> |
|
|
<div class="spectrum-Table-cell spectrum-Table-cell--empty" /> |
|
|
{#if showEditColumn} |
|
|
|
|
|
<td class="placeholder-offset" /> |
|
|
|
|
|
{/if} |
|
|
|
|
|
{#each fields as field} |
|
|
|
|
|
<td /> |
|
|
|
|
|
{/each} |
|
|
|
|
|
<div class="placeholder" class:has-fields={fields.length > 0}> |
|
|
|
|
|
<div class="placeholder-content"> |
|
|
|
|
|
<svg |
|
|
|
|
|
class="spectrum-Icon spectrum-Icon--sizeXXL" |
|
|
|
|
|
focusable="false" |
|
|
|
|
|
> |
|
|
|
|
|
<use xlink:href="#spectrum-icon-18-Table" /> |
|
|
|
|
|
</svg> |
|
|
|
|
|
<div>No rows found</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</tr> |
|
|
|
|
|
{/if} |
|
|
{/if} |
|
|
</tbody> |
|
|
</div> |
|
|
</table> |
|
|
{/each} |
|
|
</div> |
|
|
{:else} |
|
|
|
|
|
<div class="placeholder" class:placeholder--no-fields={!fields?.length}> |
|
|
|
|
|
<div class="placeholder-content"> |
|
|
|
|
|
<svg class="spectrum-Icon spectrum-Icon--sizeXXL" focusable="false"> |
|
|
|
|
|
<use xlink:href="#spectrum-icon-18-Table" /> |
|
|
|
|
|
</svg> |
|
|
|
|
|
<div>No rows found</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
{/if} |
|
|
</div> |
|
|
</div> |
|
|
{/if} |
|
|
{/if} |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<style> |
|
|
<style> |
|
|
|
|
|
/* Wrapper */ |
|
|
.wrapper { |
|
|
.wrapper { |
|
|
background-color: var(--spectrum-alias-background-color-secondary); |
|
|
background-color: var(--spectrum-alias-background-color-secondary); |
|
|
overflow: hidden; |
|
|
overflow: hidden; |
|
|
position: relative; |
|
|
position: relative; |
|
|
z-index: 0; |
|
|
z-index: 0; |
|
|
|
|
|
--table-bg: var(--spectrum-global-color-gray-50); |
|
|
|
|
|
--table-border: 1px solid var(--spectrum-alias-border-color-mid); |
|
|
|
|
|
} |
|
|
|
|
|
.wrapper--quiet { |
|
|
|
|
|
--table-bg: var(--spectrum-alias-background-color-transparent); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.container { |
|
|
/* Table */ |
|
|
height: 100%; |
|
|
.spectrum-Table { |
|
|
position: relative; |
|
|
width: 100%; |
|
|
overflow: auto; |
|
|
overflow: auto; |
|
|
|
|
|
border-radius: 0; |
|
|
|
|
|
background-color: var(--table-bg); |
|
|
|
|
|
display: grid; |
|
|
} |
|
|
} |
|
|
.container.quiet { |
|
|
|
|
|
border: none; |
|
|
/* Header */ |
|
|
|
|
|
.spectrum-Table-head { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
position: sticky; |
|
|
|
|
|
top: 0; |
|
|
|
|
|
width: fit-content; |
|
|
|
|
|
border-bottom: var(--table-border); |
|
|
|
|
|
border-right: 2px solid transparent; |
|
|
|
|
|
min-width: calc(100% - 2px); |
|
|
} |
|
|
} |
|
|
table { |
|
|
.spectrum-Table-headCell { |
|
|
width: 100%; |
|
|
vertical-align: middle; |
|
|
|
|
|
height: var(--header-height); |
|
|
|
|
|
position: sticky; |
|
|
|
|
|
top: 0; |
|
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
|
white-space: nowrap; |
|
|
|
|
|
background-color: var(--spectrum-alias-background-color-secondary); |
|
|
|
|
|
z-index: 2; |
|
|
|
|
|
border-bottom: var(--table-border); |
|
|
|
|
|
} |
|
|
|
|
|
.spectrum-Table-headCell-content { |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
|
white-space: nowrap; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: row; |
|
|
|
|
|
justify-content: flex-start; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
user-select: none; |
|
|
|
|
|
} |
|
|
|
|
|
.spectrum-Table-headCell-content .title { |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
|
} |
|
|
|
|
|
.spectrum-Table-headCell:hover .spectrum-Table-editIcon { |
|
|
|
|
|
opacity: 1; |
|
|
|
|
|
transition: opacity 0.2s ease; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.spectrum-Table-headCell .spectrum-Icon { |
|
|
.spectrum-Table-headCell .spectrum-Icon { |
|
|
pointer-events: all; |
|
|
pointer-events: all; |
|
|
margin-left: var( |
|
|
margin-left: var( |
|
|
@ -392,63 +430,68 @@ |
|
|
.spectrum-Table-editIcon { |
|
|
.spectrum-Table-editIcon { |
|
|
opacity: 0; |
|
|
opacity: 0; |
|
|
} |
|
|
} |
|
|
.spectrum-Table-headCell:hover .spectrum-Table-editIcon { |
|
|
|
|
|
opacity: 1; |
|
|
|
|
|
transition: opacity 0.2s ease; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
th { |
|
|
/* Table rows */ |
|
|
vertical-align: middle; |
|
|
.spectrum-Table-row { |
|
|
height: var(--header-height); |
|
|
display: contents; |
|
|
position: sticky; |
|
|
|
|
|
top: 0; |
|
|
|
|
|
z-index: 2; |
|
|
|
|
|
background-color: var(--spectrum-alias-background-color-secondary); |
|
|
|
|
|
border-bottom: 1px solid |
|
|
|
|
|
var(--spectrum-table-border-color, var(--spectrum-alias-border-color-mid)); |
|
|
|
|
|
} |
|
|
} |
|
|
.spectrum-Table-headCell-content { |
|
|
.spectrum-Table-row:hover .spectrum-Table-cell { |
|
|
|
|
|
background-color: var(--spectrum-alias-highlight-hover); |
|
|
|
|
|
} |
|
|
|
|
|
.wrapper--quiet .spectrum-Table-row { |
|
|
|
|
|
border-left: none; |
|
|
|
|
|
border-right: none; |
|
|
|
|
|
} |
|
|
|
|
|
.spectrum-Table-row > :first-child { |
|
|
|
|
|
border-left: var(--table-border); |
|
|
|
|
|
} |
|
|
|
|
|
.spectrum-Table-row > :last-child { |
|
|
|
|
|
border-right: var(--table-border); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Table cells */ |
|
|
|
|
|
.spectrum-Table-cell { |
|
|
|
|
|
flex: 1 1 auto; |
|
|
|
|
|
padding-top: 0; |
|
|
|
|
|
padding-bottom: 0; |
|
|
|
|
|
border-top: none; |
|
|
|
|
|
border-bottom: none; |
|
|
|
|
|
border-radius: 0; |
|
|
|
|
|
text-overflow: ellipsis; |
|
|
white-space: nowrap; |
|
|
white-space: nowrap; |
|
|
|
|
|
height: var(--row-height); |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: row; |
|
|
flex-direction: row; |
|
|
justify-content: flex-start; |
|
|
justify-content: flex-start; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
user-select: none; |
|
|
gap: 4px; |
|
|
|
|
|
transition: background-color |
|
|
|
|
|
var(--spectrum-global-animation-duration-100, 0.13s) ease-in-out; |
|
|
|
|
|
border-bottom: 1px solid var(--spectrum-alias-border-color-mid); |
|
|
} |
|
|
} |
|
|
.spectrum-Table-headCell-content .title { |
|
|
.spectrum-Table-cell--empty { |
|
|
overflow: hidden; |
|
|
grid-column: 1 / -1; |
|
|
text-overflow: ellipsis; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.placeholder-row { |
|
|
/* Placeholder */ |
|
|
position: relative; |
|
|
|
|
|
height: 150px; |
|
|
|
|
|
} |
|
|
|
|
|
.placeholder-row td { |
|
|
|
|
|
border-top: none !important; |
|
|
|
|
|
border-bottom: none !important; |
|
|
|
|
|
} |
|
|
|
|
|
.placeholder-offset { |
|
|
|
|
|
width: 1px; |
|
|
|
|
|
} |
|
|
|
|
|
.placeholder { |
|
|
.placeholder { |
|
|
top: 0; |
|
|
|
|
|
height: 100%; |
|
|
|
|
|
left: 0; |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: row; |
|
|
flex-direction: row; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
|
|
|
border: var(--table-border); |
|
|
|
|
|
border-top: none; |
|
|
|
|
|
grid-column: 1 / -1; |
|
|
} |
|
|
} |
|
|
.placeholder.has-fields { |
|
|
.placeholder--no-fields { |
|
|
top: var(--header-height); |
|
|
border-top: var(--table-border); |
|
|
height: calc(100% - var(--header-height)); |
|
|
} |
|
|
|
|
|
.wrapper--quiet .placeholder { |
|
|
|
|
|
border-left: none; |
|
|
|
|
|
border-right: none; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.placeholder-content { |
|
|
.placeholder-content { |
|
|
padding: 20px; |
|
|
padding: 40px; |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
flex-direction: column; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
@ -466,41 +509,4 @@ |
|
|
); |
|
|
); |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
tbody { |
|
|
|
|
|
z-index: 1; |
|
|
|
|
|
} |
|
|
|
|
|
tbody tr { |
|
|
|
|
|
height: var(--row-height); |
|
|
|
|
|
} |
|
|
|
|
|
tbody tr.hidden { |
|
|
|
|
|
height: calc(var(--row-height) + 1px); |
|
|
|
|
|
} |
|
|
|
|
|
td { |
|
|
|
|
|
padding-top: 0; |
|
|
|
|
|
padding-bottom: 0; |
|
|
|
|
|
border-bottom: none; |
|
|
|
|
|
border-top: 1px solid |
|
|
|
|
|
var(--spectrum-table-border-color, var(--spectrum-alias-border-color-mid)); |
|
|
|
|
|
border-radius: 0; |
|
|
|
|
|
} |
|
|
|
|
|
tr:first-child td { |
|
|
|
|
|
border-top: none; |
|
|
|
|
|
} |
|
|
|
|
|
tr:last-child td { |
|
|
|
|
|
border-bottom: 1px solid |
|
|
|
|
|
var(--spectrum-table-border-color, var(--spectrum-alias-border-color-mid)); |
|
|
|
|
|
} |
|
|
|
|
|
td.spectrum-Table-cell--divider { |
|
|
|
|
|
width: 1px; |
|
|
|
|
|
} |
|
|
|
|
|
.spectrum-Table-cell-content { |
|
|
|
|
|
height: var(--row-height); |
|
|
|
|
|
white-space: nowrap; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: row; |
|
|
|
|
|
justify-content: flex-start; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
gap: 4px; |
|
|
|
|
|
} |
|
|
|
|
|
</style> |
|
|
</style> |
|
|
|