@feedmepos/mf-payment 1.2.8 → 1.2.9
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-3oqUAPya.js → PayoutAccount-6hKHVfxm.js} +5 -5
- package/dist/{PayoutAccount-BFd4ZkgD.js → PayoutAccount-WsuvGGev.js} +6 -6
- package/dist/{PayoutAccountSetting-CRRr0KtX.js → PayoutAccountSetting-kFtY4hnm.js} +3 -3
- package/dist/{Restaurant-RkwI3GUs.js → Restaurant-BF_jXqhL.js} +4 -4
- package/dist/{RestaurantSetting-hhg1zuef.js → RestaurantSetting-sMZOnkjW.js} +3 -3
- package/dist/{Settlement-qZtRxnVP.js → Settlement-BEwx2k_h.js} +3 -3
- package/dist/{Settlement-pYqYrtHG.js → Settlement-UYX8-U_n.js} +3 -3
- package/dist/{SettlementTransactions-4NCIvfQ5.js → SettlementTransactions-DONlto2W.js} +3 -3
- package/dist/{SettlementTransactions-BCwKrESr.js → SettlementTransactions-WxLHkiuw.js} +3 -3
- package/dist/{Terminal-yvHejCtx.js → Terminal-DDecseOO.js} +5 -5
- package/dist/{TerminalSetting-CL7ip769.js → TerminalSetting-B-Rlwf2-.js} +3 -3
- package/dist/{Transaction-iyjpVywA.js → Transaction-B2tEOXXd.js} +7 -7
- package/dist/{Transaction-DW8YObK7.js → Transaction-CNi-na7f.js} +5 -5
- package/dist/{TransactionOld-CcraFd4T.js → TransactionOld-C64e3hQJ.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-C9RzkJqY.js → TransactionTable.vue_vue_type_script_setup_true_lang-Cyljl6hU.js} +120 -112
- package/dist/{app-DbMeEwqM.js → app-gcoIGoMD.js} +217 -217
- package/dist/app.js +1 -1
- package/dist/{assets-B9vrS-eB.js → assets-CK0-Pj07.js} +2 -2
- package/dist/{grafana-Wua_krwL.js → grafana-coUWFWSV.js} +1 -1
- package/dist/{index-CK_oj7_Z.js → index-CJOPvwhx.js} +2 -2
- package/dist/{index-CRS1GaGe.js → index-CWIdEOSU.js} +1 -1
- package/dist/{index-DERDDTKs.js → index-CkVQi3Lk.js} +1 -1
- package/dist/{index-OI7B02F1.js → index-CuIq1ul_.js} +1 -1
- package/dist/{index-C7-Hhotq.js → index-D7qO1KG7.js} +955 -955
- package/dist/{index-Yi03mqle.js → index-x32ArWhF.js} +1 -1
- package/dist/{index-DZgB_6gq.js → index-z09M1hMv.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-yfTw0igA.js → index.vue_vue_type_script_setup_true_lang-Cnb3Y4z-.js} +27 -27
- package/dist/package.json +1 -1
- package/dist/{payout-account-CShensYL.js → payout-account-mZ8eNPNW.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { g as r, b as i, m as c, l as d, n as y, i as l, r as m } from "./index-
|
1
|
+
import { g as r, b as i, m as c, l as d, n as y, i as l, r as m } from "./index-D7qO1KG7.js";
|
2
2
|
import { h as o } from "./moment-h96o7c8I.js";
|
3
3
|
import { d as f } from "./dinero-CIVmXLL-.js";
|
4
4
|
function* p(t, n) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { j as o, k as f, c as i } from "./index-
|
1
|
+
import { j as o, k as f, c as i } from "./index-D7qO1KG7.js";
|
2
2
|
var d = {}, O = {}, u = {};
|
3
3
|
Object.defineProperty(u, "__esModule", { value: !0 });
|
4
4
|
u.F_PAYMENT_TRANSACTION_GROUP = u.F_PAYMENT_TRANSACTION_STATUS = u.F_PAYMENT_GATEWAY_KEY = u.F_PAYMENT_TYPE = u.F_PAYMENT_FOR = void 0;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { defineComponent as I, ref as r, resolveComponent as p, openBlock as f, createBlock as L, withCtx as P, createVNode as d, createElementVNode as u, normalizeStyle as
|
2
|
-
import { u as
|
1
|
+
import { defineComponent as I, ref as r, resolveComponent as p, openBlock as f, createBlock as L, withCtx as P, createVNode as d, createElementVNode as u, normalizeStyle as A, createElementBlock as M, Fragment as N, renderList as j, computed as C, watch as S, onMounted as E, unref as D, toDisplayString as B, createCommentVNode as O, normalizeClass as R, nextTick as G } from "vue";
|
2
|
+
import { u as H } from "./index-D7qO1KG7.js";
|
3
3
|
import "@feedmepos/ui-library";
|
4
|
-
const
|
4
|
+
const J = ["id"], U = /* @__PURE__ */ I({
|
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: k }) {
|
12
|
+
const F = k, y = g, i = r(!1);
|
13
13
|
return (x, c) => {
|
14
14
|
const h = p("FmButton"), V = p("FmMenuItem"), b = p("FmMenu");
|
15
15
|
return f(), L(b, {
|
@@ -32,7 +32,7 @@ const H = ["id"], U = /* @__PURE__ */ I({
|
|
32
32
|
"menu-wrapper": P(({ maxHeight: a }) => [
|
33
33
|
u("div", {
|
34
34
|
id: `menu-wrapper-${a}`,
|
35
|
-
style:
|
35
|
+
style: A({ 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
38
|
(f(!0), M(N, null, j(x.items, (o) => (f(), L(V, {
|
@@ -40,20 +40,20 @@ const H = ["id"], U = /* @__PURE__ */ I({
|
|
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) => F("update:modelValue", o.value)
|
44
44
|
}, null, 8, ["label", "value", "model-value", "onUpdate:modelValue"]))), 128))
|
45
|
-
], 12,
|
45
|
+
], 12, J)
|
46
46
|
]),
|
47
47
|
_: 1
|
48
48
|
});
|
49
49
|
};
|
50
50
|
}
|
51
|
-
}),
|
51
|
+
}), K = {
|
52
52
|
key: 0,
|
53
53
|
class: "basis-72 bg-white flex items-center justify-between px-24 pt-6"
|
54
|
-
},
|
54
|
+
}, Q = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, W = { class: "flex gap-8 items-center" }, X = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary xs:hidden xs:invisible" }, Y = {
|
55
55
|
class: /* @__PURE__ */ R(["flex gap-8 items-center"])
|
56
|
-
},
|
56
|
+
}, Z = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, ee = { class: "flex gap-8" }, ne = /* @__PURE__ */ I({
|
57
57
|
__name: "index",
|
58
58
|
props: {
|
59
59
|
columnDefs: {
|
@@ -70,21 +70,21 @@ const H = ["id"], U = /* @__PURE__ */ I({
|
|
70
70
|
}
|
71
71
|
},
|
72
72
|
emits: ["row-click"],
|
73
|
-
setup(g, { expose:
|
73
|
+
setup(g, { expose: k, emit: F }) {
|
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
|
-
h(), t && (a.value = [], o.value = "", n.value = 1, v.value = 0);
|
77
|
+
})), i = g, x = F, { isLoading: c, startLoading: h, stopLoading: V } = H(!0), b = r(), a = r(), o = r(""), l = r(10), n = r(1), v = r(0), _ = async function(t = !1) {
|
78
|
+
h(), t && (a.value = [], o.value = "", n.value = 1, await G(), v.value = 0);
|
79
79
|
const e = await i.paginate(l.value, o.value);
|
80
80
|
a.value = [...a.value ?? [], ...e.data], o.value = e.meta.cursor ?? "", v.value += 1, V();
|
81
|
-
},
|
81
|
+
}, T = C(() => n.value > 1), $ = C(() => n.value < v.value ? !0 : o.value > ""), q = C(() => {
|
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
|
return S(l, () => _(!0)), S(n, (t) => {
|
86
86
|
t > v.value && _();
|
87
|
-
}), E(() => _()),
|
87
|
+
}), E(() => _()), k({
|
88
88
|
reset: () => _(!0),
|
89
89
|
data: () => a.value ?? [],
|
90
90
|
allData: async () => {
|
@@ -111,7 +111,7 @@ const H = ["id"], U = /* @__PURE__ */ I({
|
|
111
111
|
"onUpdate:modelValue": e[0] || (e[0] = (s) => b.value = s),
|
112
112
|
loading: D(c),
|
113
113
|
"page-size": l.value,
|
114
|
-
"row-data":
|
114
|
+
"row-data": q.value,
|
115
115
|
"column-defs": g.columnDefs,
|
116
116
|
"hide-footer": !0,
|
117
117
|
"shrink-at": !1,
|
@@ -120,9 +120,9 @@ const H = ["id"], U = /* @__PURE__ */ I({
|
|
120
120
|
return x("row-click", (w = a.value) == null ? void 0 : w.at(s.index));
|
121
121
|
})
|
122
122
|
}, null, 8, ["modelValue", "loading", "page-size", "row-data", "column-defs"]),
|
123
|
-
D(c) ? O("", !0) : (f(), M("div",
|
124
|
-
u("div",
|
125
|
-
u("div",
|
123
|
+
D(c) ? O("", !0) : (f(), M("div", K, [
|
124
|
+
u("div", Q, [
|
125
|
+
u("div", W, [
|
126
126
|
e[6] || (e[6] = u("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
|
127
127
|
d(U, {
|
128
128
|
items: D(y),
|
@@ -130,9 +130,9 @@ const H = ["id"], U = /* @__PURE__ */ I({
|
|
130
130
|
"onUpdate:modelValue": e[2] || (e[2] = (s) => l.value = s)
|
131
131
|
}, null, 8, ["items", "value"])
|
132
132
|
]),
|
133
|
-
u("span",
|
133
|
+
u("span", X, B((n.value - 1) * l.value) + " - " + B((n.value - 1) * l.value + l.value), 1)
|
134
134
|
]),
|
135
|
-
u("div",
|
135
|
+
u("div", Y, [
|
136
136
|
d(U, {
|
137
137
|
items: Array.from(Array(v.value), (s, w) => w + 1).map(
|
138
138
|
(s) => ({
|
@@ -143,17 +143,17 @@ const H = ["id"], U = /* @__PURE__ */ I({
|
|
143
143
|
value: n.value,
|
144
144
|
"onUpdate:modelValue": e[3] || (e[3] = (s) => n.value = s)
|
145
145
|
}, null, 8, ["items", "value"]),
|
146
|
-
u("span",
|
147
|
-
u("div",
|
146
|
+
u("span", Z, " Page " + B(n.value), 1),
|
147
|
+
u("div", ee, [
|
148
148
|
d(z, {
|
149
|
-
disabled:
|
149
|
+
disabled: !T.value,
|
150
150
|
icon: "chevron_left",
|
151
151
|
"icon-color": "neutral-black",
|
152
152
|
variant: "tertiary",
|
153
153
|
onClick: e[4] || (e[4] = () => n.value -= 1)
|
154
154
|
}, null, 8, ["disabled"]),
|
155
155
|
d(z, {
|
156
|
-
disabled:
|
156
|
+
disabled: !$.value,
|
157
157
|
icon: "chevron_right",
|
158
158
|
"icon-color": "neutral-black",
|
159
159
|
variant: "tertiary",
|
@@ -167,5 +167,5 @@ const H = ["id"], U = /* @__PURE__ */ I({
|
|
167
167
|
}
|
168
168
|
});
|
169
169
|
export {
|
170
|
-
|
170
|
+
ne as _
|
171
171
|
};
|
package/dist/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as rt, C as st, r as ye, S as it, g as re, a as ot, b as at, c as pe, F as ut, d as ct, e as lt } from "./app-
|
2
|
-
import { a as ht, c as dt, d as ft } from "./index-
|
3
|
-
import { _ as G } from "./index-
|
1
|
+
import { _ as rt, C as st, r as ye, S as it, g as re, a as ot, b as at, c as pe, F as ut, d as ct, e as lt } from "./app-gcoIGoMD.js";
|
2
|
+
import { a as ht, c as dt, d as ft } from "./index-D7qO1KG7.js";
|
3
|
+
import { _ as G } from "./index-z09M1hMv.js";
|
4
4
|
import { useCoreStore as _t } from "@feedmepos/mf-common";
|
5
5
|
/**
|
6
6
|
* @license
|