@feedmepos/mf-transaction 0.0.3-beta → 0.0.5-2.beta-0

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.
Files changed (151) hide show
  1. package/README.md +7 -28
  2. package/dist/App-CQTRq8SY.js +208521 -0
  3. package/dist/app-CBundCUB.js +348 -0
  4. package/dist/app.js +4 -3
  5. package/dist/{src → apps/mf-transaction/src}/App.vue.d.ts +1 -1
  6. package/dist/{src → apps/mf-transaction/src}/Entry.vue.d.ts +1 -1
  7. package/dist/apps/mf-transaction/src/api/bill/index.d.ts +5 -0
  8. package/dist/{src → apps/mf-transaction/src}/api/transaction/index.d.ts +7 -5
  9. package/dist/apps/mf-transaction/src/app.d.ts +844 -0
  10. package/dist/{src → apps/mf-transaction/src}/composables/dateRange.d.ts +1 -0
  11. package/dist/apps/mf-transaction/src/helpers/canvas.d.ts +11 -0
  12. package/dist/{src → apps/mf-transaction/src}/helpers/utils.d.ts +1 -1
  13. package/dist/apps/mf-transaction/src/types/item.interface.d.ts +187 -0
  14. package/dist/{src → apps/mf-transaction/src}/views/receipt/ExportReceipt.vue.d.ts +4 -4
  15. package/dist/{src → apps/mf-transaction/src}/views/receipt/Receipt.vue.d.ts +1 -1
  16. package/dist/{src → apps/mf-transaction/src}/views/receipt/detail/ReceiptDetail.vue.d.ts +4 -4
  17. package/dist/apps/mf-transaction/src/views/receipt/detail/activity/ReceiptActivities.vue.d.ts +14 -0
  18. package/dist/apps/mf-transaction/src/views/receipt/detail/info/InfoBasic.vue.d.ts +20 -0
  19. package/dist/{src → apps/mf-transaction/src}/views/receipt/detail/info/InfoRow.vue.d.ts +4 -4
  20. package/dist/apps/mf-transaction/src/views/receipt/detail/info/ReceiptInfo.vue.d.ts +14 -0
  21. package/dist/apps/mf-transaction/src/views/receipt/detail/info/ReceiptItem.vue.d.ts +14 -0
  22. package/dist/apps/mf-transaction/src/views/receipt/detail/info/ReceiptPreview.vue.d.ts +14 -0
  23. package/dist/{src → apps/mf-transaction/src}/views/receipt/detail/info/ReceiptSubItem.vue.d.ts +5 -5
  24. package/dist/apps/mf-transaction/src/views/receipt/detail/item/ReceiptGroupItem.vue.d.ts +14 -0
  25. package/dist/apps/mf-transaction/src/views/receipt/detail/transaction/ReceiptTransaction.vue.d.ts +14 -0
  26. package/dist/{src → apps/mf-transaction/src}/views/receipt/receipt.d.ts +10 -7
  27. package/dist/apps/mf-transaction/tsconfig.app.tsbuildinfo +1 -0
  28. package/dist/{index.es-ChYubkZJ.js → index.es-K0vZLW_s.js} +1342 -1358
  29. package/dist/packages/shared/src/api/index.d.ts +3 -0
  30. package/dist/packages/shared/src/api/public.d.ts +5 -0
  31. package/dist/packages/shared/src/components/button/ResponsiveFabButton.vue.d.ts +12 -0
  32. package/dist/packages/shared/src/components/dialog/ConfirmActionDialog.vue.d.ts +30 -0
  33. package/dist/packages/shared/src/components/form/DynamicSheet.vue.d.ts +19 -0
  34. package/dist/packages/shared/src/components/form/FormLabel.vue.d.ts +33 -0
  35. package/dist/packages/shared/src/components/form/ImageDropField.vue.d.ts +46 -0
  36. package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +121 -0
  37. package/dist/packages/shared/src/components/info/CustomAttributeChip.vue.d.ts +29 -0
  38. package/dist/packages/shared/src/components/info/InfoBasic.vue.d.ts +20 -0
  39. package/dist/packages/shared/src/components/info/Summary.vue.d.ts +19 -0
  40. package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +36 -0
  41. package/dist/packages/shared/src/components/layout/FormColumn.vue.d.ts +21 -0
  42. package/dist/packages/shared/src/components/layout/FormItem.vue.d.ts +23 -0
  43. package/dist/packages/shared/src/components/layout/FormRow.vue.d.ts +9 -0
  44. package/dist/packages/shared/src/components/layout/FormSection.vue.d.ts +24 -0
  45. package/dist/packages/shared/src/components/layout/FullScreenForm.vue.d.ts +45 -0
  46. package/dist/packages/shared/src/components/layout/FullWrapper.vue.d.ts +9 -0
  47. package/dist/{src/views/online/OnlineTransaction.vue.d.ts → packages/shared/src/components/layout/HorizontalSplitter.vue.d.ts} +1 -1
  48. package/dist/packages/shared/src/components/layout/Indent.vue.d.ts +9 -0
  49. package/dist/{src/components/Navigator.vue.d.ts → packages/shared/src/components/layout/ListLayout.vue.d.ts} +1 -1
  50. package/dist/packages/shared/src/components/layout/LottieAnimation.vue.d.ts +39 -0
  51. package/dist/packages/shared/src/components/layout/MobileXScrollable.vue.d.ts +9 -0
  52. package/dist/packages/shared/src/components/layout/PageLayout.vue.d.ts +24 -0
  53. package/dist/packages/shared/src/components/loading/AppLoading.vue.d.ts +20 -0
  54. package/dist/packages/shared/src/components/loading/PageLoading.vue.d.ts +2 -0
  55. package/dist/packages/shared/src/components/loading/index.d.ts +1 -0
  56. package/dist/packages/shared/src/components/map/GoogleMap.vue.d.ts +79 -0
  57. package/dist/packages/shared/src/components/menu/BottomSheetMenu.vue.d.ts +10 -0
  58. package/dist/packages/shared/src/components/menu/BottomSheetMenuItem.vue.d.ts +24 -0
  59. package/dist/packages/shared/src/components/menu/ResponsiveContextMenu.vue.d.ts +22 -0
  60. package/dist/packages/shared/src/components/table/EmptyDataTemplate/Icon.vue.d.ts +2 -0
  61. package/dist/packages/shared/src/components/table/EmptyDataTemplate/index.d.ts +1 -0
  62. package/dist/packages/shared/src/components/table/EmptyDataTemplate/index.vue.d.ts +27 -0
  63. package/dist/packages/shared/src/components/types.d.ts +95 -0
  64. package/dist/packages/shared/src/composable/clipboard.d.ts +3 -0
  65. package/dist/packages/shared/src/composable/dateRange.d.ts +18 -0
  66. package/dist/packages/shared/src/composable/discardConfirm.d.ts +1 -0
  67. package/dist/packages/shared/src/composable/elementPosition.d.ts +17 -0
  68. package/dist/packages/shared/src/composable/filterSelector.d.ts +12 -0
  69. package/dist/packages/shared/src/composable/loading.d.ts +29 -0
  70. package/dist/packages/shared/src/composable/prompt.d.ts +9 -0
  71. package/dist/packages/shared/src/composable/search.d.ts +5 -0
  72. package/dist/packages/shared/src/composable/sheet.d.ts +17 -0
  73. package/dist/packages/shared/src/feature/featureMinVersion.d.ts +34 -0
  74. package/dist/packages/shared/src/helpers/actionButton.d.ts +8 -0
  75. package/dist/packages/shared/src/helpers/browser.d.ts +1 -0
  76. package/dist/packages/shared/src/helpers/contextMenu.d.ts +13 -0
  77. package/dist/packages/shared/src/helpers/createComponent.d.ts +7 -0
  78. package/dist/packages/shared/src/helpers/createForm.d.ts +2 -0
  79. package/dist/packages/shared/src/helpers/iteration.d.ts +11 -0
  80. package/dist/packages/shared/src/helpers/map.d.ts +370 -0
  81. package/dist/packages/shared/src/helpers/object.d.ts +6 -0
  82. package/dist/packages/shared/src/helpers/rules.d.ts +1 -0
  83. package/dist/packages/shared/src/helpers/string.d.ts +12 -0
  84. package/dist/packages/shared/src/permission/posPermission.d.ts +6 -0
  85. package/dist/packages/shared/src/stores/app.d.ts +217 -0
  86. package/dist/packages/shared/src/types/types.d.ts +5 -0
  87. package/dist/{purify.es-CFivMm59.js → purify.es-CKk_t3XZ.js} +57 -57
  88. package/package.json +35 -34
  89. package/dist/app-BB-LU4yE.js +0 -144269
  90. package/dist/html2canvas.esm-DgRhIRvu.js +0 -4870
  91. package/dist/src/api/bill/index.d.ts +0 -3
  92. package/dist/src/api/employee/index.d.ts +0 -13
  93. package/dist/src/api/inventory/index.d.ts +0 -5
  94. package/dist/src/api/payment/index.d.ts +0 -3
  95. package/dist/src/api/role/index.d.ts +0 -9
  96. package/dist/src/api/team/index.d.ts +0 -9
  97. package/dist/src/api/timesheet/index.d.ts +0 -6
  98. package/dist/src/api/user/index.d.ts +0 -6
  99. package/dist/src/app.d.ts +0 -2
  100. package/dist/src/components/AppForm.vue.d.ts +0 -41
  101. package/dist/src/components/CheckboxInput.vue.d.ts +0 -140
  102. package/dist/src/components/FilterDialog.vue.d.ts +0 -13
  103. package/dist/src/components/RestaurantSelector.vue.d.ts +0 -6
  104. package/dist/src/helpers/rule.d.ts +0 -29
  105. package/dist/src/router/index.d.ts +0 -2
  106. package/dist/src/router/shared.d.ts +0 -4
  107. package/dist/src/stores/employee.d.ts +0 -539
  108. package/dist/src/stores/role.d.ts +0 -205
  109. package/dist/src/stores/timesheet.d.ts +0 -253
  110. package/dist/src/types/employee.d.ts +0 -29
  111. package/dist/src/types/permission.d.ts +0 -68
  112. package/dist/src/types/role.d.ts +0 -37
  113. package/dist/src/types/team.d.ts +0 -47
  114. package/dist/src/types/timesheet.d.ts +0 -16
  115. package/dist/src/views/online/PaymentTable.vue.d.ts +0 -112
  116. package/dist/src/views/online/SettlementTable.vue.d.ts +0 -66
  117. package/dist/src/views/online/detail/FmSettlement.vue.d.ts +0 -32
  118. package/dist/src/views/online/detail/RmsSettlement.vue.d.ts +0 -22
  119. package/dist/src/views/online/detail/SettlementDetail.vue.d.ts +0 -5
  120. package/dist/src/views/online/settlement.d.ts +0 -52
  121. package/dist/src/views/receipt/detail/activity/ReceiptActivities.vue.d.ts +0 -14
  122. package/dist/src/views/receipt/detail/info/InfoBasic.vue.d.ts +0 -20
  123. package/dist/src/views/receipt/detail/info/ReceiptInfo.vue.d.ts +0 -14
  124. package/dist/src/views/receipt/detail/info/ReceiptItem.vue.d.ts +0 -14
  125. package/dist/src/views/receipt/detail/info/ReceiptPreview.vue.d.ts +0 -14
  126. package/dist/src/views/receipt/detail/item/ReceiptGroupItem.vue.d.ts +0 -14
  127. package/dist/src/views/team/TeamMemberList.vue.d.ts +0 -2
  128. package/dist/src/views/team/components/AddMemberForm.vue.d.ts +0 -40
  129. package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +0 -38
  130. package/dist/src/views/team/components/PortalUserSearcher.vue.d.ts +0 -40
  131. package/dist/src/views/team/components/TeamMemberBasePermission.vue.d.ts +0 -36
  132. package/dist/src/views/team/components/TeamMemberConditionPermission.vue.d.ts +0 -50
  133. package/dist/src/views/team/components/TeamMemberMasterUser.vue.d.ts +0 -836
  134. package/dist/src/views/team/components/TeamMemberRolePermission.vue.d.ts +0 -46
  135. package/dist/style.css +0 -1
  136. package/dist/tsconfig.app.tsbuildinfo +0 -1
  137. /package/dist/{src → apps/mf-transaction/src}/api/index.d.ts +0 -0
  138. /package/dist/{src → apps/mf-transaction/src}/composables/message.d.ts +0 -0
  139. /package/dist/{src → apps/mf-transaction/src}/helpers/component.d.ts +0 -0
  140. /package/dist/{src → apps/mf-transaction/src}/helpers/createComponent.d.ts +0 -0
  141. /package/dist/{src → apps/mf-transaction/src}/helpers/createForm.d.ts +0 -0
  142. /package/dist/{src → apps/mf-transaction/src}/helpers/export.d.ts +0 -0
  143. /package/dist/{src → apps/mf-transaction/src}/helpers/idToDate.d.ts +0 -0
  144. /package/dist/{src → apps/mf-transaction/src}/helpers/iteration.d.ts +0 -0
  145. /package/dist/{src → apps/mf-transaction/src}/helpers/random.d.ts +0 -0
  146. /package/dist/{src → apps/mf-transaction/src}/helpers/string.d.ts +0 -0
  147. /package/dist/{src → apps/mf-transaction/src}/helpers/time.d.ts +0 -0
  148. /package/dist/{src → apps/mf-transaction/src}/main.d.ts +0 -0
  149. /package/dist/{src → apps/mf-transaction/src}/types/restaurant.d.ts +0 -0
  150. /package/dist/{src → apps/mf-transaction/src}/types/transaction.d.ts +0 -0
  151. /package/dist/{src → apps/mf-transaction/src}/views/receipt/form.d.ts +0 -0
@@ -0,0 +1,348 @@
1
+ import { i18nMessages as s } from "@feedmepos/mf-kitchen";
2
+ import { ref as d, watch as l, nextTick as p, onMounted as m, onBeforeUnmount as v, defineComponent as f, computed as h, createElementBlock as P, openBlock as u, normalizeStyle as x, renderSlot as g, resolveComponent as y, createBlock as b, withCtx as w, createElementVNode as I, createVNode as F, defineAsyncComponent as D } from "vue";
3
+ import { useBreakpoints as _ } from "@feedmepos/ui-library";
4
+ function S(e, i) {
5
+ const o = d({ top: 0, bottom: 0, left: 0, right: 0 });
6
+ function t() {
7
+ if (e.value) {
8
+ const r = e.value.getBoundingClientRect();
9
+ o.value = {
10
+ top: r.top,
11
+ bottom: r.bottom,
12
+ left: r.left,
13
+ right: r.right
14
+ };
15
+ }
16
+ }
17
+ return l(i, async () => {
18
+ await p(), t();
19
+ }), l(e, async (r) => {
20
+ r && (await p(), t());
21
+ }), m(() => {
22
+ window.addEventListener("resize", t);
23
+ }), v(() => {
24
+ window.removeEventListener("resize", t);
25
+ }), o;
26
+ }
27
+ const E = /* @__PURE__ */ f({
28
+ __name: "FullWrapper",
29
+ setup(e) {
30
+ const i = _(), o = d(null), t = S(o), r = h(() => {
31
+ var c;
32
+ const a = i.isAtMost("sm") ? 56 : 0;
33
+ return {
34
+ height: `calc(100dvh - ${((c = t.value) == null ? void 0 : c.top) + 24 + a}px)`
35
+ };
36
+ });
37
+ return (n, a) => (u(), P("div", {
38
+ ref_key: "wrapper",
39
+ ref: o,
40
+ style: x(r.value)
41
+ }, [
42
+ g(n.$slots, "default")
43
+ ], 4));
44
+ }
45
+ }), R = { class: "flex justify-center items-center h-full w-full" }, z = /* @__PURE__ */ f({
46
+ __name: "PageLoading",
47
+ setup(e) {
48
+ return (i, o) => {
49
+ const t = y("FmCircularProgress");
50
+ return u(), b(E, null, {
51
+ default: w(() => [
52
+ I("div", R, [
53
+ F(t, { size: "xl" })
54
+ ])
55
+ ]),
56
+ _: 1
57
+ });
58
+ };
59
+ }
60
+ }), C = (e) => D({
61
+ loader: e,
62
+ loadingComponent: z
63
+ }), N = {
64
+ title: "Transaction",
65
+ receipt: {
66
+ title: "Receipt",
67
+ actions: {
68
+ viewDetails: "View details",
69
+ refreshPayment: "Refresh payment"
70
+ },
71
+ export: {
72
+ pdf: "Export as PDF",
73
+ excel: "Export as Excel",
74
+ noReceipts: "No receipts to export",
75
+ success: "Receipts exported",
76
+ export: "Export",
77
+ starting: "Starting export of {count} receipts...",
78
+ progress: "Processing receipts {progress}",
79
+ pdfSuccess: "PDF exported successfully! Downloading {filename}.pdf",
80
+ pdfFailed: "Export failed: {error}",
81
+ defaultError: "Failed to export PDF"
82
+ },
83
+ columns: {
84
+ receipt: "Receipt",
85
+ table: "Table",
86
+ paymentMethod: "Payment method",
87
+ createdAt: "Created at",
88
+ completed: "Completed",
89
+ status: "Status",
90
+ total: "Total"
91
+ },
92
+ search: {
93
+ placeholder: "Search receipts"
94
+ },
95
+ labels: {
96
+ receipt: "Receipt: {seqNumber}"
97
+ },
98
+ detail: {
99
+ title: "Receipt detail",
100
+ tabs: {
101
+ receipt: "Receipt",
102
+ activity: "Activity",
103
+ orderRecords: "Order records",
104
+ transaction: "Transactions"
105
+ },
106
+ footer: {
107
+ creditInfo: "Credit Info",
108
+ memberInfo: "Member Info",
109
+ feedmeDeliveryInfo: "Feedme Delivery Info",
110
+ deliveryInfo: "Delivery Info",
111
+ pickupInfo: "Pickup Info"
112
+ },
113
+ preview: {
114
+ title: "POS Receipt"
115
+ },
116
+ orderId: "Order {slot}",
117
+ invoiceNo: "Invoice No",
118
+ date: "Date",
119
+ cashier: "Cashier",
120
+ tablePax: "Table pax",
121
+ total: "Total"
122
+ },
123
+ preview: {
124
+ fullSizePreview: "Full size preview"
125
+ }
126
+ }
127
+ }, k = {
128
+ transaction: N
129
+ }, M = {
130
+ title: "ธุรกรรม",
131
+ receipt: {
132
+ title: "ใบเสร็จ",
133
+ actions: {
134
+ viewDetails: "ดูรายละเอียด",
135
+ refreshPayment: "รีเฟรชการชำระเงิน"
136
+ },
137
+ export: {
138
+ pdf: "ส่งออกเป็น PDF",
139
+ excel: "ส่งออกเป็น Excel",
140
+ noReceipts: "ไม่มีใบเสร็จที่จะส่งออก",
141
+ success: "ส่งออกใบเสร็จ",
142
+ export: "ส่งออก",
143
+ starting: "เริ่มต้นส่งออกใบเสร็จ {count} ใบ...",
144
+ progress: "กำลังประมวลผลใบเสร็จ {progress}",
145
+ pdfSuccess: "ส่งออก PDF สำเร็จ! กำลังดาวน์โหลด {filename}.pdf",
146
+ pdfFailed: "การส่งออกล้มเหลว: {error}",
147
+ defaultError: "ส่งออก PDF ล้มเหลว"
148
+ },
149
+ columns: {
150
+ receipt: "ใบเสร็จ",
151
+ table: "ตาราง",
152
+ paymentMethod: "วิธีการชำระเงิน",
153
+ createdAt: "สร้างเมื่อ",
154
+ completed: "เสร็จสมบูรณ์",
155
+ status: "สถานะ",
156
+ total: "รวม"
157
+ },
158
+ search: {
159
+ placeholder: "ค้นหาใบเสร็จ"
160
+ },
161
+ labels: {
162
+ receipt: "ใบเสร็จ: {seqNumber}"
163
+ },
164
+ detail: {
165
+ title: "รายละเอียดใบเสร็จ",
166
+ tabs: {
167
+ receipt: "ใบเสร็จ",
168
+ activity: "กิจกรรม",
169
+ orderRecords: "บันทึกคำสั่งซื้อ"
170
+ },
171
+ footer: {
172
+ creditInfo: "ข้อมูลเครดิต",
173
+ memberInfo: "ข้อมูลสมาชิก",
174
+ feedmeDeliveryInfo: "ข้อมูลการจัดส่ง Feedme",
175
+ deliveryInfo: "ข้อมูลการจัดส่ง",
176
+ pickupInfo: "ข้อมูลการรับสินค้า"
177
+ },
178
+ preview: {
179
+ title: "ใบเสร็จ POS"
180
+ },
181
+ orderId: "คำสั่งซื้อ {slot}",
182
+ invoiceNo: "หมายเลขใบแจ้งหนี้",
183
+ date: "วันที่",
184
+ cashier: "แคชเชียร์",
185
+ tablePax: "จำนวนลูกค้าที่โต๊ะ",
186
+ total: "รวม"
187
+ },
188
+ preview: {
189
+ fullSizePreview: "ตรวจสอบขนาดเต็ม"
190
+ }
191
+ }
192
+ }, T = {
193
+ transaction: M
194
+ }, A = {
195
+ title: "交易",
196
+ receipt: {
197
+ title: "收据",
198
+ actions: {
199
+ viewDetails: "查看详情",
200
+ refreshPayment: "刷新支付"
201
+ },
202
+ export: {
203
+ pdf: "导出为 PDF",
204
+ excel: "导出为 Excel",
205
+ noReceipts: "没有收据可导出",
206
+ success: "收据已导出",
207
+ export: "导出",
208
+ starting: "开始导出 {count} 张收据...",
209
+ progress: "正在处理收据 {progress}",
210
+ pdfSuccess: "PDF 导出成功!正在下载 {filename}.pdf",
211
+ pdfFailed: "导出失败:{error}",
212
+ defaultError: "导出 PDF 失败"
213
+ },
214
+ columns: {
215
+ receipt: "收据",
216
+ table: "桌号",
217
+ paymentMethod: "支付方式",
218
+ createdAt: "创建时间",
219
+ completed: "完成",
220
+ status: "状态",
221
+ total: "总计"
222
+ },
223
+ search: {
224
+ placeholder: "搜索收据"
225
+ },
226
+ labels: {
227
+ receipt: "收据: {seqNumber}"
228
+ },
229
+ detail: {
230
+ title: "收据详情",
231
+ tabs: {
232
+ receipt: "收据",
233
+ activity: "活动",
234
+ orderRecords: "订单记录",
235
+ transaction: "交易记录"
236
+ },
237
+ footer: {
238
+ creditInfo: "积分信息",
239
+ memberInfo: "会员信息",
240
+ feedmeDeliveryInfo: "Feedme 配送信息",
241
+ deliveryInfo: "配送信息",
242
+ pickupInfo: "自取信息"
243
+ },
244
+ preview: {
245
+ title: "POS 收据"
246
+ },
247
+ orderId: "订单 {slot}",
248
+ invoiceNo: "发票号",
249
+ date: "日期",
250
+ cashier: "收银员",
251
+ tablePax: "人数",
252
+ total: "总计"
253
+ },
254
+ preview: {
255
+ fullSizePreview: "全屏预览"
256
+ }
257
+ }
258
+ }, $ = {
259
+ transaction: A
260
+ }, B = {
261
+ title: "交易",
262
+ receipt: {
263
+ title: "收據",
264
+ actions: {
265
+ viewDetails: "查看詳情",
266
+ refreshPayment: "刷新支付"
267
+ },
268
+ export: {
269
+ pdf: "導出為 PDF",
270
+ excel: "導出為 Excel",
271
+ noReceipts: "沒有收據可導出",
272
+ success: "收據已導出",
273
+ export: "導出",
274
+ starting: "開始導出 {count} 張收據...",
275
+ progress: "正在處理收據 {progress}",
276
+ pdfSuccess: "PDF 導出成功!正在下載 {filename}.pdf",
277
+ pdfFailed: "導出失敗:{error}",
278
+ defaultError: "導出 PDF 失敗"
279
+ },
280
+ columns: {
281
+ receipt: "收據",
282
+ table: "桌號",
283
+ paymentMethod: "支付方式",
284
+ createdAt: "創建時間",
285
+ completed: "完成",
286
+ status: "狀態",
287
+ total: "總計"
288
+ },
289
+ search: {
290
+ placeholder: "搜索收據"
291
+ },
292
+ labels: {
293
+ receipt: "收據: {seqNumber}"
294
+ },
295
+ detail: {
296
+ title: "收據詳情",
297
+ tabs: {
298
+ receipt: "收據",
299
+ activity: "活動",
300
+ orderRecords: "訂單記錄",
301
+ transaction: "交易記錄"
302
+ },
303
+ footer: {
304
+ creditInfo: "積分信息",
305
+ memberInfo: "會員信息",
306
+ feedmeDeliveryInfo: "Feedme 配送信息",
307
+ deliveryInfo: "配送信息",
308
+ pickupInfo: "自取信息"
309
+ },
310
+ preview: {
311
+ title: "POS 收據"
312
+ },
313
+ orderId: "訂單 {slot}",
314
+ invoiceNo: "發票號",
315
+ date: "日期",
316
+ cashier: "收銀員",
317
+ tablePax: "人數",
318
+ total: "總計"
319
+ },
320
+ preview: {
321
+ fullSizePreview: "全屏預覽"
322
+ }
323
+ }
324
+ }, H = {
325
+ transaction: B
326
+ }, U = {
327
+ "en-US": {
328
+ ...k,
329
+ ...s["en-US"]
330
+ },
331
+ "zh-CN": {
332
+ ...$,
333
+ ...s["zh-CN"]
334
+ },
335
+ "th-TH": {
336
+ ...T,
337
+ ...s["th-TH"]
338
+ },
339
+ "zh-Hant": {
340
+ ...H,
341
+ ...s["zh-Hant"] || {}
342
+ }
343
+ }, V = C(() => import("./App-CQTRq8SY.js").then((e) => e.A));
344
+ export {
345
+ V as F,
346
+ E as _,
347
+ U as i
348
+ };
package/dist/app.js CHANGED
@@ -1,5 +1,6 @@
1
- import { a as o, r as p } from "./app-BB-LU4yE.js";
1
+ import "@feedmepos/mf-kitchen";
2
+ import { F as e, i } from "./app-CBundCUB.js";
2
3
  export {
3
- o as FmApp,
4
- p as routers
4
+ e as FmApp,
5
+ i as i18nMessages
5
6
  };
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
2
  export default _default;
@@ -0,0 +1,5 @@
1
+ export declare const billApi: {
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>;
5
+ };
@@ -1,15 +1,17 @@
1
- import type { FdoBill } from "@feedmepos/core-dart";
2
- import { type PaymentTransactionWithoutChildrenDtoOutput, RMSSettlementDto, type SettlementDtoOutput } from '@feedmepos/payment-model';
1
+ import { FdtoBill } from "@feedmepos/core/entity";
2
+ import type { PaymentTransactionWithoutChildrenDtoOutput, RMSSettlementDto, SettlementDtoOutput } from "@feedmepos/payment-entity";
3
+ import { type EntityDocument } from "~shared/types/types";
3
4
  import { TransactionStatus } from "@/types/transaction";
4
5
  export type PaymentTransactionWithoutChildrenWithSeqNumberDtoOutput = PaymentTransactionWithoutChildrenDtoOutput & {
5
6
  seqNumber?: string;
6
7
  };
8
+ export type Bill = FdtoBill & EntityDocument;
7
9
  export declare const transactionApi: {
8
10
  readReceipts(restaurantId: string, { start, end }: {
9
11
  start: string;
10
12
  end: string;
11
- }): Promise<FdoBill[]>;
12
- readReceipt(restaurantId: string, receiptId: string): Promise<FdoBill | undefined>;
13
+ }): Promise<Bill[]>;
14
+ readReceipt(restaurantId: string, receiptId: string): Promise<Bill | undefined>;
13
15
  readRestaurantOnlinePayments(restaurantId: string, dateRange: {
14
16
  start: string;
15
17
  end: string;
@@ -29,4 +31,4 @@ export declare const transactionApi: {
29
31
  end: string;
30
32
  }): Promise<any>;
31
33
  };
32
- export declare function getStatusColor(status: TransactionStatus): "warning" | "negative" | "positive" | "grey";
34
+ export declare function getStatusColor(status: TransactionStatus): "negative" | "warning" | "positive" | "grey";