@budibase/bbui 3.28.3 → 3.29.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/bbui",
3
3
  "description": "A UI solution used in the different Budibase projects.",
4
- "version": "3.28.3",
4
+ "version": "3.29.0",
5
5
  "license": "MPL-2.0",
6
6
  "module": "dist/bbui.mjs",
7
7
  "exports": {
@@ -107,5 +107,5 @@
107
107
  }
108
108
  }
109
109
  },
110
- "gitHead": "40bc76dc62aa2c1876e442d464c17aa388630975"
110
+ "gitHead": "d16e42b03ed3e4e7e1c1b055810fa54879aa8706"
111
111
  }
@@ -10,6 +10,7 @@
10
10
  export let secondary: boolean = false
11
11
  export let overBackground: boolean = false
12
12
  export let target: string | undefined = undefined
13
+ export let rel: string | null = null
13
14
  export let download: string | undefined = undefined
14
15
  export let disabled: boolean = false
15
16
  export let tooltip: string | null = null
@@ -27,6 +28,7 @@
27
28
  on:click={onClick}
28
29
  {href}
29
30
  {target}
31
+ {rel}
30
32
  {download}
31
33
  class:disabled
32
34
  class:spectrum-Link--primary={primary}
@@ -36,8 +36,12 @@
36
36
  }>()
37
37
  let visible: boolean = fixed || inline
38
38
  let modal: HTMLElement | undefined
39
+ let previousVisible = visible
39
40
 
40
- $: dispatch(visible ? "show" : "hide")
41
+ $: if (previousVisible !== visible) {
42
+ previousVisible = visible
43
+ dispatch(visible ? "show" : "hide")
44
+ }
41
45
 
42
46
  export function show(): void {
43
47
  if (visible) {