bt-core-app 1.4.206 → 1.4.208
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.
- package/dist/bt-core-app.js +30 -29
- package/dist/index.d.ts +7 -8
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -5317,28 +5317,31 @@ function RA(e = "blitzItExtensionExists") {
|
|
|
5317
5317
|
}
|
|
5318
5318
|
}
|
|
5319
5319
|
function FA(e, t) {
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5320
|
+
if (!(e.lat == null || e.lng == null))
|
|
5321
|
+
return [
|
|
5322
|
+
{ lat: e.lat - t, lng: e.lng + t },
|
|
5323
|
+
{ lat: e.lat - t, lng: e.lng - t },
|
|
5324
|
+
{ lat: e.lat + t, lng: e.lng - t },
|
|
5325
|
+
{ lat: e.lat + t, lng: e.lng + t }
|
|
5326
|
+
];
|
|
5326
5327
|
}
|
|
5327
5328
|
function HA(e, t) {
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5329
|
+
if (!(e.lat == null || e.lng == null))
|
|
5330
|
+
return [
|
|
5331
|
+
{ lat: e.lat - t * 2, lng: e.lng + t },
|
|
5332
|
+
{ lat: e.lat - t * 2, lng: e.lng - t },
|
|
5333
|
+
{ lat: e.lat, lng: e.lng - t },
|
|
5334
|
+
{ lat: e.lat, lng: e.lng + t }
|
|
5335
|
+
];
|
|
5334
5336
|
}
|
|
5335
5337
|
function OA(e, t) {
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5338
|
+
if (!(e.lat == null || e.lng == null))
|
|
5339
|
+
return [
|
|
5340
|
+
{ lat: e.lat, lng: e.lng + t },
|
|
5341
|
+
{ lat: e.lat, lng: e.lng - t },
|
|
5342
|
+
{ lat: e.lat + t * 2, lng: e.lng - t },
|
|
5343
|
+
{ lat: e.lat + t * 2, lng: e.lng + t }
|
|
5344
|
+
];
|
|
5342
5345
|
}
|
|
5343
5346
|
function zA(e) {
|
|
5344
5347
|
var t = Am(e, !0);
|
|
@@ -8247,7 +8250,7 @@ function Z0(e, t = {}) {
|
|
|
8247
8250
|
}
|
|
8248
8251
|
const Er = Y([]);
|
|
8249
8252
|
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.
|
|
8253
|
+
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
8254
|
function o(k) {
|
|
8252
8255
|
console.log(k);
|
|
8253
8256
|
}
|
|
@@ -8266,7 +8269,7 @@ function vu(e) {
|
|
|
8266
8269
|
return Er.value.findIndex((T) => T.bladeGroup == i && T.bladeName == k);
|
|
8267
8270
|
}
|
|
8268
8271
|
function p(k) {
|
|
8269
|
-
if (k.bladeName == null)
|
|
8272
|
+
if (console.log("updating"), console.log(k), k.bladeName == null)
|
|
8270
8273
|
return;
|
|
8271
8274
|
const T = b(k.bladeName);
|
|
8272
8275
|
if (T >= 0) {
|
|
@@ -8289,7 +8292,7 @@ function vu(e) {
|
|
|
8289
8292
|
bladeName: r,
|
|
8290
8293
|
bladeGroup: i,
|
|
8291
8294
|
// bladeStyle: '',
|
|
8292
|
-
bladeVariant:
|
|
8295
|
+
// bladeVariant: variant.value, //options?.variant ?? 'page',
|
|
8293
8296
|
closeFunctions: [],
|
|
8294
8297
|
updateFunctions: [],
|
|
8295
8298
|
data: {},
|
|
@@ -8304,7 +8307,7 @@ function vu(e) {
|
|
|
8304
8307
|
bladeName: "",
|
|
8305
8308
|
bladeGroup: "",
|
|
8306
8309
|
// bladeStyle: '',
|
|
8307
|
-
bladeVariant:
|
|
8310
|
+
// bladeVariant: variant.value,
|
|
8308
8311
|
data: {},
|
|
8309
8312
|
show: !1
|
|
8310
8313
|
},
|
|
@@ -29759,8 +29762,8 @@ function gy(e, t) {
|
|
|
29759
29762
|
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
29763
|
bladeGroup: e.bladeGroup,
|
|
29761
29764
|
bladeName: e.bladeName,
|
|
29762
|
-
onUpdate: (
|
|
29763
|
-
|
|
29765
|
+
onUpdate: () => {
|
|
29766
|
+
X({ deepRefresh: !1 });
|
|
29764
29767
|
},
|
|
29765
29768
|
bladeStartShowing: e.bladeStartShowing
|
|
29766
29769
|
}), f = C(() => {
|
|
@@ -29862,7 +29865,7 @@ function gy(e, t) {
|
|
|
29862
29865
|
onGetSuccessAsync: e.onGetSuccessAsync
|
|
29863
29866
|
};
|
|
29864
29867
|
if (e.isSingle === !0)
|
|
29865
|
-
|
|
29868
|
+
I.id === "new" ? v.value = e.onGetNew ? e.onGetNew(I) : {} : s != null && (console.log("aa"), console.log(s), v.value = await b(I));
|
|
29866
29869
|
else if (s != null) {
|
|
29867
29870
|
console.log("d");
|
|
29868
29871
|
const E = await p(I);
|
|
@@ -30515,7 +30518,6 @@ const eA = /* @__PURE__ */ Ke({
|
|
|
30515
30518
|
bladeName: {},
|
|
30516
30519
|
bladeStartShowing: { type: Boolean },
|
|
30517
30520
|
bladeBasic: { type: Boolean },
|
|
30518
|
-
defaultVariant: {},
|
|
30519
30521
|
handle: {},
|
|
30520
30522
|
mobileBreakpoint: {},
|
|
30521
30523
|
onClose: {},
|
|
@@ -30524,17 +30526,16 @@ const eA = /* @__PURE__ */ Ke({
|
|
|
30524
30526
|
emits: ["close"],
|
|
30525
30527
|
setup(e, { emit: t }) {
|
|
30526
30528
|
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 =
|
|
30529
|
+
let i = 400;
|
|
30528
30530
|
const s = _l({ width: l.value }), u = Y(null), d = Y(null), { navBack: m } = Ah(), f = vu({
|
|
30529
30531
|
...n,
|
|
30530
|
-
defaultVariant: n.variant,
|
|
30531
30532
|
blade: u,
|
|
30532
30533
|
handle: d,
|
|
30533
30534
|
onClose: () => {
|
|
30534
30535
|
u.value != null && !r && (i = parseInt(window.getComputedStyle(u.value.$el).getPropertyValue("width"))), s.width = 0;
|
|
30535
30536
|
},
|
|
30536
30537
|
onUpdate: () => {
|
|
30537
|
-
s.width == 0 && (s.width = r ? Number.parseInt(n.width) : i);
|
|
30538
|
+
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
30539
|
}
|
|
30539
30540
|
});
|
|
30540
30541
|
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
|
}
|
|
@@ -524,9 +523,9 @@ declare type FindPath = (navName?: string) => string | undefined;
|
|
|
524
523
|
*/
|
|
525
524
|
export declare function fromCamelCase(val?: string): string | undefined;
|
|
526
525
|
|
|
527
|
-
declare interface GeoCoordinate {
|
|
528
|
-
lat
|
|
529
|
-
lng
|
|
526
|
+
export declare interface GeoCoordinate {
|
|
527
|
+
lat?: number;
|
|
528
|
+
lng?: number;
|
|
530
529
|
}
|
|
531
530
|
|
|
532
531
|
/**
|
|
@@ -538,19 +537,19 @@ declare interface GeoCoordinate {
|
|
|
538
537
|
export declare function getAreaAround(location: GeoCoordinate, radius: number): {
|
|
539
538
|
lat: number;
|
|
540
539
|
lng: number;
|
|
541
|
-
}[];
|
|
540
|
+
}[] | undefined;
|
|
542
541
|
|
|
543
542
|
/**get square area using the location as the far right line */
|
|
544
543
|
export declare function getAreaToLeft(location: GeoCoordinate, radius: number): {
|
|
545
544
|
lat: number;
|
|
546
545
|
lng: number;
|
|
547
|
-
}[];
|
|
546
|
+
}[] | undefined;
|
|
548
547
|
|
|
549
548
|
/**get square area using the location as the far left line */
|
|
550
549
|
export declare function getAreaToRight(location: GeoCoordinate, radius: number): {
|
|
551
550
|
lat: number;
|
|
552
551
|
lng: number;
|
|
553
|
-
}[];
|
|
552
|
+
}[] | undefined;
|
|
554
553
|
|
|
555
554
|
/**
|
|
556
555
|
*
|
|
@@ -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