@feedmepos/mf-payment 0.0.0-beta.12 → 0.0.0-beta.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  2. package/dist/Modal-DB8M9o1T.js +13 -0
  3. package/dist/{PayoutAccount-DQm62Wf2.js → PayoutAccount-CIKS18wv.js} +37 -34
  4. package/dist/{PayoutAccount-CeLwLffx.js → PayoutAccount-Daxv1Djz.js} +288 -3160
  5. package/dist/{PayoutAccountSetting-CIeos0md.js → PayoutAccountSetting-CnjAKH1q.js} +3 -3
  6. package/dist/Settlement-C7X_gzIk.js +142 -0
  7. package/dist/Settlement-DxQ9WNy-.js +146 -0
  8. package/dist/{SettlementTransactions-CYES5YMF.js → SettlementTransactions-Bne5lD30.js} +4 -4
  9. package/dist/{SettlementTransactions-B1v0f-0o.js → SettlementTransactions-RqT0OWUX.js} +100 -107
  10. package/dist/Terminal-CddS-zgz.js +318 -0
  11. package/dist/TerminalSetting-B2aM1gW-.js +176 -0
  12. package/dist/{TerminalTransaction-LofDTVwC.js → TerminalTransaction-XrqXeZZH.js} +18 -18
  13. package/dist/{Transaction-CaOxsIQH.js → Transaction-B16xeZ39.js} +80 -74
  14. package/dist/Transaction-CpOhK6md.js +249 -0
  15. package/dist/api/index.d.ts +7 -0
  16. package/dist/api/settlement/index.d.ts +7 -13
  17. package/dist/api/terminal/index.d.ts +8 -1
  18. package/dist/api/transaction/index.d.ts +6 -2
  19. package/dist/app.js +46 -40
  20. package/dist/{assets-DnuLfRTO.js → assets-nIQ0r4oP.js} +1 -1
  21. package/dist/components/AsyncButton.vue.d.ts +21 -0
  22. package/dist/components/CursorTable/index.vue.d.ts +16 -5
  23. package/dist/{index-Bmka-1lQ.js → index-CIIojtd5.js} +1 -1
  24. package/dist/index-CxYMbN69.js +37 -0
  25. package/dist/index-DflgpHga.js +55560 -0
  26. package/dist/{index-Coz5aeIO.js → index-DhPhiNvt.js} +13 -23
  27. package/dist/{index-CF56zGyu.js → index-DqQBDo_Y.js} +1 -1
  28. package/dist/index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js +155 -0
  29. package/dist/package.json +3 -3
  30. package/dist/{payout-account-OR4juI9N.js → payout-account-C4iFFgWi.js} +260 -260
  31. package/dist/{transaction-vRrBf3FN.js → transaction-B4rEbejx.js} +28 -15
  32. package/dist/tsconfig.app.tsbuildinfo +1 -1
  33. package/dist/validator-D5jtpt9A.js +2877 -0
  34. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +61 -0
  35. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  36. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +58 -9
  37. package/dist/views/admin/terminal/tabs/Fiuu.vue.d.ts +72 -0
  38. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +63 -0
  39. package/package.json +3 -3
  40. package/dist/Settlement-BVGACeme.js +0 -136
  41. package/dist/Settlement-Ce48KHrc.js +0 -132
  42. package/dist/Terminal-ByKV2Rof.js +0 -204
  43. package/dist/Transaction-C-X11abA.js +0 -242
  44. package/dist/index-DCPNrUDq.js +0 -40075
  45. package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
@@ -0,0 +1,42 @@
1
+ import { defineComponent as s, ref as l, resolveComponent as u, openBlock as i, createBlock as p, mergeProps as m } from "vue";
2
+ import { u as f } from "./error-K1CakhA9.js";
3
+ import { useSnackbar as d } from "@feedmepos/ui-library";
4
+ const b = /* @__PURE__ */ s({
5
+ __name: "AsyncButton",
6
+ props: {
7
+ button: {
8
+ type: Object
9
+ },
10
+ handler: {
11
+ type: Function,
12
+ required: !0
13
+ }
14
+ },
15
+ setup(n) {
16
+ const r = n, e = l(!1), t = d();
17
+ async function a() {
18
+ e.value = !0;
19
+ try {
20
+ await r.handler();
21
+ } catch (o) {
22
+ t.open({
23
+ type: "error",
24
+ title: "Error occurs when performing action",
25
+ message: f(o)
26
+ });
27
+ } finally {
28
+ e.value = !1;
29
+ }
30
+ }
31
+ return (o, g) => {
32
+ const c = u("FmButton");
33
+ return i(), p(c, m(n.button, {
34
+ loading: e.value,
35
+ onClick: a
36
+ }), null, 16, ["loading"]);
37
+ };
38
+ }
39
+ });
40
+ export {
41
+ b as _
42
+ };
@@ -0,0 +1,13 @@
1
+ import "@feedmepos/ui-library";
2
+ const s = (n, o, e, t, c) => {
3
+ const r = n.open({
4
+ title: o,
5
+ message: e,
6
+ primaryActions: { text: "Confirm", close: !0 },
7
+ secondaryActions: { text: "Cancel", close: !0 }
8
+ });
9
+ t && r.onPrimary(t);
10
+ };
11
+ export {
12
+ s as w
13
+ };
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as b, resolveComponent as m, openBlock as g, createBlock as h, normalizeClass as N, withCtx as f, createElementVNode as P, toDisplayString as C, createVNode as c, computed as x, ref as E, watch as F, unref as l, isRef as k, h as w } from "vue";
2
- import { u as S } from "./index-Bmka-1lQ.js";
3
- import { _ as O } from "./index-DCPNrUDq.js";
2
+ import { u as S } from "./index-CIIojtd5.js";
3
+ import { _ as O } from "./index-DflgpHga.js";
4
4
  import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js";
5
- import { P as V } from "./payout-account-OR4juI9N.js";
6
- import { p as $ } from "./index-CF56zGyu.js";
5
+ import { P as V } from "./payout-account-C4iFFgWi.js";
6
+ import { p as D } from "./index-DqQBDo_Y.js";
7
7
  import "@feedmepos/ui-library";
8
- import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js";
9
- import { useRouter as T } from "vue-router";
8
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js";
9
+ import { useRouter as $ } from "vue-router";
10
10
  const G = /* @__PURE__ */ b({
11
11
  __name: "Status",
12
12
  props: {
@@ -14,13 +14,13 @@ const G = /* @__PURE__ */ b({
14
14
  data: {}
15
15
  },
16
16
  setup(d) {
17
- const n = d;
17
+ const r = d;
18
18
  function t() {
19
- return n.data === "NEW" ? "!w-[16px] !h-[16px] bg-yellow-400" : n.data === "PENDING" ? "!w-[16px] !h-[16px] bg-red-400" : "!w-[16px] !h-[16px] bg-green-400";
19
+ return r.data === "NEW" ? "!w-[16px] !h-[16px] bg-yellow-400" : r.data === "PENDING" ? "!w-[16px] !h-[16px] bg-red-400" : "!w-[16px] !h-[16px] bg-green-400";
20
20
  }
21
21
  return (s, u) => {
22
- const r = m("FmBadge");
23
- return g(), h(r, {
22
+ const n = m("FmBadge");
23
+ return g(), h(n, {
24
24
  inline: "",
25
25
  class: N(t())
26
26
  }, {
@@ -38,14 +38,14 @@ const G = /* @__PURE__ */ b({
38
38
  data: {}
39
39
  },
40
40
  setup(d) {
41
- const n = d;
41
+ const r = d;
42
42
  function t() {
43
- return n.data ? "#66BB6A" : "#EF5350";
43
+ return r.data ? "#66BB6A" : "#EF5350";
44
44
  }
45
45
  function s() {
46
- return n.data ? "check" : "close";
46
+ return r.data ? "check" : "close";
47
47
  }
48
- return (u, r) => {
48
+ return (u, n) => {
49
49
  const p = m("FmIcon");
50
50
  return g(), h(p, {
51
51
  name: s(),
@@ -61,12 +61,12 @@ const G = /* @__PURE__ */ b({
61
61
  data: {}
62
62
  },
63
63
  setup(d) {
64
- function n(t) {
64
+ function r(t) {
65
65
  return t ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
66
66
  }
67
67
  return (t, s) => {
68
- const u = m("FmBadge"), r = m("FmListItem");
69
- return g(), h(r, {
68
+ const u = m("FmBadge"), n = m("FmListItem");
69
+ return g(), h(n, {
70
70
  label: t.row.original.holderName,
71
71
  sublabel: t.row.original.bankName + " - " + t.row.original.bankNumber,
72
72
  clickable: !1,
@@ -75,7 +75,7 @@ const G = /* @__PURE__ */ b({
75
75
  append: f(() => [
76
76
  c(u, {
77
77
  inline: "",
78
- class: N(n(t.row.original.bankReady))
78
+ class: N(r(t.row.original.bankReady))
79
79
  }, null, 8, ["class"])
80
80
  ]),
81
81
  _: 1
@@ -89,12 +89,12 @@ const G = /* @__PURE__ */ b({
89
89
  data: {}
90
90
  },
91
91
  setup(d) {
92
- function n(t) {
92
+ function r(t) {
93
93
  return t ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
94
94
  }
95
95
  return (t, s) => {
96
- const u = m("FmBadge"), r = m("FmListItem");
97
- return g(), h(r, {
96
+ const u = m("FmBadge"), n = m("FmListItem");
97
+ return g(), h(n, {
98
98
  label: t.row.original.picName,
99
99
  sublabel: t.row.original.picEmail + " - " + t.row.original.picPhone,
100
100
  clickable: !1,
@@ -103,31 +103,31 @@ const G = /* @__PURE__ */ b({
103
103
  append: f(() => [
104
104
  c(u, {
105
105
  inline: "",
106
- class: N(n(t.row.original.picReady))
106
+ class: N(r(t.row.original.picReady))
107
107
  }, null, 8, ["class"])
108
108
  ]),
109
109
  _: 1
110
110
  }, 8, ["label", "sublabel"]);
111
111
  };
112
112
  }
113
- }), Q = { class: "flex items-start mb-6" }, ee = /* @__PURE__ */ b({
113
+ }), j = { class: "flex items-start mb-6" }, ee = /* @__PURE__ */ b({
114
114
  __name: "PayoutAccount",
115
115
  setup(d) {
116
- const n = x(() => V.storeEventOptions), t = x(() => V.statusOptions), s = E(), u = T(), { event: r, status: p, searchKey: i } = S({
116
+ const r = x(() => V.storeEventOptions), t = x(() => V.statusOptions), s = E(), u = $(), { event: n, status: p, searchKey: i } = S({
117
117
  searchKey: "",
118
118
  event: O.F_PAYOUT_FOR.Enum.ORDERING,
119
119
  status: t.value.map((e) => e.value)
120
120
  });
121
- F([r, p], () => {
121
+ F([n, p], () => {
122
122
  var e;
123
- return (e = s.value) == null ? void 0 : e.refreshQuery();
123
+ return (e = s.value) == null ? void 0 : e.reset();
124
124
  });
125
125
  let v;
126
126
  F(i, async () => {
127
127
  v && clearTimeout(v), v = setTimeout(
128
128
  () => {
129
129
  var e;
130
- return (e = s.value) == null ? void 0 : e.refreshQuery();
130
+ return (e = s.value) == null ? void 0 : e.reset();
131
131
  },
132
132
  700
133
133
  );
@@ -214,14 +214,14 @@ const G = /* @__PURE__ */ b({
214
214
  loading: !1
215
215
  }, {
216
216
  default: f(() => [
217
- P("div", Q, [
217
+ P("div", j, [
218
218
  c(_, {
219
- modelValue: l(r),
220
- "onUpdate:modelValue": a[0] || (a[0] = (o) => k(r) ? r.value = o : null),
219
+ modelValue: l(n),
220
+ "onUpdate:modelValue": a[0] || (a[0] = (o) => k(n) ? n.value = o : null),
221
221
  class: "mr-6 w-[128px]",
222
222
  label: "Type",
223
223
  "label-mark": "required",
224
- items: n.value
224
+ items: r.value
225
225
  }, null, 8, ["modelValue", "items"]),
226
226
  c(_, {
227
227
  modelValue: l(p),
@@ -248,14 +248,17 @@ const G = /* @__PURE__ */ b({
248
248
  _: 1
249
249
  }, 8, ["modelValue"])
250
250
  ]),
251
- c(D, {
251
+ c(T, {
252
252
  ref_key: "controller",
253
253
  ref: s,
254
254
  "column-defs": R,
255
255
  "rows-defs": I,
256
- paginate: (o, A) => l($).read({ event: l(r), status: l(p), searchKey: l(i), limit: o, cursor: A }),
256
+ paginate: (o, A) => l(D).read({ event: l(n), status: l(p), searchKey: l(i), limit: o, cursor: A }),
257
257
  onRowClick: a[4] || (a[4] = (o) => l(u).push({
258
- path: `/payment/admin/payout-accounts/${o._id}`
258
+ name: "mf-payment-admin.payout-account-settings",
259
+ params: {
260
+ accountId: o._id
261
+ }
259
262
  }))
260
263
  }, null, 8, ["paginate"])
261
264
  ]),