@feedmepos/mf-payment 0.0.0-beta.9 → 1.0.0-beta.10

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 (132) hide show
  1. package/README.md +11 -1
  2. package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js +39 -0
  3. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  4. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js +40 -0
  5. package/dist/DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js +31 -0
  6. package/dist/Modal-DB8M9o1T.js +13 -0
  7. package/dist/PDFViewer-xrBtzrlR.js +22426 -0
  8. package/dist/{PayoutAccount-DLhMMlw_.js → PayoutAccount-B1sLInPk.js} +96 -83
  9. package/dist/PayoutAccount-Dut_OQHJ.js +613 -0
  10. package/dist/PayoutAccountSetting-CmgVLhdp.js +780 -0
  11. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js +33 -0
  12. package/dist/SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js +42 -0
  13. package/dist/Settlement-B1-WmCwC.js +193 -0
  14. package/dist/Settlement-BSOQRlp1.js +145 -0
  15. package/dist/{SettlementTransactions-Dl1H4jvh.js → SettlementTransactions-Cqd2raea.js} +117 -130
  16. package/dist/{SettlementTransactions-CoEzdtYT.js → SettlementTransactions-JTwD_Vuq.js} +99 -105
  17. package/dist/Terminal-De69bTKY.js +373 -0
  18. package/dist/TerminalSetting-DlRHaEZh.js +387 -0
  19. package/dist/TerminalTransaction-4rE-cikT.js +261 -0
  20. package/dist/TerminalTransaction-BGzVHOHQ.js +485 -0
  21. package/dist/Transaction-B3ZWKg6Q.js +403 -0
  22. package/dist/Transaction-B_0nUmpf.js +238 -0
  23. package/dist/api/index.d.ts +14 -0
  24. package/dist/api/pagination.d.ts +20 -0
  25. package/dist/api/payment-gateway/index.d.ts +9 -0
  26. package/dist/api/settlement/index.d.ts +12 -13
  27. package/dist/api/terminal/index.d.ts +13 -1
  28. package/dist/api/terminal-transaction/index.d.ts +12 -1
  29. package/dist/api/transaction/index.d.ts +7 -2
  30. package/dist/app-ssoGt5u4.js +6356 -0
  31. package/dist/app.js +3 -198
  32. package/dist/assets-BCAivOTo.js +45 -0
  33. package/dist/clipboard-4jh1WteU.js +10 -0
  34. package/dist/components/AdminLayout.vue.d.ts +8 -13
  35. package/dist/components/AsyncButton.vue.d.ts +21 -0
  36. package/dist/components/AutoCopyCell.vue.d.ts +5 -0
  37. package/dist/components/CursorTable/index.vue.d.ts +24 -5
  38. package/dist/components/DateRangePicker.vue.d.ts +13 -0
  39. package/dist/components/Layout.vue.d.ts +8 -13
  40. package/dist/components/PDFViewer.vue.d.ts +1 -1
  41. package/dist/components/RestaurantSelector.vue.d.ts +2 -0
  42. package/dist/components/RouteCell.vue.d.ts +7 -0
  43. package/dist/components/SelectAll.vue.d.ts +57 -0
  44. package/dist/helpers/assets.d.ts +2 -0
  45. package/dist/helpers/idToDate.d.ts +1 -1
  46. package/dist/index-4meiCsRz.js +56117 -0
  47. package/dist/{index-CF56zGyu.js → index-BFYq3eq8.js} +1 -1
  48. package/dist/{index-Bmka-1lQ.js → index-BwFHcZlm.js} +1 -1
  49. package/dist/index-CBa6eapm.js +47 -0
  50. package/dist/index-CETCXB6X.js +127 -0
  51. package/dist/index-CbsnpMWl.js +52 -0
  52. package/dist/index.vue_vue_type_script_setup_true_lang-CKOlikHb.js +167 -0
  53. package/dist/model/transaction.d.ts +2 -1
  54. package/dist/package.json +5 -5
  55. package/dist/payout-account-02bK8c23.js +1805 -0
  56. package/dist/router/index.d.ts +1 -0
  57. package/dist/stores/iframe.d.ts +1 -1
  58. package/dist/stores/payoutAccount.d.ts +5 -5
  59. package/dist/transaction-COjHU7aN.js +97 -0
  60. package/dist/tsconfig.app.tsbuildinfo +1 -1
  61. package/dist/validator-D5jtpt9A.js +2877 -0
  62. package/dist/views/admin/payout-account/cell/Bank.vue.d.ts +3 -5
  63. package/dist/views/admin/payout-account/cell/IsActive.vue.d.ts +3 -5
  64. package/dist/views/admin/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
  65. package/dist/views/admin/payout-account/cell/RateInput.vue.d.ts +3 -5
  66. package/dist/views/admin/payout-account/cell/Status.vue.d.ts +3 -5
  67. package/dist/views/admin/payout-account/cell/TPlusInput.vue.d.ts +3 -5
  68. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
  69. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +81 -0
  70. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
  71. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
  72. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
  73. package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +50 -0
  74. package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
  75. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  76. package/dist/views/admin/settlement/cell/Actions.vue.d.ts +4 -6
  77. package/dist/views/admin/settlement/cell/Gateway.vue.d.ts +3 -5
  78. package/dist/views/admin/settlement/cell/Method.vue.d.ts +3 -5
  79. package/dist/views/admin/settlement/cell/Status.vue.d.ts +3 -5
  80. package/dist/views/admin/terminal/TerminalBindCodeDialog.vue.d.ts +1 -1
  81. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +83 -0
  82. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  83. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +13 -14
  84. package/dist/views/admin/terminal/cell/ID.vue.d.ts +3 -5
  85. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +94 -0
  86. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +94 -0
  87. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +85 -0
  88. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +94 -0
  89. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +6 -0
  90. package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +3 -5
  91. package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +3 -5
  92. package/dist/views/admin/terminal-transaction/cell/Timestamp.vue.d.ts +7 -0
  93. package/dist/views/admin/transaction/TransactionTable.vue.d.ts +6 -2
  94. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +6 -0
  95. package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +3 -5
  96. package/dist/views/admin/transaction/cell/Method.vue.d.ts +3 -5
  97. package/dist/views/admin/transaction/cell/Status.vue.d.ts +3 -5
  98. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
  99. package/dist/views/payout-account/cell/Bank.vue.d.ts +3 -5
  100. package/dist/views/payout-account/cell/IsActive.vue.d.ts +3 -5
  101. package/dist/views/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
  102. package/dist/views/payout-account/cell/Status.vue.d.ts +3 -5
  103. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  104. package/dist/views/settlement/cell/Actions.vue.d.ts +4 -6
  105. package/dist/views/settlement/cell/Gateway.vue.d.ts +3 -5
  106. package/dist/views/settlement/cell/Method.vue.d.ts +3 -5
  107. package/dist/views/settlement/cell/Status.vue.d.ts +3 -5
  108. package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +2 -0
  109. package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +7 -0
  110. package/dist/views/terminal-transaction/cell/Status.vue.d.ts +7 -0
  111. package/dist/views/transaction/cell/Gateway.vue.d.ts +3 -5
  112. package/dist/views/transaction/cell/Method.vue.d.ts +3 -5
  113. package/dist/views/transaction/cell/Status.vue.d.ts +3 -5
  114. package/package.json +5 -5
  115. package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js +0 -42
  116. package/dist/PDFViewer-CjH_C1uT.js +0 -21792
  117. package/dist/PayoutAccount-xxSxqBTL.js +0 -3485
  118. package/dist/PayoutAccountSetting-CIeos0md.js +0 -425
  119. package/dist/Settlement-BVGACeme.js +0 -136
  120. package/dist/Settlement-Ce48KHrc.js +0 -132
  121. package/dist/Terminal-ByKV2Rof.js +0 -204
  122. package/dist/TerminalTransaction-RuSxBAxf.js +0 -240
  123. package/dist/Transaction-CYo-uLQi.js +0 -241
  124. package/dist/Transaction-Cjw9WwX8.js +0 -242
  125. package/dist/api/auth/index.d.ts +0 -7
  126. package/dist/assets-BuLGUMIx.js +0 -472
  127. package/dist/index-Coz5aeIO.js +0 -61
  128. package/dist/index-DCPNrUDq.js +0 -40075
  129. package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
  130. package/dist/mascot-side-3VXskf9y.js +0 -4
  131. package/dist/payout-account-iAM7HPtG.js +0 -3317
  132. package/dist/transaction-vRrBf3FN.js +0 -64
package/README.md CHANGED
@@ -1 +1,11 @@
1
- # Payment Portal
1
+ # Payment Portal
2
+
3
+ Development always based on production and add "-beta.version" in behind. Every deployment from development to production will increment based on semantic versioninig.
4
+
5
+ **Production**: 1.0.0
6
+
7
+ **Development**: 1.0.0-beta.0
8
+
9
+ ## After Completing CI
10
+
11
+ Go to `https://github.com/feedmepos/portal/tree/ci/ci` and update the version.
@@ -0,0 +1,39 @@
1
+ import { defineComponent as l, resolveComponent as o, openBlock as t, createElementBlock as n, createVNode as s, createElementVNode as c, renderSlot as i } from "vue";
2
+ import "@feedmepos/ui-library";
3
+ const m = {
4
+ key: 0,
5
+ class: "flex items-center justify-center min-h-[80vh]"
6
+ }, d = {
7
+ key: 1,
8
+ class: "m-6"
9
+ }, p = { class: "bg-white fm-corner-radius-md p-6" }, f = /* @__PURE__ */ l({
10
+ __name: "AdminLayout",
11
+ props: {
12
+ loading: { type: Boolean },
13
+ title: {},
14
+ onBack: { type: Function },
15
+ businessFilter: { type: Boolean },
16
+ restaurantFilter: { type: Boolean }
17
+ },
18
+ setup(u) {
19
+ return (e, _) => {
20
+ const a = o("FmCircularProgress"), r = o("FmPageHead");
21
+ return e.loading ? (t(), n("div", m, [
22
+ s(a, { size: "xxl" })
23
+ ])) : (t(), n("div", d, [
24
+ s(r, {
25
+ class: "flex-grow mb-6",
26
+ title: e.title,
27
+ "back-button": !!e.onBack,
28
+ "onClick:back": e.onBack
29
+ }, null, 8, ["title", "back-button", "onClick:back"]),
30
+ c("div", p, [
31
+ i(e.$slots, "default")
32
+ ])
33
+ ]));
34
+ };
35
+ }
36
+ });
37
+ export {
38
+ f as _
39
+ };
@@ -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,40 @@
1
+ import { defineComponent as i, resolveComponent as s, openBlock as l, createElementBlock as m, createVNode as d, createTextVNode as C, toDisplayString as f } from "vue";
2
+ import { c as u } from "./clipboard-4jh1WteU.js";
3
+ import { useSnackbar as _ } from "@feedmepos/ui-library";
4
+ const x = /* @__PURE__ */ i({
5
+ __name: "AutoCopyCell",
6
+ props: {
7
+ data: {}
8
+ },
9
+ setup(a) {
10
+ const o = a, t = _();
11
+ function r() {
12
+ try {
13
+ u(o.data), t.open({ title: "Text copied to clipboard." }, 1e3);
14
+ } catch {
15
+ t.open({ title: "Clipboard API incompatible." }, 1e3);
16
+ }
17
+ o.data;
18
+ }
19
+ return (e, n) => {
20
+ const p = s("FmIcon");
21
+ return l(), m("div", {
22
+ class: "flex",
23
+ onClick: n[0] || (n[0] = (c) => {
24
+ c.stopPropagation(), r();
25
+ })
26
+ }, [
27
+ d(p, {
28
+ class: "mr-4",
29
+ name: "content_copy",
30
+ size: "sm",
31
+ outline: ""
32
+ }),
33
+ C(" " + f(e.data), 1)
34
+ ]);
35
+ };
36
+ }
37
+ });
38
+ export {
39
+ x as _
40
+ };
@@ -0,0 +1,31 @@
1
+ import { defineComponent as d, useModel as u, computed as i, resolveComponent as o, openBlock as c, createBlock as p, withCtx as s, createVNode as _ } from "vue";
2
+ const f = /* @__PURE__ */ d({
3
+ __name: "DateRangePicker",
4
+ props: {
5
+ modelValue: { required: !0 },
6
+ modelModifiers: {}
7
+ },
8
+ emits: ["update:modelValue"],
9
+ setup(l) {
10
+ const e = u(l, "modelValue"), a = i(() => e.value ? `${e.value.startDate ?? "Start"} ~ ${e.value.endDate ?? "End"}` : "No dates selected.");
11
+ return (v, t) => {
12
+ const n = o("FmChip"), r = o("FmSimpleDateRangePicker");
13
+ return c(), p(r, {
14
+ modelValue: e.value,
15
+ "onUpdate:modelValue": t[0] || (t[0] = (m) => e.value = m),
16
+ "show-predefined-range": ""
17
+ }, {
18
+ "trigger-button": s(() => [
19
+ _(n, {
20
+ icon: "calendar_month",
21
+ label: a.value
22
+ }, null, 8, ["label"])
23
+ ]),
24
+ _: 1
25
+ }, 8, ["modelValue"]);
26
+ };
27
+ }
28
+ });
29
+ export {
30
+ f as _
31
+ };
@@ -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
+ };