|
|
|
@ -54,15 +54,13 @@ |
|
|
|
</script> |
|
|
|
|
|
|
|
<section> |
|
|
|
<div class="table-controls"> |
|
|
|
<h2 class="title">{$backendUiStore.selectedModel.name}</h2> |
|
|
|
<div class="popovers"> |
|
|
|
<ColumnPopover /> |
|
|
|
{#if Object.keys($backendUiStore.selectedModel.schema).length > 0} |
|
|
|
<RowPopover /> |
|
|
|
<ViewPopover /> |
|
|
|
{/if} |
|
|
|
</div> |
|
|
|
<h2 class="title">{$backendUiStore.selectedModel.name}</h2> |
|
|
|
<div class="popovers"> |
|
|
|
<ColumnPopover /> |
|
|
|
{#if Object.keys($backendUiStore.selectedModel.schema).length > 0} |
|
|
|
<RowPopover /> |
|
|
|
<ViewPopover /> |
|
|
|
{/if} |
|
|
|
</div> |
|
|
|
<table class="bb-table"> |
|
|
|
<thead> |
|
|
|
@ -80,7 +78,10 @@ |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
{#if paginatedData.length === 0} |
|
|
|
<div class="no-data">No Data.</div> |
|
|
|
<td class="no-border">No data.</td> |
|
|
|
{#each headers as header} |
|
|
|
<td class="no-border" /> |
|
|
|
{/each} |
|
|
|
{/if} |
|
|
|
{#each paginatedData as row} |
|
|
|
<tr> |
|
|
|
@ -108,30 +109,31 @@ |
|
|
|
</section> |
|
|
|
|
|
|
|
<style> |
|
|
|
section { |
|
|
|
margin-bottom: 20px; |
|
|
|
} |
|
|
|
|
|
|
|
.title { |
|
|
|
font-size: 24px; |
|
|
|
font-weight: 600; |
|
|
|
text-rendering: optimizeLegibility; |
|
|
|
text-transform: capitalize; |
|
|
|
margin-top: 0; |
|
|
|
} |
|
|
|
|
|
|
|
.popovers { |
|
|
|
display: flex; |
|
|
|
flex-direction: row; |
|
|
|
justify-content: flex-start; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
|
|
|
|
table { |
|
|
|
border: 1px solid var(--grey-4); |
|
|
|
background: #fff; |
|
|
|
border-radius: 3px; |
|
|
|
border-collapse: collapse; |
|
|
|
} |
|
|
|
|
|
|
|
thead { |
|
|
|
height: 40px; |
|
|
|
background: var(--grey-3); |
|
|
|
border: 1px solid var(--grey-4); |
|
|
|
border-bottom: 1px solid var(--grey-4); |
|
|
|
} |
|
|
|
|
|
|
|
thead th { |
|
|
|
color: var(--ink); |
|
|
|
text-transform: capitalize; |
|
|
|
@ -140,13 +142,15 @@ |
|
|
|
text-rendering: optimizeLegibility; |
|
|
|
transition: 0.5s all; |
|
|
|
vertical-align: middle; |
|
|
|
height: 48px; |
|
|
|
padding-top: 0; |
|
|
|
padding-bottom: 0; |
|
|
|
} |
|
|
|
|
|
|
|
.edit-header { |
|
|
|
width: 100px; |
|
|
|
cursor: default; |
|
|
|
} |
|
|
|
|
|
|
|
.edit-header:hover { |
|
|
|
color: var(--ink); |
|
|
|
} |
|
|
|
@ -161,30 +165,24 @@ |
|
|
|
text-overflow: ellipsis; |
|
|
|
border: 1px solid var(--grey-4); |
|
|
|
overflow: hidden; |
|
|
|
white-space: pre; |
|
|
|
white-space: nowrap; |
|
|
|
box-sizing: border-box; |
|
|
|
padding: var(--spacing-l) var(--spacing-m); |
|
|
|
font-size: var(--font-size-xs); |
|
|
|
} |
|
|
|
td.no-border { |
|
|
|
border: none; |
|
|
|
} |
|
|
|
|
|
|
|
tbody { |
|
|
|
border: 1px solid var(--grey-4); |
|
|
|
} |
|
|
|
tbody tr { |
|
|
|
border-bottom: 1px solid var(--grey-4); |
|
|
|
transition: 0.3s background-color; |
|
|
|
color: var(--ink); |
|
|
|
font-size: 12px; |
|
|
|
} |
|
|
|
|
|
|
|
tbody tr:hover { |
|
|
|
background: var(--grey-1); |
|
|
|
} |
|
|
|
|
|
|
|
.table-controls { |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
.popovers { |
|
|
|
display: flex; |
|
|
|
} |
|
|
|
|
|
|
|
.no-data { |
|
|
|
padding: 14px; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|