-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3987 from mathesar-foundation/record_summaries_ui
Frontend support for configurable record summaries
- Loading branch information
Showing
67 changed files
with
1,108 additions
and
895 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 18 additions & 34 deletions
52
mathesar_ui/src/component-library/fieldset-group/FieldsetGroup.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,32 @@ | ||
.fieldset-group { | ||
padding: 0; | ||
margin: 0; | ||
.fieldset-group-options { | ||
--spacing-y-default: 0.5em; | ||
--spacing-x-default: 1em; | ||
padding-left: 0; | ||
list-style-type: none; | ||
margin-top: 0.25em; | ||
margin-bottom: 0; | ||
|
||
legend { | ||
padding: 0; | ||
font-weight: var(--font-weight-medium); | ||
margin-bottom: 0.5rem; | ||
} | ||
.options { | ||
padding-left: 0; | ||
list-style-type: none; | ||
margin-top: 0.25em; | ||
margin-bottom: 0; | ||
} | ||
&.has-label .options { | ||
&.has-fieldset-label { | ||
margin-top: 1em; | ||
} | ||
&:not(.inline) .option:not(:first-child) { | ||
margin-top: var(--spacing-y, var(--spacing-y-default)); | ||
} | ||
&:not(.inline) .option:not(:last-child) { | ||
margin-bottom: var(--spacing-y, var(--spacing-y-default)); | ||
} | ||
&:not(.inline) .option.has-help:not(:last-child) { | ||
margin-bottom: calc(2 * var(--spacing-y, var(--spacing-y-default))); | ||
|
||
&:not(.inline) { | ||
.option:not(:first-child) { | ||
margin-top: var(--spacing-y, var(--spacing-y-default)); | ||
} | ||
.option:not(:last-child) { | ||
margin-bottom: var(--spacing-y, var(--spacing-y-default)); | ||
} | ||
.option.has-help:not(:last-child) { | ||
margin-bottom: calc(2 * var(--spacing-y, var(--spacing-y-default))); | ||
} | ||
} | ||
|
||
&.inline .options { | ||
&.inline { | ||
display: flex; | ||
flex-wrap: wrap; | ||
.option:not(:last-child) { | ||
margin-right: var(--spacing-x, var(--spacing-x-default)); | ||
} | ||
} | ||
|
||
&:not(.boxed) { | ||
border: 0; | ||
} | ||
&.boxed { | ||
border: 1px solid var(--slate-300); | ||
border-radius: var(--border-radius-m); | ||
padding: 1em; | ||
padding-top: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.fieldset { | ||
padding: 0; | ||
margin: 0; | ||
|
||
legend { | ||
padding: 0; | ||
font-weight: var(--font-weight-medium); | ||
margin-bottom: 0.5rem; | ||
} | ||
legend:empty { | ||
display: none; | ||
} | ||
|
||
&:not(.boxed) { | ||
border: 0; | ||
} | ||
&.boxed { | ||
border: 1px solid var(--slate-300); | ||
border-radius: var(--border-radius-m); | ||
padding: 1em; | ||
padding-top: 0; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
mathesar_ui/src/component-library/fieldset/Fieldset.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<script lang="ts"> | ||
export let label: string | undefined = undefined; | ||
export let ariaLabel: string | undefined = undefined; | ||
export let boxed = false; | ||
</script> | ||
|
||
<fieldset | ||
class="fieldset" | ||
class:boxed | ||
class:has-label={!!label} | ||
aria-label={ariaLabel} | ||
on:change | ||
> | ||
{#if $$slots.label || label} | ||
<legend><slot name="label">{label}</slot></legend> | ||
{/if} | ||
<slot /> | ||
</fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
mathesar_ui/src/components/inspector/cell/cellInspectorUtils.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.