sprintify-ui 0.10.17 → 0.10.18

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.
@@ -16784,9 +16784,9 @@ const Tr = /* @__PURE__ */ ne({
16784
16784
  __name: "BaseDraggable",
16785
16785
  props: {
16786
16786
  modelValue: {},
16787
- itemKey: {},
16788
- handle: {},
16789
- disabled: { type: Boolean }
16787
+ itemKey: { default: "id" },
16788
+ handle: { default: ".handle" },
16789
+ disabled: { type: Boolean, default: !1 }
16790
16790
  },
16791
16791
  emits: ["update:modelValue"],
16792
16792
  setup(t, { emit: n }) {
@@ -1,7 +1,7 @@
1
1
  type __VLS_Props = {
2
2
  modelValue: any[];
3
3
  itemKey: string;
4
- handle: string;
4
+ handle?: string;
5
5
  disabled?: boolean;
6
6
  };
7
7
  declare const elementsRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
@@ -22,12 +22,20 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
22
22
  "update:modelValue": (...args: any[]) => void;
23
23
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
24
24
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
25
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ }>, {
26
+ disabled: boolean;
27
+ itemKey: string;
28
+ handle: string;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
30
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
31
  "update:modelValue": (...args: any[]) => void;
28
32
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
33
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
30
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
+ }>, {
35
+ disabled: boolean;
36
+ itemKey: string;
37
+ handle: string;
38
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
39
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
32
40
  export default _default;
33
41
  type __VLS_WithSlots<T, S> = T & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.10.17",
3
+ "version": "0.10.18",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && vue-tsc && vite build",
@@ -14,12 +14,16 @@
14
14
  import { uniqueId } from 'lodash';
15
15
  import Sortable from 'sortablejs';
16
16
 
17
- const props = defineProps<{
17
+ const props = withDefaults(defineProps<{
18
18
  modelValue: any[];
19
19
  itemKey: string;
20
- handle: string;
20
+ handle?: string;
21
21
  disabled?: boolean;
22
- }>();
22
+ }>(), {
23
+ itemKey: 'id',
24
+ handle: '.handle',
25
+ disabled: false,
26
+ });
23
27
 
24
28
  const emit = defineEmits(['update:modelValue']);
25
29