@feedmepos/mf-transaction 0.0.64 → 0.0.66
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/{App-BfDmhR_n.js → App-TuE4ibjS.js} +48406 -53778
- package/dist/{app-Zo7LyQ0r.js → app-CE_GFDAt.js} +186 -42
- package/dist/app.js +1 -1
- package/dist/apps/mf-transaction/src/app.d.ts +44 -0
- package/dist/apps/mf-transaction/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index.es-BEQExDQd.js → index.es-D5AVaetC.js} +2 -2
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i18nMessages as s } from "@feedmepos/mf-kitchen";
|
|
2
|
-
import { ref as
|
|
3
|
-
import { useBreakpoints as
|
|
4
|
-
function
|
|
5
|
-
const o =
|
|
2
|
+
import { ref as p, watch as c, nextTick as d, onMounted as m, onBeforeUnmount as h, defineComponent as f, computed as y, createElementBlock as v, openBlock as u, normalizeStyle as g, renderSlot as P, resolveComponent as b, createBlock as x, withCtx as D, createElementVNode as w, createVNode as F, defineAsyncComponent as I } from "vue";
|
|
3
|
+
import { useBreakpoints as R } from "@feedmepos/ui-library";
|
|
4
|
+
function k(e, a) {
|
|
5
|
+
const o = p({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
6
6
|
function t() {
|
|
7
7
|
if (e.value) {
|
|
8
8
|
const r = e.value.getBoundingClientRect();
|
|
@@ -14,53 +14,53 @@ function S(e, i) {
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
return
|
|
18
|
-
await
|
|
19
|
-
}),
|
|
20
|
-
r && (await
|
|
17
|
+
return c(a, async () => {
|
|
18
|
+
await d(), t();
|
|
19
|
+
}), c(e, async (r) => {
|
|
20
|
+
r && (await d(), t());
|
|
21
21
|
}), m(() => {
|
|
22
22
|
window.addEventListener("resize", t);
|
|
23
|
-
}),
|
|
23
|
+
}), h(() => {
|
|
24
24
|
window.removeEventListener("resize", t);
|
|
25
25
|
}), o;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const S = /* @__PURE__ */ f({
|
|
28
28
|
__name: "FullWrapper",
|
|
29
29
|
setup(e) {
|
|
30
|
-
const
|
|
31
|
-
var
|
|
32
|
-
const
|
|
30
|
+
const a = R(), o = p(null), t = k(o), r = y(() => {
|
|
31
|
+
var l;
|
|
32
|
+
const n = a.isAtMost("sm") ? 56 : 0;
|
|
33
33
|
return {
|
|
34
|
-
height: `calc(100dvh - ${((
|
|
34
|
+
height: `calc(100dvh - ${((l = t.value) == null ? void 0 : l.top) + 24 + n}px)`
|
|
35
35
|
};
|
|
36
36
|
});
|
|
37
|
-
return (
|
|
37
|
+
return (i, n) => (u(), v("div", {
|
|
38
38
|
ref_key: "wrapper",
|
|
39
39
|
ref: o,
|
|
40
|
-
style:
|
|
40
|
+
style: g(r.value)
|
|
41
41
|
}, [
|
|
42
|
-
|
|
42
|
+
P(i.$slots, "default")
|
|
43
43
|
], 4));
|
|
44
44
|
}
|
|
45
|
-
}),
|
|
45
|
+
}), M = { class: "flex justify-center items-center h-full w-full" }, N = /* @__PURE__ */ f({
|
|
46
46
|
__name: "PageLoading",
|
|
47
47
|
setup(e) {
|
|
48
|
-
return (
|
|
49
|
-
const t =
|
|
50
|
-
return u(),
|
|
51
|
-
default:
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
return (a, o) => {
|
|
49
|
+
const t = b("FmCircularProgress");
|
|
50
|
+
return u(), x(S, null, {
|
|
51
|
+
default: D(() => [
|
|
52
|
+
w("div", M, [
|
|
53
|
+
F(t, { size: "xl" })
|
|
54
54
|
])
|
|
55
55
|
]),
|
|
56
56
|
_: 1
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
}),
|
|
60
|
+
}), _ = (e) => I({
|
|
61
61
|
loader: e,
|
|
62
|
-
loadingComponent:
|
|
63
|
-
}),
|
|
62
|
+
loadingComponent: N
|
|
63
|
+
}), E = {
|
|
64
64
|
title: "Transaction",
|
|
65
65
|
receipt: {
|
|
66
66
|
title: "Receipt",
|
|
@@ -126,10 +126,107 @@ const N = /* @__PURE__ */ f({
|
|
|
126
126
|
preview: {
|
|
127
127
|
fullSizePreview: "Full size preview"
|
|
128
128
|
}
|
|
129
|
+
},
|
|
130
|
+
dateRange: {
|
|
131
|
+
errors: {
|
|
132
|
+
invalidDateRanges: "Max duration is 31 days"
|
|
133
|
+
},
|
|
134
|
+
predefinedRanges: {
|
|
135
|
+
today: "Today",
|
|
136
|
+
yesterday: "Yesterday",
|
|
137
|
+
thisWeek: "This week",
|
|
138
|
+
lastWeek: "Last week",
|
|
139
|
+
last7Days: "Last 7 days",
|
|
140
|
+
thisMonth: "This month",
|
|
141
|
+
lastMonth: "Last month"
|
|
142
|
+
}
|
|
129
143
|
}
|
|
130
|
-
},
|
|
144
|
+
}, z = {
|
|
145
|
+
transaction: E
|
|
146
|
+
}, C = {
|
|
147
|
+
title: "取引",
|
|
148
|
+
receipt: {
|
|
149
|
+
title: "レシート",
|
|
150
|
+
actions: {
|
|
151
|
+
viewDetails: "詳細を見る",
|
|
152
|
+
refreshPayment: "支払いを更新"
|
|
153
|
+
},
|
|
154
|
+
export: {
|
|
155
|
+
pdf: "PDFとしてエクスポート",
|
|
156
|
+
excel: "Excelとしてエクスポート",
|
|
157
|
+
noReceipts: "エクスポートするレシートがありません",
|
|
158
|
+
success: "レシートがエクスポートされました",
|
|
159
|
+
export: "エクスポート",
|
|
160
|
+
starting: "{count}件のレシートのエクスポートを開始中...",
|
|
161
|
+
progress: "レシートを処理中 {progress}",
|
|
162
|
+
pdfSuccess: "PDFのエクスポートが成功しました!{filename}.pdf をダウンロード中",
|
|
163
|
+
pdfFailed: "エクスポートに失敗しました: {error}",
|
|
164
|
+
defaultError: "PDFのエクスポートに失敗しました"
|
|
165
|
+
},
|
|
166
|
+
columns: {
|
|
167
|
+
receipt: "レシート",
|
|
168
|
+
table: "テーブル",
|
|
169
|
+
paymentMethod: "支払い方法",
|
|
170
|
+
createdAt: "作成日時",
|
|
171
|
+
completed: "完了",
|
|
172
|
+
status: "ステータス",
|
|
173
|
+
total: "合計"
|
|
174
|
+
},
|
|
175
|
+
search: {
|
|
176
|
+
placeholder: "レシートを検索"
|
|
177
|
+
},
|
|
178
|
+
labels: {
|
|
179
|
+
receipt: "レシート: {seqNumber}"
|
|
180
|
+
},
|
|
181
|
+
errors: {
|
|
182
|
+
billNotFound: "請求書が見つかりません"
|
|
183
|
+
},
|
|
184
|
+
detail: {
|
|
185
|
+
title: "レシート詳細",
|
|
186
|
+
tabs: {
|
|
187
|
+
receipt: "レシート",
|
|
188
|
+
activity: "アクティビティ",
|
|
189
|
+
orderRecords: "注文記録",
|
|
190
|
+
transaction: "取引"
|
|
191
|
+
},
|
|
192
|
+
footer: {
|
|
193
|
+
creditInfo: "クレジット情報",
|
|
194
|
+
memberInfo: "メンバー情報",
|
|
195
|
+
feedmeDeliveryInfo: "Feedmeデリバリー情報",
|
|
196
|
+
deliveryInfo: "デリバリー情報",
|
|
197
|
+
pickupInfo: "ピックアップ情報"
|
|
198
|
+
},
|
|
199
|
+
preview: {
|
|
200
|
+
title: "POSレシート"
|
|
201
|
+
},
|
|
202
|
+
orderId: "注文 {slot}",
|
|
203
|
+
invoiceNo: "請求書番号",
|
|
204
|
+
date: "日付",
|
|
205
|
+
cashier: "レジ担当者",
|
|
206
|
+
tablePax: "テーブル人数",
|
|
207
|
+
total: "合計"
|
|
208
|
+
},
|
|
209
|
+
preview: {
|
|
210
|
+
fullSizePreview: "フルサイズプレビュー"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
dateRange: {
|
|
214
|
+
errors: {
|
|
215
|
+
invalidDateRanges: "最大期間は31日です"
|
|
216
|
+
},
|
|
217
|
+
predefinedRanges: {
|
|
218
|
+
today: "今日",
|
|
219
|
+
yesterday: "昨日",
|
|
220
|
+
thisWeek: "今週",
|
|
221
|
+
lastWeek: "先週",
|
|
222
|
+
last7Days: "過去7日間",
|
|
223
|
+
thisMonth: "今月",
|
|
224
|
+
lastMonth: "先月"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}, T = {
|
|
131
228
|
transaction: C
|
|
132
|
-
},
|
|
229
|
+
}, W = {
|
|
133
230
|
title: "ธุรกรรม",
|
|
134
231
|
receipt: {
|
|
135
232
|
title: "ใบเสร็จ",
|
|
@@ -172,7 +269,8 @@ const N = /* @__PURE__ */ f({
|
|
|
172
269
|
tabs: {
|
|
173
270
|
receipt: "ใบเสร็จ",
|
|
174
271
|
activity: "กิจกรรม",
|
|
175
|
-
orderRecords: "บันทึกคำสั่งซื้อ"
|
|
272
|
+
orderRecords: "บันทึกคำสั่งซื้อ",
|
|
273
|
+
transaction: "ธุรกรรม"
|
|
176
274
|
},
|
|
177
275
|
footer: {
|
|
178
276
|
creditInfo: "ข้อมูลเครดิต",
|
|
@@ -194,10 +292,24 @@ const N = /* @__PURE__ */ f({
|
|
|
194
292
|
preview: {
|
|
195
293
|
fullSizePreview: "ตรวจสอบขนาดเต็ม"
|
|
196
294
|
}
|
|
295
|
+
},
|
|
296
|
+
dateRange: {
|
|
297
|
+
errors: {
|
|
298
|
+
invalidDateRanges: "ระยะเวลาสูงสุดคือ 31 วัน"
|
|
299
|
+
},
|
|
300
|
+
predefinedRanges: {
|
|
301
|
+
today: "วันนี้",
|
|
302
|
+
yesterday: "เมื่อวาน",
|
|
303
|
+
thisWeek: "สัปดาห์นี้",
|
|
304
|
+
lastWeek: "สัปดาห์ที่แล้ว",
|
|
305
|
+
last7Days: "7 วันที่ผ่านมา",
|
|
306
|
+
thisMonth: "เดือนนี้",
|
|
307
|
+
lastMonth: "เดือนที่แล้ว"
|
|
308
|
+
}
|
|
197
309
|
}
|
|
198
|
-
}, T = {
|
|
199
|
-
transaction: M
|
|
200
310
|
}, A = {
|
|
311
|
+
transaction: W
|
|
312
|
+
}, $ = {
|
|
201
313
|
title: "交易",
|
|
202
314
|
receipt: {
|
|
203
315
|
title: "收据",
|
|
@@ -263,10 +375,24 @@ const N = /* @__PURE__ */ f({
|
|
|
263
375
|
preview: {
|
|
264
376
|
fullSizePreview: "全屏预览"
|
|
265
377
|
}
|
|
378
|
+
},
|
|
379
|
+
dateRange: {
|
|
380
|
+
errors: {
|
|
381
|
+
invalidDateRanges: "最长时长为31天"
|
|
382
|
+
},
|
|
383
|
+
predefinedRanges: {
|
|
384
|
+
today: "今天",
|
|
385
|
+
yesterday: "昨天",
|
|
386
|
+
thisWeek: "本周",
|
|
387
|
+
lastWeek: "上周",
|
|
388
|
+
last7Days: "最近7天",
|
|
389
|
+
thisMonth: "本月",
|
|
390
|
+
lastMonth: "上月"
|
|
391
|
+
}
|
|
266
392
|
}
|
|
267
393
|
}, B = {
|
|
268
|
-
transaction:
|
|
269
|
-
},
|
|
394
|
+
transaction: $
|
|
395
|
+
}, L = {
|
|
270
396
|
title: "交易",
|
|
271
397
|
receipt: {
|
|
272
398
|
title: "收據",
|
|
@@ -332,12 +458,26 @@ const N = /* @__PURE__ */ f({
|
|
|
332
458
|
preview: {
|
|
333
459
|
fullSizePreview: "全屏預覽"
|
|
334
460
|
}
|
|
461
|
+
},
|
|
462
|
+
dateRange: {
|
|
463
|
+
errors: {
|
|
464
|
+
invalidDateRanges: "最長時長為31天"
|
|
465
|
+
},
|
|
466
|
+
predefinedRanges: {
|
|
467
|
+
today: "今天",
|
|
468
|
+
yesterday: "昨天",
|
|
469
|
+
thisWeek: "本週",
|
|
470
|
+
lastWeek: "上週",
|
|
471
|
+
last7Days: "最近7天",
|
|
472
|
+
thisMonth: "本月",
|
|
473
|
+
lastMonth: "上月"
|
|
474
|
+
}
|
|
335
475
|
}
|
|
336
|
-
},
|
|
337
|
-
transaction:
|
|
476
|
+
}, O = {
|
|
477
|
+
transaction: L
|
|
338
478
|
}, U = {
|
|
339
479
|
"en-US": {
|
|
340
|
-
...
|
|
480
|
+
...z,
|
|
341
481
|
...s["en-US"]
|
|
342
482
|
},
|
|
343
483
|
"zh-CN": {
|
|
@@ -345,16 +485,20 @@ const N = /* @__PURE__ */ f({
|
|
|
345
485
|
...s["zh-CN"]
|
|
346
486
|
},
|
|
347
487
|
"th-TH": {
|
|
348
|
-
...
|
|
488
|
+
...A,
|
|
349
489
|
...s["th-TH"]
|
|
350
490
|
},
|
|
351
491
|
"zh-Hant": {
|
|
352
|
-
...
|
|
492
|
+
...O,
|
|
353
493
|
...s["zh-Hant"] || {}
|
|
494
|
+
},
|
|
495
|
+
"ja-JP": {
|
|
496
|
+
...T,
|
|
497
|
+
...s["ja-JP"] || {}
|
|
354
498
|
}
|
|
355
|
-
},
|
|
499
|
+
}, J = _(() => import("./App-TuE4ibjS.js").then((e) => e.A));
|
|
356
500
|
export {
|
|
357
|
-
|
|
358
|
-
|
|
501
|
+
J as F,
|
|
502
|
+
S as _,
|
|
359
503
|
U as i
|
|
360
504
|
};
|
package/dist/app.js
CHANGED
|
@@ -281,6 +281,20 @@ export declare const i18nMessages: {
|
|
|
281
281
|
fullSizePreview: string;
|
|
282
282
|
};
|
|
283
283
|
};
|
|
284
|
+
dateRange: {
|
|
285
|
+
errors: {
|
|
286
|
+
invalidDateRanges: string;
|
|
287
|
+
};
|
|
288
|
+
predefinedRanges: {
|
|
289
|
+
today: string;
|
|
290
|
+
yesterday: string;
|
|
291
|
+
thisWeek: string;
|
|
292
|
+
lastWeek: string;
|
|
293
|
+
last7Days: string;
|
|
294
|
+
thisMonth: string;
|
|
295
|
+
lastMonth: string;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
284
298
|
};
|
|
285
299
|
};
|
|
286
300
|
"zh-CN": {
|
|
@@ -564,6 +578,20 @@ export declare const i18nMessages: {
|
|
|
564
578
|
fullSizePreview: string;
|
|
565
579
|
};
|
|
566
580
|
};
|
|
581
|
+
dateRange: {
|
|
582
|
+
errors: {
|
|
583
|
+
invalidDateRanges: string;
|
|
584
|
+
};
|
|
585
|
+
predefinedRanges: {
|
|
586
|
+
today: string;
|
|
587
|
+
yesterday: string;
|
|
588
|
+
thisWeek: string;
|
|
589
|
+
lastWeek: string;
|
|
590
|
+
last7Days: string;
|
|
591
|
+
thisMonth: string;
|
|
592
|
+
lastMonth: string;
|
|
593
|
+
};
|
|
594
|
+
};
|
|
567
595
|
};
|
|
568
596
|
};
|
|
569
597
|
"th-TH": {
|
|
@@ -824,6 +852,7 @@ export declare const i18nMessages: {
|
|
|
824
852
|
receipt: string;
|
|
825
853
|
activity: string;
|
|
826
854
|
orderRecords: string;
|
|
855
|
+
transaction: string;
|
|
827
856
|
};
|
|
828
857
|
footer: {
|
|
829
858
|
creditInfo: string;
|
|
@@ -846,8 +875,23 @@ export declare const i18nMessages: {
|
|
|
846
875
|
fullSizePreview: string;
|
|
847
876
|
};
|
|
848
877
|
};
|
|
878
|
+
dateRange: {
|
|
879
|
+
errors: {
|
|
880
|
+
invalidDateRanges: string;
|
|
881
|
+
};
|
|
882
|
+
predefinedRanges: {
|
|
883
|
+
today: string;
|
|
884
|
+
yesterday: string;
|
|
885
|
+
thisWeek: string;
|
|
886
|
+
lastWeek: string;
|
|
887
|
+
last7Days: string;
|
|
888
|
+
thisMonth: string;
|
|
889
|
+
lastMonth: string;
|
|
890
|
+
};
|
|
891
|
+
};
|
|
849
892
|
};
|
|
850
893
|
};
|
|
851
894
|
"zh-Hant": any;
|
|
895
|
+
"ja-JP": any;
|
|
852
896
|
};
|
|
853
897
|
export declare const FmApp: any;
|