@feedmepos/mf-transaction 0.0.22 → 0.0.24
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/README.md +7 -28
- package/dist/{App-Dl8AX_GW.js → App-C1awdYK1.js} +1 -1
- package/dist/{Receipt-B0WyzJit.js → Receipt-CxICe2eu.js} +18875 -18710
- package/dist/{app-BAOGEcnw.js → app-Catx3bTf.js} +42 -38
- package/dist/app.js +1 -1
- package/dist/apps/mf-transaction/src/api/bill/index.d.ts +2 -0
- package/dist/apps/mf-transaction/src/app.d.ts +2 -0
- package/dist/apps/mf-transaction/src/views/receipt/detail/transaction/ReceiptTransaction.vue.d.ts +14 -0
- package/dist/apps/mf-transaction/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-BJt5lrvG.js → index-qeW9RLv9.js} +10697 -10564
- package/dist/{index.es-BlCW2uqp.js → index.es-C0Yw3dPD.js} +4 -4
- package/dist/packages/shared/src/components/form/DynamicSheet.vue.d.ts +19 -0
- package/dist/packages/shared/src/components/layout/ListLayout.vue.d.ts +2 -0
- package/dist/packages/shared/src/composable/elementPosition.d.ts +1 -1
- package/dist/packages/shared/src/composable/prompt.d.ts +9 -0
- package/dist/packages/shared/src/composable/sheet.d.ts +17 -0
- package/dist/packages/shared/src/helpers/browser.d.ts +1 -0
- package/dist/packages/shared/src/helpers/string.d.ts +12 -0
- package/package.json +2 -2
|
@@ -1,61 +1,63 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as d, watch as s, nextTick as l, onMounted as h, onBeforeUnmount as v, defineComponent as m, computed as x, openBlock as u, createElementBlock as y, normalizeStyle as _, renderSlot as b, resolveComponent as P, createBlock as I, withCtx as g, createElementVNode as w, createVNode as R, defineAsyncComponent as C } from "vue";
|
|
2
2
|
import { useBreakpoints as E } from "@feedmepos/ui-library";
|
|
3
|
-
function k(
|
|
4
|
-
const r =
|
|
5
|
-
function
|
|
6
|
-
if (
|
|
7
|
-
const
|
|
3
|
+
function k(e, n) {
|
|
4
|
+
const r = d({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
5
|
+
function t() {
|
|
6
|
+
if (e.value) {
|
|
7
|
+
const o = e.value.getBoundingClientRect();
|
|
8
8
|
r.value = {
|
|
9
|
-
top:
|
|
10
|
-
bottom:
|
|
11
|
-
left:
|
|
12
|
-
right:
|
|
9
|
+
top: o.top,
|
|
10
|
+
bottom: o.bottom,
|
|
11
|
+
left: o.left,
|
|
12
|
+
right: o.right
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
return
|
|
17
|
-
|
|
16
|
+
return s(n, async () => {
|
|
17
|
+
await l(), t();
|
|
18
|
+
}), s(e, async (o) => {
|
|
19
|
+
o && (await l(), t());
|
|
18
20
|
}), h(() => {
|
|
19
|
-
window.addEventListener("resize",
|
|
21
|
+
window.addEventListener("resize", t);
|
|
20
22
|
}), v(() => {
|
|
21
|
-
window.removeEventListener("resize",
|
|
23
|
+
window.removeEventListener("resize", t);
|
|
22
24
|
}), r;
|
|
23
25
|
}
|
|
24
|
-
const N = /* @__PURE__ */
|
|
26
|
+
const N = /* @__PURE__ */ m({
|
|
25
27
|
__name: "FullWrapper",
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
+
setup(e) {
|
|
29
|
+
const n = E(), r = d(null), t = k(r), o = x(() => {
|
|
28
30
|
var c;
|
|
29
|
-
const
|
|
31
|
+
const a = n.isAtMost("sm") ? 56 : 0;
|
|
30
32
|
return {
|
|
31
|
-
height: `calc(100dvh - ${((c =
|
|
33
|
+
height: `calc(100dvh - ${((c = t.value) == null ? void 0 : c.top) + 24 + a}px)`
|
|
32
34
|
};
|
|
33
35
|
});
|
|
34
|
-
return (
|
|
36
|
+
return (i, a) => (u(), y("div", {
|
|
35
37
|
ref_key: "wrapper",
|
|
36
|
-
ref:
|
|
37
|
-
style: _(
|
|
38
|
+
ref: r,
|
|
39
|
+
style: _(o.value)
|
|
38
40
|
}, [
|
|
39
|
-
b(
|
|
41
|
+
b(i.$slots, "default")
|
|
40
42
|
], 4));
|
|
41
43
|
}
|
|
42
|
-
}), D = { class: "flex justify-center items-center h-full w-full" }, F = /* @__PURE__ */
|
|
44
|
+
}), D = { class: "flex justify-center items-center h-full w-full" }, F = /* @__PURE__ */ m({
|
|
43
45
|
__name: "PageLoading",
|
|
44
|
-
setup(
|
|
45
|
-
return (
|
|
46
|
-
const
|
|
47
|
-
return
|
|
46
|
+
setup(e) {
|
|
47
|
+
return (n, r) => {
|
|
48
|
+
const t = P("FmCircularProgress");
|
|
49
|
+
return u(), I(N, null, {
|
|
48
50
|
default: g(() => [
|
|
49
51
|
w("div", D, [
|
|
50
|
-
R(
|
|
52
|
+
R(t, { size: "xl" })
|
|
51
53
|
])
|
|
52
54
|
]),
|
|
53
55
|
_: 1
|
|
54
56
|
});
|
|
55
57
|
};
|
|
56
58
|
}
|
|
57
|
-
}),
|
|
58
|
-
loader:
|
|
59
|
+
}), f = (e) => C({
|
|
60
|
+
loader: e,
|
|
59
61
|
loadingComponent: F
|
|
60
62
|
}), S = {
|
|
61
63
|
title: "Transaction",
|
|
@@ -92,7 +94,8 @@ const N = /* @__PURE__ */ l({
|
|
|
92
94
|
tabs: {
|
|
93
95
|
receipt: "Receipt",
|
|
94
96
|
activity: "Activity",
|
|
95
|
-
orderRecords: "Order records"
|
|
97
|
+
orderRecords: "Order records",
|
|
98
|
+
transaction: "Transactions"
|
|
96
99
|
},
|
|
97
100
|
footer: {
|
|
98
101
|
creditInfo: "Credit Info",
|
|
@@ -149,7 +152,8 @@ const N = /* @__PURE__ */ l({
|
|
|
149
152
|
tabs: {
|
|
150
153
|
receipt: "收据",
|
|
151
154
|
activity: "活动",
|
|
152
|
-
orderRecords: "订单记录"
|
|
155
|
+
orderRecords: "订单记录",
|
|
156
|
+
transaction: "交易记录"
|
|
153
157
|
},
|
|
154
158
|
footer: {
|
|
155
159
|
creditInfo: "积分信息",
|
|
@@ -171,20 +175,20 @@ const N = /* @__PURE__ */ l({
|
|
|
171
175
|
}
|
|
172
176
|
}, A = {
|
|
173
177
|
transaction: z
|
|
174
|
-
},
|
|
178
|
+
}, p = "$transaction-receipt", $ = [
|
|
175
179
|
{
|
|
176
180
|
path: "/",
|
|
177
|
-
redirect: { name:
|
|
181
|
+
redirect: { name: p }
|
|
178
182
|
},
|
|
179
183
|
{
|
|
180
184
|
path: "/receipt",
|
|
181
|
-
name:
|
|
182
|
-
component:
|
|
185
|
+
name: p,
|
|
186
|
+
component: f(() => import("./Receipt-CxICe2eu.js").then((e) => e.R))
|
|
183
187
|
}
|
|
184
188
|
], L = {
|
|
185
189
|
"en-US": T,
|
|
186
190
|
"zh-CN": A
|
|
187
|
-
}, O =
|
|
191
|
+
}, O = f(() => import("./App-C1awdYK1.js"));
|
|
188
192
|
export {
|
|
189
193
|
O as F,
|
|
190
194
|
N as _,
|
package/dist/app.js
CHANGED
|
@@ -38,6 +38,7 @@ export declare const i18nMessages: {
|
|
|
38
38
|
receipt: string;
|
|
39
39
|
activity: string;
|
|
40
40
|
orderRecords: string;
|
|
41
|
+
transaction: string;
|
|
41
42
|
};
|
|
42
43
|
footer: {
|
|
43
44
|
creditInfo: string;
|
|
@@ -96,6 +97,7 @@ export declare const i18nMessages: {
|
|
|
96
97
|
receipt: string;
|
|
97
98
|
activity: string;
|
|
98
99
|
orderRecords: string;
|
|
100
|
+
transaction: string;
|
|
99
101
|
};
|
|
100
102
|
footer: {
|
|
101
103
|
creditInfo: string;
|
package/dist/apps/mf-transaction/src/views/receipt/detail/transaction/ReceiptTransaction.vue.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { Receipt } from "@/views/receipt/receipt";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
receipt: {
|
|
5
|
+
type: PropType<Receipt>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
receipt: {
|
|
10
|
+
type: PropType<Receipt>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
export default _default;
|