Skip to content

Commit

Permalink
Merge pull request #78 from poirazis/develop
Browse files Browse the repository at this point in the history
v2.0.29-alpha
  • Loading branch information
poirazis authored Aug 1, 2024
2 parents 3883d55 + 5495fee commit 109ed7c
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 14 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bb-component-SuperTable",
"version": "2.0.28-alpha",
"version": "2.0.29-alpha",
"description": "A Fully Customizable Budibase Table Component",
"author": "Michael Poirazi",
"license": "MIT",
Expand Down
43 changes: 33 additions & 10 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
"key": "rows",
"type": "array"
},
{
"label": "Menu Row",
"key": "menuRow",
"type": "object"
},
{
"label": "Selected Rows",
"key": "selectedRows",
Expand Down Expand Up @@ -180,15 +175,15 @@
"barStyle": "buttons",
"barTitle": "Row Selection",
"options": [
{ "label": "Off", "value": "off", "barIcon": "Close" },
{ "label": "Off", "value": false, "barIcon": "Close" },
{ "label": "Single", "value": "single", "barIcon": "Checkmark" },
{
"label": "Multiple",
"value": "multi",
"barIcon": "MultipleCheck"
}
],
"defaultValue": "off"
"defaultValue": false
},
{
"type": "text",
Expand Down Expand Up @@ -380,6 +375,28 @@
],
"defaultValue": false
},
{
"type": "select",
"key": "rowMenuPosition",
"label": "Menu Position",
"barStyle": "buttons",
"dependsOn": "rowMenu",
"options": [
{
"label": "First",
"value": "first",
"barIcon": "PaddingLeft",
"barTitle": "First"
},
{
"label": "Last",
"value": "last",
"barIcon": "PaddingRight",
"barTitle": "Last"
}
],
"defaultValue": "first"
},
{
"dependsOn": "rowMenu",
"type": "icon",
Expand All @@ -402,7 +419,13 @@
"key": "rowMenuItems",
"label": "Menu Items",
"nested": true,
"wide": true
"wide": true,
"context": [
{
"key": "menuRow",
"label": "Menu Row"
}
]
},
{
"type": "select",
Expand Down Expand Up @@ -685,8 +708,8 @@
"dependsOn": "canDelete",
"context": [
{
"label": "RowID",
"key": "rowID"
"label": "Delete Row",
"key": "menuRow"
}
]
},
Expand Down
7 changes: 4 additions & 3 deletions src/Component.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
export let datasource;
export let isTable;
export let idColumn;
export let idColumn = "_id";
export let sortColumn;
export let sortOrder;
export let limit;
Expand All @@ -22,7 +22,7 @@
export let autocolumns;
export let jsoncolumns;
export let visibleRowCount;
export let visibleRowCount = 10;
export let showFooter;
export let showHeader;
export let size;
Expand All @@ -47,7 +47,7 @@
export let columnSizing = "flex";
export let columnMinWidth = "6rem";
export let columnMaxWidth = "auto";
export let columnFixedWidth;
export let columnFixedWidth = "6rem";
export let headerFontSize, headerColor, headerBgColor, headerAlign;
export let dividers, dividersColor;
Expand Down Expand Up @@ -81,6 +81,7 @@
export let onInsert;
export let onDelete;
// Builder Code to identify if we are dealing with a Table or View Datasource
$: localIsTable = datasource?.type == "table" || datasource?.tableId;
$: if (
$builderStore.inBuilder &&
Expand Down

0 comments on commit 109ed7c

Please sign in to comment.