@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.
@@ -1,61 +1,63 @@
1
- import { ref as a, watch as u, nextTick as f, onMounted as h, onBeforeUnmount as v, defineComponent as l, computed as x, openBlock as p, 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";
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(t) {
4
- const r = a({ top: 0, bottom: 0, left: 0, right: 0 });
5
- function o() {
6
- if (t.value) {
7
- const e = t.value.getBoundingClientRect();
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: e.top,
10
- bottom: e.bottom,
11
- left: e.left,
12
- right: e.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 u(t, async (e) => {
17
- e && (await f(), o());
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", o);
21
+ window.addEventListener("resize", t);
20
22
  }), v(() => {
21
- window.removeEventListener("resize", o);
23
+ window.removeEventListener("resize", t);
22
24
  }), r;
23
25
  }
24
- const N = /* @__PURE__ */ l({
26
+ const N = /* @__PURE__ */ m({
25
27
  __name: "FullWrapper",
26
- setup(t) {
27
- const r = E(), o = a(null), e = k(o), m = x(() => {
28
+ setup(e) {
29
+ const n = E(), r = d(null), t = k(r), o = x(() => {
28
30
  var c;
29
- const i = r.isAtMost("sm") ? 56 : 0;
31
+ const a = n.isAtMost("sm") ? 56 : 0;
30
32
  return {
31
- height: `calc(100dvh - ${((c = e.value) == null ? void 0 : c.top) + 24 + i}px)`
33
+ height: `calc(100dvh - ${((c = t.value) == null ? void 0 : c.top) + 24 + a}px)`
32
34
  };
33
35
  });
34
- return (n, i) => (p(), y("div", {
36
+ return (i, a) => (u(), y("div", {
35
37
  ref_key: "wrapper",
36
- ref: o,
37
- style: _(m.value)
38
+ ref: r,
39
+ style: _(o.value)
38
40
  }, [
39
- b(n.$slots, "default")
41
+ b(i.$slots, "default")
40
42
  ], 4));
41
43
  }
42
- }), D = { class: "flex justify-center items-center h-full w-full" }, F = /* @__PURE__ */ l({
44
+ }), D = { class: "flex justify-center items-center h-full w-full" }, F = /* @__PURE__ */ m({
43
45
  __name: "PageLoading",
44
- setup(t) {
45
- return (r, o) => {
46
- const e = P("FmCircularProgress");
47
- return p(), I(N, null, {
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(e, { size: "xl" })
52
+ R(t, { size: "xl" })
51
53
  ])
52
54
  ]),
53
55
  _: 1
54
56
  });
55
57
  };
56
58
  }
57
- }), d = (t) => C({
58
- loader: t,
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
- }, s = "$transaction-receipt", $ = [
178
+ }, p = "$transaction-receipt", $ = [
175
179
  {
176
180
  path: "/",
177
- redirect: { name: s }
181
+ redirect: { name: p }
178
182
  },
179
183
  {
180
184
  path: "/receipt",
181
- name: s,
182
- component: d(() => import("./Receipt-B0WyzJit.js").then((t) => t.R))
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 = d(() => import("./App-Dl8AX_GW.js"));
191
+ }, O = f(() => import("./App-C1awdYK1.js"));
188
192
  export {
189
193
  O as F,
190
194
  N as _,
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as a, i as e, r as o } from "./app-BAOGEcnw.js";
1
+ import { F as a, i as e, r as o } from "./app-Catx3bTf.js";
2
2
  export {
3
3
  a as FmApp,
4
4
  e as i18nMessages,
@@ -1,3 +1,5 @@
1
1
  export declare const billApi: {
2
2
  refreshEPayment(restaurantId: string, billId: string): Promise<any>;
3
+ transactions(restaurantId: string, billId: string): Promise<any>;
4
+ bindPayments(restaurantId: string, billId: string, transactions: any[]): Promise<any>;
3
5
  };
@@ -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;
@@ -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;