@budibase/bbui 1.0.68 → 1.0.72-alpha.0
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/dist/bbui.es.js +1 -1
- package/dist/bbui.es.js.map +1 -1
- package/package.json +2 -2
- package/src/Drawer/Drawer.svelte +8 -0
- package/src/Table/Table.svelte +1 -2
- package/src/helpers.js +8 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/bbui",
|
|
3
3
|
"description": "A UI solution used in the different Budibase projects.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.72-alpha.0",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"svelte": "src/index.js",
|
|
7
7
|
"module": "dist/bbui.es.js",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"svelte-flatpickr": "^3.2.3",
|
|
84
84
|
"svelte-portal": "^1.0.0"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "c3826e2fd9f02174aa1ec40d05fcad42f15e8188"
|
|
87
87
|
}
|
package/src/Drawer/Drawer.svelte
CHANGED
package/src/Table/Table.svelte
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
import "@spectrum-css/table/dist/index-vars.css"
|
|
4
4
|
import CellRenderer from "./CellRenderer.svelte"
|
|
5
5
|
import SelectEditRenderer from "./SelectEditRenderer.svelte"
|
|
6
|
-
import { cloneDeep } from "
|
|
7
|
-
import { deepGet } from "../helpers"
|
|
6
|
+
import { cloneDeep, deepGet } from "../helpers"
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* The expected schema is our normal couch schemas for our tables.
|
package/src/helpers.js
CHANGED
|
@@ -98,3 +98,11 @@ export const deepSet = (obj, key, value) => {
|
|
|
98
98
|
}
|
|
99
99
|
obj[split[split.length - 1]] = value
|
|
100
100
|
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Deeply clones an object. Functions are not supported.
|
|
104
|
+
* @param obj the object to clone
|
|
105
|
+
*/
|
|
106
|
+
export const cloneDeep = obj => {
|
|
107
|
+
return JSON.parse(JSON.stringify(obj))
|
|
108
|
+
}
|