@dataloop-ai/components 0.20.144 → 0.20.145

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": "@dataloop-ai/components",
3
- "version": "0.20.144",
3
+ "version": "0.20.145",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -1127,9 +1127,7 @@ export default defineComponent({
1127
1127
 
1128
1128
  const focusEvent = e as FocusEvent
1129
1129
  const shouldKeepFocus =
1130
- this.keepFocusOnBlur &&
1131
- !focusEvent.relatedTarget &&
1132
- this.isExpanded
1130
+ this.keepFocusOnBlur && !focusEvent.relatedTarget
1133
1131
 
1134
1132
  this.$nextTick(() => {
1135
1133
  const inputRef = this.$refs.searchInput as HTMLInputElement
@@ -482,6 +482,12 @@ export default defineComponent({
482
482
  }
483
483
  }
484
484
  }
485
+
486
+ const clearSelectionWithRerender = () => {
487
+ clearSelection()
488
+ mainTableKey.value = v4()
489
+ }
490
+
485
491
  const updateSelectionHierarchy = (
486
492
  adding: boolean,
487
493
  event: any,
@@ -943,7 +949,9 @@ export default defineComponent({
943
949
  mainTbodyUuid,
944
950
  vue2h,
945
951
  containerClass,
946
- computedFilter
952
+ computedFilter,
953
+ clearSelection,
954
+ clearSelectionWithRerender
947
955
  }
948
956
  },
949
957
  // adding ignore here as overloading the render function like this is not a known type
@@ -75,6 +75,7 @@ export function useTreeTableRowSelection(
75
75
 
76
76
  function clearSelection() {
77
77
  selectedRows.value = []
78
+ selectedItemsNested.value = []
78
79
  }
79
80
 
80
81
  function updateSelection(