@feedmepos/mf-payment 1.0.0-beta.5 → 1.0.0-beta.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. package/README.md +1 -1
  2. package/dist/DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js +31 -0
  3. package/dist/PDFViewer-xrBtzrlR.js +22426 -0
  4. package/dist/{PayoutAccount-V74CPAJr.js → PayoutAccount-CagbOYmv.js} +5 -5
  5. package/dist/{PayoutAccount-DZg-xSKt.js → PayoutAccount-CkDd9qfH.js} +4 -4
  6. package/dist/{PayoutAccountSetting-kUQLeAcb.js → PayoutAccountSetting-CmgVLhdp.js} +4 -4
  7. package/dist/{Settlement-CHwtH6hm.js → Settlement-B1-WmCwC.js} +41 -42
  8. package/dist/Settlement-BSOQRlp1.js +145 -0
  9. package/dist/{SettlementTransactions-C281649y.js → SettlementTransactions-Cqd2raea.js} +4 -4
  10. package/dist/{SettlementTransactions-CBohm3KC.js → SettlementTransactions-JTwD_Vuq.js} +4 -4
  11. package/dist/{Terminal-gxGnjFGc.js → Terminal-DvlTwA6V.js} +4 -4
  12. package/dist/{TerminalSetting--ZAJJ_Hf.js → TerminalSetting-7VBm1RRK.js} +3 -3
  13. package/dist/{TerminalTransaction-DdESjZJo.js → TerminalTransaction-C1egvX6I.js} +112 -110
  14. package/dist/{TerminalTransaction-CfCURihE.js → TerminalTransaction-CZCsCpEp.js} +77 -75
  15. package/dist/{Transaction-BbGbcDvk.js → Transaction-B3ZWKg6Q.js} +114 -115
  16. package/dist/Transaction-B_0nUmpf.js +238 -0
  17. package/dist/{app-9P8d2JCE.js → app-CLnEntGO.js} +179 -179
  18. package/dist/app.js +1 -1
  19. package/dist/{assets-NrCec-W0.js → assets-BCAivOTo.js} +1 -1
  20. package/dist/components/AdminLayout.vue.d.ts +8 -13
  21. package/dist/components/AutoCopyCell.vue.d.ts +3 -4
  22. package/dist/components/DateRangePicker.vue.d.ts +13 -0
  23. package/dist/components/Layout.vue.d.ts +8 -13
  24. package/dist/components/PDFViewer.vue.d.ts +1 -1
  25. package/dist/components/RouteCell.vue.d.ts +5 -6
  26. package/dist/components/SelectAll.vue.d.ts +2 -2
  27. package/dist/{index-CWaKb7bG.js → index-4meiCsRz.js} +1566 -1556
  28. package/dist/{index-BwcJZFsi.js → index-BFYq3eq8.js} +1 -1
  29. package/dist/{index-7KNaibcq.js → index-BwFHcZlm.js} +1 -1
  30. package/dist/{index-BWUtjGg7.js → index-CBa6eapm.js} +1 -1
  31. package/dist/{index-CojhNtuG.js → index-CETCXB6X.js} +1 -1
  32. package/dist/{index-DbJpbpSs.js → index-CbsnpMWl.js} +1 -1
  33. package/dist/{index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js → index.vue_vue_type_script_setup_true_lang-CKOlikHb.js} +1 -1
  34. package/dist/package.json +1 -1
  35. package/dist/{payout-account-DI0q_Sig.js → payout-account-4O7cL-1_.js} +2 -2
  36. package/dist/{transaction-BTf6KnZV.js → transaction-COjHU7aN.js} +3 -3
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/views/admin/payout-account/cell/Bank.vue.d.ts +3 -5
  39. package/dist/views/admin/payout-account/cell/IsActive.vue.d.ts +3 -5
  40. package/dist/views/admin/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
  41. package/dist/views/admin/payout-account/cell/RateInput.vue.d.ts +3 -5
  42. package/dist/views/admin/payout-account/cell/Status.vue.d.ts +3 -5
  43. package/dist/views/admin/payout-account/cell/TPlusInput.vue.d.ts +3 -5
  44. package/dist/views/admin/settlement/cell/Actions.vue.d.ts +4 -6
  45. package/dist/views/admin/settlement/cell/Gateway.vue.d.ts +3 -5
  46. package/dist/views/admin/settlement/cell/Method.vue.d.ts +3 -5
  47. package/dist/views/admin/settlement/cell/Status.vue.d.ts +3 -5
  48. package/dist/views/admin/terminal/TerminalBindCodeDialog.vue.d.ts +1 -1
  49. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +7 -79
  50. package/dist/views/admin/terminal/cell/ID.vue.d.ts +3 -5
  51. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +3 -4
  52. package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +3 -5
  53. package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +3 -5
  54. package/dist/views/admin/terminal-transaction/cell/Timestamp.vue.d.ts +3 -6
  55. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +3 -4
  56. package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +3 -5
  57. package/dist/views/admin/transaction/cell/Method.vue.d.ts +3 -5
  58. package/dist/views/admin/transaction/cell/Status.vue.d.ts +3 -5
  59. package/dist/views/payout-account/cell/Bank.vue.d.ts +3 -5
  60. package/dist/views/payout-account/cell/IsActive.vue.d.ts +3 -5
  61. package/dist/views/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
  62. package/dist/views/payout-account/cell/Status.vue.d.ts +3 -5
  63. package/dist/views/settlement/cell/Actions.vue.d.ts +4 -6
  64. package/dist/views/settlement/cell/Gateway.vue.d.ts +3 -5
  65. package/dist/views/settlement/cell/Method.vue.d.ts +3 -5
  66. package/dist/views/settlement/cell/Status.vue.d.ts +3 -5
  67. package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +3 -5
  68. package/dist/views/terminal-transaction/cell/Status.vue.d.ts +3 -5
  69. package/dist/views/transaction/cell/Gateway.vue.d.ts +3 -5
  70. package/dist/views/transaction/cell/Method.vue.d.ts +3 -5
  71. package/dist/views/transaction/cell/Status.vue.d.ts +3 -5
  72. package/package.json +1 -1
  73. package/dist/PDFViewer-CjH_C1uT.js +0 -21792
  74. package/dist/Settlement-C49oMOGR.js +0 -149
  75. package/dist/Transaction-BEls8K8W.js +0 -239
@@ -1,31 +1,32 @@
1
- import { defineComponent as N, openBlock as f, createElementBlock as R, Fragment as F, unref as r, createCommentVNode as D, createElementVNode as d, resolveComponent as _, createBlock as S, normalizeClass as V, withCtx as y, toDisplayString as k, ref as M, watch as g, createVNode as c, isRef as p, h } from "vue";
2
- import { c as m } from "./index-CWaKb7bG.js";
3
- import { h as I } from "./moment-h96o7c8I.js";
4
- import { u as Y } from "./index-7KNaibcq.js";
5
- import { _ as K } from "./index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js";
1
+ import { defineComponent as N, openBlock as p, createElementBlock as C, Fragment as O, unref as r, createCommentVNode as F, createElementVNode as d, resolveComponent as I, createBlock as v, normalizeClass as D, withCtx as y, toDisplayString as V, ref as M, watch as T, createVNode as i, isRef as _, h as g } from "vue";
2
+ import { c as m } from "./index-4meiCsRz.js";
3
+ import { h } from "./moment-h96o7c8I.js";
4
+ import { u as k } from "./index-BwFHcZlm.js";
5
+ import { _ as Y } from "./index.vue_vue_type_script_setup_true_lang-CKOlikHb.js";
6
6
  import "@feedmepos/ui-library";
7
- import { g as $ } from "./assets-NrCec-W0.js";
8
- import { E as L, t as C } from "./index-DbJpbpSs.js";
9
- import { d as B } from "./dinero-CIVmXLL-.js";
10
- import { _ as G } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
11
- import { useCoreStore as P } from "@feedmepos/mf-common";
7
+ import { g as $ } from "./assets-BCAivOTo.js";
8
+ import { E as K, t as R } from "./index-CbsnpMWl.js";
9
+ import { d as L } from "./dinero-CIVmXLL-.js";
10
+ import { _ as B } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
11
+ import { useCoreStore as G } from "@feedmepos/mf-common";
12
12
  import { _ as U } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
13
- import { _ as W } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js";
14
- import { _ as j } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
15
- import { _ as q } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
13
+ import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js";
14
+ import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
15
+ import { _ as j } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
16
+ import { _ as q } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
16
17
  const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
17
18
  __name: "Gateway",
18
19
  props: {
19
20
  row: {},
20
21
  data: {}
21
22
  },
22
- setup(A) {
23
- return (o, s) => (f(), R(F, null, [
24
- o.row.original.ecrGateway ? (f(), R("img", {
23
+ setup(f) {
24
+ return (o, n) => (p(), C(O, null, [
25
+ o.row.original.ecrGateway ? (p(), C("img", {
25
26
  key: 0,
26
27
  class: "bg-fm-color-overlay-background rounded-md m-auto border-transparent w-[32px] h-[32px]",
27
- src: r(L)
28
- }, null, 8, z)) : D("", !0),
28
+ src: r(K)
29
+ }, null, 8, z)) : F("", !0),
29
30
  d("img", {
30
31
  class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
31
32
  src: r($)(o.row.original.gateway)
@@ -38,48 +39,48 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
38
39
  row: {},
39
40
  data: {}
40
41
  },
41
- setup(A) {
42
- const o = A;
43
- function s() {
42
+ setup(f) {
43
+ const o = f;
44
+ function n() {
44
45
  return o.data === m.F_TERMINAL_TRANSACTION_ACTION.Enum.process ? "!w-[16px] !h-[16px] bg-yellow-400" : o.data === m.F_TERMINAL_TRANSACTION_ACTION.Enum.failed ? "!w-[16px] !h-[16px] bg-red-400" : o.data === m.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
45
46
  }
46
- return (l, n) => {
47
- const i = _("FmBadge");
48
- return f(), S(i, {
47
+ return (l, s) => {
48
+ const c = I("FmBadge");
49
+ return p(), v(c, {
49
50
  inline: "",
50
- class: V(s())
51
+ class: D(n())
51
52
  }, {
52
53
  default: y(() => [
53
- d("div", null, k(l.data.toUpperCase()), 1)
54
+ d("div", null, V(l.data.toUpperCase()), 1)
54
55
  ]),
55
56
  _: 1
56
57
  }, 8, ["class"]);
57
58
  };
58
59
  }
59
- }), X = { class: "flex justify-between mb-6 items-start" }, Z = { class: "flex space-x-8 items-start" }, ee = { class: "flex space-x-4" }, Ae = /* @__PURE__ */ N({
60
+ }), X = { class: "flex justify-between mb-6 items-start" }, Z = { class: "flex space-x-8 items-start" }, ee = { class: "flex space-x-4 self-center" }, ae = { class: "mb-6" }, ge = /* @__PURE__ */ N({
60
61
  __name: "TerminalTransaction",
61
- setup(A) {
62
- const { currentRestaurant: o } = P(), s = M(), { dateRange: l, status: n, searchKey: i } = Y({
62
+ setup(f) {
63
+ const { currentRestaurant: o } = G(), n = M(), { dateRange: l, status: s, searchKey: c } = k({
63
64
  searchKey: "",
64
65
  status: [m.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
65
66
  dateRange: {
66
- startDate: I().startOf("day").format("YYYY-MM-DD"),
67
- endDate: I().endOf("day").format("YYYY-MM-DD")
67
+ startDate: h().startOf("day").format("YYYY-MM-DD"),
68
+ endDate: h().endOf("day").format("YYYY-MM-DD")
68
69
  }
69
70
  });
70
- g([l, n], () => {
71
+ T([l, s], () => {
71
72
  var e;
72
- return (e = s.value) == null ? void 0 : e.reset();
73
- }), g(o, () => {
73
+ return (e = n.value) == null ? void 0 : e.reset();
74
+ }), T(o, () => {
74
75
  var e;
75
- return (e = s.value) == null ? void 0 : e.reset();
76
+ return (e = n.value) == null ? void 0 : e.reset();
76
77
  });
77
- let T;
78
- g(i, async () => {
79
- T && clearTimeout(T), T = setTimeout(
78
+ let A;
79
+ T(c, async () => {
80
+ A && clearTimeout(A), A = setTimeout(
80
81
  () => {
81
82
  var e;
82
- return (e = s.value) == null ? void 0 : e.reset();
83
+ return (e = n.value) == null ? void 0 : e.reset();
83
84
  },
84
85
  700
85
86
  );
@@ -101,28 +102,28 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
101
102
  label: "Failed",
102
103
  value: m.F_TERMINAL_TRANSACTION_ACTION.Enum.failed
103
104
  }
104
- ], v = function(e) {
105
+ ], E = function(e) {
105
106
  const a = e;
106
107
  let u = "-";
107
- return a.details && a.details.amount && (u = B(a.details.amount).toFormat("$0.00")), {
108
+ return a.details && a.details.amount && (u = L(a.details.amount).toFormat("$0.00")), {
108
109
  id: e._id,
109
110
  orderId: e.orderId,
110
111
  refId: e.refId,
111
112
  terminalId: e.terminalId,
112
- transactionAt: I(e.transactionAt).format("YYYY-MM-DD hh:mm:ss"),
113
+ transactionAt: h(e.transactionAt).format("YYYY-MM-DD hh:mm:ss"),
113
114
  action: e.action,
114
115
  gateway: e.gateway,
115
116
  ecrGateway: e.ecrGateway,
116
117
  amount: u
117
118
  };
118
- }, E = [
119
+ }, S = [
119
120
  {
120
121
  accessorKey: "id",
121
122
  header: () => "Transaction ID",
122
123
  meta: {
123
124
  textAlign: "left"
124
125
  },
125
- cell: ({ cell: e }) => h(W, { data: e.getValue() })
126
+ cell: ({ cell: e }) => g(P, { data: e.getValue() })
126
127
  },
127
128
  {
128
129
  accessorKey: "orderId",
@@ -145,7 +146,7 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
145
146
  textAlign: "center",
146
147
  maxWidth: "128px"
147
148
  },
148
- cell: ({ cell: e, row: a }) => h(H, { row: a, data: e.getValue() })
149
+ cell: ({ cell: e, row: a }) => g(H, { row: a, data: e.getValue() })
149
150
  },
150
151
  {
151
152
  accessorKey: "action",
@@ -154,7 +155,7 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
154
155
  textAlign: "right",
155
156
  maxWidth: "132px"
156
157
  },
157
- cell: ({ cell: e, row: a }) => h(J, { row: a, data: e.getValue() })
158
+ cell: ({ cell: e, row: a }) => g(J, { row: a, data: e.getValue() })
158
159
  },
159
160
  {
160
161
  accessorKey: "amount",
@@ -179,8 +180,8 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
179
180
  }
180
181
  ];
181
182
  return (e, a) => {
182
- const u = _("FmSearch"), w = _("FmSelect"), b = _("FmSimpleDateRangePicker");
183
- return f(), S(j, {
183
+ const u = I("FmSearch"), w = I("FmSelect");
184
+ return p(), v(W, {
184
185
  title: "Offline Transactions",
185
186
  description: "Transactions are purchases or payments made in retail using electronic devices such as POS systems, kiosks, terminals, or ECRs.",
186
187
  loading: !1
@@ -188,17 +189,17 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
188
189
  default: y(() => [
189
190
  d("div", X, [
190
191
  d("div", Z, [
191
- c(G),
192
- c(u, {
193
- "model-value": r(i),
194
- "onUpdate:modelValue": a[0] || (a[0] = (t) => p(i) ? i.value = t : null),
192
+ i(B),
193
+ i(u, {
194
+ "model-value": r(c),
195
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => _(c) ? c.value = t : null),
195
196
  class: "mr-8",
196
197
  label: "Search",
197
198
  placeholder: "Search Transactions ..."
198
199
  }, null, 8, ["model-value"]),
199
- c(w, {
200
- modelValue: r(n),
201
- "onUpdate:modelValue": a[2] || (a[2] = (t) => p(n) ? n.value = t : null),
200
+ i(w, {
201
+ modelValue: r(s),
202
+ "onUpdate:modelValue": a[2] || (a[2] = (t) => _(s) ? s.value = t : null),
202
203
  class: "mr-6 w-[300px]",
203
204
  label: "Status",
204
205
  "label-mark": "required",
@@ -206,22 +207,17 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
206
207
  items: x
207
208
  }, {
208
209
  "prepend-menu": y(() => [
209
- c(q, {
210
- modelValue: r(n),
211
- "onUpdate:modelValue": a[1] || (a[1] = (t) => p(n) ? n.value = t : null),
210
+ i(j, {
211
+ modelValue: r(s),
212
+ "onUpdate:modelValue": a[1] || (a[1] = (t) => _(s) ? s.value = t : null),
212
213
  items: x
213
214
  }, null, 8, ["modelValue"])
214
215
  ]),
215
216
  _: 1
216
- }, 8, ["modelValue"]),
217
- c(b, {
218
- modelValue: r(l),
219
- "onUpdate:modelValue": a[3] || (a[3] = (t) => p(l) ? l.value = t : null),
220
- "show-predefined-range": ""
221
- }, null, 8, ["modelValue"])
217
+ }, 8, ["modelValue"])
222
218
  ]),
223
219
  d("div", ee, [
224
- c(U, {
220
+ i(U, {
225
221
  button: {
226
222
  appendIcon: "file_download",
227
223
  variant: "primary",
@@ -229,21 +225,27 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
229
225
  },
230
226
  handler: () => {
231
227
  var t;
232
- return r(C).downloadTransactions(((t = s.value) == null ? void 0 : t.data()) ?? []);
228
+ return r(R).downloadTransactions(((t = n.value) == null ? void 0 : t.data()) ?? []);
233
229
  }
234
230
  }, null, 8, ["handler"])
235
231
  ])
236
232
  ]),
237
- c(K, {
233
+ d("div", ae, [
234
+ i(q, {
235
+ modelValue: r(l),
236
+ "onUpdate:modelValue": a[3] || (a[3] = (t) => _(l) ? l.value = t : null)
237
+ }, null, 8, ["modelValue"])
238
+ ]),
239
+ i(Y, {
238
240
  ref_key: "controller",
239
- ref: s,
240
- "column-defs": E,
241
- "rows-defs": v,
242
- paginate: (t, O) => r(C).readRestaurantTransactions({
243
- status: r(n),
244
- searchKey: r(i),
241
+ ref: n,
242
+ "column-defs": S,
243
+ "rows-defs": E,
244
+ paginate: (t, b) => r(R).readRestaurantTransactions({
245
+ status: r(s),
246
+ searchKey: r(c),
245
247
  limit: t,
246
- cursor: O,
248
+ cursor: b,
247
249
  start: r(l).startDate,
248
250
  end: r(l).endDate
249
251
  })
@@ -255,5 +257,5 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
255
257
  }
256
258
  });
257
259
  export {
258
- Ae as default
260
+ ge as default
259
261
  };