Merge remote-tracking branch 'origin/master' into feature/multistep-form-block
This commit is contained in:
commit
0eeabd7883
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "2.14.0",
|
"version": "2.14.2",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"packages": [
|
"packages": [
|
||||||
"packages/*",
|
"packages/*",
|
||||||
|
|
|
@ -44,7 +44,11 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
const onChange = value => {
|
const onChange = value => {
|
||||||
if (type === "link" && value && hasValidLinks(value)) {
|
if (
|
||||||
|
(type === "link" || type === "bb_reference") &&
|
||||||
|
value &&
|
||||||
|
hasValidLinks(value)
|
||||||
|
) {
|
||||||
currentVal = value.split(",")
|
currentVal = value.split(",")
|
||||||
} else if (type === "array" && value && hasValidOptions(value)) {
|
} else if (type === "array" && value && hasValidOptions(value)) {
|
||||||
currentVal = value.split(",")
|
currentVal = value.split(",")
|
||||||
|
@ -95,6 +99,7 @@
|
||||||
date: isValidDate,
|
date: isValidDate,
|
||||||
datetime: isValidDate,
|
datetime: isValidDate,
|
||||||
link: hasValidLinks,
|
link: hasValidLinks,
|
||||||
|
bb_reference: hasValidLinks,
|
||||||
array: hasValidOptions,
|
array: hasValidOptions,
|
||||||
longform: value => !isJSBinding(value),
|
longform: value => !isJSBinding(value),
|
||||||
json: value => !isJSBinding(value),
|
json: value => !isJSBinding(value),
|
||||||
|
|
|
@ -305,8 +305,8 @@ export function shouldCopySpecialColumn(
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Looks for columns which need to be copied over into the new table definitions, like relationships
|
* Looks for columns which need to be copied over into the new table definitions, like relationships,
|
||||||
* and options types.
|
* options types and views.
|
||||||
* @param tableName The name of the table which is being checked.
|
* @param tableName The name of the table which is being checked.
|
||||||
* @param table The specific table which is being checked.
|
* @param table The specific table which is being checked.
|
||||||
* @param entities All the tables that existed before - the old table definitions.
|
* @param entities All the tables that existed before - the old table definitions.
|
||||||
|
@ -325,6 +325,9 @@ function copyExistingPropsOver(
|
||||||
if (entities[tableName]?.created) {
|
if (entities[tableName]?.created) {
|
||||||
table.created = entities[tableName]?.created
|
table.created = entities[tableName]?.created
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.views = entities[tableName].views
|
||||||
|
|
||||||
const existingTableSchema = entities[tableName].schema
|
const existingTableSchema = entities[tableName].schema
|
||||||
for (let key in existingTableSchema) {
|
for (let key in existingTableSchema) {
|
||||||
if (!existingTableSchema.hasOwnProperty(key)) {
|
if (!existingTableSchema.hasOwnProperty(key)) {
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"baseUrl": "."
|
"baseUrl": "."
|
||||||
},
|
},
|
||||||
|
"ts-node": {
|
||||||
|
"require": ["tsconfig-paths/register"]
|
||||||
|
},
|
||||||
"include": ["src/**/*", "__mocks__/**/*"],
|
"include": ["src/**/*", "__mocks__/**/*"],
|
||||||
"exclude": ["node_modules", "dist"]
|
"exclude": ["node_modules", "dist"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue