bt-core-app 1.4.587 → 1.4.588

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 (2) hide show
  1. package/dist/bt-core-app.js +34 -34
  2. package/package.json +1 -1
@@ -40875,36 +40875,36 @@ const q1 = {
40875
40875
  },
40876
40876
  emits: ["update:modelValue"],
40877
40877
  setup(e, { emit: t }) {
40878
- const n = t, a = e, l = od(), r = _(() => a.width != null ? `width: ${a.width}px` : ""), i = _({
40878
+ const n = t, a = e, l = od(), r = _(() => a.width != null ? `width: ${a.width}px` : ""), i = H(0), o = _({
40879
40879
  get() {
40880
- return a.modelValue ?? 0;
40880
+ return a.modelValue != null ? a.modelValue : i.value;
40881
40881
  },
40882
- set(c) {
40883
- n("update:modelValue", c);
40884
- }
40885
- }), o = _(() => (a.options ?? []).map((u, f) => {
40886
- var m;
40887
- var h = { value: "", index: f + 1 };
40888
- if (typeof u == "string")
40889
- h.hide = !1, h.title = u, h.value = h.title.replaceAll(" ", "").toLowerCase();
40882
+ set(u) {
40883
+ a.modelValue != null && n("update:modelValue", u), i.value = u;
40884
+ }
40885
+ }), s = _(() => (a.options ?? []).map((f, h) => {
40886
+ var g;
40887
+ var v = { value: "", index: h + 1 };
40888
+ if (typeof f == "string")
40889
+ v.hide = !1, v.title = f, v.value = v.title.replaceAll(" ", "").toLowerCase();
40890
40890
  else {
40891
- var v = u;
40892
- h = {
40893
- ...v,
40894
- index: f + 1,
40895
- value: v.value ?? ((m = v.title) == null ? void 0 : m.replaceAll(" ", "").toLowerCase())
40891
+ var m = f;
40892
+ v = {
40893
+ ...m,
40894
+ index: h + 1,
40895
+ value: m.value ?? ((g = m.title) == null ? void 0 : g.replaceAll(" ", "").toLowerCase())
40896
40896
  };
40897
40897
  }
40898
- return h;
40899
- })), s = _(() => o.value.filter((c) => c.hide !== !0));
40898
+ return v;
40899
+ })), c = _(() => s.value.filter((u) => u.hide !== !0));
40900
40900
  return St(() => {
40901
40901
  if ((l == null ? void 0 : l.query.slide) != null) {
40902
- const c = a.options.findIndex((u) => u.value == (l == null ? void 0 : l.query.slide));
40903
- c >= 0 && (i.value = c + 1);
40902
+ const u = a.options.findIndex((f) => f.value == (l == null ? void 0 : l.query.slide));
40903
+ u >= 0 && (o.value = u + 1);
40904
40904
  }
40905
- }), (c, u) => (B(), ne(j5, {
40906
- modelValue: i.value,
40907
- "onUpdate:modelValue": u[1] || (u[1] = (f) => i.value = f),
40905
+ }), (u, f) => (B(), ne(j5, {
40906
+ modelValue: o.value,
40907
+ "onUpdate:modelValue": f[1] || (f[1] = (h) => o.value = h),
40908
40908
  style: $t(r.value)
40909
40909
  }, {
40910
40910
  default: R(() => [
@@ -40912,12 +40912,12 @@ const q1 = {
40912
40912
  default: R(() => [
40913
40913
  w(Gt, null, {
40914
40914
  default: R(() => [
40915
- (B(!0), fe(Me, null, Qe(s.value, (f) => (B(), ne(ct, {
40915
+ (B(!0), fe(Me, null, Qe(c.value, (h) => (B(), ne(ct, {
40916
40916
  "append-icon": "$arrow-right",
40917
- onClick: (h) => i.value = f.index ?? 0,
40918
- disabled: f.disabled,
40919
- key: f.value ?? f.title,
40920
- title: f.title
40917
+ onClick: (v) => o.value = h.index ?? 0,
40918
+ disabled: h.disabled,
40919
+ key: h.value ?? h.title,
40920
+ title: h.title
40921
40921
  }, null, 8, ["onClick", "disabled", "title"]))), 128))
40922
40922
  ]),
40923
40923
  _: 1
@@ -40925,14 +40925,14 @@ const q1 = {
40925
40925
  ]),
40926
40926
  _: 1
40927
40927
  }),
40928
- (B(!0), fe(Me, null, Qe(o.value, (f) => (B(), ne(vh, {
40929
- key: f.value ?? f.title,
40930
- value: f.index
40928
+ (B(!0), fe(Me, null, Qe(s.value, (h) => (B(), ne(vh, {
40929
+ key: h.value ?? h.title,
40930
+ value: h.index
40931
40931
  }, {
40932
40932
  default: R(() => [
40933
40933
  w(Aa, { "hide-on-leave": "" }, {
40934
40934
  default: R(() => [
40935
- !c.hideHeader && !f.hideHeader ? (B(), ne(Ss, {
40935
+ !u.hideHeader && !h.hideHeader ? (B(), ne(Ss, {
40936
40936
  key: 0,
40937
40937
  density: "compact",
40938
40938
  flat: "",
@@ -40941,11 +40941,11 @@ const q1 = {
40941
40941
  default: R(() => [
40942
40942
  w(Le, {
40943
40943
  icon: "$arrow-left",
40944
- onClick: u[0] || (u[0] = (h) => i.value = 0)
40944
+ onClick: f[0] || (f[0] = (v) => o.value = 0)
40945
40945
  }),
40946
40946
  w(Js, null, {
40947
40947
  default: R(() => [
40948
- He(Ne(f.title), 1)
40948
+ He(Ne(h.title), 1)
40949
40949
  ]),
40950
40950
  _: 2
40951
40951
  }, 1024)
@@ -40955,7 +40955,7 @@ const q1 = {
40955
40955
  ]),
40956
40956
  _: 2
40957
40957
  }, 1024),
40958
- ye(c.$slots, (f.value ?? f.title).replaceAll(" ", "").toLowerCase())
40958
+ ye(u.$slots, (h.value ?? h.title).replaceAll(" ", "").toLowerCase())
40959
40959
  ]),
40960
40960
  _: 2
40961
40961
  }, 1032, ["value"]))), 128))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.587",
3
+ "version": "1.4.588",
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": {