@feedmepos/mf-menu 0.31.31-beta.1 → 0.31.31-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/{App-1TX8v7ZA.js → App-Cvgz2kQV.js} +22 -24
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Bq84uuiq.js} +22 -22
- package/dist/{Catalog-DWClc58s.js → Catalog-Ye-KpQ31.js} +74 -75
- package/dist/{Category-BqKFvFam.js → Category-BPChBqVR.js} +60 -60
- package/dist/{Category-IYMtMoT-.js → Category-CHcxix2b.js} +28 -28
- package/dist/{CookingGuide-BayJ6zj4.js → CookingGuide-DgygBSoB.js} +101 -103
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Ceq86b3d.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-ClV6LD2-.js} +1 -1
- package/dist/{Group-LqSX7ue6.js → Group-223G1Edd.js} +1 -1
- package/dist/{Group-RujTPTns.js → Group-B7EU1xmY.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-Dj9ZmkYe.js → Group.vue_vue_type_script_setup_true_lang-CAZuyOPy.js} +137 -138
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D5GWkh3G.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CdjRWC9z.js} +13 -13
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C4IrA3es.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BRQm-UTk.js} +5067 -5049
- package/dist/{Ingredient-_tc8llr1.js → Ingredient-Dl1Z5Qt2.js} +64 -65
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DLFDf-VZ.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CxuQTH0k.js} +1061 -1063
- package/dist/{LinkProductSideSheet-C6rF-G1v.js → LinkProductSideSheet-Y-Z9_9Kp.js} +12 -14
- package/dist/{MenuSetting-xDHeeROY.js → MenuSetting-Be44fmVj.js} +26 -27
- package/dist/{PrintRoute-B_TFMn5e.js → PrintRoute-BURAEZ6X.js} +15 -17
- package/dist/{Product-DdEEqrtc.js → Product-DSlVHbgr.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-zcistmwh.js → Product.vue_vue_type_script_setup_true_lang-DtYarO0L.js} +256 -257
- package/dist/{ProductInternalTools-BcC7BF6W.js → ProductInternalTools-gW57aUAO.js} +45 -45
- package/dist/{Products-Cu0cJshV.js → Products-Czr-70M8.js} +72 -74
- package/dist/{Publish-Bm3Xiks1.js → Publish-XCowNW_z.js} +32 -34
- package/dist/{Recipe-DWK-luIZ.js → Recipe-6oNz21AB.js} +63 -65
- package/dist/{Scheduler-Cb1TeBhW.js → Scheduler-UYFuFk5E.js} +19 -19
- package/dist/{ServingSequence-evSIET_8.js → ServingSequence-w66ujU4D.js} +34 -34
- package/dist/{Setting-Cn3kwC9F.js → Setting-Dgn3lOx7.js} +53 -54
- package/dist/{Subcategory-q4m4qHsU.js → Subcategory-lnzuxCCH.js} +34 -34
- package/dist/{Takeaway-ClepHYGu.js → Takeaway-C5Up5Odr.js} +14 -14
- package/dist/{Takeaway-D-rdUZuh.js → Takeaway-DP1GJUPF.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-y9Yxstu2.js → Takeaway.vue_vue_type_script_setup_true_lang-B45keXn7.js} +40 -41
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BSeLfoOA.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-yEIxG4F2.js} +1108 -1109
- package/dist/{Unit-IM8Naj82.js → Unit-Bt8aRidX.js} +12 -12
- package/dist/{Variant-fzGvwaMo.js → Variant-DXoOAa9M.js} +16 -16
- package/dist/{_id_-BsKNG9Qv.js → _id_-D9tvinax.js} +22 -22
- package/dist/{app-BzQRUMTK.js → app-Cnlv4rmj.js} +3 -3
- package/dist/{app-CoVUUCa_.js → app-DiizQWjo.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +88 -16
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +44 -8
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +360 -184
- package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +80 -28
- package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +44 -8
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +216 -148
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +216 -148
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/category.d.ts +4 -4
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +218 -150
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +142 -82
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +108 -74
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +80 -28
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +44 -8
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +176 -32
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +324 -222
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +108 -74
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1374 -1040
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +216 -148
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +1374 -1040
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +108 -74
- package/dist/apps/mf-menu/src/helper/menu.d.ts +1523 -1155
- package/dist/apps/mf-menu/src/manager/menu/category.d.ts +4 -4
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +1374 -1040
- package/dist/apps/mf-menu/src/manager/menu/subcategory.d.ts +4 -4
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +324 -222
- package/dist/apps/mf-menu/src/stores/manager/recipe.d.ts +12 -12
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +142 -82
- package/dist/apps/mf-menu/src/stores/manager/sku.d.ts +60 -60
- package/dist/apps/mf-menu/src/stores/manager/takeaway.d.ts +6 -6
- package/dist/apps/mf-menu/src/stores/manager/unit.d.ts +12 -12
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1375 -1041
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +216 -148
- package/dist/apps/mf-menu/src/views/CookingGuide/CookingGuideDialog.vue.d.ts +4 -4
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +352 -132
- package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +84 -32
- package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +84 -32
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-D7AwcSC5.js +24 -0
- package/dist/assets/override-menu-Y9T4wxEn.js +24 -0
- package/dist/assets/validate-menu-DiAW2jY1.js +24 -0
- package/dist/{catalog-CaXceaA2.js → catalog-DUSCax4J.js} +1 -1
- package/dist/{catalogSetting-BGvckFdh.js → catalogSetting-18FJ5pkA.js} +1 -1
- package/dist/{category-u5eo_Vjd.js → category-B9XvlPFy.js} +3 -5
- package/dist/currency-Sno8fZYc.js +7 -0
- package/dist/{dayjs.min-Bsr3tJCn.js → dayjs.min-BsfKOrNo.js} +1 -1
- package/dist/{index-tRQb7RN_.js → index-BDpkSKDX.js} +1 -1
- package/dist/{index-Bbx4iZ6n.js → index-Eomwf2OO.js} +27 -27
- package/dist/{index-DSAG0yWh.js → index-ltyOwsRO.js} +20 -22
- package/dist/{item-BAqzKh4O.js → item-5Kkzf_eF.js} +1069 -1071
- package/dist/{jszip.min-BKJtvCjM.js → jszip.min-CRfpGjN8.js} +545 -545
- package/dist/menu-Btcr0nsk.js +108040 -0
- package/dist/{menu-CDrsBjmr.js → menu-DYs_VNfB.js} +9 -11
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-DfbHonGe.js → priceTier-DvUjWwCM.js} +4 -4
- package/dist/{scheduler-DTWaBudB.js → scheduler-C76blUlS.js} +11 -13
- package/dist/{subcategory-D-R5r1Tr.js → subcategory-C44qN5Vk.js} +133 -135
- package/dist/{toExcel-84VTtSA7.js → toExcel--vNjpF-b.js} +2 -2
- package/dist/{unit-B4zscxzo.js → unit-C4ghZU8x.js} +23 -24
- package/package.json +5 -5
- package/dist/assets/linked-status-eQqjvOq_.js +0 -24
- package/dist/assets/override-menu-C8NTBJgN.js +0 -24
- package/dist/assets/validate-menu-Dn-OO7Ed.js +0 -24
- package/dist/currency-BPHwez-E.js +0 -7
- package/dist/menu-CsIzrBEr.js +0 -74044
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { defineComponent as S, ref as V, computed as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as S, ref as V, computed as I, watch as z, resolveComponent as b, createElementBlock as F, openBlock as w, Fragment as O, renderSlot as A, createVNode as r, unref as n, withCtx as f, createElementVNode as y, createBlock as D, createCommentVNode as E, toDisplayString as L } from "vue";
|
|
2
|
+
import { H as _, I as N } from "./menu-Btcr0nsk.js";
|
|
3
3
|
import { useI18n as j, ItemSelector as P } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as U, FmButtonVariant as q } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as
|
|
5
|
+
import { u as H } from "./discardConfirm-BHni0LNu.js";
|
|
6
6
|
import { c as M } from "./check-C9mY6LiX.js";
|
|
7
|
-
import "@feedmepos/core";
|
|
8
|
-
import "@feedmepos/core/entity";
|
|
9
7
|
/* empty css */
|
|
10
8
|
const T = (i, u) => {
|
|
11
9
|
const s = i.__vccOpts || i;
|
|
12
10
|
for (const [c, t] of u)
|
|
13
11
|
s[c] = t;
|
|
14
12
|
return s;
|
|
15
|
-
}, $ = { class: "fm-typo-en-title-md-600 mr-auto" },
|
|
13
|
+
}, $ = { class: "fm-typo-en-title-md-600 mr-auto" }, G = { class: "flex gap-8 items-center justify-start" }, J = /* @__PURE__ */ S({
|
|
16
14
|
__name: "LinkProductSideSheet",
|
|
17
15
|
props: {
|
|
18
16
|
initialValue: { default: () => [] },
|
|
@@ -31,7 +29,7 @@ const T = (i, u) => {
|
|
|
31
29
|
function d(e) {
|
|
32
30
|
return e.reduce((o, a) => (o[a._id] = [...o[a._id] ?? [], a], o), {});
|
|
33
31
|
}
|
|
34
|
-
const k = s.initialValue, l = V(d(_(k))), h =
|
|
32
|
+
const k = s.initialValue, l = V(d(_(k))), h = I(() => Object.values(l.value).flatMap((e) => e)), g = H(
|
|
35
33
|
() => !N.isEqual(d(s.initialValue), l.value),
|
|
36
34
|
() => {
|
|
37
35
|
t.value = !1;
|
|
@@ -40,7 +38,7 @@ const T = (i, u) => {
|
|
|
40
38
|
function B() {
|
|
41
39
|
c("submit", h.value), t.value = !1;
|
|
42
40
|
}
|
|
43
|
-
|
|
41
|
+
z(
|
|
44
42
|
() => t.value,
|
|
45
43
|
() => {
|
|
46
44
|
l.value = d(_(s.initialValue));
|
|
@@ -49,8 +47,8 @@ const T = (i, u) => {
|
|
|
49
47
|
const { t: m } = j();
|
|
50
48
|
return (e, o) => {
|
|
51
49
|
const a = b("fm-button"), C = b("fm-side-sheet");
|
|
52
|
-
return w(),
|
|
53
|
-
|
|
50
|
+
return w(), F(O, null, [
|
|
51
|
+
A(e.$slots, "default", { trigger: v }, void 0, !0),
|
|
54
52
|
r(C, {
|
|
55
53
|
id: "group-form",
|
|
56
54
|
modelValue: t.value,
|
|
@@ -65,7 +63,7 @@ const T = (i, u) => {
|
|
|
65
63
|
"onOn:clickedAway": n(g)
|
|
66
64
|
}, {
|
|
67
65
|
"side-sheet-header": f(() => [
|
|
68
|
-
e.useCloseBtn ? E("", !0) : (w(),
|
|
66
|
+
e.useCloseBtn ? E("", !0) : (w(), D(a, {
|
|
69
67
|
key: 0,
|
|
70
68
|
variant: n(q).Tertiary,
|
|
71
69
|
class: "cursor-pointer mr-4",
|
|
@@ -75,7 +73,7 @@ const T = (i, u) => {
|
|
|
75
73
|
y("p", $, L(e.title || n(m)("menu.link_product.title")), 1)
|
|
76
74
|
]),
|
|
77
75
|
"side-sheet-footer": f(() => [
|
|
78
|
-
y("div",
|
|
76
|
+
y("div", G, [
|
|
79
77
|
r(a, {
|
|
80
78
|
label: n(m)("menu.common.actions.confirm"),
|
|
81
79
|
size: "lg",
|
|
@@ -107,8 +105,8 @@ const T = (i, u) => {
|
|
|
107
105
|
], 64);
|
|
108
106
|
};
|
|
109
107
|
}
|
|
110
|
-
}),
|
|
108
|
+
}), x = /* @__PURE__ */ T(J, [["__scopeId", "data-v-25b0fda9"]]);
|
|
111
109
|
export {
|
|
112
|
-
|
|
110
|
+
x as L,
|
|
113
111
|
T as _
|
|
114
112
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { defineComponent as G, computed as T, ref as F, watch as
|
|
2
|
-
import {
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useSnackbar as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as te, A as le, D as M } from "./menu-CsIzrBEr.js";
|
|
1
|
+
import { defineComponent as G, computed as T, ref as F, watch as H, createVNode as n, resolveComponent as c, createBlock as V, openBlock as d, unref as e, withCtx as p, createElementVNode as _, createElementBlock as k, createCommentVNode as y, Fragment as K, renderList as q, toDisplayString as U } from "vue";
|
|
2
|
+
import { u as J, D as Q, A as R, H as A } from "./menu-Btcr0nsk.js";
|
|
3
|
+
import { useI18n as W, useCoreStore as X } from "@feedmepos/mf-common";
|
|
4
|
+
import { useSnackbar as Y, components as Z, FmButtonVariant as ee, FmButtonColorThemeVariant as te } from "@feedmepos/ui-library";
|
|
5
|
+
import { _ as M } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
6
|
+
import { _ as le } from "./app-DiizQWjo.js";
|
|
8
7
|
import { _ as ne } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
9
|
-
import { C as b, a as m } from "./catalogSetting-
|
|
10
|
-
import { u as oe } from "./priceTier-
|
|
8
|
+
import { C as b, a as m } from "./catalogSetting-18FJ5pkA.js";
|
|
9
|
+
import { u as oe } from "./priceTier-DvUjWwCM.js";
|
|
11
10
|
const ae = {
|
|
12
11
|
class: "py-16"
|
|
13
12
|
}, se = {
|
|
@@ -26,13 +25,13 @@ const ae = {
|
|
|
26
25
|
class: "fm-typo-en-title-md-600"
|
|
27
26
|
}, de = {
|
|
28
27
|
class: "text-fm-color-typo-secondary"
|
|
29
|
-
},
|
|
28
|
+
}, ye = /* @__PURE__ */ G({
|
|
30
29
|
__name: "MenuSetting",
|
|
31
30
|
setup(pe) {
|
|
32
31
|
var h;
|
|
33
32
|
const {
|
|
34
33
|
t
|
|
35
|
-
} =
|
|
34
|
+
} = W(), v = J(), w = X(), N = Y(), B = Q(N), u = T(() => ({
|
|
36
35
|
lowStock: v.state.menu.lowStockThreshold,
|
|
37
36
|
taxSetting: v.state.menu.masterCatalogSetting,
|
|
38
37
|
priceTierSettings: v.state.menu.priceTierSettings
|
|
@@ -43,14 +42,14 @@ const ae = {
|
|
|
43
42
|
label: t("menu.menu_setting.tabs.price_group"),
|
|
44
43
|
value: "price-group"
|
|
45
44
|
}] : []]), i = F(b.transformTax((h = u.value.taxSetting) == null ? void 0 : h.inclusiveTaxes));
|
|
46
|
-
|
|
45
|
+
H(() => u.value, (a) => {
|
|
47
46
|
var l;
|
|
48
47
|
i.value = b.transformTax((l = a.taxSetting) == null ? void 0 : l.inclusiveTaxes);
|
|
49
48
|
});
|
|
50
49
|
const S = T(() => {
|
|
51
50
|
if (!w.currentCountry.value) return [];
|
|
52
51
|
const a = i.value.mode === m.MANUAL ? i.value.inclusive ?? [] : [];
|
|
53
|
-
return
|
|
52
|
+
return R.Country.getCountry(w.currentCountry.value).taxSystems.map((s) => {
|
|
54
53
|
const r = a.find((g) => g.systemCode === s.code);
|
|
55
54
|
return {
|
|
56
55
|
inclusive: (r == null ? void 0 : r.inclusive) || !1,
|
|
@@ -59,7 +58,7 @@ const ae = {
|
|
|
59
58
|
});
|
|
60
59
|
});
|
|
61
60
|
function L(a) {
|
|
62
|
-
const l = i.value, s = l.mode === m.AUTO ? b.manualTax(S.value) :
|
|
61
|
+
const l = i.value, s = l.mode === m.AUTO ? b.manualTax(S.value) : A(l);
|
|
63
62
|
s.inclusive ?? (s.inclusive = []);
|
|
64
63
|
const r = s.inclusive.findIndex((g) => g.systemCode === a.systemCode);
|
|
65
64
|
r < 0 ? s.inclusive.push(a) : s.inclusive.splice(r, 1, a), i.value = s;
|
|
@@ -67,7 +66,7 @@ const ae = {
|
|
|
67
66
|
async function O() {
|
|
68
67
|
if (u.value.lowStock !== null && u.value.lowStock !== void 0 && !Number.isInteger(u.value.lowStock))
|
|
69
68
|
return;
|
|
70
|
-
const a = i.value.mode === m.AUTO ? null :
|
|
69
|
+
const a = i.value.mode === m.AUTO ? null : A(i.value.inclusive);
|
|
71
70
|
await B.minor(async () => {
|
|
72
71
|
const l = u.value.lowStock === null || u.value.lowStock === void 0 || u.value.lowStock === 0;
|
|
73
72
|
await v.updateMenuSetting({
|
|
@@ -90,15 +89,15 @@ const ae = {
|
|
|
90
89
|
size: 50,
|
|
91
90
|
cell: (a) => n("div", {
|
|
92
91
|
class: "px-4 flex justify-end"
|
|
93
|
-
}, [n(
|
|
92
|
+
}, [n(Z.FmButton, {
|
|
94
93
|
icon: "delete",
|
|
95
|
-
"text-color":
|
|
96
|
-
variant:
|
|
94
|
+
"text-color": te.NeutralGray400,
|
|
95
|
+
variant: ee.Tertiary,
|
|
97
96
|
onClick: () => f.deletePriceTier(a.row.original.key)
|
|
98
97
|
}, null)])
|
|
99
98
|
}];
|
|
100
99
|
return (a, l) => {
|
|
101
|
-
const s = c("FmTabs"), r = c("fm-radio"), g = c("fm-radio-group"), D = c("fm-checkbox"),
|
|
100
|
+
const s = c("FmTabs"), r = c("fm-radio"), g = c("fm-radio-group"), D = c("fm-checkbox"), E = c("FormItem"), $ = c("FmStepperField"), C = c("FmButton"), j = c("FmTable");
|
|
102
101
|
return d(), V(ne, {
|
|
103
102
|
heading: e(t)("menu.menu_setting.title")
|
|
104
103
|
}, {
|
|
@@ -106,10 +105,10 @@ const ae = {
|
|
|
106
105
|
items: I.value,
|
|
107
106
|
modelValue: x.value,
|
|
108
107
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => x.value = o)
|
|
109
|
-
}, null, 8, ["items", "modelValue"]), _("div", ae, [x.value === "conf" ? (d(), k("div", se, [n(
|
|
108
|
+
}, null, 8, ["items", "modelValue"]), _("div", ae, [x.value === "conf" ? (d(), k("div", se, [n(M, {
|
|
110
109
|
title: "Tax setting"
|
|
111
110
|
}, {
|
|
112
|
-
default: p(() => [n(
|
|
111
|
+
default: p(() => [n(E, {
|
|
113
112
|
label: e(t)("menu.setting.tax.title")
|
|
114
113
|
}, {
|
|
115
114
|
default: p(() => [n(g, {
|
|
@@ -128,7 +127,7 @@ const ae = {
|
|
|
128
127
|
sublabel: e(t)("menu.setting.tax.modes.manual.sublabel")
|
|
129
128
|
}, null, 8, ["value", "label", "sublabel"])]),
|
|
130
129
|
_: 1
|
|
131
|
-
}, 8, ["model-value"]), i.value.mode === e(m).MANUAL ? (d(), k("div", ue, [(d(!0), k(
|
|
130
|
+
}, 8, ["model-value"]), i.value.mode === e(m).MANUAL ? (d(), k("div", ue, [(d(!0), k(K, null, q(S.value, (o) => (d(), V(D, {
|
|
132
131
|
key: o.systemCode,
|
|
133
132
|
"model-value": o.inclusive,
|
|
134
133
|
value: !0,
|
|
@@ -143,11 +142,11 @@ const ae = {
|
|
|
143
142
|
_: 1
|
|
144
143
|
}, 8, ["label"])]),
|
|
145
144
|
_: 1
|
|
146
|
-
}), n(
|
|
145
|
+
}), n(M, {
|
|
147
146
|
title: e(t)("menu.menu_setting.fields.low_stock.title"),
|
|
148
147
|
"sub-title": e(t)("menu.menu_setting.fields.low_stock.subtitle")
|
|
149
148
|
}, {
|
|
150
|
-
default: p(() => [n(
|
|
149
|
+
default: p(() => [n($, {
|
|
151
150
|
"model-value": u.value.lowStock || null,
|
|
152
151
|
min: 0,
|
|
153
152
|
max: 1e3,
|
|
@@ -167,8 +166,8 @@ const ae = {
|
|
|
167
166
|
label: e(t)("menu.price_tier.add_price_group"),
|
|
168
167
|
icon: "add",
|
|
169
168
|
onClick: e(f).create
|
|
170
|
-
}, null, 8, ["label", "onClick"])]), n(
|
|
171
|
-
default: p(() => [n(
|
|
169
|
+
}, null, 8, ["label", "onClick"])]), n(le, null, {
|
|
170
|
+
default: p(() => [n(j, {
|
|
172
171
|
"column-defs": z,
|
|
173
172
|
"row-data": e(f).priceTiers.value,
|
|
174
173
|
"page-size": e(f).priceTiers.value.length,
|
|
@@ -182,5 +181,5 @@ const ae = {
|
|
|
182
181
|
}
|
|
183
182
|
});
|
|
184
183
|
export {
|
|
185
|
-
|
|
184
|
+
ye as default
|
|
186
185
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { defineComponent as H, ref as k, computed as f, resolveComponent as g, createBlock as P, openBlock as p, unref as l, withCtx as m, createElementVNode as i, createVNode as c, createCommentVNode as J, toDisplayString as S, createElementBlock as L, Fragment as A, renderList as
|
|
1
|
+
import { defineComponent as H, ref as k, computed as f, resolveComponent as g, createBlock as P, openBlock as p, unref as l, withCtx as m, createElementVNode as i, createVNode as c, createCommentVNode as J, toDisplayString as S, createElementBlock as L, Fragment as A, renderList as R, h as _, withModifiers as q } from "vue";
|
|
2
2
|
import { useI18n as Q } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as W, useSnackbar as ee, useDialog as te } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as oe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as ne } from "./app-
|
|
6
|
-
import {
|
|
5
|
+
import { _ as ne } from "./app-DiizQWjo.js";
|
|
6
|
+
import { H as j, I as ae, J as B, G as V, u as le, O as re, D as se } from "./menu-Btcr0nsk.js";
|
|
7
7
|
import { u as ie } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import "
|
|
9
|
-
import "@feedmepos/core/entity";
|
|
10
|
-
import { L as ue } from "./LinkProductSideSheet-C6rF-G1v.js";
|
|
8
|
+
import { L as ue } from "./LinkProductSideSheet-Y-Z9_9Kp.js";
|
|
11
9
|
import { _ as G } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
12
10
|
import { _ as de } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
13
11
|
import { _ as ce } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
@@ -57,13 +55,13 @@ const me = { class: "fm-typo-en-title-md-600" }, pe = { class: "space-y-32" }, _
|
|
|
57
55
|
applyToItems: n.value.applyToItems.filter((a) => a !== r)
|
|
58
56
|
};
|
|
59
57
|
}
|
|
60
|
-
const { t: u } = Q(), O = f(() => n.value._id ? u("menu.print_route.department_dialog.update.title") : u("menu.print_route.department_dialog.add.title")), I = f(() => n.value._id ? u("menu.print_route.department_dialog.update.action") : u("menu.print_route.department_dialog.add.action")), D = f(() => n.value.applyToItems.length),
|
|
58
|
+
const { t: u } = Q(), O = f(() => n.value._id ? u("menu.print_route.department_dialog.update.title") : u("menu.print_route.department_dialog.add.title")), I = f(() => n.value._id ? u("menu.print_route.department_dialog.update.action") : u("menu.print_route.department_dialog.add.action")), D = f(() => n.value.applyToItems.length), K = f(
|
|
61
59
|
() => n.value.applyToItems.reduce((r, a) => (r[a] = [], r), {})
|
|
62
60
|
), e = k(""), o = f(() => {
|
|
63
61
|
const r = e.value.toLowerCase();
|
|
64
62
|
return N.categorizedItems.reduce((a, d) => {
|
|
65
63
|
const z = d.items.filter(
|
|
66
|
-
(C) => (!r || C.name.toLowerCase().includes(r)) && !!
|
|
64
|
+
(C) => (!r || C.name.toLowerCase().includes(r)) && !!K.value[C._id]
|
|
67
65
|
);
|
|
68
66
|
return z.length && a.push({ ...d, items: z }), a;
|
|
69
67
|
}, []);
|
|
@@ -174,9 +172,9 @@ const me = { class: "fm-typo-en-title-md-600" }, pe = { class: "space-y-32" }, _
|
|
|
174
172
|
])
|
|
175
173
|
]),
|
|
176
174
|
i("div", ge, [
|
|
177
|
-
(p(!0), L(A, null,
|
|
175
|
+
(p(!0), L(A, null, R(o.value, (s) => (p(), L("div", null, [
|
|
178
176
|
i("div", he, S(s.name), 1),
|
|
179
|
-
(p(!0), L(A, null,
|
|
177
|
+
(p(!0), L(A, null, R(s.items, (Y) => (p(), L("div", be, [
|
|
180
178
|
i("div", xe, S(Y.name), 1),
|
|
181
179
|
i("div", ke, [
|
|
182
180
|
c(C, {
|
|
@@ -203,7 +201,7 @@ const me = { class: "fm-typo-en-title-md-600" }, pe = { class: "space-y-32" }, _
|
|
|
203
201
|
function Ce(v, t) {
|
|
204
202
|
return {
|
|
205
203
|
module: V.F_MENU_MODULE_V4_KEY.enum.printDepartment,
|
|
206
|
-
operation:
|
|
204
|
+
operation: B.F_OPERATION_TYPE.create,
|
|
207
205
|
data: V.FdoMenuPrintDepartment.parse(v),
|
|
208
206
|
link: t.map((h) => ({
|
|
209
207
|
module: V.F_MENU_MODULE_V4_KEY.enum.item,
|
|
@@ -214,7 +212,7 @@ function Ce(v, t) {
|
|
|
214
212
|
function Ve(v, t) {
|
|
215
213
|
return {
|
|
216
214
|
module: V.F_MENU_MODULE_V4_KEY.enum.printDepartment,
|
|
217
|
-
operation:
|
|
215
|
+
operation: B.F_OPERATION_TYPE.update,
|
|
218
216
|
data: V.FdoMenuPrintDepartment.parse(v),
|
|
219
217
|
link: t.map((h) => ({
|
|
220
218
|
module: V.F_MENU_MODULE_V4_KEY.enum.item,
|
|
@@ -225,7 +223,7 @@ function Ve(v, t) {
|
|
|
225
223
|
function we(v) {
|
|
226
224
|
return {
|
|
227
225
|
module: V.F_MENU_MODULE_V4_KEY.enum.printDepartment,
|
|
228
|
-
operation:
|
|
226
|
+
operation: B.F_OPERATION_TYPE.delete,
|
|
229
227
|
data: v._id
|
|
230
228
|
};
|
|
231
229
|
}
|
|
@@ -239,7 +237,7 @@ const Ee = {
|
|
|
239
237
|
class: "fm-typo-en-body-lg-600"
|
|
240
238
|
}, Le = {
|
|
241
239
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
242
|
-
},
|
|
240
|
+
}, Ye = /* @__PURE__ */ H({
|
|
243
241
|
__name: "PrintRoute",
|
|
244
242
|
setup(v) {
|
|
245
243
|
const {
|
|
@@ -333,7 +331,7 @@ const Ee = {
|
|
|
333
331
|
await n.updateMenu(we(e), e.name, !0);
|
|
334
332
|
});
|
|
335
333
|
}
|
|
336
|
-
const I = k(""), D = k(),
|
|
334
|
+
const I = k(""), D = k(), K = f(() => {
|
|
337
335
|
if (!I.value) return b.value;
|
|
338
336
|
const e = I.value.toLowerCase();
|
|
339
337
|
return b.value.filter((o) => o.name.toLowerCase().includes(e));
|
|
@@ -378,7 +376,7 @@ const Ee = {
|
|
|
378
376
|
class: "w-full px-16 xs:block hidden flex-1 min-h-0 overflow-scroll pb-64",
|
|
379
377
|
separator: ""
|
|
380
378
|
}, {
|
|
381
|
-
default: m(() => [(p(!0), L(A, null, K
|
|
379
|
+
default: m(() => [(p(!0), L(A, null, R(K.value, (d) => (p(), P(r, {
|
|
382
380
|
key: d._id,
|
|
383
381
|
label: d.name,
|
|
384
382
|
style: {
|
|
@@ -418,5 +416,5 @@ const Ee = {
|
|
|
418
416
|
}
|
|
419
417
|
});
|
|
420
418
|
export {
|
|
421
|
-
|
|
419
|
+
Ye as default
|
|
422
420
|
};
|