@budibase/bbui 2.22.11 → 2.22.13
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/bbui",
|
|
3
3
|
"description": "A UI solution used in the different Budibase projects.",
|
|
4
|
-
"version": "2.22.
|
|
4
|
+
"version": "2.22.13",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"svelte": "src/index.js",
|
|
7
7
|
"module": "dist/bbui.es.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@adobe/spectrum-css-workflow-icons": "1.2.1",
|
|
38
|
-
"@budibase/shared-core": "2.22.
|
|
39
|
-
"@budibase/string-templates": "2.22.
|
|
38
|
+
"@budibase/shared-core": "2.22.13",
|
|
39
|
+
"@budibase/string-templates": "2.22.13",
|
|
40
40
|
"@spectrum-css/accordion": "3.0.24",
|
|
41
41
|
"@spectrum-css/actionbutton": "1.0.1",
|
|
42
42
|
"@spectrum-css/actiongroup": "1.0.1",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "a8479c046fc0ccb320f5f128aafeb9421dde5db5"
|
|
107
107
|
}
|
|
@@ -79,7 +79,8 @@ const removeHandler = id => {
|
|
|
79
79
|
export default (element, opts) => {
|
|
80
80
|
const id = Math.random()
|
|
81
81
|
const update = newOpts => {
|
|
82
|
-
const callback =
|
|
82
|
+
const callback =
|
|
83
|
+
newOpts?.callback || (typeof newOpts === "function" ? newOpts : null)
|
|
83
84
|
const anchor = newOpts?.anchor || element
|
|
84
85
|
const allowedType = newOpts?.allowedType || "click"
|
|
85
86
|
updateHandler(id, element, anchor, callback, allowedType)
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
export let schema
|
|
13
13
|
export let value
|
|
14
14
|
export let customRenderers = []
|
|
15
|
+
export let snippets
|
|
15
16
|
|
|
16
17
|
let renderer
|
|
17
18
|
const typeMap = {
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
if (!template) {
|
|
45
46
|
return value
|
|
46
47
|
}
|
|
47
|
-
return processStringSync(template, { value })
|
|
48
|
+
return processStringSync(template, { value, snippets })
|
|
48
49
|
}
|
|
49
50
|
</script>
|
|
50
51
|
|
package/src/Table/Table.svelte
CHANGED
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
export let customPlaceholder = false
|
|
43
43
|
export let showHeaderBorder = true
|
|
44
44
|
export let placeholderText = "No rows found"
|
|
45
|
+
export let snippets = []
|
|
45
46
|
|
|
46
47
|
const dispatch = createEventDispatcher()
|
|
47
48
|
|
|
@@ -425,6 +426,7 @@
|
|
|
425
426
|
<CellRenderer
|
|
426
427
|
{customRenderers}
|
|
427
428
|
{row}
|
|
429
|
+
{snippets}
|
|
428
430
|
schema={schema[field]}
|
|
429
431
|
value={deepGet(row, field)}
|
|
430
432
|
on:clickrelationship
|