bt-core-app 1.4.594 → 1.4.596
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 +50 -40
- package/dist/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/bt-core-app.js
CHANGED
|
@@ -10667,10 +10667,14 @@ function Cd(e) {
|
|
|
10667
10667
|
if (Bo != null)
|
|
10668
10668
|
return Bo;
|
|
10669
10669
|
const t = (e == null ? void 0 : e.getUsedHeight) ?? (() => 0);
|
|
10670
|
-
function n(
|
|
10671
|
-
return t(e == null ? void 0 : e.display, e == null ? void 0 : e.navigation) + (
|
|
10670
|
+
function n(l) {
|
|
10671
|
+
return t(e == null ? void 0 : e.display, e == null ? void 0 : e.navigation) + (l ?? 0);
|
|
10672
|
+
}
|
|
10673
|
+
function a(l) {
|
|
10674
|
+
return `height: calc(100vh - ${n(l)}px);`;
|
|
10672
10675
|
}
|
|
10673
10676
|
return Bo = {
|
|
10677
|
+
getStyle: a,
|
|
10674
10678
|
getUsedHeight: n
|
|
10675
10679
|
}, Bo;
|
|
10676
10680
|
}
|
|
@@ -12073,43 +12077,49 @@ function vy(e, t, n) {
|
|
|
12073
12077
|
y.value = (se == null ? void 0 : se.data) ?? void 0;
|
|
12074
12078
|
} else if (e.variant == "blade" && m.bladeData.data.data != null)
|
|
12075
12079
|
y.value = m.bladeData.data.data;
|
|
12076
|
-
else
|
|
12077
|
-
|
|
12078
|
-
|
|
12079
|
-
|
|
12080
|
-
|
|
12081
|
-
|
|
12082
|
-
|
|
12083
|
-
|
|
12084
|
-
|
|
12085
|
-
|
|
12086
|
-
|
|
12087
|
-
|
|
12088
|
-
|
|
12089
|
-
|
|
12090
|
-
|
|
12091
|
-
|
|
12092
|
-
|
|
12093
|
-
|
|
12094
|
-
|
|
12095
|
-
|
|
12096
|
-
|
|
12097
|
-
|
|
12098
|
-
|
|
12099
|
-
|
|
12100
|
-
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
12080
|
+
else {
|
|
12081
|
+
if (e.additionalUrl == null && e.nav == null) {
|
|
12082
|
+
y.value = void 0;
|
|
12083
|
+
return;
|
|
12084
|
+
}
|
|
12085
|
+
if (e.isSingle === !0) {
|
|
12086
|
+
const _e = {
|
|
12087
|
+
additionalUrl: e.additionalUrl,
|
|
12088
|
+
id: V.value,
|
|
12089
|
+
nav: o,
|
|
12090
|
+
proxyID: g.value,
|
|
12091
|
+
params: {
|
|
12092
|
+
...E.value,
|
|
12093
|
+
...l ? m.bladeData.data.params : {}
|
|
12094
|
+
},
|
|
12095
|
+
refresh: (oe == null ? void 0 : oe.deepRefresh) ?? !1,
|
|
12096
|
+
storeKey: s,
|
|
12097
|
+
onGetAsync: e.onGetAsync,
|
|
12098
|
+
onGetSuccessAsync: e.onGetSuccessAsync
|
|
12099
|
+
};
|
|
12100
|
+
if (_e.id === "new")
|
|
12101
|
+
y.value = e.onGetNew ? e.onGetNew(_e) : {};
|
|
12102
|
+
else if (o != null) {
|
|
12103
|
+
const se = await p(_e);
|
|
12104
|
+
se != null && (y.value = se.data), y.value == null && e.onGetNotFound != null && (y.value = e.onGetNotFound(_e));
|
|
12105
|
+
}
|
|
12106
|
+
} else if (o != null) {
|
|
12107
|
+
const _e = {
|
|
12108
|
+
additionalUrl: e.additionalUrl,
|
|
12109
|
+
id: V.value,
|
|
12110
|
+
nav: o,
|
|
12111
|
+
proxyID: g.value,
|
|
12112
|
+
params: {
|
|
12113
|
+
...E.value,
|
|
12114
|
+
...l ? m.bladeData.data.params : {}
|
|
12115
|
+
},
|
|
12116
|
+
refresh: (oe == null ? void 0 : oe.deepRefresh) ?? !1,
|
|
12117
|
+
storeKey: s,
|
|
12118
|
+
onGetAsync: e.onGetListAsync,
|
|
12119
|
+
onGetSuccessAsync: e.onGetListSuccessAsync
|
|
12120
|
+
}, se = await S(_e);
|
|
12121
|
+
e.findItem != null ? y.value = e.findItem(se == null ? void 0 : se.data) : y.value = (se == null ? void 0 : se.data) ?? void 0;
|
|
12122
|
+
}
|
|
12113
12123
|
}
|
|
12114
12124
|
Z(), t && t("fetched", y.value);
|
|
12115
12125
|
}
|
|
@@ -22343,8 +22353,8 @@ const bM = Rs("v-alert-title"), wM = ["success", "info", "warning", "error"], xM
|
|
|
22343
22353
|
default: R(() => [
|
|
22344
22354
|
w(Ap, {
|
|
22345
22355
|
closable: "",
|
|
22346
|
-
title: "Error",
|
|
22347
22356
|
color: "red-lighten-1",
|
|
22357
|
+
title: "Error",
|
|
22348
22358
|
modelValue: p.value,
|
|
22349
22359
|
"onUpdate:modelValue": T[2] || (T[2] = (A) => p.value = A)
|
|
22350
22360
|
}, {
|
package/dist/index.d.ts
CHANGED
|
@@ -751,6 +751,7 @@ export declare function guardRoute(to: RouteLocationNormalized, from: RouteLocat
|
|
|
751
751
|
export declare function hasSearch(value: any, str?: string, props?: string[]): boolean;
|
|
752
752
|
|
|
753
753
|
export declare interface HeightOptions {
|
|
754
|
+
getStyle: (actualUsedHeight?: number) => string;
|
|
754
755
|
getUsedHeight: (inAdditionTo?: number) => number;
|
|
755
756
|
}
|
|
756
757
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bt-core-app",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.596",
|
|
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": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"vue-picture-cropper": "^0.7.0",
|
|
48
48
|
"vue-signature-pad": "^3.0.2",
|
|
49
49
|
"vue-use-spring": "^0.3.3",
|
|
50
|
-
"vuetify": "^3.7.
|
|
50
|
+
"vuetify": "^3.7.7"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@vueuse/core": "^10.4.1",
|