bt-core-app 2.0.15 → 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.
@@ -79060,6 +79060,7 @@ const mie = Ue({
79060
79060
  isEditing: { type: Boolean },
79061
79061
  label: {},
79062
79062
  modelValue: {},
79063
+ onToggle: {},
79063
79064
  ripple: { type: Boolean, default: !1 },
79064
79065
  trueClass: { default: "text-success" },
79065
79066
  trueIcon: { default: "$check" },
@@ -79078,7 +79079,7 @@ const mie = Ue({
79078
79079
  }
79079
79080
  }), r = at("isEditing", () => q(!1), !0), i = A(() => a.isEditing ?? r.value), o = A(() => l.value === a.trueValue), s = A(() => o.value ? a.trueLabel : a.falseLabel), c = A(() => o.value ? a.trueIcon : a.falseIcon);
79080
79081
  function u() {
79081
- l.value = l.value == a.falseValue ? a.trueValue : a.falseValue;
79082
+ a.onToggle != null ? a.onToggle() : l.value = l.value == a.falseValue ? a.trueValue : a.falseValue;
79082
79083
  }
79083
79084
  return (d, m) => (N(), ce(Vt, {
79084
79085
  onClick: Ut(u, ["stop"]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "2.0.15",
3
+ "version": "2.0.17",
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": {