Skip to content

Commit

Permalink
Merge pull request #79 from poirazis/develop
Browse files Browse the repository at this point in the history
v2.0.30-alpha
  • Loading branch information
poirazis authored Aug 5, 2024
2 parents 109ed7c + cd6b316 commit a839baa
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
Binary file modified bun.lockb
Binary file not shown.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bb-component-SuperTable",
"version": "2.0.29-alpha",
"version": "2.0.30-alpha",
"description": "A Fully Customizable Budibase Table Component",
"author": "Michael Poirazi",
"license": "MIT",
Expand All @@ -18,10 +18,10 @@
"svelte-legos": "^0.2.3"
},
"devDependencies": {
"@budibase/backend-core": "^2.29.27",
"@budibase/bbui": "^2.29.27",
"@budibase/frontend-core": "^2.29.27",
"@budibase/shared-core": "^2.29.27",
"@budibase/backend-core": "^2.29.28",
"@budibase/bbui": "^2.29.28",
"@budibase/frontend-core": "^2.29.28",
"@budibase/shared-core": "^2.29.28",
"@rollup/plugin-commonjs": "^25.0.8",
"@rollup/plugin-image": "^3.0.3",
"@rollup/plugin-json": "^6.1.0",
Expand Down
17 changes: 15 additions & 2 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -705,20 +705,33 @@
"key": "onDelete",
"label": "On Delete",
"nested": true,
"dependsOn": "canDelete",
"dependsOn": { "setting": "canDelete", "value": "advanced" },
"context": [
{
"label": "Delete Row",
"key": "menuRow"
}
]
},
{
"type": "event",
"key": "onEdit",
"label": "On Edit",
"nested": true,
"dependsOn": { "setting": "canEdit", "value": "advanced" },
"context": [
{
"label": "Edit Row",
"key": "menuRow"
}
]
},
{
"type": "event",
"key": "onInsert",
"label": "On New Row",
"nested": true,
"dependsOn": "canInsert"
"dependsOn": { "setting": "canInsert", "value": "advanced" }
}
]
}
Expand Down
2 changes: 2 additions & 0 deletions src/Component.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
export let onRowDblClick;
export let onInsert;
export let onDelete;
export let onEdit;
// Builder Code to identify if we are dealing with a Table or View Datasource
$: localIsTable = datasource?.type == "table" || datasource?.tableId;
Expand Down Expand Up @@ -166,6 +167,7 @@
{onRowDblClick}
{onInsert}
{onDelete}
{onEdit}
>
<slot />
</SuperTable>
Expand Down

0 comments on commit a839baa

Please sign in to comment.