@budibase/frontend-core 2.32.6 → 2.32.8
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,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "2.32.
|
|
3
|
+
"version": "2.32.8",
|
|
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.32.
|
|
10
|
-
"@budibase/shared-core": "2.32.
|
|
11
|
-
"@budibase/types": "2.32.
|
|
9
|
+
"@budibase/bbui": "2.32.8",
|
|
10
|
+
"@budibase/shared-core": "2.32.8",
|
|
11
|
+
"@budibase/types": "2.32.8",
|
|
12
12
|
"dayjs": "^1.10.8",
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
14
|
"shortid": "2.2.15",
|
|
15
15
|
"socket.io-client": "^4.7.5"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "2fb4f8e8807ae0d134a6aa1037f303f2f8de5493"
|
|
18
18
|
}
|
|
@@ -4,16 +4,13 @@
|
|
|
4
4
|
import ColumnsSettingContent from "./ColumnsSettingContent.svelte"
|
|
5
5
|
import { FieldPermissions } from "../../../constants"
|
|
6
6
|
|
|
7
|
-
export let allowViewReadonlyColumns = false
|
|
8
|
-
|
|
9
7
|
const { columns, datasource } = getContext("grid")
|
|
10
8
|
|
|
11
9
|
let open = false
|
|
12
10
|
let anchor
|
|
13
11
|
|
|
14
12
|
$: anyRestricted = $columns.filter(col => !col.visible || col.readonly).length
|
|
15
|
-
$: text = anyRestricted ? `Columns (${anyRestricted} restricted)` : "Columns"
|
|
16
|
-
|
|
13
|
+
$: text = anyRestricted ? `Columns: (${anyRestricted} restricted)` : "Columns"
|
|
17
14
|
$: permissions =
|
|
18
15
|
$datasource.type === "viewV2"
|
|
19
16
|
? [
|
|
@@ -22,9 +19,6 @@
|
|
|
22
19
|
FieldPermissions.HIDDEN,
|
|
23
20
|
]
|
|
24
21
|
: [FieldPermissions.WRITABLE, FieldPermissions.HIDDEN]
|
|
25
|
-
$: disabledPermissions = allowViewReadonlyColumns
|
|
26
|
-
? []
|
|
27
|
-
: [FieldPermissions.READONLY]
|
|
28
22
|
</script>
|
|
29
23
|
|
|
30
24
|
<div bind:this={anchor}>
|
|
@@ -41,9 +35,5 @@
|
|
|
41
35
|
</div>
|
|
42
36
|
|
|
43
37
|
<Popover bind:open {anchor} align="left">
|
|
44
|
-
<ColumnsSettingContent
|
|
45
|
-
columns={$columns}
|
|
46
|
-
{permissions}
|
|
47
|
-
{disabledPermissions}
|
|
48
|
-
/>
|
|
38
|
+
<ColumnsSettingContent columns={$columns} {permissions} />
|
|
49
39
|
</Popover>
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
export let buttons = null
|
|
59
59
|
export let darkMode
|
|
60
60
|
export let isCloud = null
|
|
61
|
-
export let allowViewReadonlyColumns = false
|
|
62
61
|
export let rowConditions = null
|
|
63
62
|
|
|
64
63
|
// Unique identifier for DOM nodes inside this instance
|
|
@@ -115,7 +114,6 @@
|
|
|
115
114
|
buttons,
|
|
116
115
|
darkMode,
|
|
117
116
|
isCloud,
|
|
118
|
-
allowViewReadonlyColumns,
|
|
119
117
|
rowConditions,
|
|
120
118
|
})
|
|
121
119
|
|
|
@@ -157,7 +155,7 @@
|
|
|
157
155
|
<div class="controls-left">
|
|
158
156
|
<slot name="filter" />
|
|
159
157
|
<SortButton />
|
|
160
|
-
<ColumnsSettingButton
|
|
158
|
+
<ColumnsSettingButton />
|
|
161
159
|
<SizeButton />
|
|
162
160
|
<slot name="controls" />
|
|
163
161
|
</div>
|