@budibase/frontend-core 2.8.2 → 2.8.3-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/package.json +4 -4
- package/src/components/UserAvatar.svelte +5 -3
- package/src/components/grid/cells/HeaderCell.svelte +6 -2
- package/src/components/grid/cells/RelationshipCell.svelte +1 -1
- package/src/components/grid/lib/utils.js +1 -0
- package/src/components/grid/overlays/ResizeOverlay.svelte +2 -9
- package/src/components/grid/stores/users.js +3 -2
- package/src/fetch/DataFetch.js +1 -1
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.3-alpha.0",
|
|
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.8.
|
|
10
|
-
"@budibase/shared-core": "2.8.
|
|
9
|
+
"@budibase/bbui": "2.8.3-alpha.0",
|
|
10
|
+
"@budibase/shared-core": "2.8.3-alpha.0",
|
|
11
11
|
"dayjs": "^1.11.7",
|
|
12
12
|
"lodash": "^4.17.21",
|
|
13
13
|
"socket.io-client": "^4.6.1",
|
|
14
14
|
"svelte": "^3.46.2"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "88d19e6b9246a72e515777c8d60e192f7d9c9d1c"
|
|
17
17
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<Tooltip
|
|
34
34
|
direction={tooltipDirection}
|
|
35
35
|
textWrapping
|
|
36
|
-
text={user
|
|
36
|
+
text={helpers.getUserLabel(user)}
|
|
37
37
|
size="S"
|
|
38
38
|
/>
|
|
39
39
|
</div>
|
|
@@ -46,13 +46,15 @@
|
|
|
46
46
|
position: relative;
|
|
47
47
|
}
|
|
48
48
|
.tooltip {
|
|
49
|
-
display: none;
|
|
50
49
|
position: absolute;
|
|
51
50
|
top: 0;
|
|
52
51
|
left: 50%;
|
|
53
52
|
white-space: nowrap;
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
opacity: 0;
|
|
55
|
+
transition: opacity 130ms ease-out;
|
|
54
56
|
}
|
|
55
57
|
.user-avatar:hover .tooltip {
|
|
56
|
-
|
|
58
|
+
opacity: 1;
|
|
57
59
|
}
|
|
58
60
|
</style>
|
|
@@ -37,8 +37,12 @@
|
|
|
37
37
|
$: sortedBy = column.name === $sort.column
|
|
38
38
|
$: canMoveLeft = orderable && idx > 0
|
|
39
39
|
$: canMoveRight = orderable && idx < $renderedColumns.length - 1
|
|
40
|
-
$: ascendingLabel =
|
|
41
|
-
|
|
40
|
+
$: ascendingLabel = ["number", "bigint"].includes(column.schema?.type)
|
|
41
|
+
? "low-high"
|
|
42
|
+
: "A-Z"
|
|
43
|
+
$: descendingLabel = ["number", "bigint"].includes(column.schema?.type)
|
|
44
|
+
? "high-low"
|
|
45
|
+
: "Z-A"
|
|
42
46
|
|
|
43
47
|
const editColumn = () => {
|
|
44
48
|
dispatch("edit-column", column.schema)
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
class:wrap={editable || contentLines > 1}
|
|
259
259
|
on:wheel={e => (focused ? e.stopPropagation() : null)}
|
|
260
260
|
>
|
|
261
|
-
{#each value || [] as relationship
|
|
261
|
+
{#each value || [] as relationship}
|
|
262
262
|
{#if relationship.primaryDisplay}
|
|
263
263
|
<div class="badge">
|
|
264
264
|
<span
|
|
@@ -2,16 +2,9 @@
|
|
|
2
2
|
import { getContext } from "svelte"
|
|
3
3
|
import { GutterWidth } from "../lib/constants"
|
|
4
4
|
|
|
5
|
-
const {
|
|
6
|
-
|
|
7
|
-
resize,
|
|
8
|
-
renderedColumns,
|
|
9
|
-
stickyColumn,
|
|
10
|
-
isReordering,
|
|
11
|
-
scrollLeft,
|
|
12
|
-
} = getContext("grid")
|
|
5
|
+
const { resize, renderedColumns, stickyColumn, isReordering, scrollLeft } =
|
|
6
|
+
getContext("grid")
|
|
13
7
|
|
|
14
|
-
$: cutoff = $scrollLeft + GutterWidth + ($columns[0]?.width || 0)
|
|
15
8
|
$: offset = GutterWidth + ($stickyColumn?.width || 0)
|
|
16
9
|
$: activeColumn = $resize.column
|
|
17
10
|
|
|
@@ -30,8 +30,9 @@ export const deriveStores = context => {
|
|
|
30
30
|
([$users, $focusedCellId]) => {
|
|
31
31
|
let map = {}
|
|
32
32
|
$users.forEach(user => {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
const cellId = user.gridMetadata?.focusedCellId
|
|
34
|
+
if (cellId && cellId !== $focusedCellId) {
|
|
35
|
+
map[cellId] = user
|
|
35
36
|
}
|
|
36
37
|
})
|
|
37
38
|
return map
|
package/src/fetch/DataFetch.js
CHANGED
|
@@ -155,7 +155,7 @@ export default class DataFetch {
|
|
|
155
155
|
let sortType = "string"
|
|
156
156
|
if (sortColumn) {
|
|
157
157
|
const type = schema?.[sortColumn]?.type
|
|
158
|
-
sortType = type === "number" ? "number" : "string"
|
|
158
|
+
sortType = type === "number" || type === "bigint" ? "number" : "string"
|
|
159
159
|
}
|
|
160
160
|
this.options.sortType = sortType
|
|
161
161
|
|