@budibase/frontend-core 2.11.15-alpha.0 → 2.11.15

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.11.15-alpha.0",
3
+ "version": "2.11.15",
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.11.15-alpha.0",
10
- "@budibase/shared-core": "2.11.15-alpha.0",
9
+ "@budibase/bbui": "2.11.15",
10
+ "@budibase/shared-core": "2.11.15",
11
11
  "dayjs": "^1.10.8",
12
12
  "lodash": "^4.17.21",
13
13
  "socket.io-client": "^4.6.1",
14
14
  "svelte": "^3.46.2"
15
15
  },
16
- "gitHead": "f23ea2d19206b434781d145c498582d091effa8c"
16
+ "gitHead": "b5ad4c6574608806f955a716175fc0213aeb4230"
17
17
  }
@@ -17,24 +17,13 @@
17
17
  const { config, dispatch, selectedRows } = getContext("grid")
18
18
  const svelteDispatch = createEventDispatcher()
19
19
 
20
- const select = e => {
21
- e.stopPropagation()
20
+ const select = () => {
22
21
  svelteDispatch("select")
23
22
  const id = row?._id
24
23
  if (id) {
25
24
  selectedRows.actions.toggleRow(id)
26
25
  }
27
26
  }
28
-
29
- const bulkDelete = e => {
30
- e.stopPropagation()
31
- dispatch("request-bulk-delete")
32
- }
33
-
34
- const expand = e => {
35
- e.stopPropagation()
36
- svelteDispatch("expand")
37
- }
38
27
  </script>
39
28
 
40
29
  <GridCell
@@ -67,7 +56,7 @@
67
56
  {/if}
68
57
  {/if}
69
58
  {#if rowSelected && $config.canDeleteRows}
70
- <div class="delete" on:click={bulkDelete}>
59
+ <div class="delete" on:click={() => dispatch("request-bulk-delete")}>
71
60
  <Icon
72
61
  name="Delete"
73
62
  size="S"
@@ -76,7 +65,12 @@
76
65
  </div>
77
66
  {:else}
78
67
  <div class="expand" class:visible={$config.canExpandRows && expandable}>
79
- <Icon size="S" name="Maximize" hoverable on:click={expand} />
68
+ <Icon
69
+ size="S"
70
+ name="Maximize"
71
+ hoverable
72
+ on:click={() => svelteDispatch("expand")}
73
+ />
80
74
  </div>
81
75
  {/if}
82
76
  </div>
@@ -17,7 +17,6 @@
17
17
  columnHorizontalInversionIndex,
18
18
  contentLines,
19
19
  isDragging,
20
- dispatch,
21
20
  } = getContext("grid")
22
21
 
23
22
  $: rowSelected = !!$selectedRows[row._id]
@@ -31,7 +30,6 @@
31
30
  on:focus
32
31
  on:mouseenter={$isDragging ? null : () => ($hoveredRowId = row._id)}
33
32
  on:mouseleave={$isDragging ? null : () => ($hoveredRowId = null)}
34
- on:click={() => dispatch("rowclick", row)}
35
33
  >
36
34
  {#each $renderedColumns as column, columnIdx (column.name)}
37
35
  {@const cellId = `${row._id}-${column.name}`}
@@ -74,7 +74,6 @@
74
74
  class="row"
75
75
  on:mouseenter={$isDragging ? null : () => ($hoveredRowId = row._id)}
76
76
  on:mouseleave={$isDragging ? null : () => ($hoveredRowId = null)}
77
- on:click={() => dispatch("rowclick", row)}
78
77
  >
79
78
  <GutterCell {row} {rowFocused} {rowHovered} {rowSelected} />
80
79
  {#if $stickyColumn}