bt-core-app 1.4.586 → 1.4.587

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