@feedmepos/mf-menu 0.31.71-alpha.1 → 0.31.71-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-C1efkJzL.js → App-B5R51HHK.js} +9 -9
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BHDnLuRy.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Dflill79.js} +3 -3
- package/dist/{Catalog-BJjTCl9l.js → Catalog-yv_fwu1h.js} +6 -6
- package/dist/{Category-CxrTHk1Y.js → Category-DEkZ-IWE.js} +4 -4
- package/dist/{Category-C35HseX2.js → Category-lOaUwRrB.js} +6 -6
- package/dist/{CookingGuide-BwEQicZ8.js → CookingGuide-Db8VQK5V.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DhiJEKXO.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DwsVvlUq.js} +1 -1
- package/dist/{Group-2MAzdN5P.js → Group-B2EXYbcn.js} +1 -1
- package/dist/{Group-C_AO4FGn.js → Group-CFS8D5Uf.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DjEPQI2w.js → Group.vue_vue_type_script_setup_true_lang-BdZ9K2Ht.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Cttg3YhQ.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CtlyZlos.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-8pgeYhp4.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C-RPhKoA.js} +7 -7
- package/dist/{Ingredient-CL_5yWPs.js → Ingredient-C3B8G0Fd.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Di42poKp.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BrhhXwp8.js} +1052 -1052
- package/dist/{LinkProductSideSheet-Buso155W.js → LinkProductSideSheet-DPn7KN3l.js} +3 -3
- package/dist/{MenuSetting-CnREg4Yu.js → MenuSetting-Mph9Pc9s.js} +5 -5
- package/dist/{PrintRoute-C9sWURzn.js → PrintRoute-BwboeALA.js} +4 -4
- package/dist/{Product-BLRDuiIG.js → Product-CNKnPt-z.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BpKLqY3j.js → Product.vue_vue_type_script_setup_true_lang-BksTc5Gm.js} +13 -13
- package/dist/{ProductInternalTools-Cn2WRqm6.js → ProductInternalTools-DGkoIc6T.js} +6 -6
- package/dist/{Products-BQBfz9A8.js → Products-CkLZYybB.js} +11 -11
- package/dist/{Publish-DMQ9O69V.js → Publish-Bzq9aREC.js} +3 -3
- package/dist/{Recipe-CXEZt0zY.js → Recipe-K55Bnscl.js} +4 -4
- package/dist/{Scheduler-hJTrqBhn.js → Scheduler-ChAmTqSR.js} +3 -3
- package/dist/{ServingSequence-CctiqLbz.js → ServingSequence-ywa7-8rG.js} +3 -3
- package/dist/{Setting-BrKRjfTn.js → Setting-CHUNtVho.js} +5 -5
- package/dist/{Subcategory-K0jGgZtU.js → Subcategory-0-99_i06.js} +4 -4
- package/dist/{Takeaway-DiJwhBwl.js → Takeaway-BzvxZ_dA.js} +4 -4
- package/dist/{Takeaway-o5KBa5oX.js → Takeaway-CsJf5I8I.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BpgD3grk.js → Takeaway.vue_vue_type_script_setup_true_lang-Bh8mjdk4.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-BCejAD3E.js → Thumbnail.vue_vue_type_script_setup_true_lang-CbxgtwVa.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CMZfeg2n.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dh_CA5gZ.js} +15 -15
- package/dist/{Unit-BAy6O7xD.js → Unit-CbTkNhj2.js} +2 -2
- package/dist/{Variant-BtXJASw_.js → Variant-NkbzEbF-.js} +3 -3
- package/dist/{_id_-HD8T1NGg.js → _id_-mr4_eirX.js} +10 -10
- package/dist/{app-C7AqPK-c.js → app-BzsHQwP_.js} +1 -1
- package/dist/{app-Bp1A4ItJ.js → app-DVB67WHZ.js} +26 -26
- package/dist/app.js +1 -1
- package/dist/assets/{linked-status-DmzniV97.js → linked-status-Dwqdwyog.js} +5 -5
- package/dist/assets/{override-menu-CdzhzFFi.js → override-menu-CGexvHxV.js} +5 -5
- package/dist/assets/{validate-menu-BSL_Zd2w.js → validate-menu-C2daBpKY.js} +2 -2
- package/dist/{catalog-XPyE5k4t.js → catalog-C_6TM4e_.js} +1 -1
- package/dist/{catalogSetting-C-A9fWEC.js → catalogSetting-pTMi5i6h.js} +1 -1
- package/dist/{category-DXZrXFYj.js → category-CHNICcWp.js} +1 -1
- package/dist/{currency-D939gSij.js → currency-Dx-pn9tw.js} +1 -1
- package/dist/{customAttributes-bw8OCoHr.js → customAttributes-DvHKcDWb.js} +1 -1
- package/dist/{dayjs.min-C3Ch6D78.js → dayjs.min-BZu87fXJ.js} +1 -1
- package/dist/{index-BU5aiCzu.js → index-CA3_R55p.js} +4 -4
- package/dist/{index-Cq9qqaCC.js → index-DGtoqrTo.js} +1 -1
- package/dist/{index-CPb1lDPU.js → index-DqIorABw.js} +1 -1
- package/dist/{index-B4t_Uzk7.js → index-X3RliLfv.js} +3 -3
- package/dist/{item-D4uNJyVR.js → item-JhHKgoMj.js} +378 -378
- package/dist/{jszip.min-15VIwqfl.js → jszip.min-BQReTtS0.js} +245 -245
- package/dist/{menu-CPLvXPJu.js → menu-2ymqQnFE.js} +1776 -1776
- package/dist/{menu-BSAn1m0K.js → menu-Bhfx50bt.js} +1 -1
- package/dist/{menuV2-DZpI5Elt.js → menuV2-ZaA_QLdj.js} +23 -23
- package/dist/{priceTier-Bs5Ve98k.js → priceTier-IZtw6WUa.js} +1 -1
- package/dist/{scheduler-BKwB9GfG.js → scheduler-CzuGjuw5.js} +4 -4
- package/dist/{subcategory-DJW1_br9.js → subcategory-Dt6tFvIu.js} +2 -2
- package/dist/{toExcel-C_lOM1fZ.js → toExcel-CUrEHCjB.js} +2 -2
- package/dist/{unit-ioVHtQya.js → unit-Ibbp0wZT.js} +2 -2
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Ue = Object.defineProperty;
|
|
2
2
|
var We = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ne = (e, t, n) => We(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { an as ue, H as C, D as T, A as ae, ao as re, J as
|
|
4
|
+
import { an as ue, H as C, D as T, A as ae, ao as re, J as H, I as ie, a8 as x, c as L, X as V, ai as oe, ap as Le, aq as qe, B as Ge, aa as He, ar as ze, as as Be, a7 as Je } from "./menu-2ymqQnFE.js";
|
|
5
5
|
import { defineStore as Ye } from "pinia";
|
|
6
|
-
import { shallowRef as j, ref as
|
|
6
|
+
import { shallowRef as j, ref as z, computed as S, shallowReactive as Xe, effectScope as Qe, watch as Ze } from "vue";
|
|
7
7
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
8
8
|
import { useSnackbar as et } from "@feedmepos/ui-library";
|
|
9
|
-
const tt = "/assets/linked-status-
|
|
9
|
+
const tt = "/assets/linked-status-Dwqdwyog.js", nt = "/assets/override-menu-CGexvHxV.js";
|
|
10
10
|
function rt(e) {
|
|
11
11
|
var o;
|
|
12
12
|
const t = C(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
|
|
@@ -183,11 +183,11 @@ function Dt(e, t) {
|
|
|
183
183
|
return r;
|
|
184
184
|
}, [])) || []).join(" / ");
|
|
185
185
|
}
|
|
186
|
-
const
|
|
186
|
+
const q = /* @__PURE__ */ new Map();
|
|
187
187
|
async function Vt(e, t) {
|
|
188
188
|
const n = `${e._id}-${e.updatedAt}-${t}`;
|
|
189
|
-
if (
|
|
190
|
-
return
|
|
189
|
+
if (q.has(n))
|
|
190
|
+
return q.get(n);
|
|
191
191
|
const o = await ue(
|
|
192
192
|
tt,
|
|
193
193
|
JSON.stringify({
|
|
@@ -195,7 +195,7 @@ async function Vt(e, t) {
|
|
|
195
195
|
itemId: t
|
|
196
196
|
})
|
|
197
197
|
);
|
|
198
|
-
return
|
|
198
|
+
return q.set(n, o), o;
|
|
199
199
|
}
|
|
200
200
|
async function ce(e, t, n) {
|
|
201
201
|
return await ue(nt, {
|
|
@@ -234,13 +234,13 @@ function Ft(e, t, n) {
|
|
|
234
234
|
}
|
|
235
235
|
return r(t, n);
|
|
236
236
|
}
|
|
237
|
-
const
|
|
237
|
+
const G = /* @__PURE__ */ new Map();
|
|
238
238
|
async function at(e, t, n) {
|
|
239
239
|
const o = `${e._id}-${e.updatedAt}-${t || "null"}-${n || "null"}`;
|
|
240
|
-
if (
|
|
241
|
-
return
|
|
240
|
+
if (G.has(o))
|
|
241
|
+
return G.get(o);
|
|
242
242
|
const r = await ce(e, t, n);
|
|
243
|
-
return
|
|
243
|
+
return G.set(o, r), r;
|
|
244
244
|
}
|
|
245
245
|
async function Kt(e, t, n) {
|
|
246
246
|
var l, u;
|
|
@@ -566,7 +566,7 @@ function St({
|
|
|
566
566
|
includeValueOnMove: !1
|
|
567
567
|
},
|
|
568
568
|
cloneDiffValues: !1
|
|
569
|
-
}), n = j(null), o = j([]), r =
|
|
569
|
+
}), n = j(null), o = j([]), r = z(-1), a = j(null), l = S(() => r.value > 0), u = S(() => r.value < o.value.length - 1);
|
|
570
570
|
function c(v) {
|
|
571
571
|
if (n.value === null) {
|
|
572
572
|
n.value = C(v), a.value = C(v), o.value = [{ delta: null }], r.value = 0;
|
|
@@ -616,7 +616,7 @@ function St({
|
|
|
616
616
|
}
|
|
617
617
|
const bt = {
|
|
618
618
|
async updateMenuModule(e, t) {
|
|
619
|
-
const n =
|
|
619
|
+
const n = H.RequestRunner.operation(t, e.modules);
|
|
620
620
|
if (n.validateError.length > 0)
|
|
621
621
|
throw new Error(n.validateError.join(`
|
|
622
622
|
`));
|
|
@@ -671,8 +671,8 @@ const Pt = Ye(
|
|
|
671
671
|
selector: "position"
|
|
672
672
|
}) : []), r = S(() => {
|
|
673
673
|
var s;
|
|
674
|
-
return ((s = t.currentBusiness.value) == null ? void 0 : s.menuVersion) ||
|
|
675
|
-
}), a = S(() => r.value ===
|
|
674
|
+
return ((s = t.currentBusiness.value) == null ? void 0 : s.menuVersion) || L.F_MENU_VERSION.v3;
|
|
675
|
+
}), a = S(() => r.value === L.F_MENU_VERSION.v4), l = S(() => {
|
|
676
676
|
const s = e.menu.modules.catalog;
|
|
677
677
|
return x(s, { selector: "name" });
|
|
678
678
|
}), u = S(() => {
|
|
@@ -692,7 +692,7 @@ const Pt = Ye(
|
|
|
692
692
|
function f(s, d = !0) {
|
|
693
693
|
e.menu = { ...s, _rev: e.menu._rev }, d && D.push(e.menu);
|
|
694
694
|
}
|
|
695
|
-
const h = j(fe()), m =
|
|
695
|
+
const h = j(fe()), m = z(!1), v = z(1);
|
|
696
696
|
async function p() {
|
|
697
697
|
var y;
|
|
698
698
|
m.value = !0;
|
|
@@ -809,13 +809,13 @@ const Pt = Ye(
|
|
|
809
809
|
}
|
|
810
810
|
const _e = S(() => V(h.value.modules.group, (s) => s.name)), Se = S(() => x(h.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
|
|
811
811
|
selector: "name"
|
|
812
|
-
})), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(
|
|
812
|
+
})), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Le(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
813
813
|
selector: "name"
|
|
814
814
|
})), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
|
|
815
|
-
const s =
|
|
815
|
+
const s = qe(e.menu.modules.sku);
|
|
816
816
|
return x(s, { selector: "code" });
|
|
817
817
|
}), U = S(() => {
|
|
818
|
-
const s = !e.currentCatalogId, d = r.value ===
|
|
818
|
+
const s = !e.currentCatalogId, d = r.value === L.F_MENU_VERSION.v4, y = !e.currentSchedulerId, g = {
|
|
819
819
|
create: s && y,
|
|
820
820
|
edit: s && y,
|
|
821
821
|
delete: s && y
|
|
@@ -895,10 +895,10 @@ const Pt = Ye(
|
|
|
895
895
|
}
|
|
896
896
|
const ke = S(() => {
|
|
897
897
|
var g;
|
|
898
|
-
const s = ["SV5", "SV10"], d =
|
|
898
|
+
const s = ["SV5", "SV10"], d = Ge.Country.getCountryFlattenTaxes(
|
|
899
899
|
se().currentCountry.value
|
|
900
900
|
), y = d.filter((_) => a.value || !s.includes(_.taxCode)).map((_) => ({
|
|
901
|
-
label: `${_.name} (${
|
|
901
|
+
label: `${_.name} (${He(_.rate)}%)`,
|
|
902
902
|
value: W(_),
|
|
903
903
|
meta: {
|
|
904
904
|
rate: _.rate
|
|
@@ -936,9 +936,9 @@ const Pt = Ye(
|
|
|
936
936
|
}));
|
|
937
937
|
try {
|
|
938
938
|
if (d || g.some(
|
|
939
|
-
(A) => [
|
|
939
|
+
(A) => [H.F_OPERATION_TYPE.delete, H.F_OPERATION_TYPE.deleteMany].includes(A.operation)
|
|
940
940
|
)) {
|
|
941
|
-
const A = await
|
|
941
|
+
const A = await ze(g, e.menu.modules);
|
|
942
942
|
if (A !== !0) throw new Error(A);
|
|
943
943
|
}
|
|
944
944
|
const _ = await bt.updateMenuModule(e.menu, g);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
|
|
2
2
|
import { useI18n as m } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as k, G as M } from "./menu-
|
|
4
|
+
import { u as k, G as M } from "./menu-2ymqQnFE.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as L, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
|
|
2
|
-
import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-
|
|
2
|
+
import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-2ymqQnFE.js";
|
|
3
3
|
import { useI18n as de } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as _e } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ne, a as fe } from "./customAttributes-
|
|
5
|
+
import { _ as ne, a as fe } from "./customAttributes-DvHKcDWb.js";
|
|
6
6
|
import { u as ye } from "./discardConfirm-BHni0LNu.js";
|
|
7
|
-
import { u as he } from "./menu-
|
|
8
|
-
import { L as ge } from "./LinkProductSideSheet-
|
|
7
|
+
import { u as he } from "./menu-Bhfx50bt.js";
|
|
8
|
+
import { L as ge } from "./LinkProductSideSheet-DPn7KN3l.js";
|
|
9
9
|
const Ve = { class: "space-y-8" }, Fe = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "space-y-16"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as A, unref as c, withCtx as C, createVNode as V } from "vue";
|
|
2
|
-
import { J as l, A as d, u as F } from "./menu-
|
|
2
|
+
import { J as l, A as d, u as F } from "./menu-2ymqQnFE.js";
|
|
3
3
|
import { useI18n as b } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as P } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as v } from "./menuV2-
|
|
5
|
+
import { u as v } from "./menuV2-ZaA_QLdj.js";
|
|
6
6
|
const y = /* @__PURE__ */ M({
|
|
7
7
|
__name: "AddSubcategoryDialogContentComponent",
|
|
8
8
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-C-RPhKoA.js";
|
|
2
|
+
import "./menu-2ymqQnFE.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineStore as J } from "pinia";
|
|
2
2
|
import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
-
import { a5 as P, a6 as te, a3 as B, H as k, O as $, G as I, D as E, a4 as ne, J as C, A as D, I as oe, u as ae } from "./menu-
|
|
3
|
+
import { a5 as P, a6 as te, a3 as B, H as k, O as $, G as I, D as E, a4 as ne, J as C, A as D, I as oe, u as ae } from "./menu-2ymqQnFE.js";
|
|
4
4
|
import { useI18n as L } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as se } from "./discardConfirm-BHni0LNu.js";
|
|
7
7
|
import { c as re } from "./check-C9mY6LiX.js";
|
|
8
8
|
import "./vuedraggable-CK8z7qA8.js";
|
|
9
9
|
import "./app-5fxKLAzS.js";
|
|
10
|
-
import "./menuV2-
|
|
10
|
+
import "./menuV2-ZaA_QLdj.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|