-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 #11573 from Budibase/views-v2-frontend
Views V2
- Loading branch information
Showing
123 changed files
with
2,460 additions
and
1,258 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
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
11 changes: 5 additions & 6 deletions
11
packages/builder/src/builderStore/store/screenTemplates/index.js
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
49 changes: 49 additions & 0 deletions
49
packages/builder/src/components/backend/DataTable/ViewV2DataTable.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,49 @@ | ||
<script> | ||
import { viewsV2 } from "stores/backend" | ||
import { Grid } from "@budibase/frontend-core" | ||
import { API } from "api" | ||
import GridCreateEditRowModal from "components/backend/DataTable/modals/grid/GridCreateEditRowModal.svelte" | ||
import GridFilterButton from "components/backend/DataTable/buttons/grid/GridFilterButton.svelte" | ||
import GridManageAccessButton from "components/backend/DataTable/buttons/grid/GridManageAccessButton.svelte" | ||
$: id = $viewsV2.selected?.id | ||
$: datasource = { | ||
type: "viewV2", | ||
id, | ||
tableId: $viewsV2.selected?.tableId, | ||
} | ||
const handleGridViewUpdate = async e => { | ||
viewsV2.replaceView(id, e.detail) | ||
} | ||
</script> | ||
<div class="wrapper"> | ||
<Grid | ||
{API} | ||
{datasource} | ||
allowAddRows | ||
allowDeleteRows | ||
showAvatars={false} | ||
on:updatedatasource={handleGridViewUpdate} | ||
> | ||
<svelte:fragment slot="filter"> | ||
<GridFilterButton /> | ||
</svelte:fragment> | ||
<svelte:fragment slot="controls"> | ||
<GridCreateEditRowModal /> | ||
<GridManageAccessButton /> | ||
</svelte:fragment> | ||
</Grid> | ||
</div> | ||
<style> | ||
.wrapper { | ||
flex: 1 1 auto; | ||
margin: -28px -40px -40px -40px; | ||
display: flex; | ||
flex-direction: column; | ||
background: var(--background); | ||
overflow: hidden; | ||
} | ||
</style> |
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
Oops, something went wrong.