sprintify-ui 0.10.19 → 0.10.21

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.
@@ -7433,7 +7433,7 @@ const pg = ["innerHTML"], Ho = /* @__PURE__ */ ne({
7433
7433
  placement: "top-start"
7434
7434
  };
7435
7435
  } },
7436
- interactive: { type: Boolean, default: !0 },
7436
+ interactive: { type: Boolean, default: !1 },
7437
7437
  delay: { default: 0 },
7438
7438
  dark: { type: Boolean, default: !1 },
7439
7439
  offset: { default: 6 }
@@ -16788,7 +16788,7 @@ const Tr = /* @__PURE__ */ ne({
16788
16788
  handle: { default: ".handle" },
16789
16789
  disabled: { type: Boolean, default: !1 }
16790
16790
  },
16791
- emits: ["update:modelValue", "change", "end"],
16791
+ emits: ["update:modelValue"],
16792
16792
  setup(t, { emit: n }) {
16793
16793
  const e = t, o = n, r = F(null);
16794
16794
  function a(u) {
@@ -16799,11 +16799,8 @@ const Tr = /* @__PURE__ */ ne({
16799
16799
  r.value && (l = Xe.create(r.value, {
16800
16800
  handle: e.handle,
16801
16801
  disabled: e.disabled,
16802
- onChange: (u) => {
16803
- o("change", u);
16804
- },
16805
16802
  onEnd: (u) => {
16806
- if (o("end", u), u.oldIndex === void 0 || u.newIndex === void 0)
16803
+ if (u.oldIndex === void 0 || u.newIndex === void 0)
16807
16804
  return;
16808
16805
  const c = e.modelValue, p = s(
16809
16806
  c,
@@ -19,12 +19,8 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
19
19
  elementsRef: typeof elementsRef;
20
20
  getKey: typeof getKey;
21
21
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
- end: (...args: any[]) => void;
23
- change: (...args: any[]) => void;
24
22
  "update:modelValue": (...args: any[]) => void;
25
23
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
26
- onEnd?: ((...args: any[]) => any) | undefined;
27
- onChange?: ((...args: any[]) => any) | undefined;
28
24
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
29
25
  }>, {
30
26
  disabled: boolean;
@@ -32,12 +28,8 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
32
28
  handle: string;
33
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
30
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
- end: (...args: any[]) => void;
36
- change: (...args: any[]) => void;
37
31
  "update:modelValue": (...args: any[]) => void;
38
32
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
39
- onEnd?: ((...args: any[]) => any) | undefined;
40
- onChange?: ((...args: any[]) => any) | undefined;
41
33
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
42
34
  }>, {
43
35
  disabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.10.19",
3
+ "version": "0.10.21",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && vue-tsc && vite build",
@@ -25,7 +25,7 @@ const props = withDefaults(defineProps<{
25
25
  disabled: false,
26
26
  });
27
27
 
28
- const emit = defineEmits(['update:modelValue', 'change', 'end']);
28
+ const emit = defineEmits(['update:modelValue']);
29
29
 
30
30
  const elementsRef = ref<HTMLElement | null>(null);
31
31
 
@@ -43,13 +43,8 @@ onMounted(() => {
43
43
  sortable = Sortable.create(elementsRef.value, {
44
44
  handle: props.handle,
45
45
  disabled: props.disabled,
46
- onChange: (event) => {
47
- emit('change', event);
48
- },
49
46
  onEnd: (event) => {
50
47
 
51
- emit('end', event);
52
-
53
48
  if (event.oldIndex === undefined || event.newIndex === undefined) {
54
49
  return;
55
50
  }
@@ -71,7 +71,7 @@ const props = withDefaults(defineProps<{
71
71
  placement: 'top-start',
72
72
  };
73
73
  },
74
- interactive: true,
74
+ interactive: false,
75
75
  delay: 0,
76
76
  dark: false,
77
77
  offset: 6,