@budibase/frontend-core 3.34.3 → 3.34.4
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "3.34.
|
|
3
|
+
"version": "3.34.4",
|
|
4
4
|
"description": "Budibase frontend core libraries used in builder and client",
|
|
5
5
|
"author": "Budibase",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"vitest": "^3.2.4"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "374da6efdde7455de279a8cdfda9d5662db9cb46"
|
|
28
28
|
}
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
let isOpen = false
|
|
24
24
|
let anchor
|
|
25
25
|
|
|
26
|
-
$:
|
|
26
|
+
$: hasAttachments = Array.isArray(value) && value.length > 0
|
|
27
|
+
$: openable = readonly ? hasAttachments : focused
|
|
27
28
|
$: {
|
|
28
29
|
if (!focused) {
|
|
29
30
|
close()
|
|
@@ -35,6 +36,9 @@
|
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
const open = () => {
|
|
39
|
+
if (!openable) {
|
|
40
|
+
return
|
|
41
|
+
}
|
|
38
42
|
isOpen = true
|
|
39
43
|
}
|
|
40
44
|
|
|
@@ -87,8 +91,8 @@
|
|
|
87
91
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
88
92
|
<div
|
|
89
93
|
class="attachment-cell"
|
|
90
|
-
class:
|
|
91
|
-
on:click={
|
|
94
|
+
class:openable
|
|
95
|
+
on:click={openable ? open : null}
|
|
92
96
|
bind:this={anchor}
|
|
93
97
|
>
|
|
94
98
|
{#each value || [] as attachment}
|
|
@@ -113,6 +117,7 @@
|
|
|
113
117
|
<Dropzone
|
|
114
118
|
{value}
|
|
115
119
|
compact
|
|
120
|
+
disabled={readonly}
|
|
116
121
|
on:change={e => onChange(e.detail)}
|
|
117
122
|
maximum={maximum || schema.constraints?.length?.maximum}
|
|
118
123
|
{processFiles}
|
|
@@ -135,7 +140,7 @@
|
|
|
135
140
|
overflow: hidden;
|
|
136
141
|
user-select: none;
|
|
137
142
|
}
|
|
138
|
-
.attachment-cell.
|
|
143
|
+
.attachment-cell.openable:hover {
|
|
139
144
|
cursor: pointer;
|
|
140
145
|
}
|
|
141
146
|
.file {
|