@feedmepos/mf-transaction 0.0.52 → 0.0.53-beta.0

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.
@@ -1,7 +1,8 @@
1
- import { ref as p, watch as c, nextTick as l, onMounted as u, onBeforeUnmount as m, defineComponent as d, computed as v, createElementBlock as h, openBlock as f, normalizeStyle as P, renderSlot as x, resolveComponent as y, createBlock as b, withCtx as g, createElementVNode as w, createVNode as I, defineAsyncComponent as F } from "vue";
2
- import { useBreakpoints as D } from "@feedmepos/ui-library";
3
- function _(e, i) {
4
- const o = p({ top: 0, bottom: 0, left: 0, right: 0 });
1
+ import { i18nMessages as s } from "@feedmepos/mf-kitchen";
2
+ import { ref as d, watch as l, nextTick as p, onMounted as m, onBeforeUnmount as v, defineComponent as f, computed as h, createElementBlock as P, openBlock as u, normalizeStyle as x, renderSlot as g, resolveComponent as y, createBlock as b, withCtx as w, createElementVNode as I, createVNode as F, defineAsyncComponent as D } from "vue";
3
+ import { useBreakpoints as _ } from "@feedmepos/ui-library";
4
+ function S(e, i) {
5
+ const o = d({ top: 0, bottom: 0, left: 0, right: 0 });
5
6
  function t() {
6
7
  if (e.value) {
7
8
  const r = e.value.getBoundingClientRect();
@@ -13,52 +14,52 @@ function _(e, i) {
13
14
  };
14
15
  }
15
16
  }
16
- return c(i, async () => {
17
- await l(), t();
18
- }), c(e, async (r) => {
19
- r && (await l(), t());
20
- }), u(() => {
21
- window.addEventListener("resize", t);
17
+ return l(i, async () => {
18
+ await p(), t();
19
+ }), l(e, async (r) => {
20
+ r && (await p(), t());
22
21
  }), m(() => {
22
+ window.addEventListener("resize", t);
23
+ }), v(() => {
23
24
  window.removeEventListener("resize", t);
24
25
  }), o;
25
26
  }
26
- const S = /* @__PURE__ */ d({
27
+ const E = /* @__PURE__ */ f({
27
28
  __name: "FullWrapper",
28
29
  setup(e) {
29
- const i = D(), o = p(null), t = _(o), r = v(() => {
30
- var a;
31
- const n = i.isAtMost("sm") ? 56 : 0;
30
+ const i = _(), o = d(null), t = S(o), r = h(() => {
31
+ var c;
32
+ const a = i.isAtMost("sm") ? 56 : 0;
32
33
  return {
33
- height: `calc(100dvh - ${((a = t.value) == null ? void 0 : a.top) + 24 + n}px)`
34
+ height: `calc(100dvh - ${((c = t.value) == null ? void 0 : c.top) + 24 + a}px)`
34
35
  };
35
36
  });
36
- return (s, n) => (f(), h("div", {
37
+ return (n, a) => (u(), P("div", {
37
38
  ref_key: "wrapper",
38
39
  ref: o,
39
- style: P(r.value)
40
+ style: x(r.value)
40
41
  }, [
41
- x(s.$slots, "default")
42
+ g(n.$slots, "default")
42
43
  ], 4));
43
44
  }
44
- }), E = { class: "flex justify-center items-center h-full w-full" }, R = /* @__PURE__ */ d({
45
+ }), R = { class: "flex justify-center items-center h-full w-full" }, z = /* @__PURE__ */ f({
45
46
  __name: "PageLoading",
46
47
  setup(e) {
47
48
  return (i, o) => {
48
49
  const t = y("FmCircularProgress");
49
- return f(), b(S, null, {
50
- default: g(() => [
51
- w("div", E, [
52
- I(t, { size: "xl" })
50
+ return u(), b(E, null, {
51
+ default: w(() => [
52
+ I("div", R, [
53
+ F(t, { size: "xl" })
53
54
  ])
54
55
  ]),
55
56
  _: 1
56
57
  });
57
58
  };
58
59
  }
59
- }), C = (e) => F({
60
+ }), C = (e) => D({
60
61
  loader: e,
61
- loadingComponent: R
62
+ loadingComponent: z
62
63
  }), N = {
63
64
  title: "Transaction",
64
65
  receipt: {
@@ -123,9 +124,9 @@ const S = /* @__PURE__ */ d({
123
124
  fullSizePreview: "Full size preview"
124
125
  }
125
126
  }
126
- }, z = {
127
- transaction: N
128
127
  }, k = {
128
+ transaction: N
129
+ }, M = {
129
130
  title: "ธุรกรรม",
130
131
  receipt: {
131
132
  title: "ใบเสร็จ",
@@ -188,9 +189,9 @@ const S = /* @__PURE__ */ d({
188
189
  fullSizePreview: "ตรวจสอบขนาดเต็ม"
189
190
  }
190
191
  }
191
- }, A = {
192
- transaction: k
193
192
  }, T = {
193
+ transaction: M
194
+ }, A = {
194
195
  title: "交易",
195
196
  receipt: {
196
197
  title: "收据",
@@ -254,8 +255,8 @@ const S = /* @__PURE__ */ d({
254
255
  fullSizePreview: "全屏预览"
255
256
  }
256
257
  }
257
- }, M = {
258
- transaction: T
258
+ }, $ = {
259
+ transaction: A
259
260
  }, B = {
260
261
  title: "交易",
261
262
  receipt: {
@@ -320,16 +321,28 @@ const S = /* @__PURE__ */ d({
320
321
  fullSizePreview: "全屏預覽"
321
322
  }
322
323
  }
323
- }, O = {
324
- transaction: B
325
324
  }, H = {
326
- "en-US": z,
327
- "zh-CN": M,
328
- "th-TH": A,
329
- "zh-Hant": O
330
- }, L = C(() => import("./App-C4uJamS-.js").then((e) => e.A));
325
+ transaction: B
326
+ }, U = {
327
+ "en-US": {
328
+ ...k,
329
+ ...s["en-US"]
330
+ },
331
+ "zh-CN": {
332
+ ...$,
333
+ ...s["zh-CN"]
334
+ },
335
+ "th-TH": {
336
+ ...T,
337
+ ...s["th-TH"]
338
+ },
339
+ "zh-Hant": {
340
+ ...H,
341
+ ...s["zh-Hant"] || {}
342
+ }
343
+ }, V = C(() => import("./App-LZ7ohJYX.js").then((e) => e.A));
331
344
  export {
332
- L as F,
333
- S as _,
334
- H as i
345
+ V as F,
346
+ E as _,
347
+ U as i
335
348
  };
package/dist/app.js CHANGED
@@ -1,5 +1,6 @@
1
- import { F as e, i as p } from "./app-RhEAiSVZ.js";
1
+ import "@feedmepos/mf-kitchen";
2
+ import { F as e, i } from "./app-Bdm5aghj.js";
2
3
  export {
3
4
  e as FmApp,
4
- p as i18nMessages
5
+ i as i18nMessages
5
6
  };