@feedmepos/mf-payment 0.0.0-beta.22 → 0.0.0-beta.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js +28 -0
  2. package/dist/{PayoutAccount-C3OOz1oi.js → PayoutAccount-BjGdteR8.js} +5 -5
  3. package/dist/{PayoutAccount-BGSq2B6o.js → PayoutAccount-CdKAjUed.js} +3 -3
  4. package/dist/{PayoutAccountSetting-WxLdT6mv.js → PayoutAccountSetting-DsqjVlIu.js} +5 -5
  5. package/dist/{Settlement-CKxNAHAH.js → Settlement-CY0-gXn5.js} +25 -23
  6. package/dist/{Settlement-DQcrZNvo.js → Settlement-DTE8p3LA.js} +27 -25
  7. package/dist/{SettlementTransactions-CUG4ePP_.js → SettlementTransactions-BJlBWR1G.js} +4 -4
  8. package/dist/{SettlementTransactions-V5fjLv7H.js → SettlementTransactions-C4tIk6nO.js} +4 -4
  9. package/dist/Terminal-C4gOl3zs.js +339 -0
  10. package/dist/{TerminalSetting-BuAaL5qK.js → TerminalSetting-DC9NBozT.js} +3 -3
  11. package/dist/{TerminalTransaction-D4c0ivQg.js → TerminalTransaction-BUT01dUv.js} +33 -31
  12. package/dist/{TerminalTransaction-DbjVvH2P.js → TerminalTransaction-CCdbfxx0.js} +33 -31
  13. package/dist/{Transaction-h2YrauW3.js → Transaction-60yViCMI.js} +53 -53
  14. package/dist/{Transaction-MrC2wj9k.js → Transaction-CoCZaBfu.js} +4 -4
  15. package/dist/api/index.d.ts +1 -0
  16. package/dist/app.js +13 -13
  17. package/dist/{assets-Cj6QBVPU.js → assets-BmFExmpA.js} +1 -1
  18. package/dist/clipboard-4jh1WteU.js +10 -0
  19. package/dist/components/AutoCopyCell.vue.d.ts +6 -0
  20. package/dist/{index-DA_XRfnd.js → index-Bvb4T6xz.js} +1 -1
  21. package/dist/{index-DN6pSWL_.js → index-CDgQhs3k.js} +1 -1
  22. package/dist/index-DeF94ACV.js +34 -0
  23. package/dist/{index-C58XD8h3.js → index-Df0izARr.js} +1 -1
  24. package/dist/{index-DYnNx4du.js → index-Jtghafz6.js} +1 -1
  25. package/dist/{index-De4-LJjg.js → index-_qikPh5K.js} +766 -766
  26. package/dist/{index.vue_vue_type_script_setup_true_lang-J6BwjC-p.js → index.vue_vue_type_script_setup_true_lang-CfU6stly.js} +1 -1
  27. package/dist/package.json +1 -1
  28. package/dist/{payout-account-BBG-e-NS.js → payout-account-CRgYpkAs.js} +147 -147
  29. package/dist/{transaction-BmxtNt6_.js → transaction-B5QUg556.js} +1 -1
  30. package/dist/tsconfig.app.tsbuildinfo +1 -1
  31. package/package.json +1 -1
  32. package/dist/Terminal-C_G_AuJZ.js +0 -318
  33. package/dist/index-CvMai9eW.js +0 -26
@@ -0,0 +1,28 @@
1
+ import { defineComponent as i, openBlock as c, createElementBlock as l, toDisplayString as s } from "vue";
2
+ import { c as m } from "./clipboard-4jh1WteU.js";
3
+ import { useSnackbar as d } from "@feedmepos/ui-library";
4
+ const u = /* @__PURE__ */ i({
5
+ __name: "AutoCopyCell",
6
+ props: {
7
+ data: {}
8
+ },
9
+ setup(p) {
10
+ const o = p, t = d();
11
+ function r() {
12
+ try {
13
+ m(o.data), t.open({ title: "Text copied to clipboard." }, 1e3);
14
+ } catch {
15
+ t.open({ title: "Clipboard API incompatible." }, 1e3);
16
+ }
17
+ o.data;
18
+ }
19
+ return (a, e) => (c(), l("div", {
20
+ onClick: e[0] || (e[0] = (n) => {
21
+ n.stopPropagation(), r();
22
+ })
23
+ }, s(a.data), 1));
24
+ }
25
+ });
26
+ export {
27
+ u as _
28
+ };
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as b, resolveComponent as m, openBlock as g, createBlock as h, normalizeClass as N, withCtx as f, createElementVNode as P, toDisplayString as C, createVNode as c, computed as x, ref as E, watch as F, unref as l, isRef as k, h as w } from "vue";
2
- import { u as S } from "./index-DA_XRfnd.js";
3
- import { _ as O } from "./index-De4-LJjg.js";
2
+ import { u as S } from "./index-Bvb4T6xz.js";
3
+ import { _ as O } from "./index-_qikPh5K.js";
4
4
  import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
5
- import { P as V } from "./payout-account-BBG-e-NS.js";
6
- import { p as D } from "./index-DN6pSWL_.js";
5
+ import { P as V } from "./payout-account-CRgYpkAs.js";
6
+ import { p as D } from "./index-CDgQhs3k.js";
7
7
  import "@feedmepos/ui-library";
8
- import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-J6BwjC-p.js";
8
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-CfU6stly.js";
9
9
  import { useRouter as $ } from "vue-router";
10
10
  const G = /* @__PURE__ */ b({
11
11
  __name: "Status",
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as F, ref as P, reactive as k, computed as Z, watch as y, resolveComponent as i, openBlock as c, createBlock as Y, withCtx as X, createElementVNode as g, createVNode as u, unref as n, createCommentVNode as v, createElementBlock as p, normalizeClass as N, toDisplayString as R, h as W, onMounted as T, Fragment as L } from "vue";
2
- import { p as z } from "./index-DN6pSWL_.js";
3
- import { _ as I, u as S, e as h } from "./index-De4-LJjg.js";
2
+ import { p as z } from "./index-CDgQhs3k.js";
3
+ import { _ as I, u as S, e as h } from "./index-_qikPh5K.js";
4
4
  import { defineStore as _ } from "pinia";
5
5
  import { useCoreStore as $ } from "@feedmepos/mf-common";
6
- import { c as AA, P as j } from "./payout-account-BBG-e-NS.js";
6
+ import { c as AA, P as j } from "./payout-account-CRgYpkAs.js";
7
7
  import { useDialogChild as sA, useDialog as eA } from "@feedmepos/ui-library";
8
8
  import { z as f, a as q } from "./validator-D5jtpt9A.js";
9
9
  import { P as K } from "./PDFViewer-CjH_C1uT.js";
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as I, resolveComponent as y, openBlock as b, createElementBlock as G, Fragment as D, createElementVNode as i, createVNode as o, withCtx as w, createTextVNode as x, toDisplayString as S, createCommentVNode as U, createBlock as V, ref as C, watch as K, computed as E, unref as p, isRef as M, h as N, onMounted as O, resolveDynamicComponent as j, normalizeProps as z, mergeProps as H } from "vue";
2
- import { p as T } from "./index-DN6pSWL_.js";
3
- import { g as _, b as B, u as L } from "./index-De4-LJjg.js";
2
+ import { p as T } from "./index-CDgQhs3k.js";
3
+ import { g as _, b as B, u as L } from "./index-_qikPh5K.js";
4
4
  import { _ as Z } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
5
5
  import { useRouter as J } from "vue-router";
6
- import { u as Q } from "./index-DA_XRfnd.js";
6
+ import { u as Q } from "./index-Bvb4T6xz.js";
7
7
  import { P as q } from "./PDFViewer-CjH_C1uT.js";
8
8
  import { useSnackbar as X } from "@feedmepos/ui-library";
9
9
  import { u as Y } from "./error-K1CakhA9.js";
@@ -102,7 +102,7 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
102
102
  ], 64);
103
103
  };
104
104
  }
105
- }), ae = { class: "flex gap-16 mt-6" }, ne = { class: "flex-1" }, le = { class: "flex-1" }, oe = /* @__PURE__ */ I({
105
+ }), ae = { class: "flex gap-16" }, ne = { class: "flex-1" }, le = { class: "flex-1" }, oe = /* @__PURE__ */ I({
106
106
  __name: "Settlement",
107
107
  props: {
108
108
  payoutAccount: {
@@ -116,7 +116,7 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
116
116
  return b(), G(D, null, [
117
117
  o(a, {
118
118
  horizontal: "",
119
- class: "flex-1 p-6 mx-6",
119
+ class: "flex-1 p-6 mx-6 mb-6",
120
120
  variant: "elevated"
121
121
  }, {
122
122
  default: w(() => [
@@ -1,16 +1,17 @@
1
- import { defineComponent as w, ref as S, computed as D, resolveComponent as h, openBlock as v, createBlock as x, onMounted as A, watch as k, unref as n, withCtx as F, createElementVNode as p, createVNode as i, isRef as C } from "vue";
2
- import { u as V } from "./index-De4-LJjg.js";
1
+ import { defineComponent as w, ref as S, computed as D, resolveComponent as h, openBlock as v, createBlock as x, h as A, onMounted as k, watch as F, unref as n, withCtx as V, createElementVNode as p, createVNode as i, isRef as C } from "vue";
2
+ import { u as $ } from "./index-_qikPh5K.js";
3
3
  import { h as _ } from "./moment-h96o7c8I.js";
4
4
  import { useCoreStore as b } from "@feedmepos/mf-common";
5
- import { _ as $ } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
6
- import { s as g } from "./index-C58XD8h3.js";
5
+ import { _ as I } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
6
+ import { s as g } from "./index-Df0izARr.js";
7
7
  import "@feedmepos/ui-library";
8
8
  import { d as f } from "./dinero-CIVmXLL-.js";
9
- import { useRouter as I } from "vue-router";
10
- import { u as K } from "./index-DA_XRfnd.js";
11
- import { _ as P } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
12
- import { _ as O } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
13
- const Y = /* @__PURE__ */ w({
9
+ import { _ as K } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js";
10
+ import { useRouter as P } from "vue-router";
11
+ import { u as O } from "./index-Bvb4T6xz.js";
12
+ import { _ as Y } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
13
+ import { _ as B } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
14
+ const L = /* @__PURE__ */ w({
14
15
  __name: "SettlementTable",
15
16
  props: {
16
17
  data: {
@@ -27,7 +28,8 @@ const Y = /* @__PURE__ */ w({
27
28
  const e = y, r = d, s = S(""), c = [
28
29
  {
29
30
  header: () => "Settlement ID",
30
- accessorKey: "id"
31
+ accessorKey: "id",
32
+ cell: ({ cell: t }) => A(K, { data: t.getValue() })
31
33
  },
32
34
  {
33
35
  header: () => "Created At",
@@ -67,15 +69,15 @@ const Y = /* @__PURE__ */ w({
67
69
  }, null, 8, ["modelValue", "row-data", "loading"]);
68
70
  };
69
71
  }
70
- }), B = { class: "flex justify-between items-center mb-6" }, L = { class: "flex space-x-8 items-center" }, M = { class: "flex space-x-4 items-center" }, X = /* @__PURE__ */ w({
72
+ }), M = { class: "flex justify-between items-center mb-6" }, T = { class: "flex space-x-8 items-center" }, q = { class: "flex space-x-4 items-center" }, te = /* @__PURE__ */ w({
71
73
  __name: "Settlement",
72
74
  setup(y) {
73
- const d = I(), { dateRange: e } = K({
75
+ const d = P(), { dateRange: e } = O({
74
76
  dateRange: {
75
77
  startDate: _().startOf("day").toISOString(),
76
78
  endDate: _().endOf("day").toISOString()
77
79
  }
78
- }), { isLoading: r, startAsyncCall: s } = V(!0), { currentRestaurant: c } = b(), l = S([]);
80
+ }), { isLoading: r, startAsyncCall: s } = $(!0), { currentRestaurant: c } = b(), l = S([]);
79
81
  async function t() {
80
82
  await s(async () => {
81
83
  const m = await g.readRestaurantSettlements(
@@ -90,17 +92,17 @@ const Y = /* @__PURE__ */ w({
90
92
  function o() {
91
93
  t();
92
94
  }
93
- return A(o), k(c, o), (m, a) => {
95
+ return k(o), F(c, o), (m, a) => {
94
96
  const R = h("FmDateRangePicker");
95
- return v(), x($, {
97
+ return v(), x(I, {
96
98
  title: "Settlements",
97
99
  description: "Settlements are the finalization of financial transactions, transferring funds to complete payments.",
98
100
  loading: n(r)
99
101
  }, {
100
- default: F(() => [
101
- p("div", B, [
102
- p("div", L, [
103
- i(O),
102
+ default: V(() => [
103
+ p("div", M, [
104
+ p("div", T, [
105
+ i(B),
104
106
  i(R, {
105
107
  modelValue: n(e),
106
108
  "onUpdate:modelValue": [
@@ -111,8 +113,8 @@ const Y = /* @__PURE__ */ w({
111
113
  "show-predefined-range": ""
112
114
  }, null, 8, ["modelValue"])
113
115
  ]),
114
- p("div", M, [
115
- i(P, {
116
+ p("div", q, [
117
+ i(Y, {
116
118
  button: {
117
119
  appendIcon: "file_download",
118
120
  variant: "primary",
@@ -127,7 +129,7 @@ const Y = /* @__PURE__ */ w({
127
129
  }, null, 8, ["handler"])
128
130
  ])
129
131
  ]),
130
- i(Y, {
132
+ i(L, {
131
133
  loading: n(r),
132
134
  data: l.value,
133
135
  onRowClick: a[1] || (a[1] = (u) => n(d).push({
@@ -144,5 +146,5 @@ const Y = /* @__PURE__ */ w({
144
146
  }
145
147
  });
146
148
  export {
147
- X as default
149
+ te as default
148
150
  };
@@ -1,14 +1,15 @@
1
- import { defineComponent as w, ref as v, computed as S, resolveComponent as h, openBlock as x, createBlock as D, watch as A, onMounted as k, unref as o, withCtx as F, createElementVNode as u, createVNode as p, isRef as R } from "vue";
2
- import { u as V } from "./index-De4-LJjg.js";
1
+ import { defineComponent as w, ref as h, computed as S, resolveComponent as v, openBlock as x, createBlock as D, h as A, watch as k, onMounted as F, unref as o, withCtx as R, createElementVNode as u, createVNode as p, isRef as V } from "vue";
2
+ import { u as b } from "./index-_qikPh5K.js";
3
3
  import { h as _ } from "./moment-h96o7c8I.js";
4
- import { s as g } from "./index-C58XD8h3.js";
4
+ import { s as g } from "./index-Df0izARr.js";
5
5
  import "@feedmepos/ui-library";
6
6
  import { d as f } from "./dinero-CIVmXLL-.js";
7
- import { useRouter as b } from "vue-router";
8
- import { _ as C } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
9
- import { u as $ } from "./index-DA_XRfnd.js";
10
- import { _ as I } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
11
- const K = /* @__PURE__ */ w({
7
+ import { _ as C } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js";
8
+ import { useRouter as $ } from "vue-router";
9
+ import { _ as I } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
10
+ import { u as K } from "./index-Bvb4T6xz.js";
11
+ import { _ as P } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
12
+ const B = /* @__PURE__ */ w({
12
13
  __name: "SettlementTable",
13
14
  props: {
14
15
  data: {
@@ -22,10 +23,11 @@ const K = /* @__PURE__ */ w({
22
23
  },
23
24
  emits: ["row-click"],
24
25
  setup(y, { emit: l }) {
25
- const r = y, d = l, m = v(""), e = [
26
+ const r = y, d = l, m = h(""), e = [
26
27
  {
27
28
  header: () => "Settlement ID",
28
- accessorKey: "id"
29
+ accessorKey: "id",
30
+ cell: ({ cell: t }) => A(C, { data: t.getValue() })
29
31
  },
30
32
  {
31
33
  header: () => "Created At",
@@ -54,7 +56,7 @@ const K = /* @__PURE__ */ w({
54
56
  payout: f(t.totalPayout).toFormat("$0.00")
55
57
  })));
56
58
  return (t, a) => {
57
- const n = h("FmTable");
59
+ const n = v("FmTable");
58
60
  return x(), D(n, {
59
61
  modelValue: m.value,
60
62
  "onUpdate:modelValue": a[0] || (a[0] = (s) => m.value = s),
@@ -65,16 +67,16 @@ const K = /* @__PURE__ */ w({
65
67
  }, null, 8, ["modelValue", "row-data", "loading"]);
66
68
  };
67
69
  }
68
- }), P = { class: "flex justify-between items-center mb-6" }, B = { class: "flex space-x-4 items-center" }, O = { class: "flex space-x-4 items-center" }, z = /* @__PURE__ */ w({
70
+ }), O = { class: "flex justify-between items-center mb-6" }, Y = { class: "flex space-x-4 items-center" }, L = { class: "flex space-x-4 items-center" }, J = /* @__PURE__ */ w({
69
71
  __name: "Settlement",
70
72
  setup(y) {
71
- const { isLoading: l, startAsyncCall: r } = V(!0), d = v([]), m = b(), { dateRange: e } = $({
73
+ const { isLoading: l, startAsyncCall: r } = b(!0), d = h([]), m = $(), { dateRange: e } = K({
72
74
  dateRange: {
73
75
  startDate: _().startOf("day").toISOString(),
74
76
  endDate: _().endOf("day").toISOString()
75
77
  }
76
78
  });
77
- A(e, i);
79
+ k(e, i);
78
80
  async function i() {
79
81
  await r(async () => {
80
82
  const a = await g.readByDate(
@@ -89,24 +91,24 @@ const K = /* @__PURE__ */ w({
89
91
  function t() {
90
92
  i();
91
93
  }
92
- return k(t), (a, n) => {
93
- const s = h("FmDateRangePicker");
94
- return x(), D(C, {
94
+ return F(t), (a, n) => {
95
+ const s = v("FmDateRangePicker");
96
+ return x(), D(I, {
95
97
  title: "Settlements",
96
98
  loading: o(l)
97
99
  }, {
98
- default: F(() => [
99
- u("div", P, [
100
- u("div", B, [
100
+ default: R(() => [
101
+ u("div", O, [
102
+ u("div", Y, [
101
103
  p(s, {
102
104
  modelValue: o(e),
103
- "onUpdate:modelValue": n[0] || (n[0] = (c) => R(e) ? e.value = c : null),
105
+ "onUpdate:modelValue": n[0] || (n[0] = (c) => V(e) ? e.value = c : null),
104
106
  compare: "",
105
107
  "show-predefined-range": ""
106
108
  }, null, 8, ["modelValue"])
107
109
  ]),
108
- u("div", O, [
109
- p(I, {
110
+ u("div", L, [
111
+ p(P, {
110
112
  button: {
111
113
  appendIcon: "file_download",
112
114
  variant: "primary",
@@ -121,7 +123,7 @@ const K = /* @__PURE__ */ w({
121
123
  }, null, 8, ["handler"])
122
124
  ])
123
125
  ]),
124
- p(K, {
126
+ p(B, {
125
127
  loading: o(l),
126
128
  data: d.value,
127
129
  onRowClick: n[1] || (n[1] = (c) => o(m).push({
@@ -138,5 +140,5 @@ const K = /* @__PURE__ */ w({
138
140
  }
139
141
  });
140
142
  export {
141
- z as default
143
+ J as default
142
144
  };
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as T, resolveComponent as g, openBlock as F, createBlock as P, normalizeClass as z, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as c, ref as _, onMounted as G, watch as $, createVNode as a, createTextVNode as i, h as C } from "vue";
2
- import { e as E, u as j } from "./index-De4-LJjg.js";
2
+ import { e as E, u as j } from "./index-_qikPh5K.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import { d as h } from "./dinero-CIVmXLL-.js";
5
- import { g as Y, a as H } from "./assets-Cj6QBVPU.js";
6
- import { t as q, a as J } from "./transaction-BmxtNt6_.js";
5
+ import { g as Y, a as H } from "./assets-BmFExmpA.js";
6
+ import { t as q, a as J } from "./transaction-B5QUg556.js";
7
7
  import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
8
8
  import { useRouter as W } from "vue-router";
9
- import { s as X } from "./index-C58XD8h3.js";
9
+ import { s as X } from "./index-Df0izARr.js";
10
10
  import { useCoreStore as Z } from "@feedmepos/mf-common";
11
11
  const ee = /* @__PURE__ */ T({
12
12
  __name: "Status",
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as k, normalizeClass as j, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as p, ref as T, onMounted as Y, watch as H, createVNode as n, createTextVNode as i, h as N } from "vue";
2
- import { e as E, u as q } from "./index-De4-LJjg.js";
2
+ import { e as E, u as q } from "./index-_qikPh5K.js";
3
3
  import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
4
4
  import { d as B } from "./dinero-CIVmXLL-.js";
5
- import { g as W, a as X } from "./assets-Cj6QBVPU.js";
6
- import { t as P, a as Z } from "./transaction-BmxtNt6_.js";
5
+ import { g as W, a as X } from "./assets-BmFExmpA.js";
6
+ import { t as P, a as Z } from "./transaction-B5QUg556.js";
7
7
  import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
8
8
  import { useRouter as te } from "vue-router";
9
- import { s as ae } from "./index-C58XD8h3.js";
9
+ import { s as ae } from "./index-Df0izARr.js";
10
10
  import { u as ne } from "./error-K1CakhA9.js";
11
11
  import { w as oe } from "./Modal-DB8M9o1T.js";
12
12
  const re = /* @__PURE__ */ w({