@feedmepos/mf-payment 0.0.0-beta.21 → 0.0.0-beta.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. package/dist/{PayoutAccount-Fg0fD2z1.js → PayoutAccount-BGSq2B6o.js} +3 -3
  2. package/dist/{PayoutAccount-DEEuJq8a.js → PayoutAccount-C3OOz1oi.js} +5 -5
  3. package/dist/{PayoutAccountSetting-D6rCau39.js → PayoutAccountSetting-WxLdT6mv.js} +3 -3
  4. package/dist/{Settlement-KxjeLkyq.js → Settlement-CKxNAHAH.js} +3 -3
  5. package/dist/{Settlement-DO3KQc7V.js → Settlement-DQcrZNvo.js} +3 -3
  6. package/dist/{SettlementTransactions-BHm0Xr73.js → SettlementTransactions-CUG4ePP_.js} +4 -4
  7. package/dist/{SettlementTransactions-D8SewaiK.js → SettlementTransactions-V5fjLv7H.js} +4 -4
  8. package/dist/{Terminal-CG3mIv6Z.js → Terminal-C_G_AuJZ.js} +4 -4
  9. package/dist/{TerminalSetting-CIFHaoHX.js → TerminalSetting-BuAaL5qK.js} +3 -3
  10. package/dist/TerminalTransaction-D4c0ivQg.js +241 -0
  11. package/dist/{TerminalTransaction-B2PFfPKP.js → TerminalTransaction-DbjVvH2P.js} +60 -59
  12. package/dist/{Transaction-D7ZuZ-IB.js → Transaction-MrC2wj9k.js} +4 -4
  13. package/dist/{Transaction-CM_VKdEN.js → Transaction-h2YrauW3.js} +4 -4
  14. package/dist/api/terminal-transaction/index.d.ts +1 -1
  15. package/dist/app.js +13 -13
  16. package/dist/{assets-CLiVU4As.js → assets-Cj6QBVPU.js} +1 -1
  17. package/dist/{index-eVOVYNBC.js → index-C58XD8h3.js} +1 -1
  18. package/dist/{index-DVSsAdF3.js → index-CvMai9eW.js} +2 -2
  19. package/dist/{index-ByCQqfan.js → index-DA_XRfnd.js} +1 -1
  20. package/dist/{index-CpIkc_Lq.js → index-DN6pSWL_.js} +1 -1
  21. package/dist/{index-DvsSYfvP.js → index-DYnNx4du.js} +1 -1
  22. package/dist/{index-CkIbCIHJ.js → index-De4-LJjg.js} +2 -0
  23. package/dist/{index.vue_vue_type_script_setup_true_lang-sNgZ-dwX.js → index.vue_vue_type_script_setup_true_lang-J6BwjC-p.js} +1 -1
  24. package/dist/package.json +1 -1
  25. package/dist/{payout-account-Bj0y4ywE.js → payout-account-BBG-e-NS.js} +175 -175
  26. package/dist/{transaction-C1MtaXOd.js → transaction-BmxtNt6_.js} +1 -1
  27. package/dist/tsconfig.app.tsbuildinfo +1 -1
  28. package/package.json +1 -1
  29. package/dist/TerminalTransaction-CnfWv95d.js +0 -230
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "0.0.0-beta.21",
3
+ "version": "0.0.0-beta.22",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,230 +0,0 @@
1
- import { defineComponent as T, openBlock as g, createElementBlock as E, unref as r, resolveComponent as d, createBlock as x, normalizeClass as v, withCtx as w, createElementVNode as p, toDisplayString as b, ref as D, watch as h, createVNode as i, isRef as f, h as N } from "vue";
2
- import { c as o } from "./index-CkIbCIHJ.js";
3
- import { h as A } from "./moment-h96o7c8I.js";
4
- import { u as k } from "./index-ByCQqfan.js";
5
- import { _ as K } from "./index.vue_vue_type_script_setup_true_lang-sNgZ-dwX.js";
6
- import { _ as V } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
7
- import "@feedmepos/ui-library";
8
- import { g as M } from "./assets-CLiVU4As.js";
9
- import { t as B } from "./index-DVSsAdF3.js";
10
- import { d as L } from "./dinero-CIVmXLL-.js";
11
- const $ = ["src"], P = /* @__PURE__ */ T({
12
- __name: "Gateway",
13
- props: {
14
- row: {},
15
- data: {}
16
- },
17
- setup(_) {
18
- return (a, n) => (g(), E("img", {
19
- class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
20
- src: r(M)(a.row.original.gateway)
21
- }, null, 8, $));
22
- }
23
- }), U = /* @__PURE__ */ T({
24
- __name: "Status",
25
- props: {
26
- row: {},
27
- data: {}
28
- },
29
- setup(_) {
30
- const a = _;
31
- function n() {
32
- return a.data === o.F_TERMINAL_TRANSACTION_ACTION.Enum.process ? "!w-[16px] !h-[16px] bg-yellow-400" : a.data === o.F_TERMINAL_TRANSACTION_ACTION.Enum.failed ? "!w-[16px] !h-[16px] bg-red-400" : a.data === o.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
33
- }
34
- return (s, c) => {
35
- const m = d("FmBadge");
36
- return g(), x(m, {
37
- inline: "",
38
- class: v(n())
39
- }, {
40
- default: w(() => [
41
- p("div", null, b(s.data.toUpperCase()), 1)
42
- ]),
43
- _: 1
44
- }, 8, ["class"]);
45
- };
46
- }
47
- }), Y = { class: "flex justify-between mb-6 items-start" }, G = { class: "flex space-x-4 items-start" }, W = { class: "flex space-x-4" }, ae = /* @__PURE__ */ T({
48
- __name: "TerminalTransaction",
49
- setup(_) {
50
- const a = D(), { dateRange: n, status: s, searchKey: c } = k({
51
- searchKey: "",
52
- status: [o.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
53
- dateRange: {
54
- startDate: A().startOf("day").toISOString(),
55
- endDate: A().endOf("day").toISOString()
56
- }
57
- });
58
- h([n, s], () => {
59
- var e;
60
- return (e = a.value) == null ? void 0 : e.reset();
61
- });
62
- let m;
63
- h(c, async () => {
64
- m && clearTimeout(m), m = setTimeout(
65
- () => {
66
- var e;
67
- return (e = a.value) == null ? void 0 : e.reset();
68
- },
69
- 700
70
- );
71
- });
72
- const y = [
73
- {
74
- label: "Success",
75
- value: o.F_TERMINAL_TRANSACTION_ACTION.Enum.success
76
- },
77
- {
78
- label: "Refunded",
79
- value: o.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded
80
- },
81
- {
82
- label: "Process",
83
- value: o.F_TERMINAL_TRANSACTION_ACTION.Enum.process
84
- },
85
- {
86
- label: "Failed",
87
- value: o.F_TERMINAL_TRANSACTION_ACTION.Enum.failed
88
- }
89
- ], R = function(e) {
90
- const t = e;
91
- let u = "-";
92
- return t.details.amount && (u = L(t.details.amount).toFormat("$0.00")), {
93
- id: e._id,
94
- refId: e.refId,
95
- owner: e.owner,
96
- terminalId: e.terminalId,
97
- transactionAt: A(e.transactionAt).format("YYYY-MM-DD hh:mm:ss"),
98
- action: e.action,
99
- gateway: e.gateway,
100
- amount: u
101
- };
102
- }, C = [
103
- {
104
- accessorKey: "id",
105
- header: () => "Transaction ID",
106
- meta: {
107
- textAlign: "left"
108
- }
109
- },
110
- {
111
- accessorKey: "refId",
112
- header: () => "Reference ID",
113
- meta: {
114
- textAlign: "left"
115
- }
116
- },
117
- {
118
- accessorKey: "gateway",
119
- header: () => "Gateway",
120
- meta: {
121
- textAlign: "center",
122
- maxWidth: "128px"
123
- },
124
- cell: ({ cell: e, row: t }) => N(P, { row: t, data: e.getValue() })
125
- },
126
- {
127
- accessorKey: "action",
128
- header: () => "Status",
129
- meta: {
130
- textAlign: "left",
131
- maxWidth: "128px"
132
- },
133
- cell: ({ cell: e, row: t }) => N(U, { row: t, data: e.getValue() })
134
- },
135
- {
136
- accessorKey: "amount",
137
- header: () => "Sales Amount",
138
- meta: {
139
- textAlign: "center"
140
- }
141
- },
142
- {
143
- accessorKey: "owner",
144
- header: () => "Reference",
145
- meta: {
146
- textAlign: "left"
147
- }
148
- },
149
- {
150
- accessorKey: "terminalId",
151
- header: () => "Terminal ID",
152
- meta: {
153
- textAlign: "left"
154
- }
155
- },
156
- {
157
- accessorKey: "transactionAt",
158
- header: () => "Transaction At",
159
- meta: {
160
- textAlign: "left"
161
- }
162
- }
163
- ];
164
- return (e, t) => {
165
- const u = d("FmSearch"), I = d("FmSelect"), S = d("FmDateRangePicker"), F = d("FmButton");
166
- return g(), x(V, {
167
- title: "Terminal Transactions",
168
- loading: !1
169
- }, {
170
- default: w(() => [
171
- p("div", Y, [
172
- p("div", G, [
173
- i(u, {
174
- "model-value": r(c),
175
- "onUpdate:modelValue": t[0] || (t[0] = (l) => f(c) ? c.value = l : null),
176
- class: "mr-8",
177
- label: "Search",
178
- placeholder: "Search Transactions ..."
179
- }, null, 8, ["model-value"]),
180
- i(I, {
181
- modelValue: r(s),
182
- "onUpdate:modelValue": t[1] || (t[1] = (l) => f(s) ? s.value = l : null),
183
- class: "mr-6 w-[300px]",
184
- label: "Status",
185
- "label-mark": "required",
186
- multiselect: "",
187
- items: y
188
- }, null, 8, ["modelValue"]),
189
- i(S, {
190
- modelValue: r(n),
191
- "onUpdate:modelValue": t[2] || (t[2] = (l) => f(n) ? n.value = l : null),
192
- compare: "",
193
- "show-predefined-range": ""
194
- }, null, 8, ["modelValue"])
195
- ]),
196
- p("div", W, [
197
- i(F, {
198
- "append-icon": "file_download",
199
- variant: "primary",
200
- label: "Export",
201
- onClick: () => {
202
- }
203
- })
204
- ])
205
- ]),
206
- i(K, {
207
- ref_key: "controller",
208
- ref: a,
209
- "column-defs": C,
210
- "rows-defs": R,
211
- paginate: (l, O) => r(B).readTransactions({
212
- status: r(s),
213
- searchKey: r(c),
214
- limit: l,
215
- cursor: O,
216
- start: r(n).startDate,
217
- end: r(n).endDate
218
- }),
219
- onRowClick: () => {
220
- }
221
- }, null, 8, ["paginate"])
222
- ]),
223
- _: 1
224
- });
225
- };
226
- }
227
- });
228
- export {
229
- ae as default
230
- };