@feedmepos/mf-payment 0.0.0-beta.12 → 0.0.0-beta.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  2. package/dist/Modal-DB8M9o1T.js +13 -0
  3. package/dist/{PayoutAccount-DQm62Wf2.js → PayoutAccount-CIKS18wv.js} +37 -34
  4. package/dist/{PayoutAccount-CeLwLffx.js → PayoutAccount-Daxv1Djz.js} +288 -3160
  5. package/dist/{PayoutAccountSetting-CIeos0md.js → PayoutAccountSetting-CnjAKH1q.js} +3 -3
  6. package/dist/Settlement-C7X_gzIk.js +142 -0
  7. package/dist/Settlement-DxQ9WNy-.js +146 -0
  8. package/dist/{SettlementTransactions-CYES5YMF.js → SettlementTransactions-Bne5lD30.js} +4 -4
  9. package/dist/{SettlementTransactions-B1v0f-0o.js → SettlementTransactions-RqT0OWUX.js} +100 -107
  10. package/dist/Terminal-CddS-zgz.js +318 -0
  11. package/dist/TerminalSetting-B2aM1gW-.js +176 -0
  12. package/dist/{TerminalTransaction-LofDTVwC.js → TerminalTransaction-XrqXeZZH.js} +18 -18
  13. package/dist/{Transaction-CaOxsIQH.js → Transaction-B16xeZ39.js} +80 -74
  14. package/dist/Transaction-CpOhK6md.js +249 -0
  15. package/dist/api/index.d.ts +7 -0
  16. package/dist/api/settlement/index.d.ts +7 -13
  17. package/dist/api/terminal/index.d.ts +8 -1
  18. package/dist/api/transaction/index.d.ts +6 -2
  19. package/dist/app.js +46 -40
  20. package/dist/{assets-DnuLfRTO.js → assets-nIQ0r4oP.js} +1 -1
  21. package/dist/components/AsyncButton.vue.d.ts +21 -0
  22. package/dist/components/CursorTable/index.vue.d.ts +16 -5
  23. package/dist/{index-Bmka-1lQ.js → index-CIIojtd5.js} +1 -1
  24. package/dist/index-CxYMbN69.js +37 -0
  25. package/dist/index-DflgpHga.js +55560 -0
  26. package/dist/{index-Coz5aeIO.js → index-DhPhiNvt.js} +13 -23
  27. package/dist/{index-CF56zGyu.js → index-DqQBDo_Y.js} +1 -1
  28. package/dist/index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js +155 -0
  29. package/dist/package.json +3 -3
  30. package/dist/{payout-account-OR4juI9N.js → payout-account-C4iFFgWi.js} +260 -260
  31. package/dist/{transaction-vRrBf3FN.js → transaction-B4rEbejx.js} +28 -15
  32. package/dist/tsconfig.app.tsbuildinfo +1 -1
  33. package/dist/validator-D5jtpt9A.js +2877 -0
  34. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +61 -0
  35. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  36. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +58 -9
  37. package/dist/views/admin/terminal/tabs/Fiuu.vue.d.ts +72 -0
  38. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +63 -0
  39. package/package.json +3 -3
  40. package/dist/Settlement-BVGACeme.js +0 -136
  41. package/dist/Settlement-Ce48KHrc.js +0 -132
  42. package/dist/Terminal-ByKV2Rof.js +0 -204
  43. package/dist/Transaction-C-X11abA.js +0 -242
  44. package/dist/index-DCPNrUDq.js +0 -40075
  45. package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
@@ -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
- };