Merge branch 'master' into feature/premium-plus-trial

This commit is contained in:
José Vte. Calderón 2024-04-19 17:58:02 +02:00 committed by GitHub
commit 4210792dd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 0 deletions

View File

@ -6973,6 +6973,12 @@
"key": "stripeRows",
"defaultValue": false
},
{
"type": "boolean",
"label": "Quiet",
"key": "quiet",
"defaultValue": false
},
{
"section": true,
"name": "Columns",

View File

@ -11,6 +11,7 @@
export let allowEditRows = true
export let allowDeleteRows = true
export let stripeRows = false
export let quiet = false
export let initialFilter = null
export let initialSortColumn = null
export let initialSortOrder = null
@ -117,6 +118,7 @@
datasource={table}
{API}
{stripeRows}
{quiet}
{initialFilter}
{initialSortColumn}
{initialSortOrder}

View File

@ -39,6 +39,7 @@
export let canEditColumns = true
export let canSaveSchema = true
export let stripeRows = false
export let quiet = false
export let collaboration = true
export let showAvatars = true
export let showControls = true
@ -91,6 +92,7 @@
canEditColumns,
canSaveSchema,
stripeRows,
quiet,
collaboration,
showAvatars,
showControls,
@ -124,6 +126,7 @@
class:is-resizing={$isResizing}
class:is-reordering={$isReordering}
class:stripe={stripeRows}
class:quiet
on:mouseenter={() => gridFocused.set(true)}
on:mouseleave={() => gridFocused.set(false)}
style="--row-height:{$rowHeight}px; --default-row-height:{DefaultRowHeight}px; --gutter-width:{GutterWidth}px; --max-cell-render-height:{MaxCellRenderHeight}px; --max-cell-render-width-overflow:{MaxCellRenderWidthOverflow}px; --content-lines:{$contentLines};"
@ -331,4 +334,9 @@
.grid-data-outer :global(.spectrum-Checkbox-partialCheckmark) {
transition: none;
}
/* Overrides */
.grid.quiet :global(.grid-data-content .row > .cell:not(:last-child)) {
border-right: none;
}
</style>