@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.
Files changed (47) hide show
  1. package/dist/{AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js → AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js} +1 -1
  2. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  3. package/dist/{Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js → Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js} +9 -9
  4. package/dist/Modal-DB8M9o1T.js +13 -0
  5. package/dist/{PayoutAccount-CeLwLffx.js → PayoutAccount-BHwKD9si.js} +288 -3160
  6. package/dist/{PayoutAccount-DQm62Wf2.js → PayoutAccount-DuqITwjB.js} +38 -35
  7. package/dist/{PayoutAccountSetting-CIeos0md.js → PayoutAccountSetting-cOThY31e.js} +4 -4
  8. package/dist/Settlement-Dr6Rmkid.js +142 -0
  9. package/dist/Settlement-JkH7-Wd_.js +146 -0
  10. package/dist/{SettlementTransactions-CYES5YMF.js → SettlementTransactions-BGfDReId.js} +5 -5
  11. package/dist/{SettlementTransactions-B1v0f-0o.js → SettlementTransactions-CSz0G9iE.js} +101 -108
  12. package/dist/Terminal-DQqtUzV2.js +318 -0
  13. package/dist/TerminalSetting-T0Sxq_z0.js +176 -0
  14. package/dist/{TerminalTransaction-LofDTVwC.js → TerminalTransaction-C0g2mMBJ.js} +19 -19
  15. package/dist/Transaction-BKBh8jOT.js +249 -0
  16. package/dist/{Transaction-CaOxsIQH.js → Transaction-DVS8SkBi.js} +80 -74
  17. package/dist/api/index.d.ts +7 -0
  18. package/dist/api/settlement/index.d.ts +7 -13
  19. package/dist/api/terminal/index.d.ts +8 -1
  20. package/dist/api/transaction/index.d.ts +6 -2
  21. package/dist/app.js +46 -40
  22. package/dist/{assets-DnuLfRTO.js → assets-nIQ0r4oP.js} +1 -1
  23. package/dist/components/AsyncButton.vue.d.ts +21 -0
  24. package/dist/components/CursorTable/index.vue.d.ts +16 -5
  25. package/dist/{index-Bmka-1lQ.js → index-CIIojtd5.js} +1 -1
  26. package/dist/index-CxYMbN69.js +37 -0
  27. package/dist/index-DflgpHga.js +55560 -0
  28. package/dist/{index-Coz5aeIO.js → index-DhPhiNvt.js} +13 -23
  29. package/dist/{index-CF56zGyu.js → index-DqQBDo_Y.js} +1 -1
  30. package/dist/index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js +155 -0
  31. package/dist/package.json +3 -3
  32. package/dist/{payout-account-OR4juI9N.js → payout-account-FNZygqj-.js} +130 -130
  33. package/dist/{transaction-vRrBf3FN.js → transaction-B4rEbejx.js} +28 -15
  34. package/dist/tsconfig.app.tsbuildinfo +1 -1
  35. package/dist/validator-D5jtpt9A.js +2877 -0
  36. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +61 -0
  37. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  38. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +58 -9
  39. package/dist/views/admin/terminal/tabs/Fiuu.vue.d.ts +72 -0
  40. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +63 -0
  41. package/package.json +3 -3
  42. package/dist/Settlement-BVGACeme.js +0 -136
  43. package/dist/Settlement-Ce48KHrc.js +0 -132
  44. package/dist/Terminal-ByKV2Rof.js +0 -204
  45. package/dist/Transaction-C-X11abA.js +0 -242
  46. package/dist/index-DCPNrUDq.js +0 -40075
  47. package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
@@ -22,7 +22,7 @@ const d = {
22
22
  r(a, { size: "xxl" })
23
23
  ])) : (n(), s("div", u, [
24
24
  r(i, {
25
- class: "flex-grow mb-6",
25
+ class: "flex-grow",
26
26
  title: e.title,
27
27
  "back-button": !!e.onBack,
28
28
  "onClick:back": e.onBack
@@ -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 p, resolveComponent as i, openBlock as a, createElementBlock as c, createVNode as r, createElementVNode as d, renderSlot as u } from "vue";
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
- }, b = {
6
+ }, f = {
7
7
  key: 1,
8
8
  class: "m-6"
9
- }, f = { class: "bg-white fm-corner-radius-md p-6" }, v = /* @__PURE__ */ p({
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(g) {
18
+ setup(b) {
19
19
  return (e, t) => {
20
- const l = i("FmCircularProgress"), m = i("FmPageHead");
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", b, [
24
- r(m, {
25
- class: "flex-grow mb-6",
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
- d("div", f, [
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
+ };