@soft-stech/bootsman-ui-shadcn 2.0.16 → 2.0.17
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/dist/{BuiTableHeader.vue_vue_type_script_setup_true_lang-Di2FKUwD.js → BuiTableHeader.vue_vue_type_script_setup_true_lang-BwsxaQdP.js} +5 -4
- package/dist/components/table/BuiTableHeader.js +1 -1
- package/dist/components/table/index.js +355 -354
- package/dist/index.js +1 -1
- package/dist/lib/useResizeColumns.d.ts +1 -1
- package/dist/lib/useResizeColumns.js +42 -43
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/table/BuiDataTable.vue +9 -4
- package/src/components/table/BuiTableHeader.vue +2 -1
- package/src/lib/useResizeColumns.ts +1 -9
- package/src/stories/components/BuiDataTableStory.vue +3 -2
|
@@ -59,15 +59,7 @@ export function useResizeColumns() {
|
|
|
59
59
|
const isMouseDownOnHandler = ref<boolean>(false)
|
|
60
60
|
const isMouseUpOnHandler = ref<boolean>(false)
|
|
61
61
|
|
|
62
|
-
const handleResizeControlMouseDown = (
|
|
63
|
-
e: Event,
|
|
64
|
-
cellId: string,
|
|
65
|
-
enableColumnResizing: boolean
|
|
66
|
-
) => {
|
|
67
|
-
const targetHTMLElement = e.target as HTMLElement
|
|
68
|
-
isMouseDownOnHandler.value =
|
|
69
|
-
targetHTMLElement.className.includes && targetHTMLElement.className.includes('resize-handler')
|
|
70
|
-
|
|
62
|
+
const handleResizeControlMouseDown = (cellId: string, enableColumnResizing: boolean) => {
|
|
71
63
|
if (!enableColumnResizing) return
|
|
72
64
|
|
|
73
65
|
isResizing.value = true
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
SignalMediumIcon,
|
|
19
19
|
SignalLowIcon
|
|
20
20
|
} from 'lucide-vue-next'
|
|
21
|
-
import { computed, h, ref } from 'vue'
|
|
21
|
+
import { computed, h, ref, withModifiers } from 'vue'
|
|
22
22
|
import { z } from 'zod'
|
|
23
23
|
import tasks from '@/stories/data/tasks.json'
|
|
24
24
|
import { BuiCheckbox } from '@/components/checkbox'
|
|
@@ -51,7 +51,8 @@ const columns: ColumnDef<Task>[] = [
|
|
|
51
51
|
table.getIsSomePageRowsSelected()
|
|
52
52
|
? table.toggleAllPageRowsSelected(false)
|
|
53
53
|
: table.toggleAllPageRowsSelected(!!value),
|
|
54
|
-
ariaLabel: 'Select row'
|
|
54
|
+
ariaLabel: 'Select row',
|
|
55
|
+
onClick: withModifiers(() => {}, ['stop'])
|
|
55
56
|
}),
|
|
56
57
|
tableColumnSortCommon(column, 'ID')
|
|
57
58
|
])
|