@feedmepos/mf-payment 0.0.0-beta.8 → 1.0.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js +39 -0
- package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
- package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js +40 -0
- package/dist/Modal-DB8M9o1T.js +13 -0
- package/dist/PayoutAccount-BHRhEZ9h.js +613 -0
- package/dist/{PayoutAccount-CpatyqJa.js → PayoutAccount-Bj5zvmoj.js} +38 -35
- package/dist/PayoutAccountSetting-kUQLeAcb.js +780 -0
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js +33 -0
- package/dist/Settlement-Crdfq22j.js +149 -0
- package/dist/Settlement-JHOJNkhd.js +194 -0
- package/dist/{SettlementTransactions-DT1A_tI5.js → SettlementTransactions-BxuLXUR-.js} +99 -105
- package/dist/{SettlementTransactions-CkU0gCHb.js → SettlementTransactions-daWMAmtz.js} +117 -130
- package/dist/Terminal-gxGnjFGc.js +372 -0
- package/dist/TerminalSetting--ZAJJ_Hf.js +379 -0
- package/dist/TerminalTransaction---9nk_4q.js +249 -0
- package/dist/TerminalTransaction-B77YK3hF.js +425 -0
- package/dist/Transaction-8LlOLPeZ.js +404 -0
- package/dist/Transaction-DRQ_uZ30.js +241 -0
- package/dist/api/index.d.ts +14 -0
- package/dist/api/pagination.d.ts +20 -0
- package/dist/api/payment-gateway/index.d.ts +9 -0
- package/dist/api/settlement/index.d.ts +12 -13
- package/dist/api/terminal/index.d.ts +13 -1
- package/dist/api/terminal-transaction/index.d.ts +12 -1
- package/dist/api/transaction/index.d.ts +7 -2
- package/dist/app-DjzULXn3.js +6356 -0
- package/dist/app.js +3 -198
- package/dist/assets-NrCec-W0.js +45 -0
- package/dist/clipboard-4jh1WteU.js +10 -0
- package/dist/components/AsyncButton.vue.d.ts +21 -0
- package/dist/components/AutoCopyCell.vue.d.ts +6 -0
- package/dist/components/CursorTable/index.vue.d.ts +24 -5
- package/dist/components/RestaurantSelector.vue.d.ts +2 -0
- package/dist/components/RouteCell.vue.d.ts +8 -0
- package/dist/helpers/assets.d.ts +2 -0
- package/dist/{index-Bmka-1lQ.js → index-7KNaibcq.js} +1 -1
- package/dist/index-BWUtjGg7.js +47 -0
- package/dist/{index-CF56zGyu.js → index-BwcJZFsi.js} +1 -1
- package/dist/index-CWaKb7bG.js +56107 -0
- package/dist/index-CojhNtuG.js +127 -0
- package/dist/index-DbJpbpSs.js +52 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js +167 -0
- package/dist/model/transaction.d.ts +2 -1
- package/dist/package.json +5 -5
- package/dist/payout-account-CBT1rfSS.js +1805 -0
- package/dist/router/index.d.ts +1 -0
- package/dist/stores/payoutAccount.d.ts +4 -4
- package/dist/transaction-CQiT7Y_s.js +87 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/validator-D5jtpt9A.js +2877 -0
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +81 -0
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +50 -0
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +83 -0
- package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +80 -9
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +94 -0
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +94 -0
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +85 -0
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +94 -0
- package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +7 -0
- package/dist/views/admin/transaction/TransactionTable.vue.d.ts +6 -2
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +7 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
- package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
- package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +2 -0
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +9 -0
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +9 -0
- package/package.json +5 -5
- package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js +0 -42
- package/dist/PayoutAccount-C0xyoyTa.js +0 -3485
- package/dist/PayoutAccountSetting-CIeos0md.js +0 -425
- package/dist/Settlement-BVGACeme.js +0 -136
- package/dist/Settlement-Ce48KHrc.js +0 -132
- package/dist/Terminal-ByKV2Rof.js +0 -204
- package/dist/TerminalTransaction-ClhuAOOF.js +0 -240
- package/dist/Transaction-BYq9Ymp_.js +0 -242
- package/dist/Transaction-Doq11qIf.js +0 -241
- package/dist/api/auth/index.d.ts +0 -7
- package/dist/assets-Dg26uQOf.js +0 -1756
- package/dist/index-Coz5aeIO.js +0 -61
- package/dist/index-DCPNrUDq.js +0 -40075
- package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
- package/dist/mascot-side-D5UubCy7.js +0 -8
- package/dist/payout-account-D2Ftjrss.js +0 -3317
- package/dist/transaction-vRrBf3FN.js +0 -64
@@ -1,150 +0,0 @@
|
|
1
|
-
import { defineComponent as S, ref as r, resolveComponent as c, openBlock as _, createBlock as M, withCtx as z, createVNode as i, createElementVNode as u, normalizeStyle as T, createElementBlock as U, Fragment as $, renderList as j, computed as V, watch as D, onMounted as E, unref as L, toDisplayString as C, normalizeClass as O } from "vue";
|
2
|
-
import { u as Q } from "./index-DCPNrUDq.js";
|
3
|
-
import "@feedmepos/ui-library";
|
4
|
-
const R = ["id"], P = /* @__PURE__ */ S({
|
5
|
-
__name: "FmTableSelection",
|
6
|
-
props: {
|
7
|
-
value: {},
|
8
|
-
items: {}
|
9
|
-
},
|
10
|
-
emits: ["update:modelValue"],
|
11
|
-
setup(p, { emit: w }) {
|
12
|
-
const F = w, v = p, m = r(!1);
|
13
|
-
return (f, g) => {
|
14
|
-
const h = c("FmButton"), k = c("FmMenuItem"), y = c("FmMenu");
|
15
|
-
return _(), M(y, {
|
16
|
-
"max-height": 264,
|
17
|
-
shift: "",
|
18
|
-
onMenuChanged: g[0] || (g[0] = (t) => m.value = t)
|
19
|
-
}, {
|
20
|
-
"menu-button": z(() => {
|
21
|
-
var t;
|
22
|
-
return [
|
23
|
-
i(h, {
|
24
|
-
icon: m.value ? "expand_less" : "expand_more",
|
25
|
-
label: (t = f.items.find((l) => l.value === v.value)) == null ? void 0 : t.label,
|
26
|
-
"icon-position": "append",
|
27
|
-
size: "md",
|
28
|
-
variant: "tertiary"
|
29
|
-
}, null, 8, ["icon", "label"])
|
30
|
-
];
|
31
|
-
}),
|
32
|
-
"menu-wrapper": z(({ maxHeight: t }) => [
|
33
|
-
u("div", {
|
34
|
-
id: `menu-wrapper-${t}`,
|
35
|
-
style: T({ maxHeight: `${t}px` }),
|
36
|
-
class: "bg-fm-color-neutral-white flex flex-col overflow-y-auto px-4 py-12 rounded-md shadow-light-300 w-[75px]"
|
37
|
-
}, [
|
38
|
-
(_(!0), U($, null, j(f.items, (l) => (_(), M(k, {
|
39
|
-
key: l.value,
|
40
|
-
label: l.label,
|
41
|
-
value: l.value,
|
42
|
-
"model-value": l.value === v.value,
|
43
|
-
"onUpdate:modelValue": (a) => F("update:modelValue", l.value)
|
44
|
-
}, null, 8, ["label", "value", "model-value", "onUpdate:modelValue"]))), 128))
|
45
|
-
], 12, R)
|
46
|
-
]),
|
47
|
-
_: 1
|
48
|
-
});
|
49
|
-
};
|
50
|
-
}
|
51
|
-
}), G = { class: "basis-72 bg-white flex items-center justify-between px-24 pt-6" }, H = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, J = { class: "flex gap-8 items-center" }, K = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary xs:hidden xs:invisible" }, W = {
|
52
|
-
class: /* @__PURE__ */ O(["flex gap-8 items-center"])
|
53
|
-
}, X = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, Y = { class: "flex gap-8" }, le = /* @__PURE__ */ S({
|
54
|
-
__name: "index",
|
55
|
-
props: {
|
56
|
-
columnDefs: {
|
57
|
-
type: Array,
|
58
|
-
required: !0
|
59
|
-
},
|
60
|
-
rowsDefs: {
|
61
|
-
type: Function,
|
62
|
-
required: !0
|
63
|
-
},
|
64
|
-
paginate: {
|
65
|
-
type: Function,
|
66
|
-
required: !0
|
67
|
-
}
|
68
|
-
},
|
69
|
-
emits: ["row-click"],
|
70
|
-
setup(p, { expose: w, emit: F }) {
|
71
|
-
const v = [10, 20, 30, 50, 100].map((s) => ({
|
72
|
-
label: s.toString(),
|
73
|
-
value: s
|
74
|
-
})), m = p, f = F, { isLoading: g, startLoading: h, stopLoading: k } = Q(!0), y = r(), t = r(), l = r(""), a = r(10), o = r(1), d = r(0), b = async function(s = !1) {
|
75
|
-
h(), s && (t.value = [], l.value = "", o.value = 1, d.value = 0);
|
76
|
-
const e = await m.paginate(a.value, l.value);
|
77
|
-
t.value = [...t.value ?? [], ...e.data], l.value = e.meta.cursor ?? "", d.value += 1, k();
|
78
|
-
}, q = V(() => o.value > 1), A = V(() => o.value < d.value ? !0 : l.value > ""), I = V(() => {
|
79
|
-
const s = a.value * (o.value - 1), e = s + a.value;
|
80
|
-
return (t.value ?? []).slice(s, e).map(m.rowsDefs);
|
81
|
-
});
|
82
|
-
return D(a, () => b(!0)), D(o, (s) => {
|
83
|
-
s > d.value && b();
|
84
|
-
}), E(() => b()), w({
|
85
|
-
refreshQuery: () => b(!0)
|
86
|
-
}), (s, e) => {
|
87
|
-
const N = c("FmTable"), B = c("FmButton");
|
88
|
-
return _(), U($, null, [
|
89
|
-
i(N, {
|
90
|
-
modelValue: y.value,
|
91
|
-
"onUpdate:modelValue": e[0] || (e[0] = (n) => y.value = n),
|
92
|
-
loading: L(g),
|
93
|
-
"page-size": a.value,
|
94
|
-
"row-data": I.value,
|
95
|
-
"column-defs": p.columnDefs,
|
96
|
-
"hide-footer": !0,
|
97
|
-
onRowClick: e[1] || (e[1] = (n) => {
|
98
|
-
var x;
|
99
|
-
return f("row-click", (x = t.value) == null ? void 0 : x.at(n.index));
|
100
|
-
})
|
101
|
-
}, null, 8, ["modelValue", "loading", "page-size", "row-data", "column-defs"]),
|
102
|
-
u("div", G, [
|
103
|
-
u("div", H, [
|
104
|
-
u("div", J, [
|
105
|
-
e[6] || (e[6] = u("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
|
106
|
-
i(P, {
|
107
|
-
items: L(v),
|
108
|
-
value: a.value,
|
109
|
-
"onUpdate:modelValue": e[2] || (e[2] = (n) => a.value = n)
|
110
|
-
}, null, 8, ["items", "value"])
|
111
|
-
]),
|
112
|
-
u("span", K, C((o.value - 1) * a.value) + " - " + C((o.value - 1) * a.value + a.value), 1)
|
113
|
-
]),
|
114
|
-
u("div", W, [
|
115
|
-
i(P, {
|
116
|
-
items: Array.from(Array(d.value), (n, x) => x + 1).map(
|
117
|
-
(n) => ({
|
118
|
-
label: n.toString(),
|
119
|
-
value: n
|
120
|
-
})
|
121
|
-
),
|
122
|
-
value: o.value,
|
123
|
-
"onUpdate:modelValue": e[3] || (e[3] = (n) => o.value = n)
|
124
|
-
}, null, 8, ["items", "value"]),
|
125
|
-
u("span", X, " Page " + C(o.value), 1),
|
126
|
-
u("div", Y, [
|
127
|
-
i(B, {
|
128
|
-
disabled: !q.value,
|
129
|
-
icon: "chevron_left",
|
130
|
-
"icon-color": "neutral-black",
|
131
|
-
variant: "tertiary",
|
132
|
-
onClick: e[4] || (e[4] = () => o.value -= 1)
|
133
|
-
}, null, 8, ["disabled"]),
|
134
|
-
i(B, {
|
135
|
-
disabled: !A.value,
|
136
|
-
icon: "chevron_right",
|
137
|
-
"icon-color": "neutral-black",
|
138
|
-
variant: "tertiary",
|
139
|
-
onClick: e[5] || (e[5] = () => o.value += 1)
|
140
|
-
}, null, 8, ["disabled"])
|
141
|
-
])
|
142
|
-
])
|
143
|
-
])
|
144
|
-
], 64);
|
145
|
-
};
|
146
|
-
}
|
147
|
-
});
|
148
|
-
export {
|
149
|
-
le as _
|
150
|
-
};
|