@live-change/vue3-components 0.9.64 → 0.9.66

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/vue3-components",
3
- "version": "0.9.64",
3
+ "version": "0.9.66",
4
4
  "description": "Live Change Framework - vue components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,10 +21,10 @@
21
21
  },
22
22
  "homepage": "https://github.com/live-change/live-change-stack",
23
23
  "dependencies": {
24
- "@live-change/vue3-ssr": "^0.9.64",
24
+ "@live-change/vue3-ssr": "^0.9.66",
25
25
  "debug": "^4.3.4",
26
26
  "mitt": "3.0.1",
27
27
  "vue": "^3.5.12"
28
28
  },
29
- "gitHead": "902581d1d78ac5ee8c2c2ed7ccd9f8a8df6df2b0"
29
+ "gitHead": "8c76cb48a8cb459f3cfe08983f5b288c10e5f688"
30
30
  }
@@ -50,7 +50,7 @@
50
50
  <script setup>
51
51
 
52
52
  import ScrollBorder from 'vue3-scroll-border'
53
- import { ref, toRefs, defineProps, defineEmits, watch, computed } from 'vue'
53
+ import { ref, unref, toRefs, defineProps, defineEmits, watch, computed } from 'vue'
54
54
  import { rangeBuckets } from '@live-change/vue3-ssr'
55
55
 
56
56
  const props = defineProps({
@@ -163,7 +163,7 @@
163
163
 
164
164
  const itemsCount = computed(() => {
165
165
  if(!buckets.value) return 0
166
- return buckets.value.buckets.reduce((acc, b) => acc + b.data.length, 0)
166
+ return buckets.value.buckets.reduce((acc, b) => acc + (unref(b.data)?.length ?? 0), 0)
167
167
  })
168
168
 
169
169
  if(props.buckets) {
@@ -199,10 +199,10 @@
199
199
  return props.canLoadTop && buckets.value.canLoadTop()
200
200
  }
201
201
  function canDropTop() {
202
- return props.canDropTop && buckets.value.buckets.length > 2
202
+ return props.canDropTop && buckets.value.buckets && buckets.value.buckets.length > 2
203
203
  }
204
204
  function canDropBottom() {
205
- return props.canDropBottom && buckets.value.buckets.length > 2
205
+ return props.canDropBottom && buckets.value.buckets && buckets.value.buckets.length > 2
206
206
  }
207
207
 
208
208