@feedmepos/mf-menu 0.31.24-beta.1 → 0.31.25-beta.1
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-atRICa29.js → App-BLa7jFtA.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-D7K9szHW.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Ru2zM9dD.js} +2 -2
- package/dist/{Catalog-IPyAIBEE.js → Catalog-QBn-cluZ.js} +5 -5
- package/dist/{Category-CbqUF4jq.js → Category-BhqalVyv.js} +5 -5
- package/dist/{Category-BxFaF53M.js → Category-Vr3oigTp.js} +4 -4
- package/dist/{CookingGuide-CxTt2_EE.js → CookingGuide-BVEIF0Ty.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Dkj7AX5R.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-D9_egLKa.js} +1 -1
- package/dist/{Group-NbAs2Nme.js → Group-DIAEQ0PL.js} +3 -3
- package/dist/{Group-XTMgThBY.js → Group-HgicYrbd.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-aQYEIMaX.js → Group.vue_vue_type_script_setup_true_lang-D2YK7zMB.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B1e6r0U-.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BIvaRSSu.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CS9TEwIo.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DsOWsF-6.js} +6 -6
- package/dist/{Ingredient-B3Vot3Wj.js → Ingredient-CRE28gND.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-C9wQDuTY.js → InventoryBinding.vue_vue_type_script_setup_true_lang-8akM-aUi.js} +2 -2
- package/dist/{LinkProductSideSheet-o8wJCS-Y.js → LinkProductSideSheet-Dd518vVx.js} +1 -1
- package/dist/{MenuSetting-BpMdpxab.js → MenuSetting-7NDOmfV-.js} +4 -4
- package/dist/{PrintRoute-Bvx6eXxT.js → PrintRoute-CrTgTqF0.js} +3 -3
- package/dist/{Product-C9jEGjsK.js → Product-BuYcc4S5.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BN72yCvr.js → Product.vue_vue_type_script_setup_true_lang-CqLlt_nD.js} +11 -11
- package/dist/{ProductInternalTools-yfZU_6O2.js → ProductInternalTools-BAu5Our1.js} +5 -5
- package/dist/{Products-B3TvQb0r.js → Products-D8511NXb.js} +10 -10
- package/dist/{Publish-VIXPwV15.js → Publish-eABrzXRA.js} +3 -3
- package/dist/{Recipe-B3adtS4I.js → Recipe-BRCat1HI.js} +4 -4
- package/dist/{Scheduler-sCIyiiQt.js → Scheduler-hT3Q27Cl.js} +3 -3
- package/dist/{ServingSequence-CC2o0C5a.js → ServingSequence-3uG5Exf8.js} +3 -3
- package/dist/{Setting-A5eCUNZQ.js → Setting-C4rZZ6FJ.js} +4 -4
- package/dist/{Subcategory-pZL2c16J.js → Subcategory-COvqZ29i.js} +4 -4
- package/dist/{Takeaway-D9zllPZx.js → Takeaway-CKyS_NDe.js} +1 -1
- package/dist/{Takeaway--BC57abI.js → Takeaway-DSyaEgf4.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cxvqgluc.js → Takeaway.vue_vue_type_script_setup_true_lang-DLDV2AjE.js} +5 -5
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BdC_EI1o.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BpRAuwuO.js} +12 -12
- package/dist/{Unit-CwgySfo5.js → Unit-Cg-jifRy.js} +2 -2
- package/dist/{Variant-BA31tuQS.js → Variant-CFczAEeM.js} +3 -3
- package/dist/{_id_-BNhsMj5a.js → _id_-Bj38iFT7.js} +9 -9
- package/dist/{app-CEDTbc4L.js → app-Cr5SNfrZ.js} +24 -24
- package/dist/{app-B4R0y8Xk.js → app-KcN5Ki3h.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/assets/{linked-status-C0-TxnXW.js → linked-status-CTAji1Ux.js} +2 -2
- package/dist/assets/{override-menu-DW-bCY3t.js → override-menu-2tL1Ph61.js} +2 -2
- package/dist/assets/{validate-menu-p-uZsNpg.js → validate-menu-D2PqWPAH.js} +2 -2
- package/dist/{catalog-By2r-SJB.js → catalog-Qc2FCc3p.js} +1 -1
- package/dist/{catalogSetting-Pp4BQM3W.js → catalogSetting-hRfdCU5r.js} +1 -1
- package/dist/{category-CVxyJmC9.js → category-DC2zOag6.js} +1 -1
- package/dist/{currency-DLDxeBat.js → currency-DPjcxYdl.js} +1 -1
- package/dist/{dayjs.min-9JpRUnlT.js → dayjs.min-ok2opPE2.js} +1 -1
- package/dist/{index-8ZwPq2Wb.js → index-CrgljYo1.js} +3 -3
- package/dist/{index-DGsgcFlI.js → index-DVeW7VRx.js} +2 -2
- package/dist/{index-BqZtuep-.js → index-DoP0iwMb.js} +1 -1
- package/dist/{item-Cnmy12eH.js → item-Drxles1b.js} +14 -14
- package/dist/{jszip.min-CXoYPLe2.js → jszip.min-BaIWf2U-.js} +2 -2
- package/dist/{menu-newE9rra.js → menu-BqW6_A-Y.js} +1 -1
- package/dist/{menu-DS-jaP6O.js → menu-DolC_TD-.js} +255 -255
- package/dist/{priceTier-UQrWR5cc.js → priceTier-BhD3DDHC.js} +1 -1
- package/dist/{scheduler-DsFcgwNi.js → scheduler-CF3LuzM1.js} +3 -3
- package/dist/{subcategory-B75tox6P.js → subcategory-rNCNzt9U.js} +36 -36
- package/dist/{toExcel-Ct4rsko4.js → toExcel-CFNOkUZa.js} +2 -2
- package/dist/{unit-DBrr7jMB.js → unit-CvvUSotB.js} +1 -1
- package/package.json +1 -1
|
@@ -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, D as M } from "./menu-
|
|
4
|
+
import { u as k, D as M } from "./menu-DolC_TD-.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as le, computed as Y, resolveComponent as v, createElementBlock as i, openBlock as u, createVNode as l, createCommentVNode as g, unref as a, toDisplayString as P, createElementVNode as y, withCtx as _, Fragment as D, renderList as A, createBlock as N, ref as T, Transition as ee, createTextVNode as se } from "vue";
|
|
2
|
-
import { H as b, G as d, u as ie, I as de, J as X } from "./menu-
|
|
2
|
+
import { H as b, G as d, u as ie, I as de, J as X } from "./menu-DolC_TD-.js";
|
|
3
3
|
import { useI18n as te } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as re } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as ce } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
6
6
|
import { _ as W } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
7
7
|
import { u as me } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as pe } from "./menu-
|
|
9
|
-
import { L as _e } from "./LinkProductSideSheet-
|
|
8
|
+
import { u as pe } from "./menu-BqW6_A-Y.js";
|
|
9
|
+
import { L as _e } from "./LinkProductSideSheet-Dd518vVx.js";
|
|
10
10
|
const ve = { class: "space-y-8" }, fe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "space-y-16"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { shallowRef as
|
|
2
|
-
import { H as k, B as N, ak as Z, G as I, al as G, J as S, I as ee, aa as M, c as D, Y as E, aj as L, am as Pe, an as Ae, A as Ue, ac as Ke, ao as De, ap as $e, a9 as
|
|
1
|
+
import { shallowRef as X, ref as R, computed as h, shallowReactive as Fe, effectScope as Te, watch as H, defineComponent as Re, resolveComponent as z, createBlock as Ve, openBlock as xe, unref as x, withCtx as Ne, createVNode as Oe } from "vue";
|
|
2
|
+
import { H as k, B as N, ak as Z, G as I, al as G, J as S, I as ee, aa as M, c as D, Y as E, aj as L, am as Pe, an as Ae, A as Ue, ac as Ke, ao as De, ap as $e, a9 as qe, u as He } from "./menu-DolC_TD-.js";
|
|
3
3
|
import { useCoreStore as J, useI18n as te } from "@feedmepos/mf-common";
|
|
4
|
-
import { useSnackbar as
|
|
4
|
+
import { useSnackbar as Ye, useDialogChild as je } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Be } from "pinia";
|
|
6
|
-
const
|
|
6
|
+
const We = "/assets/linked-status-CTAji1Ux.js", ze = "/assets/override-menu-2tL1Ph61.js";
|
|
7
7
|
function Ge(e) {
|
|
8
8
|
var o;
|
|
9
9
|
const n = k(e), a = (o = n.variant) == null ? void 0 : o.variantCombinations;
|
|
@@ -101,7 +101,7 @@ function Je(e, n) {
|
|
|
101
101
|
};
|
|
102
102
|
return [...o, r];
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Y(e, n) {
|
|
105
105
|
var o;
|
|
106
106
|
if (!n)
|
|
107
107
|
return e;
|
|
@@ -114,11 +114,11 @@ function H(e, n) {
|
|
|
114
114
|
const u = (s = f == null ? void 0 : f.items) == null ? void 0 : s.find(
|
|
115
115
|
(p) => p._id === d._id && p.combinationKey === d.combinationKey
|
|
116
116
|
);
|
|
117
|
-
return
|
|
117
|
+
return Y(d, u);
|
|
118
118
|
}), r;
|
|
119
119
|
}), a;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Qe(e, n) {
|
|
122
122
|
const a = e.items[n._id];
|
|
123
123
|
n.variant && (n.variant = {
|
|
124
124
|
...n.variant,
|
|
@@ -128,7 +128,7 @@ function Xe(e, n) {
|
|
|
128
128
|
);
|
|
129
129
|
if (!f)
|
|
130
130
|
throw new Error(`Item overrider not found - ${r._id} - ${r.combinationKey}`);
|
|
131
|
-
return
|
|
131
|
+
return Y(f, r);
|
|
132
132
|
})
|
|
133
133
|
});
|
|
134
134
|
const o = a.find((r) => !r.combinationKey);
|
|
@@ -142,7 +142,7 @@ function Xe(e, n) {
|
|
|
142
142
|
const d = (u = f == null ? void 0 : f.items) == null ? void 0 : u.find(
|
|
143
143
|
(s) => s._id === i._id && s.combinationKey === i.combinationKey
|
|
144
144
|
);
|
|
145
|
-
return
|
|
145
|
+
return Y(i, d);
|
|
146
146
|
}), r;
|
|
147
147
|
}), {
|
|
148
148
|
...n,
|
|
@@ -162,7 +162,7 @@ async function dt(e, n, a, o, r, f = !0) {
|
|
|
162
162
|
return n.map((p) => {
|
|
163
163
|
const g = p._id, y = d[g];
|
|
164
164
|
return {
|
|
165
|
-
...
|
|
165
|
+
...Qe(s, y),
|
|
166
166
|
category: o || r ? y == null ? void 0 : y.category : null
|
|
167
167
|
};
|
|
168
168
|
});
|
|
@@ -186,7 +186,7 @@ async function ft(e, n) {
|
|
|
186
186
|
if ($.has(a))
|
|
187
187
|
return $.get(a);
|
|
188
188
|
const o = await Z(
|
|
189
|
-
|
|
189
|
+
We,
|
|
190
190
|
JSON.stringify({
|
|
191
191
|
menu: e,
|
|
192
192
|
itemId: n
|
|
@@ -231,17 +231,17 @@ function _t(e, n, a) {
|
|
|
231
231
|
}
|
|
232
232
|
return r(n, a);
|
|
233
233
|
}
|
|
234
|
-
const
|
|
235
|
-
async function
|
|
234
|
+
const q = /* @__PURE__ */ new Map();
|
|
235
|
+
async function Xe(e, n, a) {
|
|
236
236
|
const o = `${e._id}-${e.updatedAt}-${n || "null"}-${a || "null"}`;
|
|
237
|
-
if (
|
|
238
|
-
return
|
|
237
|
+
if (q.has(o))
|
|
238
|
+
return q.get(o);
|
|
239
239
|
const r = await ne(e, n, a);
|
|
240
|
-
return
|
|
240
|
+
return q.set(o, r), r;
|
|
241
241
|
}
|
|
242
242
|
async function gt(e, n, a) {
|
|
243
243
|
var l, i;
|
|
244
|
-
const o = await
|
|
244
|
+
const o = await Xe(e, n, null), r = [], f = (d, u) => {
|
|
245
245
|
const s = k(d);
|
|
246
246
|
for (const p in u)
|
|
247
247
|
u[p] && (s[p] = u[p]);
|
|
@@ -268,7 +268,7 @@ async function gt(e, n, a) {
|
|
|
268
268
|
function Ze({
|
|
269
269
|
maxHistorySize: e = 50
|
|
270
270
|
}) {
|
|
271
|
-
const n =
|
|
271
|
+
const n = X([]), a = R(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
|
|
272
272
|
function f(u) {
|
|
273
273
|
n.value.push(u), a.value++, n.value.length > e && (n.value.shift(), a.value--);
|
|
274
274
|
}
|
|
@@ -341,7 +341,7 @@ function tt() {
|
|
|
341
341
|
const nt = Be(
|
|
342
342
|
"mf-menu-store-v2",
|
|
343
343
|
() => {
|
|
344
|
-
const e = Fe(tt()), n = J(), a =
|
|
344
|
+
const e = Fe(tt()), n = J(), a = Ye(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
|
|
345
345
|
selector: "position"
|
|
346
346
|
}) : []), r = h(() => {
|
|
347
347
|
var t;
|
|
@@ -355,7 +355,7 @@ const nt = Be(
|
|
|
355
355
|
function s(t, c = !0) {
|
|
356
356
|
e.menu = { ...t, _rev: e.menu._rev }, c && w.push(e.menu);
|
|
357
357
|
}
|
|
358
|
-
const p =
|
|
358
|
+
const p = X(oe()), g = R(!1), y = R(1);
|
|
359
359
|
async function b() {
|
|
360
360
|
g.value = !0;
|
|
361
361
|
const t = await ne(
|
|
@@ -375,7 +375,7 @@ const nt = Be(
|
|
|
375
375
|
}
|
|
376
376
|
const V = ee.debounce(b, 200);
|
|
377
377
|
Te(!0).run(() => {
|
|
378
|
-
|
|
378
|
+
H(
|
|
379
379
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
380
380
|
() => {
|
|
381
381
|
g.value || V();
|
|
@@ -391,7 +391,7 @@ const nt = Be(
|
|
|
391
391
|
label: t.name,
|
|
392
392
|
value: t._id
|
|
393
393
|
}))
|
|
394
|
-
]),
|
|
394
|
+
]), j = h(() => {
|
|
395
395
|
const t = p.value.modules.category;
|
|
396
396
|
return [
|
|
397
397
|
...U.value.item.addon ? [
|
|
@@ -429,7 +429,7 @@ const nt = Be(
|
|
|
429
429
|
m,
|
|
430
430
|
(v) => v.code || v.name
|
|
431
431
|
).reduce((v, _, C) => (v[_._id] = C + c[_.category || ""], v), {});
|
|
432
|
-
}), se = h(() => L(A.value,
|
|
432
|
+
}), se = h(() => L(A.value, j.value, B.value)), ue = h(() => {
|
|
433
433
|
const t = U.value.item.addon ? [
|
|
434
434
|
{
|
|
435
435
|
_id: e.currentCatalogId ? "" : null,
|
|
@@ -553,12 +553,12 @@ const nt = Be(
|
|
|
553
553
|
countryTaxOptions: m
|
|
554
554
|
};
|
|
555
555
|
}), he = async () => {
|
|
556
|
-
const t = await
|
|
557
|
-
e.menu = t ?? e.menu,
|
|
556
|
+
const t = await qe.readMenu();
|
|
557
|
+
e.menu = t ?? e.menu, W(null);
|
|
558
558
|
}, be = async () => {
|
|
559
559
|
const { fetchAllRestaurants: t } = $e(), c = await t();
|
|
560
560
|
e.restaurants = M(c, { selector: "name" });
|
|
561
|
-
},
|
|
561
|
+
}, W = (t) => {
|
|
562
562
|
e.currentCatalogId = t;
|
|
563
563
|
}, Ce = (t) => {
|
|
564
564
|
e.currentSchedulerId = t;
|
|
@@ -613,7 +613,7 @@ const nt = Be(
|
|
|
613
613
|
schedulers: d,
|
|
614
614
|
currentScheduler: u,
|
|
615
615
|
catalogOptions: P,
|
|
616
|
-
categories:
|
|
616
|
+
categories: j,
|
|
617
617
|
subcategories: re,
|
|
618
618
|
items: B,
|
|
619
619
|
sortedItems: ae,
|
|
@@ -633,7 +633,7 @@ const nt = Be(
|
|
|
633
633
|
setMenu: s,
|
|
634
634
|
readMenu: he,
|
|
635
635
|
readRestaurants: be,
|
|
636
|
-
selectCatalog:
|
|
636
|
+
selectCatalog: W,
|
|
637
637
|
selectScheduler: Ce,
|
|
638
638
|
selectCategory: Me,
|
|
639
639
|
updateMenu: Se,
|
|
@@ -660,21 +660,21 @@ const nt = Be(
|
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
|
-
),
|
|
663
|
+
), Q = /* @__PURE__ */ Re({
|
|
664
664
|
__name: "AddSubcategoryDialogContentComponent",
|
|
665
665
|
props: {
|
|
666
666
|
initialValue: {}
|
|
667
667
|
},
|
|
668
668
|
setup(e) {
|
|
669
669
|
const n = e, { t: a } = te();
|
|
670
|
-
|
|
670
|
+
H(
|
|
671
671
|
() => n.initialValue,
|
|
672
672
|
(l) => {
|
|
673
673
|
o.value = l ?? "";
|
|
674
674
|
}
|
|
675
675
|
);
|
|
676
|
-
const o = R(n.initialValue), { emitData: r, emitAction: f } =
|
|
677
|
-
return
|
|
676
|
+
const o = R(n.initialValue), { emitData: r, emitAction: f } = je();
|
|
677
|
+
return H(
|
|
678
678
|
o,
|
|
679
679
|
(l) => {
|
|
680
680
|
r(l);
|
|
@@ -711,7 +711,7 @@ const nt = Be(
|
|
|
711
711
|
const u = R(!1);
|
|
712
712
|
e.open({
|
|
713
713
|
title: o("menu.subcategory.manager.dialog.add.title"),
|
|
714
|
-
contentComponent:
|
|
714
|
+
contentComponent: Q,
|
|
715
715
|
primaryActions: {
|
|
716
716
|
text: o("menu.subcategory.manager.dialog.add.action"),
|
|
717
717
|
close: !1,
|
|
@@ -730,7 +730,7 @@ const nt = Be(
|
|
|
730
730
|
operation: S.F_OPERATION_TYPE.create,
|
|
731
731
|
data: {
|
|
732
732
|
name: s,
|
|
733
|
-
position:
|
|
733
|
+
position: He().subcategories.length
|
|
734
734
|
}
|
|
735
735
|
};
|
|
736
736
|
a ? await r(p) : await n.updateMenu(p, s), e.close();
|
|
@@ -742,7 +742,7 @@ const nt = Be(
|
|
|
742
742
|
function l(u) {
|
|
743
743
|
e.open({
|
|
744
744
|
title: o("menu.subcategory.manager.dialog.update.title"),
|
|
745
|
-
contentComponent:
|
|
745
|
+
contentComponent: Q,
|
|
746
746
|
contentComponentProps: {
|
|
747
747
|
initialValue: u.name
|
|
748
748
|
},
|
|
@@ -808,6 +808,6 @@ export {
|
|
|
808
808
|
gt as f,
|
|
809
809
|
mt as g,
|
|
810
810
|
dt as m,
|
|
811
|
-
|
|
811
|
+
Xe as o,
|
|
812
812
|
nt as u
|
|
813
813
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DsOWsF-6.js";
|
|
2
|
+
import "./menu-DolC_TD-.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,6 +1,6 @@
|
|
|
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 { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-
|
|
3
|
+
import { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-DolC_TD-.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";
|