@feedmepos/mf-menu 0.31.21-beta.1 → 0.31.22-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-DRR7HZ6I.js → App-Bs_gq8G8.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DT7Hs2nW.js → ApplyProduct.vue_vue_type_script_setup_true_lang--Yo3nEyE.js} +2 -2
- package/dist/{Catalog-DsTE7QhY.js → Catalog-DQRJasaD.js} +5 -5
- package/dist/{Category-C3u8uXeg.js → Category-BMEOZPI9.js} +4 -4
- package/dist/{Category-BuK4trwv.js → Category-CdyPdjXs.js} +5 -5
- package/dist/{CookingGuide-DBLbte5d.js → CookingGuide-BP-btqcw.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DfyMJmsv.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DbfRwrUW.js} +1 -1
- package/dist/{Group-DC-E7FC8.js → Group-BeZ_Sh57.js} +3 -3
- package/dist/{Group-CPyzwqlx.js → Group-DMN6va6z.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-D02WjavV.js → Group.vue_vue_type_script_setup_true_lang-BdfsmcVD.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DPLXlGmY.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BLl-giy-.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CqYS1XC1.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Dn7QCG2L.js} +6 -6
- package/dist/{Ingredient-cMJM9i7k.js → Ingredient-DgRd7Jag.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BK3c3Iut.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DvQj8DEz.js} +2 -2
- package/dist/{LinkProductSideSheet-mgVwSGW3.js → LinkProductSideSheet-BKgJzkPL.js} +1 -1
- package/dist/{MenuSetting-CjZEVFiM.js → MenuSetting-DJjbaKHe.js} +4 -4
- package/dist/{PrintRoute-BcEFPcvq.js → PrintRoute-bAZlFcX0.js} +3 -3
- package/dist/{Product-Cfq89d03.js → Product-DmGB_exq.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-7gBz3nL9.js → Product.vue_vue_type_script_setup_true_lang-nR9tssh6.js} +11 -11
- package/dist/{ProductInternalTools-DpfpKGdc.js → ProductInternalTools-BnZ4D4Zn.js} +5 -5
- package/dist/{Products-nwcvdLlp.js → Products-Ciwg17cA.js} +10 -10
- package/dist/{Publish-CDzxRyID.js → Publish-BKqy68uM.js} +3 -3
- package/dist/{Recipe-B_oCUH5s.js → Recipe-Ci9k8tH2.js} +4 -4
- package/dist/{Scheduler-CSnE2PQx.js → Scheduler-CspZeCTf.js} +3 -3
- package/dist/{ServingSequence-BaixwZVX.js → ServingSequence-CaFwESrB.js} +3 -3
- package/dist/{Setting-m-kZYCEc.js → Setting-CL3_3XtX.js} +4 -4
- package/dist/{Subcategory-pyqLELsj.js → Subcategory-C7s99QHs.js} +4 -4
- package/dist/{Takeaway-Ctx8_jMh.js → Takeaway-Bvz1cTn7.js} +1 -1
- package/dist/{Takeaway-DDy8midM.js → Takeaway-DE8wTm3g.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-22VEfBZm.js → Takeaway.vue_vue_type_script_setup_true_lang-Cj2mW9A3.js} +5 -5
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CfA2eeP2.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ot61ZHZ2.js} +12 -12
- package/dist/{Unit-oLLAs_tp.js → Unit-D1kO9xQ1.js} +2 -2
- package/dist/{Variant-BH-zBOUV.js → Variant-DaPHw-hG.js} +3 -3
- package/dist/{_id_-CLNTV6z6.js → _id_-B6NpchUg.js} +9 -9
- package/dist/{app-CmvA_jjL.js → app-D9pMk7tW.js} +1 -1
- package/dist/{app-x-GPH94V.js → app-DthnziYV.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-BX65n8sX.js → linked-status-CpQ-1DHU.js} +2 -2
- package/dist/assets/{override-menu-xs80Wejs.js → override-menu-D1dKB9ko.js} +2 -2
- package/dist/assets/{validate-menu-CGf0DM7K.js → validate-menu-BF1dCHiN.js} +2 -2
- package/dist/{catalog-BuwTwgu7.js → catalog-DCF63Bjk.js} +1 -1
- package/dist/{catalogSetting-DU8prOsY.js → catalogSetting-BvJnQe7Q.js} +1 -1
- package/dist/{category--aKXbY6Y.js → category-Bzom9XMw.js} +1 -1
- package/dist/{currency-Cv0-GwLE.js → currency-o2stTzq5.js} +1 -1
- package/dist/{dayjs.min-nHG3lszD.js → dayjs.min-DXGCvibe.js} +1 -1
- package/dist/{index-DePGqbzr.js → index-BG8uzbYg.js} +2 -2
- package/dist/{index-a7MIwKhT.js → index-CLjnahTc.js} +3 -3
- package/dist/{index-NU-ucfQp.js → index-CdNoWfcx.js} +1 -1
- package/dist/{item-DucGD_fL.js → item-4Jdx-jdA.js} +14 -14
- package/dist/{jszip.min-CUjvtkE4.js → jszip.min-kJhQn2xH.js} +2 -2
- package/dist/{menu-D27IbIyw.js → menu-C_ORO6n9.js} +782 -776
- package/dist/{menu-CBvj9fi9.js → menu-CsyfIvpN.js} +1 -1
- package/dist/{priceTier-CEKeHJAo.js → priceTier-D72Z5AFO.js} +1 -1
- package/dist/{scheduler-CCQJAh-e.js → scheduler-D_WSyJqf.js} +3 -3
- package/dist/{subcategory-C0W9-09B.js → subcategory-YluprNtV.js} +35 -35
- package/dist/{toExcel-BahXiTvF.js → toExcel-aHIDKh8e.js} +2 -2
- package/dist/{unit-C9GxYYaD.js → unit-5WnoZjty.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-C_ORO6n9.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-C_ORO6n9.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-CsyfIvpN.js";
|
|
9
|
+
import { L as _e } from "./LinkProductSideSheet-BKgJzkPL.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
|
|
1
|
+
import { shallowRef as X, ref as T, computed as h, shallowReactive as Fe, effectScope as Re, watch as q, defineComponent as Te, resolveComponent as z, createBlock as Ve, openBlock as Ne, unref as N, withCtx as Oe, createVNode as xe } from "vue";
|
|
2
|
+
import { H as k, B as O, 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 He, u as qe } from "./menu-C_ORO6n9.js";
|
|
3
3
|
import { useCoreStore as J, useI18n as te } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as Ye, useDialogChild as Be } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as We } from "pinia";
|
|
6
|
-
const je = "/assets/linked-status-
|
|
6
|
+
const je = "/assets/linked-status-CpQ-1DHU.js", ze = "/assets/override-menu-D1dKB9ko.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;
|
|
@@ -85,7 +85,7 @@ function Je(e, n) {
|
|
|
85
85
|
if (u)
|
|
86
86
|
return R(u, n, 1);
|
|
87
87
|
const s = {
|
|
88
|
-
...
|
|
88
|
+
...O.generator.initMenuV4ItemOverrider(),
|
|
89
89
|
_id: d._id,
|
|
90
90
|
combinationKey: d.combinationKey
|
|
91
91
|
};
|
|
@@ -93,7 +93,7 @@ function Je(e, n) {
|
|
|
93
93
|
});
|
|
94
94
|
return { ...f, items: i };
|
|
95
95
|
}), o = e.variant ? e.variant.variantCombinations.map((f) => R(f, n, 1)) : [], r = {
|
|
96
|
-
...
|
|
96
|
+
...O.generator.initMenuV4ItemOverrider(),
|
|
97
97
|
_id: e._id,
|
|
98
98
|
name: e.name,
|
|
99
99
|
code: e.code,
|
|
@@ -118,7 +118,7 @@ function Y(e, n) {
|
|
|
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,
|
|
@@ -153,7 +153,7 @@ async function dt(e, n, a, o, r, f = !0) {
|
|
|
153
153
|
const l = k(a), i = f ? Le(n, l, o, r) : l, d = n.reduce((p, g) => (p[g._id] = i.modules.item.find((y) => y._id === g._id), p), {}), u = n.reduce((p, g) => {
|
|
154
154
|
const y = g._id;
|
|
155
155
|
return p[y] = Je(d[y], e), p;
|
|
156
|
-
}, {}), s =
|
|
156
|
+
}, {}), s = O.getFallbackPrices({
|
|
157
157
|
rawMenu: i,
|
|
158
158
|
items: u,
|
|
159
159
|
catalogId: o || void 0,
|
|
@@ -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
|
});
|
|
@@ -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 H = /* @__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 (H.has(o))
|
|
238
|
+
return H.get(o);
|
|
239
239
|
const r = await ne(e, n, a);
|
|
240
|
-
return
|
|
240
|
+
return H.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]);
|
|
@@ -251,8 +251,8 @@ async function gt(e, n, a) {
|
|
|
251
251
|
const u = (l = d.items) == null ? void 0 : l.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 = d.items) == null ? void 0 : i.filter((y) => y._id === a && y.combinationKey), g = [u, ...p].map((y) => {
|
|
254
|
-
var V,
|
|
255
|
-
const b = y.combinationKey ? (
|
|
254
|
+
var V, x;
|
|
255
|
+
const b = y.combinationKey ? (x = (V = s == null ? void 0 : s.variant) == null ? void 0 : V.variantCombinations) == null ? void 0 : x.find(
|
|
256
256
|
(P) => P.combinationKey === y.combinationKey
|
|
257
257
|
) : s, F = b && s ? f(s, b) : y;
|
|
258
258
|
return f(F, y);
|
|
@@ -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 = T(-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
|
}
|
|
@@ -355,7 +355,7 @@ const nt = We(
|
|
|
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 = T(!1), y = T(1);
|
|
359
359
|
async function b() {
|
|
360
360
|
g.value = !0;
|
|
361
361
|
const t = await ne(
|
|
@@ -375,7 +375,7 @@ const nt = We(
|
|
|
375
375
|
}
|
|
376
376
|
const V = ee.debounce(b, 200);
|
|
377
377
|
Re(!0).run(() => {
|
|
378
|
-
|
|
378
|
+
q(
|
|
379
379
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
380
380
|
() => {
|
|
381
381
|
g.value || V();
|
|
@@ -449,7 +449,7 @@ const nt = We(
|
|
|
449
449
|
});
|
|
450
450
|
function ie(t = []) {
|
|
451
451
|
const c = t.map((v) => A.value.find((_) => _._id === v)).filter((v) => !!v);
|
|
452
|
-
return
|
|
452
|
+
return O.fullVariantCombination(c).reduce((v, _) => (v[_.combinationKey] = _.selectionName.join(" / "), v), {});
|
|
453
453
|
}
|
|
454
454
|
const ce = h(() => E(p.value.modules.group, (t) => t.name)), le = h(() => M(p.value.modules.takeaway, { selector: "name" })), de = h(() => M(e.menu.modules.printDepartment || [], {
|
|
455
455
|
selector: "name"
|
|
@@ -553,7 +553,7 @@ const nt = We(
|
|
|
553
553
|
countryTaxOptions: m
|
|
554
554
|
};
|
|
555
555
|
}), he = async () => {
|
|
556
|
-
const t = await
|
|
556
|
+
const t = await He.readMenu();
|
|
557
557
|
e.menu = t ?? e.menu, j(null);
|
|
558
558
|
}, be = async () => {
|
|
559
559
|
const { fetchAllRestaurants: t } = $e(), c = await t();
|
|
@@ -660,21 +660,21 @@ const nt = We(
|
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
|
-
),
|
|
663
|
+
), Q = /* @__PURE__ */ Te({
|
|
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
|
+
q(
|
|
671
671
|
() => n.initialValue,
|
|
672
672
|
(l) => {
|
|
673
673
|
o.value = l ?? "";
|
|
674
674
|
}
|
|
675
675
|
);
|
|
676
676
|
const o = T(n.initialValue), { emitData: r, emitAction: f } = Be();
|
|
677
|
-
return
|
|
677
|
+
return q(
|
|
678
678
|
o,
|
|
679
679
|
(l) => {
|
|
680
680
|
r(l);
|
|
@@ -684,17 +684,17 @@ const nt = We(
|
|
|
684
684
|
}
|
|
685
685
|
), (l, i) => {
|
|
686
686
|
const d = z("fm-text-field"), u = z("FmForm");
|
|
687
|
-
return
|
|
688
|
-
onValidationSuccess: i[1] || (i[1] = (s) =>
|
|
687
|
+
return Ne(), Ve(u, {
|
|
688
|
+
onValidationSuccess: i[1] || (i[1] = (s) => N(f)("primary"))
|
|
689
689
|
}, {
|
|
690
|
-
default:
|
|
691
|
-
|
|
690
|
+
default: Oe(() => [
|
|
691
|
+
xe(d, {
|
|
692
692
|
modelValue: o.value,
|
|
693
693
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
|
|
694
|
-
rules: [(s) => !!s ||
|
|
694
|
+
rules: [(s) => !!s || N(a)("menu.subcategory.dialog.add.name.required")],
|
|
695
695
|
autofocus: "",
|
|
696
|
-
label:
|
|
697
|
-
placeholder:
|
|
696
|
+
label: N(a)("menu.subcategory.dialog.add.name.label"),
|
|
697
|
+
placeholder: N(a)("menu.subcategory.dialog.add.name.placeholder")
|
|
698
698
|
}, null, 8, ["modelValue", "rules", "label", "placeholder"])
|
|
699
699
|
]),
|
|
700
700
|
_: 1
|
|
@@ -711,7 +711,7 @@ const nt = We(
|
|
|
711
711
|
const u = T(!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 = We(
|
|
|
730
730
|
operation: S.F_OPERATION_TYPE.create,
|
|
731
731
|
data: {
|
|
732
732
|
name: s,
|
|
733
|
-
position:
|
|
733
|
+
position: qe().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 = We(
|
|
|
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-Dn7QCG2L.js";
|
|
2
|
+
import "./menu-C_ORO6n9.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-C_ORO6n9.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";
|