@budibase/bbui 3.2.26 → 3.2.28

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.2.26",
4
+ "version": "3.2.28",
5
5
  "license": "MPL-2.0",
6
6
  "svelte": "src/index.js",
7
7
  "module": "dist/bbui.mjs",
@@ -29,8 +29,8 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@adobe/spectrum-css-workflow-icons": "1.2.1",
32
- "@budibase/shared-core": "3.2.26",
33
- "@budibase/string-templates": "3.2.26",
32
+ "@budibase/shared-core": "*",
33
+ "@budibase/string-templates": "*",
34
34
  "@spectrum-css/accordion": "3.0.24",
35
35
  "@spectrum-css/actionbutton": "1.0.1",
36
36
  "@spectrum-css/actiongroup": "1.0.1",
@@ -98,5 +98,5 @@
98
98
  }
99
99
  }
100
100
  },
101
- "gitHead": "bde86d6100ccb5827c9dfe272086fd7e52821146"
101
+ "gitHead": "c45756b8f18fc7e36371a33149611f50748a662a"
102
102
  }
@@ -13,9 +13,8 @@
13
13
 
14
14
  const dispatch = createEventDispatcher()
15
15
 
16
- const onChange = e => {
17
- const optionValue = e.target.value
18
- if (e.target.checked && !value.includes(optionValue)) {
16
+ const onChange = optionValue => {
17
+ if (!value.includes(optionValue)) {
19
18
  dispatch("change", [...value, optionValue])
20
19
  } else {
21
20
  dispatch(
@@ -39,10 +38,9 @@
39
38
  class="spectrum-Checkbox spectrum-Checkbox--sizeM spectrum-FieldGroup-item"
40
39
  >
41
40
  <input
42
- on:change={onChange}
41
+ on:change={() => onChange(optionValue)}
43
42
  type="checkbox"
44
43
  class="spectrum-Checkbox-input"
45
- value={optionValue}
46
44
  checked={value.includes(optionValue)}
47
45
  {disabled}
48
46
  />
@@ -85,7 +85,7 @@
85
85
  }
86
86
 
87
87
  const getPos = e => {
88
- var rect = canvasRef.getBoundingClientRect()
88
+ let rect = canvasRef.getBoundingClientRect()
89
89
  const canvasX = e.offsetX || e.targetTouches?.[0].pageX - rect.left
90
90
  const canvasY = e.offsetY || e.targetTouches?.[0].pageY - rect.top
91
91