@budibase/bbui 1.2.42 → 1.2.45
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": "1.2.
|
|
4
|
+
"version": "1.2.45",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"svelte": "src/index.js",
|
|
7
7
|
"module": "dist/bbui.es.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@adobe/spectrum-css-workflow-icons": "^1.2.1",
|
|
41
|
-
"@budibase/string-templates": "^1.2.
|
|
41
|
+
"@budibase/string-templates": "^1.2.45",
|
|
42
42
|
"@spectrum-css/actionbutton": "^1.0.1",
|
|
43
43
|
"@spectrum-css/actiongroup": "^1.0.1",
|
|
44
44
|
"@spectrum-css/avatar": "^3.0.2",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"svelte-flatpickr": "^3.2.3",
|
|
86
86
|
"svelte-portal": "^1.0.0"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "b390187ee3b142cc871552f596a7023abe69ef44"
|
|
89
89
|
}
|
|
@@ -59,6 +59,13 @@
|
|
|
59
59
|
|
|
60
60
|
// If time only set date component to 2000-01-01
|
|
61
61
|
if (timeOnly) {
|
|
62
|
+
// Classic flackpickr causing issues.
|
|
63
|
+
// When selecting a value for the first time for a "time only" field,
|
|
64
|
+
// the time is always offset by 1 hour for some reason (regardless of time
|
|
65
|
+
// zone) so we need to correct it.
|
|
66
|
+
if (!value && newValue) {
|
|
67
|
+
newValue = new Date(dates[0].getTime() + 60 * 60 * 1000).toISOString()
|
|
68
|
+
}
|
|
62
69
|
newValue = `2000-01-01T${newValue.split("T")[1]}`
|
|
63
70
|
}
|
|
64
71
|
|
|
@@ -133,7 +133,13 @@
|
|
|
133
133
|
<div class="title">
|
|
134
134
|
<div class="filename">
|
|
135
135
|
{#if selectedUrl}
|
|
136
|
-
<Link
|
|
136
|
+
<Link
|
|
137
|
+
target="_blank"
|
|
138
|
+
download={selectedImage.name}
|
|
139
|
+
href={selectedUrl}
|
|
140
|
+
>
|
|
141
|
+
{selectedImage.name}
|
|
142
|
+
</Link>
|
|
137
143
|
{:else}
|
|
138
144
|
{selectedImage.name}
|
|
139
145
|
{/if}
|
package/src/Link/Link.svelte
CHANGED
|
@@ -8,12 +8,14 @@
|
|
|
8
8
|
export let secondary = false
|
|
9
9
|
export let overBackground = false
|
|
10
10
|
export let target
|
|
11
|
+
export let download
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<a
|
|
14
15
|
on:click
|
|
15
16
|
{href}
|
|
16
17
|
{target}
|
|
18
|
+
{download}
|
|
17
19
|
class:spectrum-Link--primary={primary}
|
|
18
20
|
class:spectrum-Link--secondary={secondary}
|
|
19
21
|
class:spectrum-Link--overBackground={overBackground}
|
|
@@ -15,14 +15,24 @@
|
|
|
15
15
|
|
|
16
16
|
{#each attachments as attachment}
|
|
17
17
|
{#if isImage(attachment.extension)}
|
|
18
|
-
<Link
|
|
18
|
+
<Link
|
|
19
|
+
quiet
|
|
20
|
+
target="_blank"
|
|
21
|
+
download={attachment.name}
|
|
22
|
+
href={attachment.url}
|
|
23
|
+
>
|
|
19
24
|
<div class="center" title={attachment.name}>
|
|
20
25
|
<img src={attachment.url} alt={attachment.extension} />
|
|
21
26
|
</div>
|
|
22
27
|
</Link>
|
|
23
28
|
{:else}
|
|
24
29
|
<div class="file" title={attachment.name}>
|
|
25
|
-
<Link
|
|
30
|
+
<Link
|
|
31
|
+
quiet
|
|
32
|
+
target="_blank"
|
|
33
|
+
download={attachment.name}
|
|
34
|
+
href={attachment.url}
|
|
35
|
+
>
|
|
26
36
|
{attachment.extension}
|
|
27
37
|
</Link>
|
|
28
38
|
</div>
|