bt-core-app 1.4.593 → 1.4.595
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 +89 -76
- package/package.json +2 -2
package/dist/bt-core-app.js
CHANGED
|
@@ -12073,43 +12073,49 @@ function vy(e, t, n) {
|
|
|
12073
12073
|
y.value = (se == null ? void 0 : se.data) ?? void 0;
|
|
12074
12074
|
} else if (e.variant == "blade" && m.bladeData.data.data != null)
|
|
12075
12075
|
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
|
-
|
|
12076
|
+
else {
|
|
12077
|
+
if (e.additionalUrl == null && e.nav == null) {
|
|
12078
|
+
y.value = void 0;
|
|
12079
|
+
return;
|
|
12080
|
+
}
|
|
12081
|
+
if (e.isSingle === !0) {
|
|
12082
|
+
const _e = {
|
|
12083
|
+
additionalUrl: e.additionalUrl,
|
|
12084
|
+
id: V.value,
|
|
12085
|
+
nav: o,
|
|
12086
|
+
proxyID: g.value,
|
|
12087
|
+
params: {
|
|
12088
|
+
...E.value,
|
|
12089
|
+
...l ? m.bladeData.data.params : {}
|
|
12090
|
+
},
|
|
12091
|
+
refresh: (oe == null ? void 0 : oe.deepRefresh) ?? !1,
|
|
12092
|
+
storeKey: s,
|
|
12093
|
+
onGetAsync: e.onGetAsync,
|
|
12094
|
+
onGetSuccessAsync: e.onGetSuccessAsync
|
|
12095
|
+
};
|
|
12096
|
+
if (_e.id === "new")
|
|
12097
|
+
y.value = e.onGetNew ? e.onGetNew(_e) : {};
|
|
12098
|
+
else if (o != null) {
|
|
12099
|
+
const se = await p(_e);
|
|
12100
|
+
se != null && (y.value = se.data), y.value == null && e.onGetNotFound != null && (y.value = e.onGetNotFound(_e));
|
|
12101
|
+
}
|
|
12102
|
+
} else if (o != null) {
|
|
12103
|
+
const _e = {
|
|
12104
|
+
additionalUrl: e.additionalUrl,
|
|
12105
|
+
id: V.value,
|
|
12106
|
+
nav: o,
|
|
12107
|
+
proxyID: g.value,
|
|
12108
|
+
params: {
|
|
12109
|
+
...E.value,
|
|
12110
|
+
...l ? m.bladeData.data.params : {}
|
|
12111
|
+
},
|
|
12112
|
+
refresh: (oe == null ? void 0 : oe.deepRefresh) ?? !1,
|
|
12113
|
+
storeKey: s,
|
|
12114
|
+
onGetAsync: e.onGetListAsync,
|
|
12115
|
+
onGetSuccessAsync: e.onGetListSuccessAsync
|
|
12116
|
+
}, se = await S(_e);
|
|
12117
|
+
e.findItem != null ? y.value = e.findItem(se == null ? void 0 : se.data) : y.value = (se == null ? void 0 : se.data) ?? void 0;
|
|
12118
|
+
}
|
|
12113
12119
|
}
|
|
12114
12120
|
Z(), t && t("fetched", y.value);
|
|
12115
12121
|
}
|
|
@@ -22343,8 +22349,8 @@ const bM = Rs("v-alert-title"), wM = ["success", "info", "warning", "error"], xM
|
|
|
22343
22349
|
default: R(() => [
|
|
22344
22350
|
w(Ap, {
|
|
22345
22351
|
closable: "",
|
|
22346
|
-
title: "Error",
|
|
22347
22352
|
color: "red-lighten-1",
|
|
22353
|
+
title: "Error",
|
|
22348
22354
|
modelValue: p.value,
|
|
22349
22355
|
"onUpdate:modelValue": T[2] || (T[2] = (A) => p.value = A)
|
|
22350
22356
|
}, {
|
|
@@ -40876,38 +40882,45 @@ const q1 = {
|
|
|
40876
40882
|
},
|
|
40877
40883
|
emits: ["update:modelValue"],
|
|
40878
40884
|
setup(e, { emit: t }) {
|
|
40879
|
-
const n = t, a = e, l = od(), r = _(() => a.width != null ? `width: ${a.width}px` : ""), i = H([])
|
|
40880
|
-
|
|
40881
|
-
|
|
40882
|
-
|
|
40883
|
-
|
|
40885
|
+
const n = t, a = e, l = od(), r = _(() => a.width != null ? `width: ${a.width}px` : ""), i = H([]);
|
|
40886
|
+
we(() => l.query, (v) => {
|
|
40887
|
+
v.slide != null && h(v.slide);
|
|
40888
|
+
});
|
|
40889
|
+
const o = _(() => i.value.length > 0 ? i.value[i.value.length - 1] : 0), s = _(() => (a.options ?? []).map((m, g) => {
|
|
40890
|
+
var x;
|
|
40891
|
+
var y = { value: "", index: g + 1 };
|
|
40892
|
+
if (typeof m == "string")
|
|
40893
|
+
y.hide = !1, y.title = m, y.value = y.title.replaceAll(" ", "").toLowerCase();
|
|
40884
40894
|
else {
|
|
40885
|
-
var
|
|
40886
|
-
|
|
40887
|
-
...
|
|
40888
|
-
index:
|
|
40889
|
-
value:
|
|
40895
|
+
var d = m;
|
|
40896
|
+
y = {
|
|
40897
|
+
...d,
|
|
40898
|
+
index: g + 1,
|
|
40899
|
+
value: d.value ?? ((x = d.title) == null ? void 0 : x.replaceAll(" ", "").toLowerCase())
|
|
40890
40900
|
};
|
|
40891
40901
|
}
|
|
40892
|
-
return
|
|
40893
|
-
})), c = _(() => s.value.filter((
|
|
40902
|
+
return y;
|
|
40903
|
+
})), c = _(() => s.value.filter((v) => v.hide !== !0));
|
|
40894
40904
|
function u() {
|
|
40895
40905
|
i.value.pop(), n("update:modelValue", -2);
|
|
40896
40906
|
}
|
|
40897
|
-
function f(
|
|
40898
|
-
var
|
|
40899
|
-
|
|
40907
|
+
function f(v) {
|
|
40908
|
+
var m = v;
|
|
40909
|
+
m == 0 ? i.value = [m] : o.value != m && i.value.push(m);
|
|
40900
40910
|
}
|
|
40901
|
-
|
|
40902
|
-
|
|
40911
|
+
function h(v) {
|
|
40912
|
+
if (v == null)
|
|
40913
|
+
return;
|
|
40914
|
+
const m = s.value.find((g) => g.value == v);
|
|
40915
|
+
m != null && f(m.index);
|
|
40916
|
+
}
|
|
40917
|
+
return we(() => a.modelValue, (v) => {
|
|
40918
|
+
v != null && v != -2 && f(v + 1);
|
|
40903
40919
|
}), St(() => {
|
|
40904
|
-
|
|
40905
|
-
|
|
40906
|
-
h != null && f(h.index);
|
|
40907
|
-
}
|
|
40908
|
-
}), (h, v) => (B(), ne(j5, {
|
|
40920
|
+
(l == null ? void 0 : l.query.slide) != null && h(l == null ? void 0 : l.query.slide);
|
|
40921
|
+
}), (v, m) => (B(), ne(j5, {
|
|
40909
40922
|
modelValue: o.value,
|
|
40910
|
-
"onUpdate:modelValue":
|
|
40923
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => o.value = g),
|
|
40911
40924
|
style: $t(r.value)
|
|
40912
40925
|
}, {
|
|
40913
40926
|
default: R(() => [
|
|
@@ -40915,12 +40928,12 @@ const q1 = {
|
|
|
40915
40928
|
default: R(() => [
|
|
40916
40929
|
w(Gt, null, {
|
|
40917
40930
|
default: R(() => [
|
|
40918
|
-
(B(!0), fe(Me, null, Qe(c.value, (
|
|
40931
|
+
(B(!0), fe(Me, null, Qe(c.value, (g) => (B(), ne(ct, {
|
|
40919
40932
|
"append-icon": "$arrow-right",
|
|
40920
|
-
onClick: (
|
|
40921
|
-
disabled:
|
|
40922
|
-
key:
|
|
40923
|
-
title:
|
|
40933
|
+
onClick: (y) => f(g.index),
|
|
40934
|
+
disabled: g.disabled,
|
|
40935
|
+
key: g.value ?? g.title,
|
|
40936
|
+
title: g.title
|
|
40924
40937
|
}, null, 8, ["onClick", "disabled", "title"]))), 128))
|
|
40925
40938
|
]),
|
|
40926
40939
|
_: 1
|
|
@@ -40928,24 +40941,24 @@ const q1 = {
|
|
|
40928
40941
|
]),
|
|
40929
40942
|
_: 1
|
|
40930
40943
|
}),
|
|
40931
|
-
(B(!0), fe(Me, null, Qe(s.value, (
|
|
40932
|
-
key:
|
|
40933
|
-
value:
|
|
40944
|
+
(B(!0), fe(Me, null, Qe(s.value, (g) => (B(), ne(vh, {
|
|
40945
|
+
key: g.value ?? g.title,
|
|
40946
|
+
value: g.index
|
|
40934
40947
|
}, {
|
|
40935
40948
|
default: R(() => [
|
|
40936
|
-
ye(
|
|
40949
|
+
ye(v.$slots, `${g.value}-top`, {}, () => [
|
|
40937
40950
|
w(Aa, { "hide-on-leave": "" }, {
|
|
40938
40951
|
default: R(() => [
|
|
40939
|
-
!
|
|
40952
|
+
!v.hideHeader && !g.hideHeader ? (B(), ne(Ss, {
|
|
40940
40953
|
key: 0,
|
|
40941
40954
|
density: "compact",
|
|
40942
40955
|
flat: "",
|
|
40943
40956
|
tile: ""
|
|
40944
40957
|
}, {
|
|
40945
40958
|
default: R(() => [
|
|
40946
|
-
ye(
|
|
40959
|
+
ye(v.$slots, `${g.value}-toolbar`, {
|
|
40947
40960
|
back: () => u(),
|
|
40948
|
-
title:
|
|
40961
|
+
title: g.title
|
|
40949
40962
|
}, () => [
|
|
40950
40963
|
w(Le, {
|
|
40951
40964
|
icon: "$arrow-left",
|
|
@@ -40953,12 +40966,12 @@ const q1 = {
|
|
|
40953
40966
|
}),
|
|
40954
40967
|
w(Js, null, {
|
|
40955
40968
|
default: R(() => [
|
|
40956
|
-
He(Ne(
|
|
40969
|
+
He(Ne(g.title), 1)
|
|
40957
40970
|
]),
|
|
40958
40971
|
_: 2
|
|
40959
40972
|
}, 1024),
|
|
40960
40973
|
w(Fn),
|
|
40961
|
-
ye(
|
|
40974
|
+
ye(v.$slots, `${g.value}-toolbar-right`)
|
|
40962
40975
|
])
|
|
40963
40976
|
]),
|
|
40964
40977
|
_: 2
|
|
@@ -40967,7 +40980,7 @@ const q1 = {
|
|
|
40967
40980
|
_: 2
|
|
40968
40981
|
}, 1024)
|
|
40969
40982
|
]),
|
|
40970
|
-
ye(
|
|
40983
|
+
ye(v.$slots, g.value)
|
|
40971
40984
|
]),
|
|
40972
40985
|
_: 2
|
|
40973
40986
|
}, 1032, ["value"]))), 128))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bt-core-app",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.595",
|
|
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",
|