@budibase/frontend-core 2.8.2-alpha.4 → 2.8.2

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,17 +1,17 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "2.8.2-alpha.4",
3
+ "version": "2.8.2",
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.2-alpha.4",
10
- "@budibase/shared-core": "2.8.2-alpha.4",
9
+ "@budibase/bbui": "2.8.2",
10
+ "@budibase/shared-core": "2.8.2",
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": "2852b9560b2695fdcd676b46ad380921001ca9d7"
16
+ "gitHead": "d82aae5c757facafd523e57d19a62048cf1ee57e"
17
17
  }
@@ -33,7 +33,7 @@
33
33
  <Tooltip
34
34
  direction={tooltipDirection}
35
35
  textWrapping
36
- text={helpers.getUserLabel(user)}
36
+ text={user.email}
37
37
  size="S"
38
38
  />
39
39
  </div>
@@ -46,15 +46,13 @@
46
46
  position: relative;
47
47
  }
48
48
  .tooltip {
49
+ display: none;
49
50
  position: absolute;
50
51
  top: 0;
51
52
  left: 50%;
52
53
  white-space: nowrap;
53
- pointer-events: none;
54
- opacity: 0;
55
- transition: opacity 130ms ease-out;
56
54
  }
57
55
  .user-avatar:hover .tooltip {
58
- opacity: 1;
56
+ display: block;
59
57
  }
60
58
  </style>
@@ -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, idx}
262
262
  {#if relationship.primaryDisplay}
263
263
  <div class="badge">
264
264
  <span
@@ -2,9 +2,16 @@
2
2
  import { getContext } from "svelte"
3
3
  import { GutterWidth } from "../lib/constants"
4
4
 
5
- const { resize, renderedColumns, stickyColumn, isReordering, scrollLeft } =
6
- getContext("grid")
5
+ const {
6
+ columns,
7
+ resize,
8
+ renderedColumns,
9
+ stickyColumn,
10
+ isReordering,
11
+ scrollLeft,
12
+ } = getContext("grid")
7
13
 
14
+ $: cutoff = $scrollLeft + GutterWidth + ($columns[0]?.width || 0)
8
15
  $: offset = GutterWidth + ($stickyColumn?.width || 0)
9
16
  $: activeColumn = $resize.column
10
17
 
@@ -30,9 +30,8 @@ export const deriveStores = context => {
30
30
  ([$users, $focusedCellId]) => {
31
31
  let map = {}
32
32
  $users.forEach(user => {
33
- const cellId = user.gridMetadata?.focusedCellId
34
- if (cellId && cellId !== $focusedCellId) {
35
- map[cellId] = user
33
+ if (user.focusedCellId && user.focusedCellId !== $focusedCellId) {
34
+ map[user.focusedCellId] = user
36
35
  }
37
36
  })
38
37
  return map