@feedmepos/mf-order-setting 0.0.61-prod → 0.0.63-prod
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/{KioskDevicesView-BQP98N83.js → KioskDevicesView-D-RZUu0W.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-DqyycfFx.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-BKALec_y.js} +3 -3
- package/dist/{KioskSettingView-CfkesNHX.js → KioskSettingView-BgDVaUU6.js} +3 -3
- package/dist/{KioskView-D78JmEu_.js → KioskView-CBDEN6lZ.js} +4 -4
- package/dist/{OrderSettingsView-Cb-RdKE9.js → OrderSettingsView-CrDwgef9.js} +5775 -5821
- package/dist/{app-BajIwvwC.js → app-BMblFPtQ.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-mvnb5cgq.js → dayjs.min-0LOWyVEQ.js} +1 -1
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-v1JWPl0T.js → index-D5Ao4tWD.js} +2 -2
- package/dist/{index-BUuyLjBw.js → index-FP2iiNEg.js} +3 -3
- package/dist/{menu.dto-As7AyKo1.js → menu.dto-BdFq_BB_.js} +11 -11
- package/package.json +1 -1
- package/src/views/order-settings/delivery/DeliverySetting.vue +2 -1
- package/src/views/order-settings/delivery/inhouse/CurrencyInput.vue +6 -5
- package/src/views/order-settings/delivery/inhouse/ZoneDialog.vue +8 -4
- package/src/views/order-settings/dine-in/DineInSetting.vue +2 -1
- package/src/views/order-settings/general/GeneralSetting.vue +2 -1
- package/src/views/order-settings/queue/QueueSetting.vue +2 -1
- package/src/views/order-settings/sms/SmsSetting.vue +2 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as Yu, ref as hu, resolveComponent as fu, createElementBlock as Je, openBlock as De, createElementVNode as ze, createVNode as Fe, toDisplayString as cu, unref as du, createBlock as et, computed as qu, watch as rt, onMounted as at, createCommentVNode as wu, withCtx as Eu, createTextVNode as nt, Fragment as it, renderList as st, renderSlot as ot } from "vue";
|
|
2
|
-
import { e as Ie, c as Ue } from "./app-
|
|
2
|
+
import { e as Ie, c as Ue } from "./app-BMblFPtQ.js";
|
|
3
3
|
import { useDialog as lt, useSnackbar as ct } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as Au, useCoreStore as ut } from "@feedmepos/mf-common";
|
|
5
5
|
import { defineStore as ft } from "pinia";
|
|
6
|
-
import { r as bu, g as ne,
|
|
6
|
+
import { r as bu, g as ne, w as $u, j as Uu, S as Wu } from "./menu.dto-BdFq_BB_.js";
|
|
7
7
|
const dt = /* @__PURE__ */ Yu({
|
|
8
8
|
__name: "OfflinePaymentTypeDialogContent",
|
|
9
9
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as i,
|
|
1
|
+
import { g as i, v as _, S as C, r as g } from "./menu.dto-BdFq_BB_.js";
|
|
2
2
|
async function R() {
|
|
3
3
|
const r = await g().get("/order-settings");
|
|
4
4
|
return i(r);
|
|
@@ -16,10 +16,10 @@ async function p() {
|
|
|
16
16
|
}
|
|
17
17
|
const y = {
|
|
18
18
|
read: p
|
|
19
|
-
},
|
|
19
|
+
}, A = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), w = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), m = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), I = /[^\p{L}\d]+/giu, f = "$1\0$2", d = "";
|
|
20
20
|
function o(r) {
|
|
21
21
|
let e = r.trim();
|
|
22
|
-
e = e.replace(
|
|
22
|
+
e = e.replace(A, f).replace(w, f), e = e.replace(I, "\0");
|
|
23
23
|
let t = 0, c = e.length;
|
|
24
24
|
for (; e.charAt(t) === "\0"; )
|
|
25
25
|
t++;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as GE, n as VE, c as ae } from "./app-
|
|
1
|
+
import { e as GE, n as VE, c as ae } from "./app-BMblFPtQ.js";
|
|
2
2
|
import { useCoreStore as Yo } from "@feedmepos/mf-common";
|
|
3
3
|
function HE(o, c) {
|
|
4
4
|
return function() {
|
|
@@ -96909,16 +96909,16 @@ export {
|
|
|
96909
96909
|
Ve as i,
|
|
96910
96910
|
Di as j,
|
|
96911
96911
|
hG as k,
|
|
96912
|
-
|
|
96912
|
+
US as l,
|
|
96913
96913
|
$W as m,
|
|
96914
|
-
|
|
96915
|
-
|
|
96916
|
-
|
|
96917
|
-
|
|
96914
|
+
qs as n,
|
|
96915
|
+
lV as o,
|
|
96916
|
+
dV as p,
|
|
96917
|
+
cV as q,
|
|
96918
96918
|
yW as r,
|
|
96919
|
-
|
|
96920
|
-
|
|
96921
|
-
|
|
96922
|
-
|
|
96923
|
-
|
|
96919
|
+
KM as s,
|
|
96920
|
+
CW as t,
|
|
96921
|
+
kW as u,
|
|
96922
|
+
vW as v,
|
|
96923
|
+
vb as w
|
|
96924
96924
|
};
|
package/package.json
CHANGED
|
@@ -444,7 +444,7 @@ async function updateExternalDelivery({ key, setting }: IntegratedDeliveryRow) {
|
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
-
const { startAsyncCallWithErr, isLoading } = useLoading()
|
|
447
|
+
const { startAsyncCallWithErr, isLoading, startLoading } = useLoading()
|
|
448
448
|
const columns: ColumnDef<any>[] = [
|
|
449
449
|
{
|
|
450
450
|
accessorKey: 'name',
|
|
@@ -1076,6 +1076,7 @@ watch(
|
|
|
1076
1076
|
() => currentRestaurant.value,
|
|
1077
1077
|
async (newRestaurant) => {
|
|
1078
1078
|
if (newRestaurant) {
|
|
1079
|
+
startLoading()
|
|
1079
1080
|
await readData()
|
|
1080
1081
|
// Check if FeedMe Express deprecation notice should be shown
|
|
1081
1082
|
checkAndShowDeprecationNotice()
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { type PropType, computed, ref } from 'vue'
|
|
3
|
-
import { Dinero } from '@feedmepos/core'
|
|
4
|
-
import { FdoDinero } from '@feedmepos/core/entity'
|
|
5
|
-
import {
|
|
3
|
+
import { Country, Dinero } from '@feedmepos/core'
|
|
4
|
+
import { F_COUNTRY, type FCurrency, type FdoCountry, FdoDinero } from '@feedmepos/core/entity'
|
|
5
|
+
import { useCoreStore } from '@feedmepos/mf-common'
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
const props = defineProps({
|
|
@@ -29,8 +29,9 @@ const value = computed<number | null>(() => {
|
|
|
29
29
|
function input(v: any) {
|
|
30
30
|
let value = parseFloat((v || '').toString())
|
|
31
31
|
value = Number.isNaN(value) ? 0 : value
|
|
32
|
-
const
|
|
33
|
-
|
|
32
|
+
const countryCode = (useCoreStore().currentCountry.value || F_COUNTRY.enum.MY) as F_COUNTRY
|
|
33
|
+
const currencyCode = (Country.getCountry(countryCode) as FdoCountry).currency.code as FCurrency
|
|
34
|
+
emits('update:model-value', { ...Dinero.fromNumber({ number: value }).toObject(), currency: currencyCode })
|
|
34
35
|
}
|
|
35
36
|
</script>
|
|
36
37
|
|
|
@@ -3,10 +3,10 @@ import GoogleMap from '@/components/GoogleMap.vue'
|
|
|
3
3
|
import type { InputModel, MapCoordinate, MapPolygon } from '@/components/type'
|
|
4
4
|
import { arrayToCoordinate, coordinates, coordinateToArray, generateAreaPaths, getDefaultCoordinates } from '@/helpers/map'
|
|
5
5
|
import { clone } from '@/helpers/object'
|
|
6
|
-
import { Dinero } from '@feedmepos/core'
|
|
7
|
-
import type
|
|
8
|
-
import { useAppStore } from '@/stores/app'
|
|
6
|
+
import { Country, Dinero } from '@feedmepos/core'
|
|
7
|
+
import { F_COUNTRY, type FCurrency, type FdoCountry, type FdoDeliveryArea, type FdoDinero } from '@feedmepos/core/entity'
|
|
9
8
|
import { ref, reactive, type PropType, computed, onMounted, watch } from 'vue'
|
|
9
|
+
import { useCoreStore } from '@feedmepos/mf-common'
|
|
10
10
|
import CurrencyInput from './CurrencyInput.vue'
|
|
11
11
|
import { useI18n } from '@feedmepos/mf-common'
|
|
12
12
|
|
|
@@ -16,7 +16,11 @@ const emits = defineEmits<{
|
|
|
16
16
|
(e: 'update:model-value', value: FdoDeliveryArea): void
|
|
17
17
|
}>()
|
|
18
18
|
|
|
19
|
-
const zeroDineroObject = computed(() =>
|
|
19
|
+
const zeroDineroObject = computed(() => {
|
|
20
|
+
const countryCode = (useCoreStore().currentCountry.value || F_COUNTRY.enum.MY) as F_COUNTRY
|
|
21
|
+
const country = Country.getCountry(countryCode) as FdoCountry
|
|
22
|
+
return { ...Dinero.zero().toObject(), currency: country.currency.code as FCurrency }
|
|
23
|
+
})
|
|
20
24
|
|
|
21
25
|
const props = defineProps({
|
|
22
26
|
initialValue: {
|
|
@@ -231,7 +231,7 @@ async function orderSettingInit() {
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
const { showSuccess, showError } = useSnackbarFunctions()
|
|
234
|
-
const { startAsyncCallWithErr, isLoading } = useLoading()
|
|
234
|
+
const { startAsyncCallWithErr, isLoading, startLoading } = useLoading()
|
|
235
235
|
async function updateDineInSetting() {
|
|
236
236
|
if (!isDineInsettingValid.value) {
|
|
237
237
|
showError(errors.value)
|
|
@@ -265,6 +265,7 @@ async function readOrderSetting(): Promise<OrderSettingsDto> {
|
|
|
265
265
|
watch(
|
|
266
266
|
() => currentRestaurant.value,
|
|
267
267
|
async (newRestaurant) => {
|
|
268
|
+
startLoading()
|
|
268
269
|
if (newRestaurant?.dineIn) {
|
|
269
270
|
dineInSetting.value = utils.clone(newRestaurant.dineIn)
|
|
270
271
|
}
|
|
@@ -104,7 +104,7 @@ function getSequenceSettingRules(digit?: number | null) {
|
|
|
104
104
|
|
|
105
105
|
const { showSuccess, showError } = useSnackbarFunctions()
|
|
106
106
|
const { currentRestaurant } = useCoreStore()
|
|
107
|
-
const { startAsyncCallWithErr, isLoading } = useLoading()
|
|
107
|
+
const { startAsyncCallWithErr, isLoading, startLoading } = useLoading()
|
|
108
108
|
|
|
109
109
|
const orderSetting = ref<OrderSettingsDto | undefined>(undefined)
|
|
110
110
|
const v3Settings = ref<OrderV3Settings | undefined>(undefined)
|
|
@@ -241,6 +241,7 @@ onMounted(() => init())
|
|
|
241
241
|
watch(
|
|
242
242
|
() => currentRestaurant.value,
|
|
243
243
|
() => {
|
|
244
|
+
startLoading()
|
|
244
245
|
init()
|
|
245
246
|
},
|
|
246
247
|
{ immediate: true }
|
|
@@ -19,7 +19,7 @@ import PresetRemarksSheet from './PresetRemarksSheet.vue'
|
|
|
19
19
|
const { t } = useI18n()
|
|
20
20
|
const { showSuccess } = useSnackbarFunctions()
|
|
21
21
|
const { currentRestaurant } = useCoreStore()
|
|
22
|
-
const { isLoading, startAsyncCallWithErr } = useLoading()
|
|
22
|
+
const { isLoading, startAsyncCallWithErr, startLoading } = useLoading()
|
|
23
23
|
|
|
24
24
|
const orderSettingDefault = ref<FdoOrderSettings | undefined>(undefined)
|
|
25
25
|
const queueSettings = ref<FdoOrderQueueSettings>({ ...defaultQueueSetting })
|
|
@@ -35,6 +35,7 @@ onMounted(() => {
|
|
|
35
35
|
watch(
|
|
36
36
|
() => currentRestaurant.value,
|
|
37
37
|
() => {
|
|
38
|
+
startLoading()
|
|
38
39
|
init()
|
|
39
40
|
},
|
|
40
41
|
{ immediate: true }
|
|
@@ -22,7 +22,7 @@ import { SMS } from '@common'
|
|
|
22
22
|
|
|
23
23
|
const { showSuccess, showError } = useSnackbarFunctions()
|
|
24
24
|
const { currentRestaurant } = useCoreStore()
|
|
25
|
-
const { isLoading, startAsyncCallWithErr } = useLoading()
|
|
25
|
+
const { isLoading, startAsyncCallWithErr, startLoading } = useLoading()
|
|
26
26
|
|
|
27
27
|
const orderSettingDefault = ref<OrderSettingsDto | undefined>(undefined)
|
|
28
28
|
|
|
@@ -38,6 +38,7 @@ onMounted(() => {
|
|
|
38
38
|
watch(
|
|
39
39
|
() => currentRestaurant.value,
|
|
40
40
|
() => {
|
|
41
|
+
startLoading()
|
|
41
42
|
init()
|
|
42
43
|
},
|
|
43
44
|
{ immediate: true }
|