@feedmepos/mf-payment 0.0.0-beta.34 → 0.0.0-beta.35
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{PayoutAccount-D-9hzZyp.js → PayoutAccount-C-FZD8lM.js} +2 -2
- package/dist/{PayoutAccount-BF4TdtVz.js → PayoutAccount-mpVH-GBq.js} +1 -1
- package/dist/{SettlementTransactions-w0jXLftr.js → SettlementTransactions-Co4ziq3a.js} +1 -1
- package/dist/{SettlementTransactions-CdZswF1S.js → SettlementTransactions-yJhT6FR4.js} +1 -1
- package/dist/{Terminal-BbIs7aYi.js → Terminal-BDDP5VT8.js} +1 -1
- package/dist/TerminalTransaction-CEQ3hedf.js +413 -0
- package/dist/{TerminalTransaction-BEyzFREU.js → TerminalTransaction-DCqbXI2q.js} +4 -4
- package/dist/{Transaction-Atm-A5eN.js → Transaction-D6mKrbLJ.js} +1 -1
- package/dist/Transaction-DvgeNetP.js +405 -0
- package/dist/api/terminal-transaction/index.d.ts +3 -1
- package/dist/api/transaction/index.d.ts +1 -0
- package/dist/app.js +9 -9
- package/dist/components/CursorTable/index.vue.d.ts +4 -0
- package/dist/{index-RhSxYSBk.js → index-Dlszue3Y.js} +20 -10
- package/dist/{index.vue_vue_type_script_setup_true_lang-B7ePQpGr.js → index.vue_vue_type_script_setup_true_lang-B8eGz19R.js} +62 -58
- package/dist/model/transaction.d.ts +2 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-C1kHqPZb.js → payout-account-C5rDbsPa.js} +175 -175
- package/dist/{transaction-BH1Pm92q.js → transaction-DdbmOKZ7.js} +18 -11
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- 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/package.json +1 -1
- package/dist/TerminalTransaction-CVcDmLvg.js +0 -274
- package/dist/Transaction-DpmCjczz.js +0 -243
@@ -1,7 +1,7 @@
|
|
1
|
-
import { defineComponent as
|
1
|
+
import { defineComponent as U, ref as r, resolveComponent as v, openBlock as _, createBlock as M, withCtx as z, createVNode as i, createElementVNode as s, normalizeStyle as T, createElementBlock as I, Fragment as $, renderList as j, computed as C, watch as L, onMounted as E, unref as P, toDisplayString as B, normalizeClass as O } from "vue";
|
2
2
|
import { u as R } from "./index-Cnxt2xmc.js";
|
3
3
|
import "@feedmepos/ui-library";
|
4
|
-
const G = ["id"],
|
4
|
+
const G = ["id"], S = /* @__PURE__ */ U({
|
5
5
|
__name: "FmTableSelection",
|
6
6
|
props: {
|
7
7
|
value: {},
|
@@ -12,35 +12,35 @@ const G = ["id"], P = /* @__PURE__ */ S({
|
|
12
12
|
const F = w, p = c, m = r(!1);
|
13
13
|
return (f, g) => {
|
14
14
|
const k = v("FmButton"), V = v("FmMenuItem"), y = v("FmMenu");
|
15
|
-
return _(),
|
15
|
+
return _(), M(y, {
|
16
16
|
"max-height": 264,
|
17
17
|
shift: "",
|
18
18
|
onMenuChanged: g[0] || (g[0] = (t) => m.value = t)
|
19
19
|
}, {
|
20
|
-
"menu-button":
|
20
|
+
"menu-button": z(() => {
|
21
21
|
var t;
|
22
22
|
return [
|
23
23
|
i(k, {
|
24
24
|
icon: m.value ? "expand_less" : "expand_more",
|
25
|
-
label: (t = f.items.find((
|
25
|
+
label: (t = f.items.find((o) => o.value === p.value)) == null ? void 0 : t.label,
|
26
26
|
"icon-position": "append",
|
27
27
|
size: "md",
|
28
28
|
variant: "tertiary"
|
29
29
|
}, null, 8, ["icon", "label"])
|
30
30
|
];
|
31
31
|
}),
|
32
|
-
"menu-wrapper":
|
33
|
-
|
32
|
+
"menu-wrapper": z(({ maxHeight: t }) => [
|
33
|
+
s("div", {
|
34
34
|
id: `menu-wrapper-${t}`,
|
35
35
|
style: T({ maxHeight: `${t}px` }),
|
36
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
37
|
}, [
|
38
|
-
(_(!0),
|
39
|
-
key:
|
40
|
-
label:
|
41
|
-
value:
|
42
|
-
"model-value":
|
43
|
-
"onUpdate:modelValue": (
|
38
|
+
(_(!0), I($, null, j(f.items, (o) => (_(), M(V, {
|
39
|
+
key: o.value,
|
40
|
+
label: o.label,
|
41
|
+
value: o.value,
|
42
|
+
"model-value": o.value === p.value,
|
43
|
+
"onUpdate:modelValue": (n) => F("update:modelValue", o.value)
|
44
44
|
}, null, 8, ["label", "value", "model-value", "onUpdate:modelValue"]))), 128))
|
45
45
|
], 12, G)
|
46
46
|
]),
|
@@ -50,7 +50,7 @@ const G = ["id"], P = /* @__PURE__ */ S({
|
|
50
50
|
}
|
51
51
|
}), H = { class: "basis-72 bg-white flex items-center justify-between px-24 pt-6" }, J = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, K = { class: "flex gap-8 items-center" }, Q = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary xs:hidden xs:invisible" }, W = {
|
52
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__ */
|
53
|
+
}, X = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, Y = { class: "flex gap-8" }, le = /* @__PURE__ */ U({
|
54
54
|
__name: "index",
|
55
55
|
props: {
|
56
56
|
columnDefs: {
|
@@ -68,75 +68,79 @@ const G = ["id"], P = /* @__PURE__ */ S({
|
|
68
68
|
},
|
69
69
|
emits: ["row-click"],
|
70
70
|
setup(c, { expose: w, emit: F }) {
|
71
|
-
const p = [10, 20, 30, 50, 100].map((
|
72
|
-
label:
|
73
|
-
value:
|
74
|
-
})), m = c, f = F, { isLoading: g, startLoading: k, stopLoading: V } = R(!0), y = r(), t = r(),
|
75
|
-
k(),
|
76
|
-
const e = await m.paginate(
|
77
|
-
t.value = [...t.value ?? [], ...e.data],
|
78
|
-
}, q =
|
79
|
-
const
|
80
|
-
return (t.value ?? []).slice(
|
71
|
+
const p = [10, 20, 30, 50, 100].map((l) => ({
|
72
|
+
label: l.toString(),
|
73
|
+
value: l
|
74
|
+
})), m = c, f = F, { isLoading: g, startLoading: k, stopLoading: V } = R(!0), y = r(), t = r(), o = r(""), n = r(10), a = r(1), d = r(0), b = async function(l = !1) {
|
75
|
+
k(), l && (t.value = [], o.value = "", a.value = 1, d.value = 0);
|
76
|
+
const e = await m.paginate(n.value, o.value);
|
77
|
+
t.value = [...t.value ?? [], ...e.data], o.value = e.meta.cursor ?? "", d.value += 1, V();
|
78
|
+
}, q = C(() => a.value > 1), A = C(() => a.value < d.value ? !0 : o.value > ""), N = C(() => {
|
79
|
+
const l = n.value * (a.value - 1), e = l + n.value;
|
80
|
+
return (t.value ?? []).slice(l, e).map(m.rowsDefs);
|
81
81
|
});
|
82
|
-
return
|
83
|
-
|
82
|
+
return L(n, () => b(!0)), L(a, (l) => {
|
83
|
+
l > d.value && b();
|
84
84
|
}), E(() => b()), w({
|
85
85
|
reset: () => b(!0),
|
86
86
|
data: () => t.value ?? [],
|
87
87
|
pageData: () => {
|
88
|
-
const
|
89
|
-
return (t.value ?? []).slice(
|
88
|
+
const l = n.value * (a.value - 1), e = l + n.value;
|
89
|
+
return (t.value ?? []).slice(l, e);
|
90
|
+
},
|
91
|
+
replaceData: (l, e) => {
|
92
|
+
const h = l * a.value;
|
93
|
+
t.value && (t.value[h] = e);
|
90
94
|
}
|
91
|
-
}), (
|
92
|
-
const
|
93
|
-
return _(),
|
94
|
-
i(
|
95
|
+
}), (l, e) => {
|
96
|
+
const h = v("FmTable"), D = v("FmButton");
|
97
|
+
return _(), I($, null, [
|
98
|
+
i(h, {
|
95
99
|
modelValue: y.value,
|
96
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
97
|
-
loading:
|
98
|
-
"page-size":
|
99
|
-
"row-data":
|
100
|
+
"onUpdate:modelValue": e[0] || (e[0] = (u) => y.value = u),
|
101
|
+
loading: P(g),
|
102
|
+
"page-size": n.value,
|
103
|
+
"row-data": N.value,
|
100
104
|
"column-defs": c.columnDefs,
|
101
105
|
"hide-footer": !0,
|
102
|
-
onRowClick: e[1] || (e[1] = (
|
106
|
+
onRowClick: e[1] || (e[1] = (u) => {
|
103
107
|
var x;
|
104
|
-
return f("row-click", (x = t.value) == null ? void 0 : x.at(
|
108
|
+
return f("row-click", (x = t.value) == null ? void 0 : x.at(u.index));
|
105
109
|
})
|
106
110
|
}, null, 8, ["modelValue", "loading", "page-size", "row-data", "column-defs"]),
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
e[6] || (e[6] =
|
111
|
-
i(
|
112
|
-
items:
|
113
|
-
value:
|
114
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
111
|
+
s("div", H, [
|
112
|
+
s("div", J, [
|
113
|
+
s("div", K, [
|
114
|
+
e[6] || (e[6] = s("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
|
115
|
+
i(S, {
|
116
|
+
items: P(p),
|
117
|
+
value: n.value,
|
118
|
+
"onUpdate:modelValue": e[2] || (e[2] = (u) => n.value = u)
|
115
119
|
}, null, 8, ["items", "value"])
|
116
120
|
]),
|
117
|
-
|
121
|
+
s("span", Q, B((a.value - 1) * n.value) + " - " + B((a.value - 1) * n.value + n.value), 1)
|
118
122
|
]),
|
119
|
-
|
120
|
-
i(
|
121
|
-
items: Array.from(Array(d.value), (
|
122
|
-
(
|
123
|
-
label:
|
124
|
-
value:
|
123
|
+
s("div", W, [
|
124
|
+
i(S, {
|
125
|
+
items: Array.from(Array(d.value), (u, x) => x + 1).map(
|
126
|
+
(u) => ({
|
127
|
+
label: u.toString(),
|
128
|
+
value: u
|
125
129
|
})
|
126
130
|
),
|
127
131
|
value: a.value,
|
128
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
132
|
+
"onUpdate:modelValue": e[3] || (e[3] = (u) => a.value = u)
|
129
133
|
}, null, 8, ["items", "value"]),
|
130
|
-
|
131
|
-
|
132
|
-
i(
|
134
|
+
s("span", X, " Page " + B(a.value), 1),
|
135
|
+
s("div", Y, [
|
136
|
+
i(D, {
|
133
137
|
disabled: !q.value,
|
134
138
|
icon: "chevron_left",
|
135
139
|
"icon-color": "neutral-black",
|
136
140
|
variant: "tertiary",
|
137
141
|
onClick: e[4] || (e[4] = () => a.value -= 1)
|
138
142
|
}, null, 8, ["disabled"]),
|
139
|
-
i(
|
143
|
+
i(D, {
|
140
144
|
disabled: !A.value,
|
141
145
|
icon: "chevron_right",
|
142
146
|
"icon-color": "neutral-black",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { F_PAYMENT_GATEWAY_KEY } from "@feedmepos/core/entity";
|
1
|
+
import { F_PAYMENT_GATEWAY_KEY, FdoDinero } from "@feedmepos/core/entity";
|
2
2
|
import { type PaymentTransactionDtoOutput } from "@feedmepos/payment-entity";
|
3
3
|
export interface PortalPaymentTransaction {
|
4
4
|
id: string;
|
@@ -8,6 +8,7 @@ export interface PortalPaymentTransaction {
|
|
8
8
|
gateway: F_PAYMENT_GATEWAY_KEY;
|
9
9
|
status: string;
|
10
10
|
amount: string;
|
11
|
+
fdoAmount: FdoDinero;
|
11
12
|
fee: string;
|
12
13
|
payout: string;
|
13
14
|
}
|