@feedmepos/mf-transaction 0.0.28 → 0.0.30

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,6 +1,6 @@
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";
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 f, createElementBlock as y, normalizeStyle as b, renderSlot as I, resolveComponent as P, createBlock as _, withCtx as w, createElementVNode as R, createVNode as g, defineAsyncComponent as C } from "vue";
2
2
  import { useBreakpoints as E } from "@feedmepos/ui-library";
3
- function k(e, n) {
3
+ function D(e, n) {
4
4
  const r = d({ top: 0, bottom: 0, left: 0, right: 0 });
5
5
  function t() {
6
6
  if (e.value) {
@@ -26,40 +26,40 @@ function k(e, n) {
26
26
  const N = /* @__PURE__ */ m({
27
27
  __name: "FullWrapper",
28
28
  setup(e) {
29
- const n = E(), r = d(null), t = k(r), o = x(() => {
29
+ const n = E(), r = d(null), t = D(r), o = x(() => {
30
30
  var c;
31
31
  const a = n.isAtMost("sm") ? 56 : 0;
32
32
  return {
33
33
  height: `calc(100dvh - ${((c = t.value) == null ? void 0 : c.top) + 24 + a}px)`
34
34
  };
35
35
  });
36
- return (i, a) => (u(), y("div", {
36
+ return (i, a) => (f(), y("div", {
37
37
  ref_key: "wrapper",
38
38
  ref: r,
39
- style: _(o.value)
39
+ style: b(o.value)
40
40
  }, [
41
- b(i.$slots, "default")
41
+ I(i.$slots, "default")
42
42
  ], 4));
43
43
  }
44
- }), T = { class: "flex justify-center items-center h-full w-full" }, D = /* @__PURE__ */ m({
44
+ }), k = { class: "flex justify-center items-center h-full w-full" }, F = /* @__PURE__ */ m({
45
45
  __name: "PageLoading",
46
46
  setup(e) {
47
47
  return (n, r) => {
48
48
  const t = P("FmCircularProgress");
49
- return u(), I(N, null, {
50
- default: g(() => [
51
- w("div", T, [
52
- R(t, { size: "xl" })
49
+ return f(), _(N, null, {
50
+ default: w(() => [
51
+ R("div", k, [
52
+ g(t, { size: "xl" })
53
53
  ])
54
54
  ]),
55
55
  _: 1
56
56
  });
57
57
  };
58
58
  }
59
- }), f = (e) => C({
59
+ }), u = (e) => C({
60
60
  loader: e,
61
- loadingComponent: D
62
- }), F = {
61
+ loadingComponent: F
62
+ }), T = {
63
63
  title: "Transaction",
64
64
  receipt: {
65
65
  title: "Receipt",
@@ -116,7 +116,64 @@ const N = /* @__PURE__ */ m({
116
116
  }
117
117
  }
118
118
  }, S = {
119
- transaction: F
119
+ transaction: T
120
+ }, A = {
121
+ title: "ธุรกรรม",
122
+ receipt: {
123
+ title: "ใบเสร็จ",
124
+ actions: {
125
+ viewDetails: "ดูรายละเอียด",
126
+ refreshPayment: "รีเฟรชการชำระเงิน"
127
+ },
128
+ export: {
129
+ pdf: "ส่งออกเป็น PDF",
130
+ excel: "ส่งออกเป็น Excel",
131
+ noReceipts: "ไม่มีใบเสร็จที่จะส่งออก",
132
+ success: "ส่งออกใบเสร็จ",
133
+ export: "ส่งออก"
134
+ },
135
+ columns: {
136
+ receipt: "ใบเสร็จ",
137
+ table: "ตาราง",
138
+ paymentMethod: "วิธีการชำระเงิน",
139
+ createdAt: "สร้างเมื่อ",
140
+ completed: "เสร็จสมบูรณ์",
141
+ status: "สถานะ",
142
+ total: "รวม"
143
+ },
144
+ search: {
145
+ placeholder: "ค้นหาใบเสร็จ"
146
+ },
147
+ labels: {
148
+ receipt: "ใบเสร็จ: {seqNumber}"
149
+ },
150
+ detail: {
151
+ title: "รายละเอียดใบเสร็จ",
152
+ tabs: {
153
+ receipt: "ใบเสร็จ",
154
+ activity: "กิจกรรม",
155
+ orderRecords: "บันทึกคำสั่งซื้อ"
156
+ },
157
+ footer: {
158
+ creditInfo: "ข้อมูลเครดิต",
159
+ memberInfo: "ข้อมูลสมาชิก",
160
+ feedmeDeliveryInfo: "ข้อมูลการจัดส่ง Feedme",
161
+ deliveryInfo: "ข้อมูลการจัดส่ง",
162
+ pickupInfo: "ข้อมูลการรับสินค้า"
163
+ },
164
+ preview: {
165
+ title: "ใบเสร็จ POS"
166
+ },
167
+ orderId: "คำสั่งซื้อ {slot}",
168
+ invoiceNo: "หมายเลขใบแจ้งหนี้",
169
+ date: "วันที่",
170
+ cashier: "แคชเชียร์",
171
+ tablePax: "จำนวนผู้โดยสารที่โต๊ะ",
172
+ total: "รวม"
173
+ }
174
+ }
175
+ }, M = {
176
+ transaction: A
120
177
  }, z = {
121
178
  title: "交易",
122
179
  receipt: {
@@ -173,9 +230,9 @@ const N = /* @__PURE__ */ m({
173
230
  total: "总计"
174
231
  }
175
232
  }
176
- }, A = {
233
+ }, B = {
177
234
  transaction: z
178
- }, p = "$transaction-receipt", $ = [
235
+ }, p = "$transaction-receipt", L = [
179
236
  {
180
237
  path: "/",
181
238
  redirect: { name: p }
@@ -183,16 +240,16 @@ const N = /* @__PURE__ */ m({
183
240
  {
184
241
  path: "/receipt",
185
242
  name: p,
186
- component: f(() => import("./Receipt-D4ELnpCI.js").then((e) => e.R))
243
+ component: u(() => import("./Receipt-DYfNpiIl.js").then((e) => e.R))
187
244
  }
188
- ], L = {
245
+ ], q = {
189
246
  "en-US": S,
190
- "zh-CN": A,
191
- "th-TH": thTH
192
- }, O = f(() => import("./App-Ca1Dod1Q.js"));
247
+ "zh-CN": B,
248
+ "th-TH": M
249
+ }, U = u(() => import("./App-CmGPvRF7.js"));
193
250
  export {
194
- O as F,
251
+ U as F,
195
252
  N as _,
196
- L as i,
197
- $ as r
253
+ q as i,
254
+ L as r
198
255
  };
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as a, i as e, r as o } from "./app-Gsp5apaA.js";
1
+ import { F as a, i as e, r as o } from "./app-BqaUjUj_.js";
2
2
  export {
3
3
  a as FmApp,
4
4
  e as i18nMessages,
@@ -119,7 +119,64 @@ export declare const i18nMessages: {
119
119
  };
120
120
  };
121
121
  };
122
- "th-TH": any;
122
+ "th-TH": {
123
+ transaction: {
124
+ title: string;
125
+ receipt: {
126
+ title: string;
127
+ actions: {
128
+ viewDetails: string;
129
+ refreshPayment: string;
130
+ };
131
+ export: {
132
+ pdf: string;
133
+ excel: string;
134
+ noReceipts: string;
135
+ success: string;
136
+ export: string;
137
+ };
138
+ columns: {
139
+ receipt: string;
140
+ table: string;
141
+ paymentMethod: string;
142
+ createdAt: string;
143
+ completed: string;
144
+ status: string;
145
+ total: string;
146
+ };
147
+ search: {
148
+ placeholder: string;
149
+ };
150
+ labels: {
151
+ receipt: string;
152
+ };
153
+ detail: {
154
+ title: string;
155
+ tabs: {
156
+ receipt: string;
157
+ activity: string;
158
+ orderRecords: string;
159
+ };
160
+ footer: {
161
+ creditInfo: string;
162
+ memberInfo: string;
163
+ feedmeDeliveryInfo: string;
164
+ deliveryInfo: string;
165
+ pickupInfo: string;
166
+ };
167
+ preview: {
168
+ title: string;
169
+ };
170
+ orderId: string;
171
+ invoiceNo: string;
172
+ date: string;
173
+ cashier: string;
174
+ tablePax: string;
175
+ total: string;
176
+ };
177
+ };
178
+ };
179
+ };
123
180
  };
124
181
  export declare const FmApp: any;
125
182
  export { routers } from "@/router/shared";