Merge branch 'master' of github.com:Budibase/budibase into feat/linked-records-data-source
This commit is contained in:
commit
d8e349ddaa
|
@ -9,7 +9,7 @@ export const automationStore = getAutomationStore()
|
||||||
|
|
||||||
export const initialise = async () => {
|
export const initialise = async () => {
|
||||||
try {
|
try {
|
||||||
analytics.activate()
|
await analytics.activate()
|
||||||
analytics.captureEvent("Builder Started")
|
analytics.captureEvent("Builder Started")
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
|
|
@ -86,7 +86,7 @@ const createScreen = model => ({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
_id: "",
|
_id: "",
|
||||||
_component: "@budibase/standard-components/datatable",
|
_component: "@budibase/standard-components/datagrid",
|
||||||
_styles: {
|
_styles: {
|
||||||
normal: {},
|
normal: {},
|
||||||
hover: {},
|
hover: {},
|
||||||
|
@ -100,10 +100,6 @@ const createScreen = model => ({
|
||||||
modelId: model._id,
|
modelId: model._id,
|
||||||
isModel: true,
|
isModel: true,
|
||||||
},
|
},
|
||||||
stripeColor: "",
|
|
||||||
borderColor: "",
|
|
||||||
backgroundColor: "",
|
|
||||||
color: "",
|
|
||||||
_instanceName: `${model.name} Table`,
|
_instanceName: `${model.name} Table`,
|
||||||
_children: [],
|
_children: [],
|
||||||
},
|
},
|
||||||
|
|
|
@ -346,6 +346,18 @@ export default {
|
||||||
],
|
],
|
||||||
placeholder: "alpine",
|
placeholder: "alpine",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "Height",
|
||||||
|
key: "height",
|
||||||
|
defaultValue: "500",
|
||||||
|
control: Input,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Pagination",
|
||||||
|
key: "pagination",
|
||||||
|
valueKey: "checked",
|
||||||
|
control: Checkbox,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
children: [],
|
children: [],
|
||||||
|
|
|
@ -54,34 +54,6 @@
|
||||||
"_instanceId": "inst_cf8ace4_69efc0d72e6f443db2d4c902c14d9394",
|
"_instanceId": "inst_cf8ace4_69efc0d72e6f443db2d4c902c14d9394",
|
||||||
"_instanceName": "Home Link",
|
"_instanceName": "Home Link",
|
||||||
"_children": []
|
"_children": []
|
||||||
},
|
|
||||||
{
|
|
||||||
"_id": "d3325634-0945-4387-8bb3-d9d9be186c1c",
|
|
||||||
"_component": "@budibase/standard-components/link",
|
|
||||||
"_styles": {
|
|
||||||
"normal": {
|
|
||||||
"font-family": "Inter",
|
|
||||||
"font-weight": "400",
|
|
||||||
"color": "#000000",
|
|
||||||
"text-decoration-line": "none",
|
|
||||||
"font-size": "16px"
|
|
||||||
},
|
|
||||||
"hover": {},
|
|
||||||
"active": {},
|
|
||||||
"selected": {}
|
|
||||||
},
|
|
||||||
"_code": "",
|
|
||||||
"url": "/screen1",
|
|
||||||
"openInNewTab": false,
|
|
||||||
"text": "Screen 1",
|
|
||||||
"color": "",
|
|
||||||
"hoverColor": "",
|
|
||||||
"underline": false,
|
|
||||||
"fontSize": "",
|
|
||||||
"fontFamily": "initial",
|
|
||||||
"_instanceId": "inst_cf8ace4_69efc0d72e6f443db2d4c902c14d9394",
|
|
||||||
"_instanceName": "Screen 1 Link",
|
|
||||||
"_children": []
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -237,7 +237,9 @@
|
||||||
"balham-dark",
|
"balham-dark",
|
||||||
"material"
|
"material"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"height": "number",
|
||||||
|
"pagination": "bool"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dataform": {
|
"dataform": {
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
export let datasource = {}
|
export let datasource = {}
|
||||||
export let editable
|
export let editable
|
||||||
export let theme = "alpine"
|
export let theme = "alpine"
|
||||||
|
export let height
|
||||||
|
export let pagination
|
||||||
|
|
||||||
let dataLoaded = false
|
let dataLoaded = false
|
||||||
let data
|
let data
|
||||||
|
@ -32,6 +34,8 @@
|
||||||
},
|
},
|
||||||
rowSelection: editable ? "multiple" : false,
|
rowSelection: editable ? "multiple" : false,
|
||||||
suppressRowClickSelection: !editable,
|
suppressRowClickSelection: !editable,
|
||||||
|
paginationAutoPageSize: true,
|
||||||
|
pagination,
|
||||||
}
|
}
|
||||||
let store = _bb.store
|
let store = _bb.store
|
||||||
|
|
||||||
|
@ -111,7 +115,7 @@
|
||||||
href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css" />
|
href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css" />
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container" style="--grid-height: {height}px">
|
||||||
{#if dataLoaded}
|
{#if dataLoaded}
|
||||||
{#if editable}
|
{#if editable}
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
|
Loading…
Reference in New Issue