@feedmepos/mf-payment 0.0.0-beta.12 → 0.0.0-beta.14
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.
- package/dist/{AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js → AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js} +1 -1
- package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
- package/dist/{Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js → Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js} +9 -9
- package/dist/Modal-DB8M9o1T.js +13 -0
- package/dist/{PayoutAccount-CeLwLffx.js → PayoutAccount-BHwKD9si.js} +288 -3160
- package/dist/{PayoutAccount-DQm62Wf2.js → PayoutAccount-DuqITwjB.js} +38 -35
- package/dist/{PayoutAccountSetting-CIeos0md.js → PayoutAccountSetting-cOThY31e.js} +4 -4
- package/dist/Settlement-Dr6Rmkid.js +142 -0
- package/dist/Settlement-JkH7-Wd_.js +146 -0
- package/dist/{SettlementTransactions-CYES5YMF.js → SettlementTransactions-BGfDReId.js} +5 -5
- package/dist/{SettlementTransactions-B1v0f-0o.js → SettlementTransactions-CSz0G9iE.js} +101 -108
- package/dist/Terminal-DQqtUzV2.js +318 -0
- package/dist/TerminalSetting-T0Sxq_z0.js +176 -0
- package/dist/{TerminalTransaction-LofDTVwC.js → TerminalTransaction-C0g2mMBJ.js} +19 -19
- package/dist/Transaction-BKBh8jOT.js +249 -0
- package/dist/{Transaction-CaOxsIQH.js → Transaction-DVS8SkBi.js} +80 -74
- 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 +46 -40
- package/dist/{assets-DnuLfRTO.js → assets-nIQ0r4oP.js} +1 -1
- 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-OR4juI9N.js → payout-account-FNZygqj-.js} +130 -130
- 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-C-X11abA.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
|
+
};
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { defineComponent as
|
1
|
+
import { defineComponent as d, resolveComponent as i, openBlock as a, createElementBlock as c, createVNode as r, createElementVNode as m, renderSlot as u } from "vue";
|
2
2
|
import "@feedmepos/ui-library";
|
3
3
|
const k = {
|
4
4
|
key: 0,
|
5
5
|
class: "flex items-center justify-center min-h-[80vh]"
|
6
|
-
},
|
6
|
+
}, f = {
|
7
7
|
key: 1,
|
8
8
|
class: "m-6"
|
9
|
-
},
|
9
|
+
}, g = { class: "bg-white fm-corner-radius-md p-6" }, v = /* @__PURE__ */ d({
|
10
10
|
__name: "Layout",
|
11
11
|
props: {
|
12
12
|
loading: { type: Boolean },
|
@@ -15,14 +15,14 @@ const k = {
|
|
15
15
|
onBack: { type: Function },
|
16
16
|
actions: {}
|
17
17
|
},
|
18
|
-
setup(
|
18
|
+
setup(b) {
|
19
19
|
return (e, t) => {
|
20
|
-
const l = i("FmCircularProgress"),
|
20
|
+
const l = i("FmCircularProgress"), p = i("FmPageHead");
|
21
21
|
return e.loading ? (a(), c("div", k, [
|
22
22
|
r(l, { size: "xxl" })
|
23
|
-
])) : (a(), c("div",
|
24
|
-
r(
|
25
|
-
class: "flex-grow
|
23
|
+
])) : (a(), c("div", f, [
|
24
|
+
r(p, {
|
25
|
+
class: "flex-grow",
|
26
26
|
title: e.title,
|
27
27
|
description: e.description,
|
28
28
|
"back-button": !!e.onBack,
|
@@ -33,7 +33,7 @@ const k = {
|
|
33
33
|
return (s = (o = e.actions) == null ? void 0 : o.at(parseInt(n.substring(4)))) == null ? void 0 : s.fn();
|
34
34
|
})
|
35
35
|
}, null, 8, ["title", "description", "back-button", "actions", "onClick:back"]),
|
36
|
-
|
36
|
+
m("div", g, [
|
37
37
|
u(e.$slots, "default")
|
38
38
|
])
|
39
39
|
]));
|
@@ -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
|
+
};
|