@feedmepos/mf-payment 0.0.0-beta.11 → 0.0.0-beta.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
- package/dist/Modal-DB8M9o1T.js +13 -0
- package/dist/{PayoutAccount-uqw305f2.js → PayoutAccount-CIKS18wv.js} +37 -34
- package/dist/{PayoutAccount-h58IN5jz.js → PayoutAccount-Daxv1Djz.js} +288 -3160
- package/dist/{PayoutAccountSetting-CIeos0md.js → PayoutAccountSetting-CnjAKH1q.js} +3 -3
- package/dist/Settlement-C7X_gzIk.js +142 -0
- package/dist/Settlement-DxQ9WNy-.js +146 -0
- package/dist/{SettlementTransactions-Bqw7WbtT.js → SettlementTransactions-Bne5lD30.js} +4 -4
- package/dist/{SettlementTransactions-De_DYXFh.js → SettlementTransactions-RqT0OWUX.js} +100 -107
- package/dist/Terminal-CddS-zgz.js +318 -0
- package/dist/TerminalSetting-B2aM1gW-.js +176 -0
- package/dist/{TerminalTransaction-D_lILlqx.js → TerminalTransaction-XrqXeZZH.js} +18 -18
- package/dist/{Transaction-CiFh9jYU.js → Transaction-B16xeZ39.js} +80 -74
- package/dist/Transaction-CpOhK6md.js +249 -0
- package/dist/api/index.d.ts +7 -0
- package/dist/api/settlement/index.d.ts +7 -13
- package/dist/api/terminal/index.d.ts +8 -1
- package/dist/api/transaction/index.d.ts +6 -2
- package/dist/app.js +68 -62
- package/dist/{assets-DZoIWoOi.js → assets-nIQ0r4oP.js} +49 -49
- package/dist/components/AsyncButton.vue.d.ts +21 -0
- package/dist/components/CursorTable/index.vue.d.ts +16 -5
- package/dist/{index-Bmka-1lQ.js → index-CIIojtd5.js} +1 -1
- package/dist/index-CxYMbN69.js +37 -0
- package/dist/index-DflgpHga.js +55560 -0
- package/dist/{index-Coz5aeIO.js → index-DhPhiNvt.js} +13 -23
- package/dist/{index-CF56zGyu.js → index-DqQBDo_Y.js} +1 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js +155 -0
- package/dist/package.json +3 -3
- package/dist/{payout-account-D_lGAP8q.js → payout-account-C4iFFgWi.js} +262 -262
- package/dist/{transaction-vRrBf3FN.js → transaction-B4rEbejx.js} +28 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/validator-D5jtpt9A.js +2877 -0
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +61 -0
- package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +58 -9
- package/dist/views/admin/terminal/tabs/Fiuu.vue.d.ts +72 -0
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +63 -0
- package/package.json +3 -3
- package/dist/Settlement-BVGACeme.js +0 -136
- package/dist/Settlement-Ce48KHrc.js +0 -132
- package/dist/Terminal-ByKV2Rof.js +0 -204
- package/dist/Transaction-DWJ4TWTQ.js +0 -242
- package/dist/index-DCPNrUDq.js +0 -40075
- 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-
|
3
|
-
import { _ as O } from "./index-
|
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-
|
6
|
-
import { p as
|
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
|
9
|
-
import { useRouter as
|
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
|
17
|
+
const r = d;
|
18
18
|
function t() {
|
19
|
-
return
|
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
|
23
|
-
return g(), h(
|
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
|
41
|
+
const r = d;
|
42
42
|
function t() {
|
43
|
-
return
|
43
|
+
return r.data ? "#66BB6A" : "#EF5350";
|
44
44
|
}
|
45
45
|
function s() {
|
46
|
-
return
|
46
|
+
return r.data ? "check" : "close";
|
47
47
|
}
|
48
|
-
return (u,
|
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
|
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"),
|
69
|
-
return g(), h(
|
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(
|
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
|
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"),
|
97
|
-
return g(), h(
|
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(
|
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
|
-
}),
|
113
|
+
}), j = { class: "flex items-start mb-6" }, ee = /* @__PURE__ */ b({
|
114
114
|
__name: "PayoutAccount",
|
115
115
|
setup(d) {
|
116
|
-
const
|
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([
|
121
|
+
F([n, p], () => {
|
122
122
|
var e;
|
123
|
-
return (e = s.value) == null ? void 0 : e.
|
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.
|
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",
|
217
|
+
P("div", j, [
|
218
218
|
c(_, {
|
219
|
-
modelValue: l(
|
220
|
-
"onUpdate:modelValue": a[0] || (a[0] = (o) => k(
|
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:
|
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(
|
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(
|
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
|
-
|
258
|
+
name: "mf-payment-admin.payout-account-settings",
|
259
|
+
params: {
|
260
|
+
accountId: o._id
|
261
|
+
}
|
259
262
|
}))
|
260
263
|
}, null, 8, ["paginate"])
|
261
264
|
]),
|