@feedmepos/mf-order-setting 0.0.89 → 0.0.90
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.
- package/dist/{DisplaySystemView-BA-5JObJ.js → DisplaySystemView-tosCa7Ej.js} +1 -1
- package/dist/{KioskDevicesView-CgdnW9N9.js → KioskDevicesView-WuOTJ9Fi.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-C9X9ziUm.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-DdHfATyN.js} +3 -3
- package/dist/{KioskSettingView-CVck01e7.js → KioskSettingView-Bsja2OqT.js} +3 -3
- package/dist/{KioskView-DKY2QEh5.js → KioskView-BH5qGTM_.js} +5 -5
- package/dist/{OrderSettingsView-CEPIZmHA.js → OrderSettingsView-D6V1ztiS.js} +8 -6
- package/dist/{app-C9nnuR9O.js → app-DsMk7W2h.js} +6 -6
- package/dist/app.js +1 -1
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-Gk7389CW.js → index-BUDM0Rqn.js} +1 -1
- package/dist/{index-BaC_Douy.js → index-C2n1MV_1.js} +2 -2
- package/dist/{index-DGAU5Dhc.js → index-DGDiI0fr.js} +1 -1
- package/dist/{order.dto-CfCfBJYu.js → order.dto-BRDWWgMV.js} +1 -1
- package/package.json +1 -1
- package/src/helpers/timezone.spec.ts +8 -0
- package/src/helpers/timezone.ts +2 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as W, ref as x, resolveComponent as R, openBlock as g, createElementBlock as D, createElementVNode as h, toDisplayString as C, createVNode as T, unref as F, createBlock as z, computed as U, watch as oe, onMounted as re, withCtx as N, createTextVNode as se, createCommentVNode as E, Fragment as ie, renderList as ue, renderSlot as ae } from "vue";
|
|
2
|
-
import { e as v } from "./app-
|
|
2
|
+
import { e as v } from "./app-DsMk7W2h.js";
|
|
3
3
|
import { useDialog as le } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as Y, useCoreStore as ne } from "@feedmepos/mf-common";
|
|
5
5
|
import { defineStore as de } from "pinia";
|
|
6
|
-
import { r as O, g as a, j as V, b as Q, i as q } from "./order.dto-
|
|
6
|
+
import { r as O, g as a, j as V, b as Q, i as q } from "./order.dto-BRDWWgMV.js";
|
|
7
7
|
import { u as ce } from "./snackbar-DZQ0_reQ.js";
|
|
8
8
|
const pe = /* @__PURE__ */ W({
|
|
9
9
|
__name: "OfflinePaymentTypeDialogContent",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Cf = Object.defineProperty;
|
|
2
2
|
var kf = (c, f, p) => f in c ? Cf(c, f, { enumerable: !0, configurable: !0, writable: !0, value: p }) : c[f] = p;
|
|
3
3
|
var ka = (c, f, p) => kf(c, typeof f != "symbol" ? f + "" : f, p);
|
|
4
|
-
import { e as te, k as Te, c as le, j as Oi, v as lt, i as Ff } from "./app-
|
|
4
|
+
import { e as te, k as Te, c as le, j as Oi, v as lt, i as Ff } from "./app-DsMk7W2h.js";
|
|
5
5
|
import { useCoreStore as Pn } from "@feedmepos/mf-common";
|
|
6
6
|
function dd(c, f) {
|
|
7
7
|
return function() {
|
package/package.json
CHANGED
|
@@ -33,6 +33,14 @@ describe('useCountryTime', () => {
|
|
|
33
33
|
expect(ct.format('2026-01-01T00:00:00.000Z', 'HH:mm')).toBe('05:00')
|
|
34
34
|
})
|
|
35
35
|
|
|
36
|
+
it('resolves the GB market to Europe/London, following UK daylight saving (GMT/BST)', () => {
|
|
37
|
+
currentCountry.value = 'GB'
|
|
38
|
+
const ct = useCountryTime()
|
|
39
|
+
expect(ct.tz).toBe('Europe/London')
|
|
40
|
+
expect(ct.format('2026-01-01T00:00:00.000Z', 'HH:mm')).toBe('00:00') // GMT, +00
|
|
41
|
+
expect(ct.format('2026-07-01T00:00:00.000Z', 'HH:mm')).toBe('01:00') // BST, +01
|
|
42
|
+
})
|
|
43
|
+
|
|
36
44
|
it('does not throw and falls back to the browser zone when the country is undefined', () => {
|
|
37
45
|
currentCountry.value = undefined
|
|
38
46
|
const warn = vi.spyOn(console, 'warn').mockImplementation(() => undefined)
|
package/src/helpers/timezone.ts
CHANGED
|
@@ -35,7 +35,8 @@ export const COUNTRY_TIME_ZONE: Partial<Record<F_COUNTRY, string>> = {
|
|
|
35
35
|
TH: 'Asia/Bangkok', // +07
|
|
36
36
|
PK: 'Asia/Karachi', // +05
|
|
37
37
|
VN: 'Asia/Ho_Chi_Minh', // +07
|
|
38
|
-
PH: 'Asia/Manila' // +08
|
|
38
|
+
PH: 'Asia/Manila', // +08
|
|
39
|
+
GB: 'Europe/London' // GMT (+00) / BST (+01)
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
/**
|