bt-core-app 1.4.346 → 1.4.347

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.
@@ -35226,7 +35226,7 @@ const n3 = /* @__PURE__ */ nt({
35226
35226
  toMaxSpeed: { default: 250 },
35227
35227
  useMaxer: { type: Boolean, default: !0 }
35228
35228
  },
35229
- emits: ["update:modelValue", "dragging", "startDragging", "stopDragging"],
35229
+ emits: ["update:modelValue", "change", "dragging", "startDragging", "stopDragging"],
35230
35230
  setup(e, { emit: t }) {
35231
35231
  const n = e, a = t, l = U(0), r = U("x1"), i = U(!1), o = U(!1), s = U(!1);
35232
35232
  let d = 0, f, c, v = [], m = { x: 0, y: 0 };
@@ -35248,7 +35248,7 @@ const n3 = /* @__PURE__ */ nt({
35248
35248
  function u() {
35249
35249
  i.value = !1, o.value = !1, v.forEach((S) => {
35250
35250
  S();
35251
- }), v.length = 0, n.applyOnEnd && a("update:modelValue", l.value), f = void 0, c = void 0;
35251
+ }), v.length = 0, n.applyOnEnd && (a("update:modelValue", l.value), a("change")), f = void 0, c = void 0;
35252
35252
  }
35253
35253
  function b(S) {
35254
35254
  const x = S.type == "touchmove" && S.touches.length > 0 ? S.touches[0] : S;
@@ -35257,7 +35257,7 @@ const n3 = /* @__PURE__ */ nt({
35257
35257
  y: x.clientY
35258
35258
  }), i.value)
35259
35259
  if (f ?? (f = S.timeStamp), c ?? (c = x.clientX), n.max != null && n.useMaxer && S.timeStamp - f < n.toMaxSpeed && x.clientX - c > n.toMaxDistance)
35260
- l.value < n.max && (r.value = "MAX", l.value = n.max, n.applyOnEnd != !0 && a("update:modelValue", l.value), a("dragging"));
35260
+ l.value < n.max && (r.value = "MAX", l.value = n.max, n.applyOnEnd != !0 && (a("update:modelValue", l.value), a("change")), a("dragging"));
35261
35261
  else {
35262
35262
  let k = 25, w = x.clientY - m.y;
35263
35263
  w = w < 0 ? 0 - w : w, w < 30 ? (r.value = "x1", k = 40) : w < 60 ? (r.value = "x2", k = 30) : w < 90 ? (r.value = "x3", k = 20) : (r.value = "x4", k = 1);
@@ -35265,7 +35265,7 @@ const n3 = /* @__PURE__ */ nt({
35265
35265
  if (p > k || p < 0 - k) {
35266
35266
  d = x.clientX;
35267
35267
  let M = l.value + (p > k ? 1 : -1);
35268
- n.max != null && M > n.max && (M = n.max), n.min != null && M < n.min && (M = n.min), l.value != M && (l.value = M, n.applyOnEnd != !0 && a("update:modelValue", l.value), a("dragging"));
35268
+ n.max != null && M > n.max && (M = n.max), n.min != null && M < n.min && (M = n.min), l.value != M && (l.value = M, n.applyOnEnd != !0 && (a("update:modelValue", l.value), a("change")), a("dragging"));
35269
35269
  }
35270
35270
  }
35271
35271
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.346",
3
+ "version": "1.4.347",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {