@feedmepos/mf-payment 1.2.26 → 1.2.27
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/{PayoutAccount-C4zN4xMw.js → PayoutAccount-DI5YpzGm.js} +2 -2
- package/dist/{PayoutAccount-DoUb4juo.js → PayoutAccount-mlaDc7_i.js} +2 -2
- package/dist/{Terminal-CRizNZ4p.js → Terminal-KE_9M2jr.js} +1 -1
- package/dist/{Transaction-ykrWGKIa.js → Transaction-CA9RQ8qT.js} +1 -1
- package/dist/{app-CU7mklRE.js → app-BohCgZld.js} +6 -6
- package/dist/app.js +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-HBMZ5z3-.js → index.vue_vue_type_script_setup_true_lang-DpAWcXVU.js} +56 -54
- package/dist/package.json +1 -1
- package/dist/{payout-account-CdudVI6I.js → payout-account-rJmG1Gi5.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -2,10 +2,10 @@ import { defineComponent as y, resolveComponent as u, openBlock as h, createBloc
|
|
2
2
|
import { u as O } from "./index-BOwfUR6x.js";
|
3
3
|
import { p as K } from "./index-tCobqIDD.js";
|
4
4
|
import { _ as A } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
5
|
-
import { P as V } from "./payout-account-
|
5
|
+
import { P as V } from "./payout-account-rJmG1Gi5.js";
|
6
6
|
import { p as D } from "./index-JCMXdVSJ.js";
|
7
7
|
import "@feedmepos/ui-library";
|
8
|
-
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-
|
8
|
+
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-DpAWcXVU.js";
|
9
9
|
import { useRouter as U } from "vue-router";
|
10
10
|
import { _ as $ } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
11
11
|
const G = /* @__PURE__ */ y({
|
@@ -3,11 +3,11 @@ import { p as K } from "./index-JCMXdVSJ.js";
|
|
3
3
|
import { p as U, u as gA, e as lA } from "./index-tCobqIDD.js";
|
4
4
|
import { defineStore as rA } from "pinia";
|
5
5
|
import { useI18n as R, useCoreStore as eA } from "@feedmepos/mf-common";
|
6
|
-
import { c as cA, a as _, P as J } from "./payout-account-
|
6
|
+
import { c as cA, a as _, P as J } from "./payout-account-rJmG1Gi5.js";
|
7
7
|
import { useDialogChild as nA, useDialog as BA } from "@feedmepos/ui-library";
|
8
8
|
import { z as F, a as H } from "./validator-D5jtpt9A.js";
|
9
9
|
import { P as $ } from "./PDFViewer-xrBtzrlR.js";
|
10
|
-
import "./app-
|
10
|
+
import "./app-BohCgZld.js";
|
11
11
|
import { _ as uA } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
12
12
|
function wA() {
|
13
13
|
return {
|
@@ -2,7 +2,7 @@ import { defineComponent as z, ref as I, onUpdated as oe, h as M, onMounted as m
|
|
2
2
|
import { e as Ce } from "./index-tCobqIDD.js";
|
3
3
|
import { h as ye } from "./moment-h96o7c8I.js";
|
4
4
|
import { u as we } from "./index-BOwfUR6x.js";
|
5
|
-
import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-
|
5
|
+
import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-DpAWcXVU.js";
|
6
6
|
import { _ as Me } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
7
7
|
import { useSnackbar as W, useDialogChild as Re, useDialog as Ae } from "@feedmepos/ui-library";
|
8
8
|
import { t as Q } from "./index-BQtW6X1l.js";
|
@@ -9,7 +9,7 @@ import { w as q } from "./Modal-DB8M9o1T.js";
|
|
9
9
|
import { u as F } from "./error-K1CakhA9.js";
|
10
10
|
import { _ as J } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
11
11
|
import { g as W } from "./grafana-DCGA3gMb.js";
|
12
|
-
import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-
|
12
|
+
import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-DpAWcXVU.js";
|
13
13
|
import { e as D } from "./index-tCobqIDD.js";
|
14
14
|
import { _ as Z } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js";
|
15
15
|
import { useCoreStore as ee } from "@feedmepos/mf-common";
|
@@ -327,7 +327,7 @@ const Gn = {
|
|
327
327
|
sidebarDisplay: "Payout Accounts",
|
328
328
|
section: "payment-gateway"
|
329
329
|
},
|
330
|
-
component: () => import("./PayoutAccount-
|
330
|
+
component: () => import("./PayoutAccount-DI5YpzGm.js")
|
331
331
|
},
|
332
332
|
{
|
333
333
|
path: "/admin/payout-accounts/:accountId",
|
@@ -345,7 +345,7 @@ const Gn = {
|
|
345
345
|
sidebarDisplay: "POS",
|
346
346
|
section: "device"
|
347
347
|
},
|
348
|
-
component: () => import("./Terminal-
|
348
|
+
component: () => import("./Terminal-KE_9M2jr.js"),
|
349
349
|
props: {
|
350
350
|
type: "POS"
|
351
351
|
}
|
@@ -357,7 +357,7 @@ const Gn = {
|
|
357
357
|
sidebarDisplay: "Kiosks",
|
358
358
|
section: "device"
|
359
359
|
},
|
360
|
-
component: () => import("./Terminal-
|
360
|
+
component: () => import("./Terminal-KE_9M2jr.js"),
|
361
361
|
props: {
|
362
362
|
type: "KIOSK"
|
363
363
|
}
|
@@ -369,7 +369,7 @@ const Gn = {
|
|
369
369
|
sidebarDisplay: "Terminals",
|
370
370
|
section: "device"
|
371
371
|
},
|
372
|
-
component: () => import("./Terminal-
|
372
|
+
component: () => import("./Terminal-KE_9M2jr.js"),
|
373
373
|
props: {
|
374
374
|
type: "TERMINAL"
|
375
375
|
}
|
@@ -407,7 +407,7 @@ const Gn = {
|
|
407
407
|
meta: {
|
408
408
|
sidebarDisplay: "Transactions"
|
409
409
|
},
|
410
|
-
component: () => import("./Transaction-
|
410
|
+
component: () => import("./Transaction-CA9RQ8qT.js")
|
411
411
|
},
|
412
412
|
{
|
413
413
|
path: "/admin/settlement",
|
@@ -434,7 +434,7 @@ const Gn = {
|
|
434
434
|
{
|
435
435
|
path: "/payout-account",
|
436
436
|
name: "mf-payment-payout-account",
|
437
|
-
component: () => import("./PayoutAccount-
|
437
|
+
component: () => import("./PayoutAccount-mlaDc7_i.js"),
|
438
438
|
meta: {
|
439
439
|
sidebarDisplay: "i18n:payment.routes.payout_account"
|
440
440
|
}
|
package/dist/app.js
CHANGED
@@ -1,26 +1,26 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { u as
|
1
|
+
import { defineComponent as U, ref as r, resolveComponent as p, openBlock as f, createBlock as S, withCtx as z, createVNode as m, createElementVNode as s, normalizeStyle as j, createElementBlock as M, Fragment as N, renderList as E, computed as k, watch as I, onMounted as O, unref as D, toDisplayString as B, createCommentVNode as R, normalizeClass as G, nextTick as H } from "vue";
|
2
|
+
import { u as J } from "./index-tCobqIDD.js";
|
3
3
|
import "@feedmepos/ui-library";
|
4
|
-
const
|
4
|
+
const K = ["id"], L = /* @__PURE__ */ U({
|
5
5
|
__name: "FmTableSelection",
|
6
6
|
props: {
|
7
7
|
value: {},
|
8
8
|
items: {}
|
9
9
|
},
|
10
10
|
emits: ["update:modelValue"],
|
11
|
-
setup(g, { emit:
|
12
|
-
const
|
11
|
+
setup(g, { emit: F }) {
|
12
|
+
const h = F, y = g, i = r(!1);
|
13
13
|
return (x, c) => {
|
14
|
-
const
|
15
|
-
return f(),
|
14
|
+
const V = p("FmButton"), C = p("FmMenuItem"), b = p("FmMenu");
|
15
|
+
return f(), S(b, {
|
16
16
|
"max-height": 264,
|
17
17
|
shift: "",
|
18
18
|
onMenuChanged: c[0] || (c[0] = (a) => i.value = a)
|
19
19
|
}, {
|
20
|
-
"menu-button":
|
20
|
+
"menu-button": z(() => {
|
21
21
|
var a;
|
22
22
|
return [
|
23
|
-
|
23
|
+
m(V, {
|
24
24
|
icon: i.value ? "expand_less" : "expand_more",
|
25
25
|
label: (a = x.items.find((o) => o.value === y.value)) == null ? void 0 : a.label,
|
26
26
|
"icon-position": "append",
|
@@ -29,31 +29,31 @@ const J = ["id"], U = /* @__PURE__ */ I({
|
|
29
29
|
}, null, 8, ["icon", "label"])
|
30
30
|
];
|
31
31
|
}),
|
32
|
-
"menu-wrapper":
|
33
|
-
|
32
|
+
"menu-wrapper": z(({ maxHeight: a }) => [
|
33
|
+
s("div", {
|
34
34
|
id: `menu-wrapper-${a}`,
|
35
|
-
style:
|
35
|
+
style: j({ maxHeight: `${a}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
|
-
(f(!0), M(N, null,
|
38
|
+
(f(!0), M(N, null, E(x.items, (o) => (f(), S(C, {
|
39
39
|
key: o.value,
|
40
40
|
label: o.label,
|
41
41
|
value: o.value,
|
42
42
|
"model-value": o.value === y.value,
|
43
|
-
"onUpdate:modelValue": (l) =>
|
43
|
+
"onUpdate:modelValue": (l) => h("update:modelValue", o.value)
|
44
44
|
}, null, 8, ["label", "value", "model-value", "onUpdate:modelValue"]))), 128))
|
45
|
-
], 12,
|
45
|
+
], 12, K)
|
46
46
|
]),
|
47
47
|
_: 1
|
48
48
|
});
|
49
49
|
};
|
50
50
|
}
|
51
|
-
}),
|
51
|
+
}), Q = {
|
52
52
|
key: 0,
|
53
53
|
class: "basis-72 bg-white flex items-center justify-between px-24 pt-6"
|
54
|
-
},
|
55
|
-
class: /* @__PURE__ */
|
56
|
-
},
|
54
|
+
}, W = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, X = { class: "flex gap-8 items-center" }, Y = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary xs:hidden xs:invisible" }, Z = {
|
55
|
+
class: /* @__PURE__ */ G(["flex gap-8 items-center"])
|
56
|
+
}, ee = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, te = { class: "flex gap-8" }, oe = /* @__PURE__ */ U({
|
57
57
|
__name: "index",
|
58
58
|
props: {
|
59
59
|
columnDefs: {
|
@@ -70,28 +70,30 @@ const J = ["id"], U = /* @__PURE__ */ I({
|
|
70
70
|
}
|
71
71
|
},
|
72
72
|
emits: ["row-click"],
|
73
|
-
setup(g, { expose:
|
73
|
+
setup(g, { expose: F, emit: h }) {
|
74
74
|
const y = [10, 20, 30, 50, 100].map((t) => ({
|
75
75
|
label: t.toString(),
|
76
76
|
value: t
|
77
|
-
})), i = g, x =
|
78
|
-
|
77
|
+
})), i = g, x = h, { isLoading: c, startLoading: V, stopLoading: C } = J(!0), b = r(), a = r(), o = r(""), l = r(10), n = r(1), v = r(0), _ = async function(t = !1) {
|
78
|
+
V(), t && (a.value = [], o.value = "", n.value = 1, await H(), v.value = 0);
|
79
79
|
const e = await i.paginate(l.value, o.value);
|
80
|
-
a.value = [...a.value ?? [], ...e.data], o.value = e.meta.cursor ?? "", v.value += 1,
|
81
|
-
}, T =
|
80
|
+
a.value = [...a.value ?? [], ...e.data], o.value = e.meta.cursor ?? "", v.value += 1, C();
|
81
|
+
}, T = k(() => n.value > 1), $ = k(() => n.value < v.value ? !0 : o.value > ""), q = k(() => {
|
82
82
|
const t = l.value * (n.value - 1), e = t + l.value;
|
83
83
|
return (a.value ?? []).slice(t, e).map(i.rowsDefs);
|
84
84
|
});
|
85
|
-
|
85
|
+
I(l, () => _(!0)), I(n, (t) => {
|
86
86
|
t > v.value && _();
|
87
|
-
}),
|
87
|
+
}), O(() => _());
|
88
|
+
const A = k(() => l.value * (n.value - 1));
|
89
|
+
return F({
|
88
90
|
reset: () => _(!0),
|
89
91
|
data: () => a.value ?? [],
|
90
92
|
allData: async () => {
|
91
93
|
let t = [], e = "";
|
92
94
|
do {
|
93
|
-
const
|
94
|
-
t = [...t, ...
|
95
|
+
const d = await i.paginate(100, e);
|
96
|
+
t = [...t, ...d.data], e = d.meta.cursor ?? "";
|
95
97
|
} while (e > "");
|
96
98
|
return t;
|
97
99
|
},
|
@@ -100,59 +102,59 @@ const J = ["id"], U = /* @__PURE__ */ I({
|
|
100
102
|
return (a.value ?? []).slice(t, e);
|
101
103
|
},
|
102
104
|
replaceData: (t, e) => {
|
103
|
-
const
|
104
|
-
a.value && (a.value[
|
105
|
+
const d = l.value * (n.value - 1) + t;
|
106
|
+
a.value && (a.value[d] = e);
|
105
107
|
}
|
106
108
|
}), (t, e) => {
|
107
|
-
const
|
109
|
+
const d = p("FmTable"), P = p("FmButton");
|
108
110
|
return f(), M(N, null, [
|
109
|
-
d
|
111
|
+
m(d, {
|
110
112
|
modelValue: b.value,
|
111
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
113
|
+
"onUpdate:modelValue": e[0] || (e[0] = (u) => b.value = u),
|
112
114
|
loading: D(c),
|
113
115
|
"page-size": l.value,
|
114
116
|
"row-data": q.value,
|
115
117
|
"column-defs": g.columnDefs,
|
116
118
|
"hide-footer": !0,
|
117
119
|
"shrink-at": !1,
|
118
|
-
onRowClick: e[1] || (e[1] = (
|
120
|
+
onRowClick: e[1] || (e[1] = (u) => {
|
119
121
|
var w;
|
120
|
-
return x("row-click", (w = a.value) == null ? void 0 : w.at(
|
122
|
+
return x("row-click", (w = a.value) == null ? void 0 : w.at(A.value + u.index));
|
121
123
|
})
|
122
124
|
}, null, 8, ["modelValue", "loading", "page-size", "row-data", "column-defs"]),
|
123
|
-
D(c) ?
|
124
|
-
|
125
|
-
|
126
|
-
e[6] || (e[6] =
|
127
|
-
|
125
|
+
D(c) ? R("", !0) : (f(), M("div", Q, [
|
126
|
+
s("div", W, [
|
127
|
+
s("div", X, [
|
128
|
+
e[6] || (e[6] = s("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
|
129
|
+
m(L, {
|
128
130
|
items: D(y),
|
129
131
|
value: l.value,
|
130
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
132
|
+
"onUpdate:modelValue": e[2] || (e[2] = (u) => l.value = u)
|
131
133
|
}, null, 8, ["items", "value"])
|
132
134
|
]),
|
133
|
-
|
135
|
+
s("span", Y, B((n.value - 1) * l.value) + " - " + B((n.value - 1) * l.value + l.value), 1)
|
134
136
|
]),
|
135
|
-
|
136
|
-
|
137
|
-
items: Array.from(Array(v.value), (
|
138
|
-
(
|
139
|
-
label:
|
140
|
-
value:
|
137
|
+
s("div", Z, [
|
138
|
+
m(L, {
|
139
|
+
items: Array.from(Array(v.value), (u, w) => w + 1).map(
|
140
|
+
(u) => ({
|
141
|
+
label: u.toString(),
|
142
|
+
value: u
|
141
143
|
})
|
142
144
|
),
|
143
145
|
value: n.value,
|
144
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
146
|
+
"onUpdate:modelValue": e[3] || (e[3] = (u) => n.value = u)
|
145
147
|
}, null, 8, ["items", "value"]),
|
146
|
-
|
147
|
-
|
148
|
-
|
148
|
+
s("span", ee, " Page " + B(n.value), 1),
|
149
|
+
s("div", te, [
|
150
|
+
m(P, {
|
149
151
|
disabled: !T.value,
|
150
152
|
icon: "chevron_left",
|
151
153
|
"icon-color": "neutral-black",
|
152
154
|
variant: "tertiary",
|
153
155
|
onClick: e[4] || (e[4] = () => n.value -= 1)
|
154
156
|
}, null, 8, ["disabled"]),
|
155
|
-
|
157
|
+
m(P, {
|
156
158
|
disabled: !$.value,
|
157
159
|
icon: "chevron_right",
|
158
160
|
"icon-color": "neutral-black",
|
@@ -167,5 +169,5 @@ const J = ["id"], U = /* @__PURE__ */ I({
|
|
167
169
|
}
|
168
170
|
});
|
169
171
|
export {
|
170
|
-
|
172
|
+
oe as _
|
171
173
|
};
|
package/dist/package.json
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as Je, C as Qe, r as Ee, S as et, g as re, a as tt, b as nt, c as _e, F as rt, d as st, e as it } from "./app-
|
1
|
+
import { _ as Je, C as Qe, r as Ee, S as et, g as re, a as tt, b as nt, c as _e, F as rt, d as st, e as it } from "./app-BohCgZld.js";
|
2
2
|
import { c as ot, a as at, B as ut, p as Y } from "./index-tCobqIDD.js";
|
3
3
|
import { useCoreStore as ct } from "@feedmepos/mf-common";
|
4
4
|
/**
|