@budibase/frontend-core 2.6.21 → 2.6.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.22",
|
|
4
4
|
"description": "Budibase frontend core libraries used in builder and client",
|
|
5
5
|
"author": "Budibase",
|
|
6
6
|
"license": "MPL-2.0",
|
|
7
7
|
"svelte": "src/index.js",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@budibase/bbui": "^2.6.
|
|
10
|
-
"@budibase/shared-core": "^2.6.
|
|
9
|
+
"@budibase/bbui": "^2.6.22",
|
|
10
|
+
"@budibase/shared-core": "^2.6.22",
|
|
11
11
|
"dayjs": "^1.11.7",
|
|
12
12
|
"lodash": "^4.17.21",
|
|
13
13
|
"socket.io-client": "^4.6.1",
|
|
14
14
|
"svelte": "^3.46.2"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "6937bcd24a7338ccb9e392f5cb4131a5be4b4b24"
|
|
17
17
|
}
|
|
@@ -116,10 +116,24 @@ export const initialise = context => {
|
|
|
116
116
|
const schema = derived(
|
|
117
117
|
[table, schemaOverrides],
|
|
118
118
|
([$table, $schemaOverrides]) => {
|
|
119
|
-
|
|
120
|
-
if (!newSchema) {
|
|
119
|
+
if (!$table?.schema) {
|
|
121
120
|
return null
|
|
122
121
|
}
|
|
122
|
+
let newSchema = { ...$table?.schema }
|
|
123
|
+
|
|
124
|
+
// Edge case to temporarily allow deletion of duplicated user
|
|
125
|
+
// fields that were saved with the "disabled" flag set.
|
|
126
|
+
// By overriding the saved schema we ensure only overrides can
|
|
127
|
+
// set the disabled flag.
|
|
128
|
+
// TODO: remove in future
|
|
129
|
+
Object.keys(newSchema).forEach(field => {
|
|
130
|
+
newSchema[field] = {
|
|
131
|
+
...newSchema[field],
|
|
132
|
+
disabled: false,
|
|
133
|
+
}
|
|
134
|
+
})
|
|
135
|
+
|
|
136
|
+
// Apply schema overrides
|
|
123
137
|
Object.keys($schemaOverrides || {}).forEach(field => {
|
|
124
138
|
if (newSchema[field]) {
|
|
125
139
|
newSchema[field] = {
|
|
@@ -160,7 +174,7 @@ export const initialise = context => {
|
|
|
160
174
|
fields
|
|
161
175
|
.map(field => ({
|
|
162
176
|
name: field,
|
|
163
|
-
label: $schema[field].
|
|
177
|
+
label: $schema[field].displayName || field,
|
|
164
178
|
schema: $schema[field],
|
|
165
179
|
width: $schema[field].width || DefaultColumnWidth,
|
|
166
180
|
visible: $schema[field].visible ?? true,
|