@feedmepos/mf-menu 0.31.11-beta.1 → 0.31.11-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-DjpjTtf9.js → App-Dfi0zOsF.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CzyuBhuB.js → ApplyProduct.vue_vue_type_script_setup_true_lang-dWRraNPC.js} +2 -2
- package/dist/{Catalog-DyueiSOE.js → Catalog-dJ_2wE-J.js} +5 -5
- package/dist/{Category-CKdYO3VF.js → Category-BcBmkyFo.js} +4 -4
- package/dist/{Category-BLXOZPb3.js → Category-DvzBTtSt.js} +5 -5
- package/dist/{CookingGuide-BS3RkGSk.js → CookingGuide-BnxJTlou.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DA9L_N2q.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CLAYCioZ.js} +1 -1
- package/dist/{Group-D6bsaOPs.js → Group-BFbPDjW1.js} +3 -3
- package/dist/{Group-CfXvwlMh.js → Group-YAUoZc4h.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BZXXFaLD.js → Group.vue_vue_type_script_setup_true_lang-CQl3CWqY.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BJjTwizA.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Doek0-j6.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CDM1sCGe.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BfQlsQ7c.js} +1267 -1267
- package/dist/{Ingredient-Bdoiuoof.js → Ingredient-D4EXC9Bf.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-ByTF88jv.js → InventoryBinding.vue_vue_type_script_setup_true_lang-C66-kUAs.js} +2 -2
- package/dist/{LinkProductSideSheet-8NLHPTlx.js → LinkProductSideSheet-CDhJgOvy.js} +1 -1
- package/dist/{MenuSetting-BVo1bZt6.js → MenuSetting-CeQAtyFu.js} +4 -4
- package/dist/{PrintRoute-pUr-YxdH.js → PrintRoute-C7AhzUYZ.js} +3 -3
- package/dist/{Product-CjSfO1gl.js → Product-CWqg0N2A.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DReaXqTg.js → Product.vue_vue_type_script_setup_true_lang-BN2-Tp1i.js} +11 -11
- package/dist/{Products-DSWEX-ij.js → Products-Ds4vfE7z.js} +521 -521
- package/dist/{Publish-BR7A0n7S.js → Publish-DaY3YcVq.js} +3 -3
- package/dist/{Recipe-BinSrA0Q.js → Recipe-BXPZcplq.js} +4 -4
- package/dist/{Scheduler-bsR3LO8H.js → Scheduler-DaqJcXDr.js} +3 -3
- package/dist/{ServingSequence-BJlAW_1V.js → ServingSequence-eNtOX2KS.js} +3 -3
- package/dist/{Setting-XcqCBHOL.js → Setting-b6cKOlzO.js} +4 -4
- package/dist/{Subcategory-BDgPfJZA.js → Subcategory-9crl-RxJ.js} +4 -4
- package/dist/{Takeaway-BCfMJfoi.js → Takeaway-BVLXs79x.js} +4 -4
- package/dist/{Takeaway-CsTGl6n5.js → Takeaway-Dn83ULVR.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BJUbTljE.js → Takeaway.vue_vue_type_script_setup_true_lang-CFCvnaPR.js} +5 -5
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CF3AXC4l.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BlZZVcjm.js} +13 -13
- package/dist/{Unit-lkjqKb5W.js → Unit-DLoy6lAQ.js} +2 -2
- package/dist/{Variant-BeZ4BIn8.js → Variant-IfKi-Sc8.js} +3 -3
- package/dist/{_id_-hlATDCsB.js → _id_-BxFQNyZX.js} +9 -9
- package/dist/{app-BXBHiPQ7.js → app-Buz7Hr7K.js} +23 -23
- package/dist/{app-2Tw5RdT8.js → app-DAVxohO7.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-a56gAWtJ.js → linked-status-DJdzo5PV.js} +2 -2
- package/dist/assets/{override-menu-CvaMxNc9.js → override-menu-D3_blPtq.js} +2 -2
- package/dist/assets/{validate-menu-CRjvqfSv.js → validate-menu-D_K9_jhy.js} +2 -2
- package/dist/{catalog-BM-O01IV.js → catalog-DywMNhqu.js} +1 -1
- package/dist/{catalogSetting-DOhVr93e.js → catalogSetting-DAzjpMy_.js} +1 -1
- package/dist/{category-DI7rVP_A.js → category-scszBlCD.js} +1 -1
- package/dist/{currency-CvEozH3g.js → currency-D5HsYV_o.js} +1 -1
- package/dist/{dayjs.min-CzFwvtdR.js → dayjs.min-CuZlmzqU.js} +1 -1
- package/dist/{index-tfW-GKN1.js → index-CSnuNvkE.js} +3 -3
- package/dist/{index-BW9HstSe.js → index-Dd4zgUww.js} +2 -2
- package/dist/{index-CtAZ0vuL.js → index-DwaW__Il.js} +1 -1
- package/dist/{item-SUbVYbe0.js → item-BJwsv9wH.js} +932 -932
- package/dist/{menu-CcKfPthb.js → menu-Cy7Z9Uon.js} +1 -1
- package/dist/{menu-B3kJ7du7.js → menu-TxdbkYDV.js} +7 -7
- package/dist/packages/shared/src/composable/search.d.ts +5 -0
- package/dist/{priceTier-DK9ob6lk.js → priceTier-BWQr4Tp_.js} +1 -1
- package/dist/{scheduler-vfXhieiT.js → scheduler-Cz7gGSkk.js} +3 -3
- package/dist/{subcategory-D549uxxb.js → subcategory-anzAD_yZ.js} +39 -39
- package/dist/{toExcel-C7X2TLo4.js → toExcel-CLb9bvrO.js} +2 -2
- package/dist/{unit-Da9qanXG.js → unit-Dkqxq0ey.js} +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { shallowRef as X, ref as R, computed as h, shallowReactive as Fe, watch as H, defineComponent as Te, resolveComponent as z, createBlock as Re, openBlock as
|
|
2
|
-
import { J as k, A as x, aj as Z, I, ak as B, M as S, K as ee, a9 as C, c as
|
|
1
|
+
import { shallowRef as X, ref as R, computed as h, shallowReactive as Fe, watch as H, defineComponent as Te, resolveComponent as z, createBlock as Re, openBlock as Ve, unref as O, withCtx as Pe, createVNode as Ne } from "vue";
|
|
2
|
+
import { J as k, A as x, aj as Z, I, ak as B, M as S, K as ee, a9 as C, c as D, $ as w, ai as G, al as Oe, am as xe, z as Ae, ab as Ke, an as Ue, a8 as L, u as De } from "./menu-TxdbkYDV.js";
|
|
3
3
|
import { useCoreStore as J, useI18n as te } from "@feedmepos/mf-common";
|
|
4
|
-
import { useSnackbar as
|
|
4
|
+
import { useSnackbar as $e, useDialogChild as qe } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as He } from "pinia";
|
|
6
|
-
const
|
|
6
|
+
const Ye = "/assets/linked-status-DJdzo5PV.js", We = "/assets/override-menu-D3_blPtq.js";
|
|
7
7
|
function je(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 Be(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,7 +114,7 @@ function W(e, n) {
|
|
|
114
114
|
const u = (s = f == null ? void 0 : f.items) == null ? void 0 : s.find(
|
|
115
115
|
(p) => p._id === m._id && p.combinationKey === m.combinationKey
|
|
116
116
|
);
|
|
117
|
-
return
|
|
117
|
+
return Y(m, u);
|
|
118
118
|
}), r;
|
|
119
119
|
}), a;
|
|
120
120
|
}
|
|
@@ -128,7 +128,7 @@ function Ge(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 Ge(e, n) {
|
|
|
142
142
|
const m = (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, m);
|
|
146
146
|
}), r;
|
|
147
147
|
}), {
|
|
148
148
|
...n,
|
|
@@ -180,22 +180,22 @@ function ct(e, n) {
|
|
|
180
180
|
return r;
|
|
181
181
|
}, [])) || []).join(" / ");
|
|
182
182
|
}
|
|
183
|
-
const
|
|
183
|
+
const $ = /* @__PURE__ */ new Map();
|
|
184
184
|
async function lt(e, n) {
|
|
185
185
|
const a = `${e._id}-${e.updatedAt}-${n}`;
|
|
186
|
-
if (
|
|
187
|
-
return
|
|
186
|
+
if ($.has(a))
|
|
187
|
+
return $.get(a);
|
|
188
188
|
const o = await Z(
|
|
189
|
-
|
|
189
|
+
Ye,
|
|
190
190
|
JSON.stringify({
|
|
191
191
|
menu: e,
|
|
192
192
|
itemId: n
|
|
193
193
|
})
|
|
194
194
|
);
|
|
195
|
-
return
|
|
195
|
+
return $.set(a, o), o;
|
|
196
196
|
}
|
|
197
197
|
async function ne(e, n, a) {
|
|
198
|
-
return await Z(
|
|
198
|
+
return await Z(We, {
|
|
199
199
|
menu: e,
|
|
200
200
|
catalogId: n,
|
|
201
201
|
schedulerId: a
|
|
@@ -251,9 +251,9 @@ async function ft(e, n, a) {
|
|
|
251
251
|
const u = (d = m.items) == null ? void 0 : d.find((p) => p._id === a && !p.combinationKey), s = e.modules.item.find((p) => p._id === a);
|
|
252
252
|
if (u) {
|
|
253
253
|
const p = (i = m.items) == null ? void 0 : i.filter((y) => y._id === a && y.combinationKey), _ = [u, ...p].map((y) => {
|
|
254
|
-
var
|
|
255
|
-
const b = y.combinationKey ? (
|
|
256
|
-
(
|
|
254
|
+
var V, P;
|
|
255
|
+
const b = y.combinationKey ? (P = (V = s == null ? void 0 : s.variant) == null ? void 0 : V.variantCombinations) == null ? void 0 : P.find(
|
|
256
|
+
(N) => N.combinationKey === y.combinationKey
|
|
257
257
|
) : s, F = b && s ? f(s, b) : y;
|
|
258
258
|
return f(F, y);
|
|
259
259
|
});
|
|
@@ -341,12 +341,12 @@ function Xe() {
|
|
|
341
341
|
const Ze = He(
|
|
342
342
|
"mf-menu-store-v2",
|
|
343
343
|
() => {
|
|
344
|
-
const e = Fe(Xe()), n = J(), a =
|
|
344
|
+
const e = Fe(Xe()), n = J(), a = $e(), o = h(() => e.menu.modules.serveSequence ? C(e.menu.modules.serveSequence, {
|
|
345
345
|
selector: "position"
|
|
346
346
|
}) : []), r = h(() => {
|
|
347
347
|
var t;
|
|
348
|
-
return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) ||
|
|
349
|
-
}), f = h(() => r.value ===
|
|
348
|
+
return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || D.F_MENU_VERSION.v3;
|
|
349
|
+
}), f = h(() => r.value === D.F_MENU_VERSION.v4), d = h(() => {
|
|
350
350
|
const t = e.menu.modules.catalog;
|
|
351
351
|
return C(t, { selector: "name" });
|
|
352
352
|
}), i = h(() => e.menu.modules.catalog.find((t) => t._id === e.currentCatalogId)), m = h(() => C(p.value.modules.scheduler, { selector: "name" })), u = h(() => e.menu.modules.scheduler.find(
|
|
@@ -373,14 +373,14 @@ const Ze = He(
|
|
|
373
373
|
}
|
|
374
374
|
return p.value = t, _.value = !1, y.value = y.value + 1, t;
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const V = ee.debounce(b, 200);
|
|
377
377
|
H(
|
|
378
378
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
379
379
|
() => {
|
|
380
|
-
_.value ||
|
|
380
|
+
_.value || V();
|
|
381
381
|
}
|
|
382
382
|
);
|
|
383
|
-
const
|
|
383
|
+
const P = h(() => [
|
|
384
384
|
{
|
|
385
385
|
label: "Main",
|
|
386
386
|
value: null
|
|
@@ -389,7 +389,7 @@ const Ze = He(
|
|
|
389
389
|
label: t.name,
|
|
390
390
|
value: t._id
|
|
391
391
|
}))
|
|
392
|
-
]),
|
|
392
|
+
]), N = h(() => {
|
|
393
393
|
const t = p.value.modules.category;
|
|
394
394
|
return [
|
|
395
395
|
...K.value.item.addon ? [
|
|
@@ -404,7 +404,7 @@ const Ze = He(
|
|
|
404
404
|
}), re = h(() => {
|
|
405
405
|
const t = p.value.modules.subCategory || [];
|
|
406
406
|
return w(t, (l) => l.name);
|
|
407
|
-
}),
|
|
407
|
+
}), W = h(() => {
|
|
408
408
|
var l;
|
|
409
409
|
let t = p.value.modules.item;
|
|
410
410
|
if (i.value) {
|
|
@@ -427,7 +427,7 @@ const Ze = He(
|
|
|
427
427
|
c,
|
|
428
428
|
(g) => g.code || g.name
|
|
429
429
|
).reduce((g, v, M) => (g[v._id] = M + l[v.category || ""], g), {});
|
|
430
|
-
}), se = h(() => G(A.value,
|
|
430
|
+
}), se = h(() => G(A.value, N.value, W.value)), ue = h(() => {
|
|
431
431
|
const t = K.value.item.addon ? [
|
|
432
432
|
{
|
|
433
433
|
_id: e.currentCatalogId ? "" : null,
|
|
@@ -451,13 +451,13 @@ const Ze = He(
|
|
|
451
451
|
}
|
|
452
452
|
const ce = h(() => w(p.value.modules.group, (t) => t.name)), le = h(() => C(p.value.modules.takeaway, { selector: "name" })), de = h(() => C(e.menu.modules.printDepartment || [], {
|
|
453
453
|
selector: "name"
|
|
454
|
-
})), me = h(() => C(e.menu.modules.unit, { selector: "name" })), fe = h(() => C(
|
|
454
|
+
})), me = h(() => C(e.menu.modules.unit, { selector: "name" })), fe = h(() => C(Oe(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
455
455
|
selector: "name"
|
|
456
456
|
})), pe = h(() => e.menu.modules.cookingGuide), _e = h(() => {
|
|
457
457
|
const t = xe(e.menu.modules.sku);
|
|
458
458
|
return C(t, { selector: "code" });
|
|
459
459
|
}), K = h(() => {
|
|
460
|
-
const t = !e.currentCatalogId, l = r.value ===
|
|
460
|
+
const t = !e.currentCatalogId, l = r.value === D.F_MENU_VERSION.v4, c = !e.currentSchedulerId, g = {
|
|
461
461
|
create: t && c,
|
|
462
462
|
edit: t && c,
|
|
463
463
|
delete: t && c
|
|
@@ -610,10 +610,10 @@ const Ze = He(
|
|
|
610
610
|
currentCatalog: i,
|
|
611
611
|
schedulers: m,
|
|
612
612
|
currentScheduler: u,
|
|
613
|
-
catalogOptions:
|
|
614
|
-
categories:
|
|
613
|
+
catalogOptions: P,
|
|
614
|
+
categories: N,
|
|
615
615
|
subcategories: re,
|
|
616
|
-
items:
|
|
616
|
+
items: W,
|
|
617
617
|
sortedItems: ae,
|
|
618
618
|
categorizedItems: se,
|
|
619
619
|
categorizedRawMenuItems: ue,
|
|
@@ -682,17 +682,17 @@ const Ze = He(
|
|
|
682
682
|
}
|
|
683
683
|
), (d, i) => {
|
|
684
684
|
const m = z("fm-text-field"), u = z("FmForm");
|
|
685
|
-
return
|
|
686
|
-
onValidationSuccess: i[1] || (i[1] = (s) =>
|
|
685
|
+
return Ve(), Re(u, {
|
|
686
|
+
onValidationSuccess: i[1] || (i[1] = (s) => O(f)("primary"))
|
|
687
687
|
}, {
|
|
688
|
-
default:
|
|
689
|
-
|
|
688
|
+
default: Pe(() => [
|
|
689
|
+
Ne(m, {
|
|
690
690
|
modelValue: o.value,
|
|
691
691
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
|
|
692
|
-
rules: [(s) => !!s ||
|
|
692
|
+
rules: [(s) => !!s || O(a)("menu.subcategory.dialog.add.name.required")],
|
|
693
693
|
autofocus: "",
|
|
694
|
-
label:
|
|
695
|
-
placeholder:
|
|
694
|
+
label: O(a)("menu.subcategory.dialog.add.name.label"),
|
|
695
|
+
placeholder: O(a)("menu.subcategory.dialog.add.name.placeholder")
|
|
696
696
|
}, null, 8, ["modelValue", "rules", "label", "placeholder"])
|
|
697
697
|
]),
|
|
698
698
|
_: 1
|
|
@@ -728,7 +728,7 @@ const Ze = He(
|
|
|
728
728
|
operation: S.F_OPERATION_TYPE.create,
|
|
729
729
|
data: {
|
|
730
730
|
name: s,
|
|
731
|
-
position:
|
|
731
|
+
position: De().subcategories.length
|
|
732
732
|
}
|
|
733
733
|
};
|
|
734
734
|
a ? await r(p) : await n.updateMenu(p, s), e.close();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { c as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BfQlsQ7c.js";
|
|
2
|
+
import "./menu-TxdbkYDV.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as Q } from "pinia";
|
|
2
2
|
import { defineComponent as T, computed as U, ref as h, watch as L, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as H, 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 { a6 as P, a7 as te, a4 as B, J as k, Q as $, G as I, A as E, K as ne, a5 as ae, M as C, I as D, u as oe } from "./menu-
|
|
3
|
+
import { a6 as P, a7 as te, a4 as B, J as k, Q as $, G as I, A as E, K as ne, a5 as ae, M as C, I as D, u as oe } from "./menu-TxdbkYDV.js";
|
|
4
4
|
import { useI18n as N } 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";
|