@feedmepos/mf-transaction 0.0.60 → 0.0.62

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,5 +1,5 @@
1
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";
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 b, renderSlot as x, resolveComponent as g, createBlock as y, withCtx as w, createElementVNode as F, createVNode as I, defineAsyncComponent as D } from "vue";
3
3
  import { useBreakpoints as _ } from "@feedmepos/ui-library";
4
4
  function S(e, i) {
5
5
  const o = d({ top: 0, bottom: 0, left: 0, right: 0 });
@@ -24,7 +24,7 @@ function S(e, i) {
24
24
  window.removeEventListener("resize", t);
25
25
  }), o;
26
26
  }
27
- const E = /* @__PURE__ */ f({
27
+ const N = /* @__PURE__ */ f({
28
28
  __name: "FullWrapper",
29
29
  setup(e) {
30
30
  const i = _(), o = d(null), t = S(o), r = h(() => {
@@ -37,30 +37,30 @@ const E = /* @__PURE__ */ f({
37
37
  return (n, a) => (u(), P("div", {
38
38
  ref_key: "wrapper",
39
39
  ref: o,
40
- style: x(r.value)
40
+ style: b(r.value)
41
41
  }, [
42
- g(n.$slots, "default")
42
+ x(n.$slots, "default")
43
43
  ], 4));
44
44
  }
45
- }), R = { class: "flex justify-center items-center h-full w-full" }, z = /* @__PURE__ */ f({
45
+ }), E = { class: "flex justify-center items-center h-full w-full" }, R = /* @__PURE__ */ f({
46
46
  __name: "PageLoading",
47
47
  setup(e) {
48
48
  return (i, o) => {
49
- const t = y("FmCircularProgress");
50
- return u(), b(E, null, {
49
+ const t = g("FmCircularProgress");
50
+ return u(), y(N, null, {
51
51
  default: w(() => [
52
- I("div", R, [
53
- F(t, { size: "xl" })
52
+ F("div", E, [
53
+ I(t, { size: "xl" })
54
54
  ])
55
55
  ]),
56
56
  _: 1
57
57
  });
58
58
  };
59
59
  }
60
- }), C = (e) => D({
60
+ }), z = (e) => D({
61
61
  loader: e,
62
- loadingComponent: z
63
- }), N = {
62
+ loadingComponent: R
63
+ }), C = {
64
64
  title: "Transaction",
65
65
  receipt: {
66
66
  title: "Receipt",
@@ -95,6 +95,9 @@ const E = /* @__PURE__ */ f({
95
95
  labels: {
96
96
  receipt: "Receipt: {seqNumber}"
97
97
  },
98
+ errors: {
99
+ billNotFound: "Bill not found"
100
+ },
98
101
  detail: {
99
102
  title: "Receipt detail",
100
103
  tabs: {
@@ -125,7 +128,7 @@ const E = /* @__PURE__ */ f({
125
128
  }
126
129
  }
127
130
  }, k = {
128
- transaction: N
131
+ transaction: C
129
132
  }, M = {
130
133
  title: "ธุรกรรม",
131
134
  receipt: {
@@ -161,6 +164,9 @@ const E = /* @__PURE__ */ f({
161
164
  labels: {
162
165
  receipt: "ใบเสร็จ: {seqNumber}"
163
166
  },
167
+ errors: {
168
+ billNotFound: "ไม่พบบิล"
169
+ },
164
170
  detail: {
165
171
  title: "รายละเอียดใบเสร็จ",
166
172
  tabs: {
@@ -226,6 +232,9 @@ const E = /* @__PURE__ */ f({
226
232
  labels: {
227
233
  receipt: "收据: {seqNumber}"
228
234
  },
235
+ errors: {
236
+ billNotFound: "未找到账单"
237
+ },
229
238
  detail: {
230
239
  title: "收据详情",
231
240
  tabs: {
@@ -255,9 +264,9 @@ const E = /* @__PURE__ */ f({
255
264
  fullSizePreview: "全屏预览"
256
265
  }
257
266
  }
258
- }, $ = {
259
- transaction: A
260
267
  }, B = {
268
+ transaction: A
269
+ }, $ = {
261
270
  title: "交易",
262
271
  receipt: {
263
272
  title: "收據",
@@ -292,6 +301,9 @@ const E = /* @__PURE__ */ f({
292
301
  labels: {
293
302
  receipt: "收據: {seqNumber}"
294
303
  },
304
+ errors: {
305
+ billNotFound: "找不到帳單"
306
+ },
295
307
  detail: {
296
308
  title: "收據詳情",
297
309
  tabs: {
@@ -322,14 +334,14 @@ const E = /* @__PURE__ */ f({
322
334
  }
323
335
  }
324
336
  }, H = {
325
- transaction: B
337
+ transaction: $
326
338
  }, U = {
327
339
  "en-US": {
328
340
  ...k,
329
341
  ...s["en-US"]
330
342
  },
331
343
  "zh-CN": {
332
- ...$,
344
+ ...B,
333
345
  ...s["zh-CN"]
334
346
  },
335
347
  "th-TH": {
@@ -340,9 +352,9 @@ const E = /* @__PURE__ */ f({
340
352
  ...H,
341
353
  ...s["zh-Hant"] || {}
342
354
  }
343
- }, V = C(() => import("./App-B7S3_xrA.js").then((e) => e.A));
355
+ }, V = z(() => import("./App-n7tAU6LO.js").then((e) => e.A));
344
356
  export {
345
357
  V as F,
346
- E as _,
358
+ N as _,
347
359
  U as i
348
360
  };
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "@feedmepos/mf-kitchen";
2
- import { F as e, i } from "./app-CTt_9GFi.js";
2
+ import { F as e, i } from "./app-DCZmsn6N.js";
3
3
  export {
4
4
  e as FmApp,
5
5
  i as i18nMessages
@@ -249,6 +249,9 @@ export declare const i18nMessages: {
249
249
  labels: {
250
250
  receipt: string;
251
251
  };
252
+ errors: {
253
+ billNotFound: string;
254
+ };
252
255
  detail: {
253
256
  title: string;
254
257
  tabs: {
@@ -529,6 +532,9 @@ export declare const i18nMessages: {
529
532
  labels: {
530
533
  receipt: string;
531
534
  };
535
+ errors: {
536
+ billNotFound: string;
537
+ };
532
538
  detail: {
533
539
  title: string;
534
540
  tabs: {
@@ -809,6 +815,9 @@ export declare const i18nMessages: {
809
815
  labels: {
810
816
  receipt: string;
811
817
  };
818
+ errors: {
819
+ billNotFound: string;
820
+ };
812
821
  detail: {
813
822
  title: string;
814
823
  tabs: {
@@ -5,6 +5,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
5
5
  type: PropType<Receipt>;
6
6
  required: true;
7
7
  };
8
+ onClosed: {
9
+ type: PropType<() => void>;
10
+ required: false;
11
+ };
8
12
  }>, {
9
13
  show: import("vue").Ref<boolean, boolean>;
10
14
  trigger: (event?: any) => void;
@@ -13,6 +17,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
13
17
  type: PropType<Receipt>;
14
18
  required: true;
15
19
  };
20
+ onClosed: {
21
+ type: PropType<() => void>;
22
+ required: false;
23
+ };
16
24
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
17
25
  default?(_: {
18
26
  trigger: (event?: any) => void;
@@ -1,3 +1,5 @@
1
1
  import type { Receipt } from "@/views/receipt/receipt";
2
- export type ReceiptDetailViewer = (receipt: Receipt) => void;
2
+ export type ReceiptDetailViewer = (receipt: Receipt, options?: {
3
+ onClosed?: () => void;
4
+ }) => void;
3
5
  export declare const useReceiptDetailForm: () => ReceiptDetailViewer;
@@ -0,0 +1,4 @@
1
+ export declare function useReceiptDetailPathParam(): {
2
+ readReceiptDetailPathParam: () => string | null;
3
+ setReceiptDetailPathParam: (value?: string | null) => void;
4
+ };