vlite3 1.5.11 → 1.5.13

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.
Files changed (132) hide show
  1. package/README.md +20 -8
  2. package/components/Accordion/AccordionContent.vue.js +2 -2
  3. package/components/CategoryManager/CategoryManager2.vue.js +1 -1
  4. package/components/CommandPalette/CommandPaletteContent2.vue.js +1 -1
  5. package/components/CommandPalette/{CommandPaletteItem2.vue.js → CommandPaletteItem.vue.js} +1 -1
  6. package/components/Dropdown/DropdownMenu.vue.js +1 -1
  7. package/components/Form/{AccordionView.vue.js → AccordionView2.vue.js} +2 -2
  8. package/components/Form/Form.vue.js +2 -2
  9. package/components/Form/index2.vue.js +1 -1
  10. package/components/NavbarCommandPalette.vue.js +1 -1
  11. package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +7 -7
  12. package/components/PanZoomViewport/PanZoomViewport.vue.js +1 -1
  13. package/components/Screen/ScreenFilter.vue.js +1 -1
  14. package/components/Splitter/Splitter.vue.d.ts +7 -0
  15. package/components/Splitter/Splitter.vue.js +33 -29
  16. package/components/Tabes/Tabes.vue.js +2 -2
  17. package/docs/README.md +17 -0
  18. package/docs/all-components.md +89 -0
  19. package/docs/component-index.md +313 -0
  20. package/docs/components/accordion.md +52 -0
  21. package/docs/components/alert.md +34 -0
  22. package/docs/components/app-shell.md +371 -0
  23. package/docs/components/async-select.md +264 -0
  24. package/docs/components/attachments-list.md +231 -0
  25. package/docs/components/avatar-group.md +74 -0
  26. package/docs/components/avatar-uploader.md +61 -0
  27. package/docs/components/avatar.md +28 -0
  28. package/docs/components/badge.md +81 -0
  29. package/docs/components/barcode.md +42 -0
  30. package/docs/components/beacon.md +29 -0
  31. package/docs/components/breadcrumb.md +317 -0
  32. package/docs/components/button-group.md +35 -0
  33. package/docs/components/button.md +86 -0
  34. package/docs/components/calendar.md +95 -0
  35. package/docs/components/carousel.md +122 -0
  36. package/docs/components/cart.md +533 -0
  37. package/docs/components/category-manager.md +269 -0
  38. package/docs/components/category-menu.md +251 -0
  39. package/docs/components/charts.md +1456 -0
  40. package/docs/components/chat.md +330 -0
  41. package/docs/components/checkbox.md +31 -0
  42. package/docs/components/chip.md +137 -0
  43. package/docs/components/choice-box.md +40 -0
  44. package/docs/components/clipboard.md +105 -0
  45. package/docs/components/clock.md +70 -0
  46. package/docs/components/color-picker.md +82 -0
  47. package/docs/components/command-palette.md +214 -0
  48. package/docs/components/comment-thread.md +171 -0
  49. package/docs/components/confirmation-modal.md +50 -0
  50. package/docs/components/custom-fields-display.md +94 -0
  51. package/docs/components/custom-fields.md +97 -0
  52. package/docs/components/data-list.md +93 -0
  53. package/docs/components/data-table.md +922 -0
  54. package/docs/components/date-picker.md +58 -0
  55. package/docs/components/date-range-picker.md +24 -0
  56. package/docs/components/date-time.md +104 -0
  57. package/docs/components/dropdown.md +740 -0
  58. package/docs/components/empty.md +100 -0
  59. package/docs/components/export-data.md +320 -0
  60. package/docs/components/file-picker.md +83 -0
  61. package/docs/components/file-preview.md +42 -0
  62. package/docs/components/file-tree.md +144 -0
  63. package/docs/components/footer.md +251 -0
  64. package/docs/components/forms.md +776 -0
  65. package/docs/components/gantt-chart.md +767 -0
  66. package/docs/components/google-login.md +67 -0
  67. package/docs/components/google-map.md +128 -0
  68. package/docs/components/heatmap.md +80 -0
  69. package/docs/components/icon-picker.md +58 -0
  70. package/docs/components/icon.md +176 -0
  71. package/docs/components/image-comparison.md +51 -0
  72. package/docs/components/image-magnifier.md +26 -0
  73. package/docs/components/import-data.md +521 -0
  74. package/docs/components/input.md +58 -0
  75. package/docs/components/invoice.md +339 -0
  76. package/docs/components/kanban.md +302 -0
  77. package/docs/components/label.md +25 -0
  78. package/docs/components/list.md +419 -0
  79. package/docs/components/masonry.md +55 -0
  80. package/docs/components/modal.md +133 -0
  81. package/docs/components/multi-select.md +54 -0
  82. package/docs/components/navbar.md +403 -0
  83. package/docs/components/number-input.md +41 -0
  84. package/docs/components/otp-input.md +68 -0
  85. package/docs/components/pagination.md +83 -0
  86. package/docs/components/pan-zoom-viewport.md +245 -0
  87. package/docs/components/permission-editor.md +322 -0
  88. package/docs/components/persona.md +56 -0
  89. package/docs/components/price.md +106 -0
  90. package/docs/components/pricing-plan.md +68 -0
  91. package/docs/components/progress-bar.md +53 -0
  92. package/docs/components/qr-code.md +59 -0
  93. package/docs/components/rating.md +59 -0
  94. package/docs/components/rich-text-editor.md +210 -0
  95. package/docs/components/scale-generator.md +101 -0
  96. package/docs/components/screen.md +208 -0
  97. package/docs/components/seo-provider.md +189 -0
  98. package/docs/components/side-panel.md +94 -0
  99. package/docs/components/sidebar-menu.md +422 -0
  100. package/docs/components/skeleton.md +115 -0
  101. package/docs/components/slider.md +48 -0
  102. package/docs/components/spinner.md +27 -0
  103. package/docs/components/splitter.md +97 -0
  104. package/docs/components/stats.md +234 -0
  105. package/docs/components/status-chip.md +232 -0
  106. package/docs/components/switch.md +23 -0
  107. package/docs/components/tabs.md +335 -0
  108. package/docs/components/tag-input.md +55 -0
  109. package/docs/components/textarea.md +31 -0
  110. package/docs/components/theme-provider.md +130 -0
  111. package/docs/components/theme-toggle.md +36 -0
  112. package/docs/components/thumbnail-selector.md +186 -0
  113. package/docs/components/timeline.md +225 -0
  114. package/docs/components/toast-notification.md +89 -0
  115. package/docs/components/tooltip.md +31 -0
  116. package/docs/components/workbook.md +102 -0
  117. package/docs/composables/use-theme.md +59 -0
  118. package/docs/getting-started/setup.md +176 -0
  119. package/docs/guides/draggable.md +211 -0
  120. package/docs/guides/internationalization.md +281 -0
  121. package/docs/guides/performance.md +118 -0
  122. package/docs/guides/testing-forms.md +154 -0
  123. package/docs/guides/testing-overlays.md +131 -0
  124. package/docs/guides/theming.md +124 -0
  125. package/docs/utilities/search.md +580 -0
  126. package/docs/utilities/utilities.md +371 -0
  127. package/docs-manifest.json +339 -0
  128. package/package.json +6 -15
  129. package/scripts/generate-docs-manifest.js +207 -0
  130. package/scripts/sync-docs.js +754 -0
  131. package/style.css +1 -1
  132. /package/components/Dropdown/{DropdownMenu2.vue.js → DropdownMenu3.vue.js} +0 -0
@@ -0,0 +1,59 @@
1
+ # useTheme
2
+
3
+ **Import:** `import { useTheme, initializeTheme } from 'vlite3'`
4
+
5
+ ### Description
6
+
7
+ A composable for managing light/dark theme state. Persists the user's preference to `localStorage`, respects the system `prefers-color-scheme` setting, and applies the active theme class to `<html>`.
8
+
9
+ ---
10
+
11
+ ### `initializeTheme()`
12
+
13
+ Call once at the app root (e.g. `App.vue`) to bootstrap the theme before any component mounts. It reads the persisted or system theme, applies it to `<html>`, and wires up the system-preference change listener.
14
+ ```vue
15
+ <!-- App.vue -->
16
+ <script setup lang="ts">
17
+ import { initializeTheme } from 'vlite3'
18
+
19
+ initializeTheme()
20
+ </script>
21
+ ```
22
+
23
+ ---
24
+
25
+ ### `useTheme()`
26
+
27
+ Use inside any component to access and toggle the current theme.
28
+
29
+ #### Returns
30
+
31
+ | Key | Type | Description |
32
+ | :------------ | :--------------------- | :----------------------------------- |
33
+ | `theme` | `Ref<'light' \| 'dark'>` | Reactive current theme value |
34
+ | `toggleTheme` | `() => void` | Toggles between `light` and `dark` |
35
+
36
+ #### Usage
37
+ ```vue
38
+ <script setup lang="ts">
39
+ import { useTheme } from 'vlite3'
40
+
41
+ const { theme, toggleTheme } = useTheme()
42
+ </script>
43
+
44
+ <template>
45
+ <button @click="toggleTheme">
46
+ Current theme: {{ theme }}
47
+ </button>
48
+ </template>
49
+ ```
50
+
51
+ ---
52
+
53
+ ### Behavior
54
+
55
+ - On init, checks `localStorage` for a saved preference (`builto-theme`).
56
+ - Falls back to `prefers-color-scheme: dark` if no preference is saved.
57
+ - Defaults to `light` if neither is available.
58
+ - Adds `light` or `dark` class to `<html>` on every change.
59
+ - Listens for system theme changes and updates automatically when no manual preference is set.
@@ -0,0 +1,176 @@
1
+ # 🚀 Setup & Global Configuration
2
+
3
+ Welcome! We are thrilled to have you here. Setting up **vlite3** is designed to be as frictionless and clean as our components. Let’s get you up and running so you can focus on building wonderful, minimalist interfaces.
4
+
5
+ ---
6
+
7
+ ## 1. Installation
8
+
9
+ First, pull the package into your project using your favorite package manager:
10
+
11
+ ```bash
12
+ npm install vlite3
13
+ ```
14
+ *or*
15
+ ```bash
16
+ yarn add vlite3
17
+ ```
18
+
19
+ Vlite3 installs its required Tailwind 4 packages automatically.
20
+
21
+ ## 2. Tailwind CSS Setup (Tailwind v4)
22
+
23
+ In order to adopt the beautiful, minimalistic **Clean** aesthetics, register the Tailwind plugin.
24
+
25
+ **`vite.config.ts`**
26
+ ```ts
27
+ import tailwindcss from '@tailwindcss/vite'
28
+
29
+ export default defineConfig({
30
+ plugins: [vue(), tailwindcss()],
31
+ })
32
+ ```
33
+
34
+ **`style.css`**
35
+ ```css
36
+ @import 'tailwindcss';
37
+ @layer theme, base, components, utilities;
38
+
39
+ /* Import the core vlite3 styles */
40
+ @import 'vlite3/style.css';
41
+ @source "../node_modules/vlite3";
42
+ ```
43
+
44
+ ## 3. Basic Usage
45
+
46
+ Now for the fun part! You can start dropping gorgeous components directly into your Vue templates.
47
+
48
+ Notice how easily everything fits together, relying on ample whitespace by default:
49
+
50
+ ```vue
51
+ <script setup>
52
+ import { Button, Input } from 'vlite3'
53
+ </script>
54
+
55
+ <template>
56
+ <!-- Notice the generous p-8 padding for a clean layout -->
57
+ <div class="p-8 space-y-6 max-w-sm mx-auto">
58
+ <h2 class="text-xl font-semibold tracking-tight text-foreground">Welcome Back</h2>
59
+
60
+ <div class="space-y-4">
61
+ <Input placeholder="Enter your email..." />
62
+ <Button class="w-full">Sign In</Button>
63
+ </div>
64
+ </div>
65
+ </template>
66
+ ```
67
+
68
+ ---
69
+
70
+ ## 🌎 Global Configuration (The Registry System)
71
+
72
+ To maintain a perfectly pristine codebase (free of repetitive code clutter!), vlite3 features a plugin-based architecture. You define your global behavior *once*, and the entire library intelligently reacts to it.
73
+
74
+ ### Setting up the Plugin
75
+
76
+ Jump into your `main.ts` or `main.js` and set up the `vlite` plugin:
77
+
78
+ ```typescript
79
+ import { createApp } from 'vue'
80
+ import App from './App.vue'
81
+ import { createVLite, vScrollReveal, GoogleSignInPlugin } from 'vlite3'
82
+
83
+ const app = createApp(App)
84
+
85
+ // Add delightful scroll animations
86
+ app.directive('scroll-reveal', vScrollReveal)
87
+
88
+ // Optionally add Google Auth
89
+ app.use(GoogleSignInPlugin, {
90
+ clientId: import.meta.env.VITE_GOOGLE_CLIENT_ID,
91
+ })
92
+
93
+ // Initialize VLite with your Custom Configuration
94
+ const vlite = createVLite({
95
+ // 1. Global Service Registry
96
+ services: {
97
+ /**
98
+ * Upload Once, Use Everywhere!
99
+ *
100
+ * Simply define your upload logic here. Any Form component using
101
+ * 'file', 'fileUploader', 'avatarUpload', or 'thumbnailSelector'
102
+ * types will automatically use this function. Pure magic! ✨
103
+ */
104
+ upload: async (file, folderId) => {
105
+ const formData = new FormData()
106
+ formData.append('file', file)
107
+ if (folderId) formData.append('folder_id', folderId)
108
+
109
+ const response = await fetch('https://api.yourdomain.com/v1/upload', {
110
+ method: 'POST',
111
+ body: formData,
112
+ headers: { Authorization: 'Bearer ...' },
113
+ })
114
+
115
+ if (!response.ok) throw new Error('Upload failed')
116
+ const data = await response.json()
117
+
118
+ return data.url // MUST return the secure file URL string
119
+ },
120
+ },
121
+
122
+ // 2. Global UI Component Configurations
123
+ components: {
124
+ form: {
125
+ // Define a system-wide form aesthetic to ensure UI consistency
126
+ variant: 'outline', // Choose 'solid' | 'outline' | 'floating'
127
+ size: 'md',
128
+ rounded: 'md',
129
+ showRequiredAsterisk: true,
130
+ },
131
+ },
132
+ })
133
+
134
+ app.use(vlite)
135
+ app.mount('#app')
136
+ ```
137
+
138
+ ### Beautiful Side-Effects 🌸
139
+
140
+ By adopting this structure, you achieve incredible things:
141
+
142
+ 1. **Automatic Form Uploads**: The `Form` component automatically processes and uploads all your files in *parallel* the moment a user submits, replacing the raw files with the secure URLs from your service before invoking your final `@onSubmit` hook.
143
+ 2. **Unshakeable Consistency**: Every single form field gracefully adopts your global `variant` and `rounded` properties, eliminating UI fragmentation across pages.
144
+
145
+ ### Advanced Form Override Example
146
+
147
+ Need a specific form to look slightly different? You can easily override the global fallbacks right on the specific component:
148
+
149
+ ```vue
150
+ <script setup>
151
+ import { Form } from 'vlite3'
152
+
153
+ const schema = [
154
+ { name: 'avatar', label: 'Profile Picture', type: 'avatarUpload' },
155
+ { name: 'resume', label: 'Resume', type: 'fileUploader', props: { multiple: true } },
156
+ ]
157
+
158
+ const handleSubmit = (payload) => {
159
+ // Relax! The payload already has the URLs, not the raw files 😊
160
+ console.log('Avatar URL:', payload.values.avatar)
161
+ console.log('Resume URLs:', payload.values.resume)
162
+ }
163
+ </script>
164
+
165
+ <template>
166
+ <div class="max-w-2xl mx-auto py-10">
167
+ <!-- Inherits standard global aesthetics -->
168
+ <Form :schema="schema" @onSubmit="handleSubmit" />
169
+
170
+ <!-- Overriding globally defined styles for this specific block -->
171
+ <Form :schema="schema" variant="floating" size="lg" @onSubmit="handleSubmit" />
172
+ </div>
173
+ </template>
174
+ ```
175
+
176
+ You are now fully set up. Have fun shaping digital beauty!
@@ -0,0 +1,211 @@
1
+ # Vue Draggable
2
+
3
+ ## Usage
4
+
5
+ All event functions starting with `on` can be passed to components using `v-on`. For example:
6
+
7
+ ```vue
8
+ <template>
9
+ <VueDraggable v-model="list" @start="onStart" @end="onEnd">
10
+ <div v-for="item in list" :key="item.id">
11
+ {{ item.name }}
12
+ </div>
13
+ </VueDraggable>
14
+ </template>
15
+ <script lang="ts" setup>
16
+ import { ref } from 'vue'
17
+ import { VueDraggable, DraggableEvent } from 'vue-draggable-plus'
18
+
19
+ const list = ref([
20
+ {
21
+ name: 'Joao',
22
+ id: '1',
23
+ },
24
+ {
25
+ name: 'Jean',
26
+ id: '2',
27
+ },
28
+ {
29
+ name: 'Johanna',
30
+ id: '3',
31
+ },
32
+ {
33
+ name: 'Juan',
34
+ id: '4',
35
+ },
36
+ ])
37
+
38
+ function onStart(event: DraggableEvent) {
39
+ console.log('start drag')
40
+ }
41
+
42
+ function onEnd(event: DraggableEvent) {
43
+ console.log('end drag')
44
+ }
45
+ </script>
46
+ ```
47
+
48
+ > For information on using Hooks and directives, please refer to the documentation.
49
+
50
+ ## Types
51
+
52
+ ```ts
53
+ type SortableMethod = 'closest' | 'save' | 'toArray' | 'destroy' | 'option'
54
+
55
+ /**
56
+ * The return value of useDraggable
57
+ */
58
+ export interface UseDraggableReturn extends Pick<Sortable, SortableMethod> {
59
+ /**
60
+ * Starts dragging
61
+ * @param {HTMLElement} target - The element to be dragged
62
+ * @default - The component's root element, refer to [Target Container](/demo/target-container/), defaults to the component's root element
63
+ */
64
+ start: (target?: HTMLElement) => void
65
+ /**
66
+ * Pauses dragging
67
+ */
68
+ pause: () => void
69
+ /**
70
+ * Resumes dragging
71
+ */
72
+ resume: () => void
73
+ }
74
+
75
+ export interface UseDraggableOptions<T> extends Options {
76
+ clone?: (element: T) => T
77
+ immediate?: boolean
78
+ customUpdate?: (event: DraggableEvent) => void
79
+ }
80
+
81
+ interface DraggableEvent<T = any> extends DraggableEvent {
82
+ data: T
83
+ clonedData: T
84
+ }
85
+ ```
86
+
87
+ ## Options
88
+
89
+ `Options` inherits all configuration items from `Sortablejs`. For details, please see the [`Sortablejs` official documentation](https://github.com/SortableJS/Sortable).
90
+
91
+ ```ts
92
+ type Easing =
93
+ | 'steps(int, start | end)'
94
+ | 'cubic-bezier(n, n, n, n)'
95
+ | 'linear'
96
+ | 'ease'
97
+ | 'ease-in'
98
+ | 'ease-out'
99
+ | 'ease-in-out'
100
+ | 'step-start'
101
+ | 'step-end'
102
+ | 'initial'
103
+ | 'inherit'
104
+
105
+ type PullResult = ReadonlyArray<string> | boolean | 'clone'
106
+ type PutResult = ReadonlyArray<string> | boolean
107
+
108
+ interface GroupOptions {
109
+ /**
110
+ * Group name.
111
+ */
112
+ name: string
113
+ /**
114
+ * The ability to move from the list. Clone - copy the item instead of moving it.
115
+ */
116
+ pull?:
117
+ | PullResult
118
+ | ((to: Sortable, from: Sortable, dragEl: HTMLElement, event: SortableEvent) => PullResult)
119
+ | undefined
120
+ /**
121
+ * Whether elements can be added from other lists, or an array of group names from which elements can be obtained.
122
+ */
123
+ put?:
124
+ | PutResult
125
+ | ((to: Sortable, from: Sortable, dragEl: HTMLElement, event: SortableEvent) => PutResult)
126
+ | undefined
127
+ /**
128
+ * After moving to another list, the cloned element is restored to its initial position.
129
+ */
130
+ revertClone?: boolean | undefined
131
+ }
132
+
133
+ type Group = string | GroupOptions | undefined
134
+
135
+ type ScrollFn =
136
+ | ((
137
+ this: Sortable,
138
+ offsetX: number,
139
+ offsetY: number,
140
+ originalEvent: Event,
141
+ touchEvt: TouchEvent,
142
+ hoverTargetEl: HTMLElement
143
+ ) => 'continue' | void)
144
+ | undefined
145
+ ```
146
+
147
+ ## API
148
+
149
+ | Parameter | Description | Type | Default |
150
+ | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- | ------------------- | ------ |
151
+ | animation | Show animation while dragging | `Number` | 0 |
152
+ | chosenClass | CSS class name for chosen item | `String` | 'sortable-chosen' |
153
+ | delay | Delay in milliseconds before drag starts | `Number` | 0 |
154
+ | delayOnTouchOnly | Delay on touch event | `Number` | 0 |
155
+ | direction | Dragging direction, `vertical` or `horizontal` (default auto detect) | `String` | - |
156
+ | disabled | Disable dragging | `Boolean` | false |
157
+ | dragClass | CSS class name for dragged item | `String` | 'sortable-drag' |
158
+ | draggable | Selector for draggable items within element | `String` | - |
159
+ | emptyInsertThreshold | Distance (in pixels) from empty sortable items where dragging element should be inserted. Set to `0` to disable this feature. | `Number` | 5 |
160
+ | easing | Animation easing | `Easing` | - |
161
+ | fallbackClass | CSS class name for cloned DOM elements when using forceFallback | `String` | `sortable-fallback` |
162
+ | fallbackOnBody | Append cloned DOM element to body element | `Boolean` | `false` |
163
+ | fallbackTolerance | Pixels mouse must move before drag start when using forceFallback | `Number` | 0 |
164
+ | filter | Selector for items that should not be draggable | `String` | - |
165
+ | forceFallback | Ignore HTML5 drag and drop behavior and force fallback | `Boolean` | `false` |
166
+ | ghostClass | CSS class name for drop placeholder | `String` | 'sortable-ghost' |
167
+ | group | Group items to drag between sortable lists. Both lists must have the same `group` value. Also define whether lists can be dragged out of, cloned, or receive elements from other lists. See TypeScript type definition above for details. | `Group` | - |
168
+ | handle | Selector for handle to initiate drag. If not set, the target element's children are used | `String` | - |
169
+ | invertSwap | Always use inverted swap zone if set to true | `Boolean` | `false` |
170
+ | invertedSwapThreshold | Inverted swap zone threshold, defaults to `swapThreshold` value | `Number` | - |
171
+ | preventOnFilter | Call `event.preventDefault()` on filter event | `Boolean` | `true` |
172
+ | removeCloneOnHide | Remove instead of hiding cloned element when not displayed | `Boolean` | `true` |
173
+ | sort | Allow list items to be sorted within container | `Boolean` | `true` |
174
+ | swapThreshold | Swap zone threshold | `Number` | 1 |
175
+ | touchStartThreshold | Pixels before cancelling delay touch event | `Number` | 1 |
176
+ | setData | Pass a function where the first argument is of type `DataTransfer` and the second argument is of type `HTMLElement` | `Function` | - |
177
+ | scroll | Enable scrolling | `Boolean` | `HTMLElement` | `true` |
178
+ | scrollFn | Custom scroll function | `ScrollFn` | - |
179
+ | scrollSensitivity | The distance in pixels the mouse must be to the edge to start scrolling | `Number` | - |
180
+ | scrollSpeed | The scrolling speed in ms/px | `number` | - |
181
+ | bubbleScroll | Enables automatic scrolling for all parent elements to make it easier to move items | `Boolean` | `true` |
182
+ | onChoose | Triggered when an item is selected | `((event: DraggableEvent) => void)` | - |
183
+ | onUnchoose | Triggered when an item is deselected | `((event: DraggableEvent) => void)` | - |
184
+ | onStart | Triggered when an item is picked up for drag and drop | `((event: DraggableEvent) => void)` | - |
185
+ | onEnd | Triggered when an item is no longer being dragged | `((event: DraggableEvent) => void)` | - |
186
+ | onAdd | Triggered when an item is moved from one list to another | `((event: DraggableEvent) => void)` | - |
187
+ | onUpdate | Triggered when the order of the items is updated | `((event: DraggableEvent) => void)` | - |
188
+ | onSort | Triggered whenever any changes are made to the list | `((event: DraggableEvent) => void)` | - |
189
+ | onRemove | Triggered when an item is removed from the list and moved to another | `((event: DraggableEvent) => void)` | - |
190
+ | onFilter | Triggered when trying to drag a filtered item | `((event: DraggableEvent) => void)` | - |
191
+ | onMove | Triggered while an item is being dragged | `((event: MoveEvent,originalEvent: Event) => void)` | - |
192
+ | onClone | Triggered when an item is cloned | `((event: DraggableEvent) => void)` | - |
193
+ | onChange | Triggered when an item is dragged and changes position | `((event: DraggableEvent) => void)` | - |
194
+
195
+ ## Component (Component Properties)
196
+
197
+ ### Props
198
+
199
+ The component's props include all options from `Sortablejs` and can be passed to the component. For details, see [Options](#options).
200
+
201
+ | Parameter | Description | Required | Default |
202
+ | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- |
203
+ | modelValue (v-model) | The list for two-way binding | Yes | - |
204
+ | tag | The tag name of the component's root element | No | `div` |
205
+ | target | Specifies the target container. If not provided, the component's root element is used as the container. See [Target Container](/demo/target-container/) for details. | No | - |
206
+
207
+ ### Slots
208
+
209
+ | Name | Description | Parameters |
210
+ | ------- | ------------ | ------------------ |
211
+ | default | Default slot | UseDraggableReturn |