bt-core-app 1.4.581 → 1.4.583

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