Merge branch 'master' of github.com:Budibase/budibase into next
This commit is contained in:
commit
bd6741fc1c
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "0.8.14",
|
"version": "0.8.16",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"packages": [
|
"packages": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/builder",
|
"name": "@budibase/builder",
|
||||||
"version": "0.8.14",
|
"version": "0.8.16",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -65,9 +65,9 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@budibase/bbui": "^1.58.13",
|
"@budibase/bbui": "^1.58.13",
|
||||||
"@budibase/client": "^0.8.14",
|
"@budibase/client": "^0.8.16",
|
||||||
"@budibase/colorpicker": "1.1.2",
|
"@budibase/colorpicker": "1.1.2",
|
||||||
"@budibase/string-templates": "^0.8.14",
|
"@budibase/string-templates": "^0.8.16",
|
||||||
"@budibase/svelte-ag-grid": "^1.0.4",
|
"@budibase/svelte-ag-grid": "^1.0.4",
|
||||||
"@sentry/browser": "5.19.1",
|
"@sentry/browser": "5.19.1",
|
||||||
"@svelteschool/svelte-forms": "0.7.0",
|
"@svelteschool/svelte-forms": "0.7.0",
|
||||||
|
|
|
@ -53,10 +53,13 @@
|
||||||
$: required = !!field?.constraints?.presence || primaryDisplay
|
$: required = !!field?.constraints?.presence || primaryDisplay
|
||||||
$: uneditable =
|
$: uneditable =
|
||||||
$tables.selected?._id === TableNames.USERS &&
|
$tables.selected?._id === TableNames.USERS &&
|
||||||
UNEDITABLE_USER_FIELDS.includes(field.name)
|
UNEDITABLE_USER_FIELDS.includes(field.name) ||
|
||||||
|
(originalName && field.type === LINK_TYPE)
|
||||||
$: invalid =
|
$: invalid =
|
||||||
(field.type === LINK_TYPE && !field.tableId) ||
|
(field.type === LINK_TYPE && !field.tableId) ||
|
||||||
Object.keys($tables.draft.schema).some(key => key === field.name)
|
Object.keys($tables.draft.schema).some(
|
||||||
|
key => key === field.name && key !== originalName
|
||||||
|
)
|
||||||
|
|
||||||
// used to select what different options can be displayed for column type
|
// used to select what different options can be displayed for column type
|
||||||
$: canBeSearched =
|
$: canBeSearched =
|
||||||
|
@ -154,19 +157,22 @@
|
||||||
if (!linkTable) {
|
if (!linkTable) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
const thisName = truncate(table.name, { length: 15 }),
|
const thisName = truncate(table.name, { length: 14 }),
|
||||||
linkName = truncate(linkTable.name, { length: 15 })
|
linkName = truncate(linkTable.name, { length: 14 })
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
name: `Many ${thisName} rows → many ${linkName} rows`,
|
name: `Many ${thisName} rows → many ${linkName} rows`,
|
||||||
|
alt: `Many ${table.name} rows → many ${linkTable.name} rows`,
|
||||||
value: RelationshipTypes.MANY_TO_MANY,
|
value: RelationshipTypes.MANY_TO_MANY,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: `One ${linkName} row → many ${thisName} rows`,
|
name: `One ${linkName} row → many ${thisName} rows`,
|
||||||
|
alt: `One ${linkTable.name} rows → many ${table.name} rows`,
|
||||||
value: RelationshipTypes.ONE_TO_MANY,
|
value: RelationshipTypes.ONE_TO_MANY,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: `One ${thisName} row → many ${linkName} rows`,
|
name: `One ${thisName} row → many ${linkName} rows`,
|
||||||
|
alt: `One ${table.name} rows → many ${linkTable.name} rows`,
|
||||||
value: RelationshipTypes.MANY_TO_ONE,
|
value: RelationshipTypes.MANY_TO_ONE,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -259,13 +265,13 @@
|
||||||
<div>
|
<div>
|
||||||
<Label grey extraSmall>Define the relationship</Label>
|
<Label grey extraSmall>Define the relationship</Label>
|
||||||
<div class="radio-buttons">
|
<div class="radio-buttons">
|
||||||
{#each relationshipOptions as { value, name }}
|
{#each relationshipOptions as { value, name, alt }}
|
||||||
<Radio
|
<Radio
|
||||||
disabled={originalName}
|
disabled={originalName}
|
||||||
name="Relationship type"
|
name="Relationship type"
|
||||||
{value}
|
{value}
|
||||||
bind:group={field.relationshipType}>
|
bind:group={field.relationshipType}>
|
||||||
<div class="radio-button-labels">
|
<div class="radio-button-labels" title={alt}>
|
||||||
<label for={value}>{name.split('→')[0]}</label>
|
<label for={value}>{name.split('→')[0]}</label>
|
||||||
<label class="rel-type-center" for={value}>→</label>
|
<label class="rel-type-center" for={value}>→</label>
|
||||||
<label for={value}>{name.split('→')[1]}</label>
|
<label for={value}>{name.split('→')[1]}</label>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cli",
|
"name": "cli",
|
||||||
"version": "0.8.13",
|
"version": "0.8.15",
|
||||||
"description": "Budibase CLI, for developers, self hosting and migrations.",
|
"description": "Budibase CLI, for developers, self hosting and migrations.",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/client",
|
"name": "@budibase/client",
|
||||||
"version": "0.8.14",
|
"version": "0.8.16",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"module": "dist/budibase-client.js",
|
"module": "dist/budibase-client.js",
|
||||||
"main": "dist/budibase-client.js",
|
"main": "dist/budibase-client.js",
|
||||||
|
@ -18,15 +18,15 @@
|
||||||
"dev:builder": "rollup -cw"
|
"dev:builder": "rollup -cw"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@budibase/string-templates": "^0.8.14",
|
"@budibase/string-templates": "^0.8.16",
|
||||||
"regexparam": "^1.3.0",
|
"regexparam": "^1.3.0",
|
||||||
"shortid": "^2.2.15",
|
"shortid": "^2.2.15",
|
||||||
"svelte-spa-router": "^3.0.5"
|
"svelte-spa-router": "^3.0.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@budibase/standard-components": "^0.8.14",
|
|
||||||
"@rollup/plugin-commonjs": "^18.0.0",
|
"@rollup/plugin-commonjs": "^18.0.0",
|
||||||
"@rollup/plugin-node-resolve": "^11.2.1",
|
"@rollup/plugin-node-resolve": "^11.2.1",
|
||||||
|
"@budibase/standard-components": "^0.8.16",
|
||||||
"fs-extra": "^8.1.0",
|
"fs-extra": "^8.1.0",
|
||||||
"jsdom": "^16.0.1",
|
"jsdom": "^16.0.1",
|
||||||
"postcss": "^8.2.9",
|
"postcss": "^8.2.9",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/server",
|
"name": "@budibase/server",
|
||||||
"email": "hi@budibase.com",
|
"email": "hi@budibase.com",
|
||||||
"version": "0.8.14",
|
"version": "0.8.16",
|
||||||
"description": "Budibase Web Server",
|
"description": "Budibase Web Server",
|
||||||
"main": "src/electron.js",
|
"main": "src/electron.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -80,8 +80,8 @@
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@budibase/auth": "^0.0.1",
|
"@budibase/auth": "^0.0.1",
|
||||||
"@budibase/client": "^0.8.14",
|
"@budibase/client": "^0.8.16",
|
||||||
"@budibase/string-templates": "^0.8.14",
|
"@budibase/string-templates": "^0.8.16",
|
||||||
"@elastic/elasticsearch": "7.10.0",
|
"@elastic/elasticsearch": "7.10.0",
|
||||||
"@koa/router": "8.0.0",
|
"@koa/router": "8.0.0",
|
||||||
"@sendgrid/mail": "7.1.1",
|
"@sendgrid/mail": "7.1.1",
|
||||||
|
@ -135,7 +135,7 @@
|
||||||
"zlib": "1.0.5"
|
"zlib": "1.0.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@budibase/standard-components": "^0.8.14",
|
"@budibase/standard-components": "^0.8.16",
|
||||||
"@jest/test-sequencer": "^24.8.0",
|
"@jest/test-sequencer": "^24.8.0",
|
||||||
"docker-compose": "^0.23.6",
|
"docker-compose": "^0.23.6",
|
||||||
"electron": "10.1.3",
|
"electron": "10.1.3",
|
||||||
|
|
|
@ -37,6 +37,12 @@ const SCHEMA = {
|
||||||
read: {
|
read: {
|
||||||
type: "sql",
|
type: "sql",
|
||||||
},
|
},
|
||||||
|
update: {
|
||||||
|
type: "sql",
|
||||||
|
},
|
||||||
|
delete: {
|
||||||
|
type: "sql",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,6 +77,28 @@ class SqlServerIntegration {
|
||||||
throw err
|
throw err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async update(query) {
|
||||||
|
try {
|
||||||
|
await this.connect()
|
||||||
|
const response = await this.client.query(query.sql)
|
||||||
|
return response.recordset
|
||||||
|
} catch (err) {
|
||||||
|
console.error("Error querying MS SQL Server", err)
|
||||||
|
throw err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async delete(query) {
|
||||||
|
try {
|
||||||
|
await this.connect()
|
||||||
|
const response = await this.client.query(query.sql)
|
||||||
|
return response.recordset
|
||||||
|
} catch (err) {
|
||||||
|
console.error("Error querying MS SQL Server", err)
|
||||||
|
throw err
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"svelte"
|
"svelte"
|
||||||
],
|
],
|
||||||
"version": "0.8.14",
|
"version": "0.8.16",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"gitHead": "4b6efc42ed3273595c7a129411f4d883733d3321",
|
"gitHead": "4b6efc42ed3273595c7a129411f4d883733d3321",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/string-templates",
|
"name": "@budibase/string-templates",
|
||||||
"version": "0.8.14",
|
"version": "0.8.16",
|
||||||
"description": "Handlebars wrapper for Budibase templating.",
|
"description": "Handlebars wrapper for Budibase templating.",
|
||||||
"main": "src/index.cjs",
|
"main": "src/index.cjs",
|
||||||
"module": "dist/bundle.mjs",
|
"module": "dist/bundle.mjs",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@budibase/worker",
|
"name": "@budibase/worker",
|
||||||
"email": "hi@budibase.com",
|
"email": "hi@budibase.com",
|
||||||
"version": "0.8.14",
|
"version": "0.8.16",
|
||||||
"description": "Budibase Deployment Server",
|
"description": "Budibase Deployment Server",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
Loading…
Reference in New Issue