bt-core-app 1.4.206 → 1.4.207

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.
@@ -8247,7 +8247,7 @@ function Z0(e, t = {}) {
8247
8247
  }
8248
8248
  const Er = Y([]);
8249
8249
  function vu(e) {
8250
- const t = (e == null ? void 0 : e.blade) ?? Y(null), n = (e == null ? void 0 : e.bladeBasic) == !0, a = Y(), r = e == null ? void 0 : e.bladeName, l = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, i = (e == null ? void 0 : e.bladeGroup) ?? "default", s = (e == null ? void 0 : e.handle) ?? Y(null), u = Y(!1), d = Y((e == null ? void 0 : e.defaultVariant) ?? "page"), { turnResizingOff: m, turnResizingOn: f } = Z0(t), { turnDraggableOff: v, turnDraggableOn: c } = q0(t, s);
8250
+ const t = (e == null ? void 0 : e.blade) ?? Y(null), n = (e == null ? void 0 : e.bladeBasic) == !0, a = Y(), r = e == null ? void 0 : e.bladeName, l = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, i = (e == null ? void 0 : e.bladeGroup) ?? "default", s = (e == null ? void 0 : e.handle) ?? Y(null), u = Y(!1), d = Y((e == null ? void 0 : e.variant) ?? "page"), { turnResizingOff: m, turnResizingOn: f } = Z0(t), { turnDraggableOff: v, turnDraggableOn: c } = q0(t, s);
8251
8251
  function o(k) {
8252
8252
  console.log(k);
8253
8253
  }
@@ -8266,7 +8266,7 @@ function vu(e) {
8266
8266
  return Er.value.findIndex((T) => T.bladeGroup == i && T.bladeName == k);
8267
8267
  }
8268
8268
  function p(k) {
8269
- if (k.bladeName == null)
8269
+ if (console.log("updating"), console.log(k), k.bladeName == null)
8270
8270
  return;
8271
8271
  const T = b(k.bladeName);
8272
8272
  if (T >= 0) {
@@ -8289,7 +8289,7 @@ function vu(e) {
8289
8289
  bladeName: r,
8290
8290
  bladeGroup: i,
8291
8291
  // bladeStyle: '',
8292
- bladeVariant: (e == null ? void 0 : e.defaultVariant) ?? "page",
8292
+ // bladeVariant: variant.value, //options?.variant ?? 'page',
8293
8293
  closeFunctions: [],
8294
8294
  updateFunctions: [],
8295
8295
  data: {},
@@ -8304,7 +8304,7 @@ function vu(e) {
8304
8304
  bladeName: "",
8305
8305
  bladeGroup: "",
8306
8306
  // bladeStyle: '',
8307
- bladeVariant: d.value,
8307
+ // bladeVariant: variant.value,
8308
8308
  data: {},
8309
8309
  show: !1
8310
8310
  },
@@ -29759,8 +29759,8 @@ function gy(e, t) {
29759
29759
  const n = (t == null ? void 0 : t.useBladeSrc) ?? e.useBladeSrc ?? e.variant == "blade", a = (t == null ? void 0 : t.useRouteSrc) ?? e.useRouteSrc ?? e.variant == "page", r = e.storeMode ?? (t == null ? void 0 : t.storeMode), l = e.storageMode ?? (t == null ? void 0 : t.storageMode), i = e.proxyKey ?? "proxyID", s = e.nav ?? e.bladeName ?? "basic", { navBack: u } = Ah(), d = ru(), m = vu({
29760
29760
  bladeGroup: e.bladeGroup,
29761
29761
  bladeName: e.bladeName,
29762
- onUpdate: (P) => {
29763
- console.log("updating single blade"), console.log(P), X({ deepRefresh: !1 });
29762
+ onUpdate: () => {
29763
+ X({ deepRefresh: !1 });
29764
29764
  },
29765
29765
  bladeStartShowing: e.bladeStartShowing
29766
29766
  }), f = C(() => {
@@ -29862,7 +29862,7 @@ function gy(e, t) {
29862
29862
  onGetSuccessAsync: e.onGetSuccessAsync
29863
29863
  };
29864
29864
  if (e.isSingle === !0)
29865
- console.log("c"), I.id === "new" ? (console.log("cc"), v.value = e.onGetNew ? e.onGetNew(I) : {}) : s != null && (console.log("aa"), console.log(s), v.value = await b(I));
29865
+ I.id === "new" ? v.value = e.onGetNew ? e.onGetNew(I) : {} : s != null && (console.log("aa"), console.log(s), v.value = await b(I));
29866
29866
  else if (s != null) {
29867
29867
  console.log("d");
29868
29868
  const E = await p(I);
@@ -30515,7 +30515,6 @@ const eA = /* @__PURE__ */ Ke({
30515
30515
  bladeName: {},
30516
30516
  bladeStartShowing: { type: Boolean },
30517
30517
  bladeBasic: { type: Boolean },
30518
- defaultVariant: {},
30519
30518
  handle: {},
30520
30519
  mobileBreakpoint: {},
30521
30520
  onClose: {},
@@ -30524,17 +30523,16 @@ const eA = /* @__PURE__ */ Ke({
30524
30523
  emits: ["close"],
30525
30524
  setup(e, { emit: t }) {
30526
30525
  const n = e, a = ps(n.preset), r = C(() => n.width != null && typeof n.width == "string" && n.width.includes("%")), l = C(() => n.bladeStartShowing !== !0 ? 0 : n.width == null ? 400 : typeof n.width == "number" ? n.width : Number.parseInt(n.width));
30527
- let i = l.value;
30526
+ let i = 400;
30528
30527
  const s = _l({ width: l.value }), u = Y(null), d = Y(null), { navBack: m } = Ah(), f = vu({
30529
30528
  ...n,
30530
- defaultVariant: n.variant,
30531
30529
  blade: u,
30532
30530
  handle: d,
30533
30531
  onClose: () => {
30534
30532
  u.value != null && !r && (i = parseInt(window.getComputedStyle(u.value.$el).getPropertyValue("width"))), s.width = 0;
30535
30533
  },
30536
30534
  onUpdate: () => {
30537
- s.width == 0 && (s.width = r ? Number.parseInt(n.width) : i);
30535
+ console.log("u"), console.log(s.width), console.log(r ? Number.parseInt(n.width) : i), s.width == 0 && (s.width = r && n.width != null ? Number.parseInt(n.width) : i);
30538
30536
  }
30539
30537
  });
30540
30538
  rn("isMobile", f.isMobile), rn("fieldVariant", n.fieldVariant ?? "underlined"), rn("fieldEditVariant", n.fieldEditVariant ?? "outlined");
package/dist/index.d.ts CHANGED
@@ -84,7 +84,6 @@ export declare interface BaseModel {
84
84
  declare interface BladeData {
85
85
  bladeName: string;
86
86
  bladeGroup: string;
87
- bladeVariant: BladeVariant;
88
87
  data: any;
89
88
  show: boolean;
90
89
  }
@@ -1149,11 +1148,11 @@ declare interface UseBladeOptions {
1149
1148
  bladeStartShowing?: boolean;
1150
1149
  /**whether to include full functionality */
1151
1150
  bladeBasic?: boolean;
1152
- defaultVariant?: BladeVariant;
1153
1151
  handle?: Ref<ComponentPublicInstance | null>;
1154
1152
  mobileBreakpoint?: number;
1155
1153
  onClose?: () => void;
1156
1154
  onUpdate?: (data: BladeData) => void;
1155
+ variant?: BladeVariant;
1157
1156
  }
1158
1157
 
1159
1158
  export declare function useCosmetics(): BTCosmetics;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.206",
3
+ "version": "1.4.207",
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": {