@budibase/bbui 2.9.39-alpha.8 → 2.9.39

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": "2.9.39-alpha.8",
4
+ "version": "2.9.39",
5
5
  "license": "MPL-2.0",
6
6
  "svelte": "src/index.js",
7
7
  "module": "dist/bbui.es.js",
@@ -38,8 +38,8 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@adobe/spectrum-css-workflow-icons": "1.2.1",
41
- "@budibase/shared-core": "2.9.39-alpha.8",
42
- "@budibase/string-templates": "2.9.39-alpha.8",
41
+ "@budibase/shared-core": "2.9.39",
42
+ "@budibase/string-templates": "2.9.39",
43
43
  "@spectrum-css/accordion": "3.0.24",
44
44
  "@spectrum-css/actionbutton": "1.0.1",
45
45
  "@spectrum-css/actiongroup": "1.0.1",
@@ -106,5 +106,5 @@
106
106
  }
107
107
  }
108
108
  },
109
- "gitHead": "51341824028ef973ac12f71ef6e441e1f316fb15"
109
+ "gitHead": "6d9f12b6e3f1760167a83e5c20babc0a45ec34db"
110
110
  }
@@ -18,6 +18,7 @@ export default function positionDropdown(element, opts) {
18
18
  useAnchorWidth,
19
19
  offset = 5,
20
20
  customUpdate,
21
+ offsetBelow,
21
22
  } = opts
22
23
  if (!anchor) {
23
24
  return
@@ -47,7 +48,7 @@ export default function positionDropdown(element, opts) {
47
48
  styles.top = anchorBounds.top - elementBounds.height - offset
48
49
  styles.maxHeight = maxHeight || 240
49
50
  } else {
50
- styles.top = anchorBounds.bottom + offset
51
+ styles.top = anchorBounds.bottom + (offsetBelow || offset)
51
52
  styles.maxHeight =
52
53
  maxHeight || window.innerHeight - anchorBounds.bottom - 20
53
54
  }
@@ -17,6 +17,9 @@
17
17
  export let fetchTerm = null
18
18
  export let useFetch = false
19
19
  export let customPopoverHeight
20
+ export let customPopoverOffsetBelow
21
+ export let customPopoverMaxHeight
22
+ export let open = false
20
23
 
21
24
  const dispatch = createEventDispatcher()
22
25
 
@@ -88,6 +91,7 @@
88
91
  isPlaceholder={!arrayValue.length}
89
92
  {autocomplete}
90
93
  bind:fetchTerm
94
+ bind:open
91
95
  {useFetch}
92
96
  {isOptionSelected}
93
97
  {getOptionLabel}
@@ -96,4 +100,6 @@
96
100
  {sort}
97
101
  {autoWidth}
98
102
  {customPopoverHeight}
103
+ {customPopoverOffsetBelow}
104
+ {customPopoverMaxHeight}
99
105
  />
@@ -38,6 +38,8 @@
38
38
  export let fetchTerm = null
39
39
  export let useFetch = false
40
40
  export let customPopoverHeight
41
+ export let customPopoverOffsetBelow
42
+ export let customPopoverMaxHeight
41
43
  export let align = "left"
42
44
  export let footer = null
43
45
  export let customAnchor = null
@@ -150,7 +152,9 @@
150
152
  on:close={() => (open = false)}
151
153
  useAnchorWidth={!autoWidth}
152
154
  maxWidth={autoWidth ? 400 : null}
155
+ maxHeight={customPopoverMaxHeight}
153
156
  customHeight={customPopoverHeight}
157
+ offsetBelow={customPopoverOffsetBelow}
154
158
  >
155
159
  <div
156
160
  class="popover-content"
@@ -21,10 +21,12 @@
21
21
  export let sort = false
22
22
  export let align
23
23
  export let footer = null
24
+ export let open = false
24
25
  export let tag = null
25
- const dispatch = createEventDispatcher()
26
+ export let customPopoverOffsetBelow
27
+ export let customPopoverMaxHeight
26
28
 
27
- let open = false
29
+ const dispatch = createEventDispatcher()
28
30
 
29
31
  $: fieldText = getFieldText(value, options, placeholder)
30
32
  $: fieldIcon = getFieldAttribute(getOptionIcon, value, options)
@@ -84,6 +86,8 @@
84
86
  {autocomplete}
85
87
  {sort}
86
88
  {tag}
89
+ {customPopoverOffsetBelow}
90
+ {customPopoverMaxHeight}
87
91
  isPlaceholder={value == null || value === ""}
88
92
  placeholderOption={placeholder === false ? null : placeholder}
89
93
  isOptionSelected={option => option === value}
@@ -19,6 +19,7 @@
19
19
  export let useAnchorWidth = false
20
20
  export let dismissible = true
21
21
  export let offset = 5
22
+ export let offsetBelow
22
23
  export let customHeight
23
24
  export let animate = true
24
25
  export let customZindex
@@ -89,6 +90,7 @@
89
90
  maxWidth,
90
91
  useAnchorWidth,
91
92
  offset,
93
+ offsetBelow,
92
94
  customUpdate: handlePostionUpdate,
93
95
  }}
94
96
  use:clickOutside={{