@feedmepos/mf-payment 0.0.0-beta.33 → 0.0.0-beta.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. package/dist/{PayoutAccount-DSXNLvNP.js → PayoutAccount-C-FZD8lM.js} +2 -2
  2. package/dist/{PayoutAccount-CRf5uapK.js → PayoutAccount-mpVH-GBq.js} +1 -1
  3. package/dist/{SettlementTransactions-w0jXLftr.js → SettlementTransactions-Co4ziq3a.js} +1 -1
  4. package/dist/{SettlementTransactions-CdZswF1S.js → SettlementTransactions-yJhT6FR4.js} +1 -1
  5. package/dist/{Terminal-BbIs7aYi.js → Terminal-BDDP5VT8.js} +1 -1
  6. package/dist/TerminalTransaction-CEQ3hedf.js +413 -0
  7. package/dist/{TerminalTransaction-CoPJlBCt.js → TerminalTransaction-DCqbXI2q.js} +30 -30
  8. package/dist/{Transaction-Atm-A5eN.js → Transaction-D6mKrbLJ.js} +1 -1
  9. package/dist/Transaction-DvgeNetP.js +405 -0
  10. package/dist/api/terminal-transaction/index.d.ts +3 -1
  11. package/dist/api/transaction/index.d.ts +1 -0
  12. package/dist/app.js +9 -9
  13. package/dist/components/CursorTable/index.vue.d.ts +4 -0
  14. package/dist/{index-RhSxYSBk.js → index-Dlszue3Y.js} +20 -10
  15. package/dist/{index.vue_vue_type_script_setup_true_lang-B7ePQpGr.js → index.vue_vue_type_script_setup_true_lang-B8eGz19R.js} +62 -58
  16. package/dist/model/transaction.d.ts +2 -1
  17. package/dist/package.json +1 -1
  18. package/dist/{payout-account-BKVSgJb4.js → payout-account-C5rDbsPa.js} +227 -227
  19. package/dist/{transaction-BH1Pm92q.js → transaction-DdbmOKZ7.js} +18 -11
  20. package/dist/tsconfig.app.tsbuildinfo +1 -1
  21. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +7 -0
  22. package/dist/views/admin/transaction/TransactionTable.vue.d.ts +6 -2
  23. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +7 -0
  24. package/package.json +1 -1
  25. package/dist/TerminalTransaction-CwEwNN25.js +0 -274
  26. package/dist/Transaction-DpmCjczz.js +0 -243
@@ -1,7 +1,7 @@
1
- import { defineComponent as S, ref as r, resolveComponent as v, openBlock as _, createBlock as D, withCtx as M, createVNode as i, createElementVNode as u, normalizeStyle as T, createElementBlock as U, Fragment as $, renderList as j, computed as h, watch as z, onMounted as E, unref as L, toDisplayString as C, normalizeClass as O } from "vue";
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"], P = /* @__PURE__ */ S({
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 _(), D(y, {
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": M(() => {
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((n) => n.value === p.value)) == null ? void 0 : t.label,
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": M(({ maxHeight: t }) => [
33
- u("div", {
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), U($, null, j(f.items, (n) => (_(), D(V, {
39
- key: n.value,
40
- label: n.label,
41
- value: n.value,
42
- "model-value": n.value === p.value,
43
- "onUpdate:modelValue": (l) => F("update:modelValue", n.value)
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__ */ S({
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((o) => ({
72
- label: o.toString(),
73
- value: o
74
- })), m = c, f = F, { isLoading: g, startLoading: k, stopLoading: V } = R(!0), y = r(), t = r(), n = r(""), l = r(10), a = r(1), d = r(0), b = async function(o = !1) {
75
- k(), o && (t.value = [], n.value = "", a.value = 1, d.value = 0);
76
- const e = await m.paginate(l.value, n.value);
77
- t.value = [...t.value ?? [], ...e.data], n.value = e.meta.cursor ?? "", d.value += 1, V();
78
- }, q = h(() => a.value > 1), A = h(() => a.value < d.value ? !0 : n.value > ""), I = h(() => {
79
- const o = l.value * (a.value - 1), e = o + l.value;
80
- return (t.value ?? []).slice(o, e).map(m.rowsDefs);
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 z(l, () => b(!0)), z(a, (o) => {
83
- o > d.value && b();
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 o = l.value * (a.value - 1), e = o + l.value;
89
- return (t.value ?? []).slice(o, e);
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
- }), (o, e) => {
92
- const N = v("FmTable"), B = v("FmButton");
93
- return _(), U($, null, [
94
- i(N, {
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] = (s) => y.value = s),
97
- loading: L(g),
98
- "page-size": l.value,
99
- "row-data": I.value,
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] = (s) => {
106
+ onRowClick: e[1] || (e[1] = (u) => {
103
107
  var x;
104
- return f("row-click", (x = t.value) == null ? void 0 : x.at(s.index));
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
- u("div", H, [
108
- u("div", J, [
109
- u("div", K, [
110
- e[6] || (e[6] = u("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
111
- i(P, {
112
- items: L(p),
113
- value: l.value,
114
- "onUpdate:modelValue": e[2] || (e[2] = (s) => l.value = s)
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
- u("span", Q, C((a.value - 1) * l.value) + " - " + C((a.value - 1) * l.value + l.value), 1)
121
+ s("span", Q, B((a.value - 1) * n.value) + " - " + B((a.value - 1) * n.value + n.value), 1)
118
122
  ]),
119
- u("div", W, [
120
- i(P, {
121
- items: Array.from(Array(d.value), (s, x) => x + 1).map(
122
- (s) => ({
123
- label: s.toString(),
124
- value: s
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] = (s) => a.value = s)
132
+ "onUpdate:modelValue": e[3] || (e[3] = (u) => a.value = u)
129
133
  }, null, 8, ["items", "value"]),
130
- u("span", X, " Page " + C(a.value), 1),
131
- u("div", Y, [
132
- i(B, {
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(B, {
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
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "0.0.0-beta.33",
3
+ "version": "0.0.0-beta.35",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"