bt-core-app 1.4.234 → 1.4.236

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 +17 -17
  2. package/package.json +1 -1
@@ -34608,15 +34608,15 @@ const LA = /* @__PURE__ */ Ke({
34608
34608
  width: {}
34609
34609
  },
34610
34610
  setup(e) {
34611
- const t = e, n = Y(0), a = hs(), r = S(() => t.width != null ? `width: ${t.width}px` : "");
34611
+ const t = e, n = Y(0), a = hs(), r = S(() => t.width != null ? `width: ${t.width}px` : ""), l = S(() => (t.options ?? []).map((s) => typeof s == "string" ? { title: s, value: s.replaceAll(" ", "").toLowerCase() } : { ...s, value: s.value ?? s.title.replaceAll(" ", "").toLowerCase() }));
34612
34612
  return kt(() => {
34613
34613
  if ((a == null ? void 0 : a.query.slide) != null) {
34614
- const l = t.options.findIndex((i) => i.value == (a == null ? void 0 : a.query.slide));
34615
- l >= 0 && (n.value = l + 1);
34614
+ const i = t.options.findIndex((s) => s.value == (a == null ? void 0 : a.query.slide));
34615
+ i >= 0 && (n.value = i + 1);
34616
34616
  }
34617
- }), (l, i) => (O(), se(r2, {
34617
+ }), (i, s) => (O(), se(r2, {
34618
34618
  modelValue: n.value,
34619
- "onUpdate:modelValue": i[1] || (i[1] = (s) => n.value = s),
34619
+ "onUpdate:modelValue": s[1] || (s[1] = (u) => n.value = u),
34620
34620
  style: en(r.value)
34621
34621
  }, {
34622
34622
  default: G(() => [
@@ -34624,12 +34624,12 @@ const LA = /* @__PURE__ */ Ke({
34624
34624
  default: G(() => [
34625
34625
  b(rn, null, {
34626
34626
  default: G(() => [
34627
- (O(!0), ie(Ce, null, Qe(l.options, (s, u) => (O(), se(ot, {
34627
+ (O(!0), ie(Ce, null, Qe(l.value, (u, c) => (O(), se(ot, {
34628
34628
  "append-icon": "$arrow-right",
34629
- onClick: (c) => n.value = u + 1,
34630
- disabled: s.disabled,
34631
- key: s.value,
34632
- title: s.title
34629
+ onClick: (v) => n.value = c + 1,
34630
+ disabled: u.disabled,
34631
+ key: u.value ?? u.title,
34632
+ title: u.title
34633
34633
  }, null, 8, ["onClick", "disabled", "title"]))), 128))
34634
34634
  ]),
34635
34635
  _: 1
@@ -34637,13 +34637,13 @@ const LA = /* @__PURE__ */ Ke({
34637
34637
  ]),
34638
34638
  _: 1
34639
34639
  }),
34640
- (O(!0), ie(Ce, null, Qe(l.options, (s) => (O(), se(vf, {
34641
- key: s.value
34640
+ (O(!0), ie(Ce, null, Qe(l.value, (u) => (O(), se(vf, {
34641
+ key: u.value ?? u.title
34642
34642
  }, {
34643
34643
  default: G(() => [
34644
34644
  b(Xn, { "hide-on-leave": "" }, {
34645
34645
  default: G(() => [
34646
- l.hideHeader ? re("", !0) : (O(), se(Qo, {
34646
+ !i.hideHeader && !u.hideHeader ? (O(), se(Qo, {
34647
34647
  key: 0,
34648
34648
  density: "compact",
34649
34649
  flat: "",
@@ -34652,21 +34652,21 @@ const LA = /* @__PURE__ */ Ke({
34652
34652
  default: G(() => [
34653
34653
  b(je, {
34654
34654
  icon: "$arrow-left",
34655
- onClick: i[0] || (i[0] = (u) => n.value = 0)
34655
+ onClick: s[0] || (s[0] = (c) => n.value = 0)
34656
34656
  }),
34657
34657
  b(zu, null, {
34658
34658
  default: G(() => [
34659
- Ze(Ue(s.title), 1)
34659
+ Ze(Ue(u.title), 1)
34660
34660
  ]),
34661
34661
  _: 2
34662
34662
  }, 1024)
34663
34663
  ]),
34664
34664
  _: 2
34665
- }, 1024))
34665
+ }, 1024)) : re("", !0)
34666
34666
  ]),
34667
34667
  _: 2
34668
34668
  }, 1024),
34669
- ve(l.$slots, s.value)
34669
+ ve(i.$slots, (u.value ?? u.title).replaceAll(" ", "").toLowerCase())
34670
34670
  ]),
34671
34671
  _: 2
34672
34672
  }, 1024))), 128))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.234",
3
+ "version": "1.4.236",
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": {