@feedmepos/mf-menu 0.31.50-beta.1 → 0.31.51-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-DXXisW3y.js → App-nZUeOsRj.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DRPvBB9r.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CZGHeqq-.js} +3 -3
- package/dist/{Catalog-xqNebB7d.js → Catalog-CQHowlMD.js} +6 -6
- package/dist/{Category-CYt-0_IK.js → Category-CdO_RVBl.js} +4 -4
- package/dist/{Category-DRXXgCoT.js → Category-IHtQRYpA.js} +6 -6
- package/dist/{CookingGuide-DLfr6-fm.js → CookingGuide-EBJuyvti.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-toajeers.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DWwByBHi.js} +1 -1
- package/dist/{Group-BKYzG6fU.js → Group-B9gYyuw8.js} +3 -3
- package/dist/{Group-DIA_XL_I.js → Group-H9YjM9Uh.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CgpkpOvk.js → Group.vue_vue_type_script_setup_true_lang-D15J3zxB.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dt0ELF4j.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B2FS4qly.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CvrZKjus.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BKYGviw4.js} +23 -7
- package/dist/{Ingredient-BI44dYAP.js → Ingredient-B5GU-Ids.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CBnGxphp.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BHLP_plA.js} +1052 -1052
- package/dist/{LinkProductSideSheet-CCAges9q.js → LinkProductSideSheet-B5Mv40Np.js} +3 -3
- package/dist/{MenuSetting-CVakiCVk.js → MenuSetting-D6yyyckv.js} +5 -5
- package/dist/{PrintRoute-DlW6n7Mn.js → PrintRoute-Bwa6CM4E.js} +4 -4
- package/dist/{Product-m8cMT1LX.js → Product-D5NxKIbK.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-a55WiF4U.js → Product.vue_vue_type_script_setup_true_lang-DFSWEKN-.js} +13 -13
- package/dist/{ProductInternalTools-CkTx11_s.js → ProductInternalTools-bNqxtp09.js} +5 -5
- package/dist/{Products-BJuWo6iE.js → Products-BGO9EeZJ.js} +11 -11
- package/dist/{Publish-CM8QYU-j.js → Publish-DFgfd9PG.js} +3 -3
- package/dist/{Recipe-BRDAybvK.js → Recipe-ayBsaO3Y.js} +4 -4
- package/dist/{Scheduler-BTRJwBGC.js → Scheduler-B7muq2xt.js} +3 -3
- package/dist/{ServingSequence-CD_DdM9d.js → ServingSequence-B7gaxwFi.js} +3 -3
- package/dist/{Setting-BeO4Vkut.js → Setting-B6KAm9OQ.js} +5 -5
- package/dist/{Subcategory-_1l7Bx1S.js → Subcategory-BPjF5OW7.js} +4 -4
- package/dist/{Takeaway-BFI4svUt.js → Takeaway-CAHgx8Pb.js} +4 -4
- package/dist/{Takeaway-BZk0NtGE.js → Takeaway-Cr8Ok4de.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CIfMWu9j.js → Takeaway.vue_vue_type_script_setup_true_lang-B31aUQ3c.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-BP9fJ0Bu.js → Thumbnail.vue_vue_type_script_setup_true_lang-C8HFPhnD.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-t1fMjOZR.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Bkvg9n_Y.js} +14 -14
- package/dist/{Unit-Ctw281mK.js → Unit-Bz0m4H4g.js} +2 -2
- package/dist/{Variant-C3ZYOitW.js → Variant-Df3s68dC.js} +3 -3
- package/dist/{_id_-CoT8bjO6.js → _id_-B6dJ5d52.js} +10 -10
- package/dist/{app-OcteyEm5.js → app-BaxOlDbP.js} +1 -1
- package/dist/{app-Brm1kWbu.js → app-CjXgTr4z.js} +26 -26
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DAHyhlx2.js → linked-status-CX6Q-vWP.js} +2 -2
- package/dist/assets/{override-menu-BnY4XZnY.js → override-menu-qDB0GOu1.js} +2 -2
- package/dist/assets/{validate-menu-BraLzbnR.js → validate-menu-Bj2kRZAS.js} +2 -2
- package/dist/{catalog-gKppJzig.js → catalog-BjKlXYln.js} +1 -1
- package/dist/{catalogSetting-Su45SyJ-.js → catalogSetting-YqC6Ojo8.js} +1 -1
- package/dist/{category-8y6-08Mv.js → category-CNoYX7sj.js} +1 -1
- package/dist/{currency-B_e-dhFu.js → currency-CI2JmD81.js} +1 -1
- package/dist/{customAttributes-C2vr-SKM.js → customAttributes-6K-H9b8-.js} +1 -1
- package/dist/{dayjs.min-dKmkrzl4.js → dayjs.min-CuNawXBv.js} +1 -1
- package/dist/{index-BHvV964b.js → index-B7J4O0Yk.js} +4 -4
- package/dist/{index-D4faLWap.js → index-Cbmiaavc.js} +3 -3
- package/dist/{index-C9tWvhY2.js → index-D9Ja3xu0.js} +1 -1
- package/dist/{index-Dr59iGVp.js → index-Dk3Tf8J1.js} +1 -1
- package/dist/{item-DEucLegT.js → item-chcJdZaJ.js} +16 -16
- package/dist/{jszip.min-yRZ7rNLS.js → jszip.min-DCZRJUBf.js} +245 -245
- package/dist/{menu-D1ph5NBB.js → menu-Bf2WmNLJ.js} +162 -162
- package/dist/{menu-C_Qpm-ah.js → menu-CmVLUyqN.js} +1 -1
- package/dist/{menuV2-DlyT8PNo.js → menuV2-DOFVpwgW.js} +58 -58
- package/dist/{priceTier-BsiwgiPs.js → priceTier-BzBG7LNF.js} +1 -1
- package/dist/{scheduler-Cyq65N6m.js → scheduler-CYGLnR9N.js} +4 -4
- package/dist/{subcategory-CMW9rWpo.js → subcategory-r_AeUJ_h.js} +2 -2
- package/dist/{toExcel-B9qHcJCR.js → toExcel-BupMrq3s.js} +2 -2
- package/dist/{unit-bsmM8Os6.js → unit-BpR8s1rn.js} +2 -2
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { an as L, H as k, D as I, A as
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import { shallowRef as
|
|
1
|
+
import { an as L, H as k, D as I, A as J, ao as B, J as U, I as X, a8 as w, c as N, X as E, ai as j, ap as Me, aq as Ee, B as ke, aa as Ie, ar as Re, as as Te, a7 as Fe } from "./menu-Bf2WmNLJ.js";
|
|
2
|
+
import { defineStore as Pe } from "pinia";
|
|
3
|
+
import { shallowRef as Y, ref as D, computed as h, shallowReactive as Ae, effectScope as Oe, watch as Ke } from "vue";
|
|
4
4
|
import { useCoreStore as z } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as Ve } from "@feedmepos/ui-library";
|
|
6
|
-
const
|
|
6
|
+
const Ne = "/assets/linked-status-CX6Q-vWP.js", xe = "/assets/override-menu-qDB0GOu1.js";
|
|
7
7
|
function $e(e) {
|
|
8
8
|
var a;
|
|
9
9
|
const n = k(e), o = (a = n.variant) == null ? void 0 : a.variantCombinations;
|
|
@@ -25,7 +25,7 @@ function Ue(e, n, o, a) {
|
|
|
25
25
|
_id: a,
|
|
26
26
|
items: v(m == null ? void 0 : m.items).map((_) => ({
|
|
27
27
|
..._,
|
|
28
|
-
orderFrom:
|
|
28
|
+
orderFrom: J.F_ORDER_FROM.enum.ALL
|
|
29
29
|
}))
|
|
30
30
|
}
|
|
31
31
|
}, r.modules.catalog = [...c, i], r) : i ? (i.override.items = {
|
|
@@ -35,9 +35,9 @@ function Ue(e, n, o, a) {
|
|
|
35
35
|
...r.modules.scheduler.filter((_) => _._id !== a),
|
|
36
36
|
m
|
|
37
37
|
], r) : {
|
|
38
|
-
...
|
|
38
|
+
...B(),
|
|
39
39
|
modules: {
|
|
40
|
-
...
|
|
40
|
+
...B().modules,
|
|
41
41
|
catalog: r.modules.catalog,
|
|
42
42
|
item: r.modules.item,
|
|
43
43
|
group: r.modules.group,
|
|
@@ -180,22 +180,22 @@ function tt(e, n) {
|
|
|
180
180
|
return r;
|
|
181
181
|
}, [])) || []).join(" / ");
|
|
182
182
|
}
|
|
183
|
-
const
|
|
183
|
+
const x = /* @__PURE__ */ new Map();
|
|
184
184
|
async function nt(e, n) {
|
|
185
185
|
const o = `${e._id}-${e.updatedAt}-${n}`;
|
|
186
|
-
if (
|
|
187
|
-
return
|
|
186
|
+
if (x.has(o))
|
|
187
|
+
return x.get(o);
|
|
188
188
|
const a = await L(
|
|
189
|
-
|
|
189
|
+
Ne,
|
|
190
190
|
JSON.stringify({
|
|
191
191
|
menu: e,
|
|
192
192
|
itemId: n
|
|
193
193
|
})
|
|
194
194
|
);
|
|
195
|
-
return
|
|
195
|
+
return x.set(o, a), a;
|
|
196
196
|
}
|
|
197
|
-
async function
|
|
198
|
-
return await L(
|
|
197
|
+
async function Q(e, n, o) {
|
|
198
|
+
return await L(xe, {
|
|
199
199
|
menu: e,
|
|
200
200
|
catalogId: n,
|
|
201
201
|
schedulerId: o
|
|
@@ -232,16 +232,16 @@ function ot(e, n, o) {
|
|
|
232
232
|
return r(n, o);
|
|
233
233
|
}
|
|
234
234
|
const $ = /* @__PURE__ */ new Map();
|
|
235
|
-
async function
|
|
235
|
+
async function Ge(e, n, o) {
|
|
236
236
|
const a = `${e._id}-${e.updatedAt}-${n || "null"}-${o || "null"}`;
|
|
237
237
|
if ($.has(a))
|
|
238
238
|
return $.get(a);
|
|
239
|
-
const r = await
|
|
239
|
+
const r = await Q(e, n, o);
|
|
240
240
|
return $.set(a, r), r;
|
|
241
241
|
}
|
|
242
242
|
async function st(e, n, o) {
|
|
243
243
|
var d, i;
|
|
244
|
-
const a = await
|
|
244
|
+
const a = await Ge(e, n, null), r = [], l = (c, m) => {
|
|
245
245
|
const f = k(c);
|
|
246
246
|
for (const v in m)
|
|
247
247
|
m[v] && (f[v] = m[v]);
|
|
@@ -251,9 +251,9 @@ async function st(e, n, o) {
|
|
|
251
251
|
const m = (d = c.items) == null ? void 0 : d.find((v) => v._id === o && !v.combinationKey), f = e.modules.item.find((v) => v._id === o);
|
|
252
252
|
if (m) {
|
|
253
253
|
const v = (i = c.items) == null ? void 0 : i.filter((y) => y._id === o && y.combinationKey), _ = [m, ...v].map((y) => {
|
|
254
|
-
var F,
|
|
255
|
-
const C = y.combinationKey ? (
|
|
256
|
-
(
|
|
254
|
+
var F, P;
|
|
255
|
+
const C = y.combinationKey ? (P = (F = f == null ? void 0 : f.variant) == null ? void 0 : F.variantCombinations) == null ? void 0 : P.find(
|
|
256
|
+
(A) => A.combinationKey === y.combinationKey
|
|
257
257
|
) : f, R = C && f ? l(f, C) : y;
|
|
258
258
|
return l(R, y);
|
|
259
259
|
});
|
|
@@ -265,10 +265,10 @@ async function st(e, n, o) {
|
|
|
265
265
|
}
|
|
266
266
|
return r;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function We({
|
|
269
269
|
maxHistorySize: e = 50
|
|
270
270
|
}) {
|
|
271
|
-
const n =
|
|
271
|
+
const n = Y([]), o = D(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
|
|
272
272
|
function l(m) {
|
|
273
273
|
n.value.push(m), o.value++, n.value.length > e && (n.value.shift(), o.value--);
|
|
274
274
|
}
|
|
@@ -292,7 +292,7 @@ function Ge({
|
|
|
292
292
|
clear: c
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
|
-
const
|
|
295
|
+
const qe = {
|
|
296
296
|
async updateMenuModule(e, n) {
|
|
297
297
|
const o = U.RequestRunner.operation(n, e.modules);
|
|
298
298
|
if (o.validateError.length > 0)
|
|
@@ -303,10 +303,10 @@ const We = {
|
|
|
303
303
|
modules: o.result || e.modules,
|
|
304
304
|
_rev: o.id ?? ""
|
|
305
305
|
};
|
|
306
|
-
return
|
|
306
|
+
return X.cloneDeep({ menu: a, updateId: o.id ?? null });
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
|
-
function
|
|
309
|
+
function Z() {
|
|
310
310
|
return {
|
|
311
311
|
_id: "",
|
|
312
312
|
masterCatalogSetting: { inclusiveTaxes: [] },
|
|
@@ -329,10 +329,10 @@ function Q() {
|
|
|
329
329
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function Be() {
|
|
333
333
|
return {
|
|
334
334
|
restaurants: [],
|
|
335
|
-
menu: { ...
|
|
335
|
+
menu: { ...Z(), _rev: "" },
|
|
336
336
|
currentCatalogId: null,
|
|
337
337
|
currentCategoryIds: null,
|
|
338
338
|
currentSchedulerId: "",
|
|
@@ -342,15 +342,15 @@ function qe() {
|
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
|
-
const at =
|
|
345
|
+
const at = Pe(
|
|
346
346
|
"mf-menu-store-v2",
|
|
347
347
|
() => {
|
|
348
|
-
const e =
|
|
348
|
+
const e = Ae(Be()), n = z(), o = Ve(), a = h(() => e.menu.modules.serveSequence ? w(e.menu.modules.serveSequence, {
|
|
349
349
|
selector: "position"
|
|
350
350
|
}) : []), r = h(() => {
|
|
351
351
|
var t;
|
|
352
|
-
return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) ||
|
|
353
|
-
}), l = h(() => r.value ===
|
|
352
|
+
return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || N.F_MENU_VERSION.v3;
|
|
353
|
+
}), l = h(() => r.value === N.F_MENU_VERSION.v4), d = h(() => {
|
|
354
354
|
const t = e.menu.modules.catalog;
|
|
355
355
|
return w(t, { selector: "name" });
|
|
356
356
|
}), i = h(() => {
|
|
@@ -370,7 +370,7 @@ const at = Ae(
|
|
|
370
370
|
function f(t, s = !0) {
|
|
371
371
|
e.menu = { ...t, _rev: e.menu._rev }, s && M.push(e.menu);
|
|
372
372
|
}
|
|
373
|
-
const v =
|
|
373
|
+
const v = Y(Z()), _ = D(!1), y = D(1);
|
|
374
374
|
async function C() {
|
|
375
375
|
var u;
|
|
376
376
|
_.value = !0;
|
|
@@ -384,7 +384,7 @@ const at = Ae(
|
|
|
384
384
|
});
|
|
385
385
|
t = e.menu.modules.catalog.map((g) => g._id === (p == null ? void 0 : p._id) ? p : g);
|
|
386
386
|
}
|
|
387
|
-
const s = await
|
|
387
|
+
const s = await Q(
|
|
388
388
|
{
|
|
389
389
|
...e.menu,
|
|
390
390
|
modules: {
|
|
@@ -405,16 +405,16 @@ const at = Ae(
|
|
|
405
405
|
}
|
|
406
406
|
return v.value = s, _.value = !1, y.value = y.value + 1, s;
|
|
407
407
|
}
|
|
408
|
-
const F =
|
|
409
|
-
|
|
410
|
-
|
|
408
|
+
const F = X.debounce(C, 200);
|
|
409
|
+
Oe(!0).run(() => {
|
|
410
|
+
Ke(
|
|
411
411
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
412
412
|
() => {
|
|
413
413
|
_.value || F();
|
|
414
414
|
}
|
|
415
415
|
);
|
|
416
416
|
});
|
|
417
|
-
const
|
|
417
|
+
const A = h(() => [
|
|
418
418
|
{
|
|
419
419
|
label: "Main",
|
|
420
420
|
value: null
|
|
@@ -423,10 +423,10 @@ const at = Ae(
|
|
|
423
423
|
label: t.name,
|
|
424
424
|
value: t._id
|
|
425
425
|
}))
|
|
426
|
-
]),
|
|
426
|
+
]), G = h(() => {
|
|
427
427
|
const t = v.value.modules.category;
|
|
428
428
|
return [
|
|
429
|
-
...
|
|
429
|
+
...K.value.item.addon ? [
|
|
430
430
|
{
|
|
431
431
|
_id: e.currentCatalogId ? "" : null,
|
|
432
432
|
name: "Addon",
|
|
@@ -438,7 +438,7 @@ const at = Ae(
|
|
|
438
438
|
}), ee = h(() => {
|
|
439
439
|
const t = v.value.modules.subCategory || [];
|
|
440
440
|
return E(t, (s) => s.name);
|
|
441
|
-
}),
|
|
441
|
+
}), W = h(() => {
|
|
442
442
|
var s;
|
|
443
443
|
let t = v.value.modules.item;
|
|
444
444
|
if (i.value) {
|
|
@@ -448,7 +448,7 @@ const at = Ae(
|
|
|
448
448
|
const g = (S = u == null ? void 0 : u[p._id]) == null ? void 0 : S.find(
|
|
449
449
|
(b) => !b.combinationKey
|
|
450
450
|
);
|
|
451
|
-
return (g == null ? void 0 : g.orderFrom) !==
|
|
451
|
+
return (g == null ? void 0 : g.orderFrom) !== J.F_ORDER_FROM.enum.NONE;
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
454
|
return E(t, (u) => u.code || u.name);
|
|
@@ -461,8 +461,8 @@ const at = Ae(
|
|
|
461
461
|
u,
|
|
462
462
|
(p) => p.code || p.name
|
|
463
463
|
).reduce((p, g, S) => (p[g._id] = S + s[g.category || ""], p), {});
|
|
464
|
-
}), ne = h(() => j(
|
|
465
|
-
const t =
|
|
464
|
+
}), ne = h(() => j(O.value, G.value, W.value)), re = h(() => {
|
|
465
|
+
const t = K.value.item.addon ? [
|
|
466
466
|
{
|
|
467
467
|
_id: e.currentCatalogId ? "" : null,
|
|
468
468
|
name: "Addon",
|
|
@@ -475,12 +475,12 @@ const at = Ae(
|
|
|
475
475
|
t,
|
|
476
476
|
e.menu.modules.item
|
|
477
477
|
);
|
|
478
|
-
}),
|
|
478
|
+
}), O = h(() => {
|
|
479
479
|
const t = v.value.modules.variant;
|
|
480
480
|
return w(t, { selector: "name" });
|
|
481
481
|
});
|
|
482
482
|
function oe(t = []) {
|
|
483
|
-
const s = t.map((p) =>
|
|
483
|
+
const s = t.map((p) => O.value.find((g) => g._id === p)).filter((p) => !!p);
|
|
484
484
|
return I.fullVariantCombination(s).reduce((p, g) => (p[g.combinationKey] = g.selectionName.join(" / "), p), {});
|
|
485
485
|
}
|
|
486
486
|
const se = h(() => E(v.value.modules.group, (t) => t.name)), ae = h(() => w(v.value.modules.takeaway, { selector: "name" })), ue = h(() => w(e.menu.modules.printDepartment || [], {
|
|
@@ -490,8 +490,8 @@ const at = Ae(
|
|
|
490
490
|
})), le = h(() => e.menu.modules.cookingGuide), de = h(() => {
|
|
491
491
|
const t = Ee(e.menu.modules.sku);
|
|
492
492
|
return w(t, { selector: "code" });
|
|
493
|
-
}),
|
|
494
|
-
const t = !e.currentCatalogId, s = r.value ===
|
|
493
|
+
}), K = h(() => {
|
|
494
|
+
const t = !e.currentCatalogId, s = r.value === N.F_MENU_VERSION.v4, u = !e.currentSchedulerId, p = {
|
|
495
495
|
create: t && u,
|
|
496
496
|
edit: t && u,
|
|
497
497
|
delete: t && u
|
|
@@ -586,7 +586,7 @@ const at = Ae(
|
|
|
586
586
|
};
|
|
587
587
|
}), ve = async () => {
|
|
588
588
|
const t = await Fe.readMenu();
|
|
589
|
-
e.menu = t ?? e.menu,
|
|
589
|
+
e.menu = t ?? e.menu, q(null);
|
|
590
590
|
}, ge = async () => {
|
|
591
591
|
const { fetchAllRestaurants: t } = Te();
|
|
592
592
|
await t({
|
|
@@ -594,7 +594,7 @@ const at = Ae(
|
|
|
594
594
|
e.restaurants = s;
|
|
595
595
|
}
|
|
596
596
|
});
|
|
597
|
-
},
|
|
597
|
+
}, q = (t) => {
|
|
598
598
|
e.currentCatalogId = t;
|
|
599
599
|
}, _e = (t) => {
|
|
600
600
|
e.currentSchedulerId = t;
|
|
@@ -617,7 +617,7 @@ const at = Ae(
|
|
|
617
617
|
const S = await Re(p, e.menu.modules);
|
|
618
618
|
if (S !== !0) throw new Error(S);
|
|
619
619
|
}
|
|
620
|
-
const g = await
|
|
620
|
+
const g = await qe.updateMenuModule(e.menu, p);
|
|
621
621
|
return f(g.menu), g;
|
|
622
622
|
} catch (g) {
|
|
623
623
|
o.open({
|
|
@@ -634,7 +634,7 @@ const at = Ae(
|
|
|
634
634
|
priceTierSettings: t.priceTierSettings
|
|
635
635
|
};
|
|
636
636
|
return f(s), s;
|
|
637
|
-
}, M =
|
|
637
|
+
}, M = We({ maxHistorySize: 50 }), be = h(() => M.canUndo.value), we = h(() => M.canRedo.value);
|
|
638
638
|
return {
|
|
639
639
|
state: e,
|
|
640
640
|
// loading state
|
|
@@ -650,14 +650,14 @@ const at = Ae(
|
|
|
650
650
|
currentCatalog: i,
|
|
651
651
|
schedulers: c,
|
|
652
652
|
currentScheduler: m,
|
|
653
|
-
catalogOptions:
|
|
654
|
-
categories:
|
|
653
|
+
catalogOptions: A,
|
|
654
|
+
categories: G,
|
|
655
655
|
subcategories: ee,
|
|
656
|
-
items:
|
|
656
|
+
items: W,
|
|
657
657
|
sortedItems: te,
|
|
658
658
|
categorizedItems: ne,
|
|
659
659
|
categorizedRawMenuItems: re,
|
|
660
|
-
variants:
|
|
660
|
+
variants: O,
|
|
661
661
|
groups: se,
|
|
662
662
|
takeaways: ae,
|
|
663
663
|
printDepartments: ue,
|
|
@@ -665,13 +665,13 @@ const at = Ae(
|
|
|
665
665
|
recipes: ce,
|
|
666
666
|
cookingGuide: le,
|
|
667
667
|
skus: de,
|
|
668
|
-
rules:
|
|
668
|
+
rules: K,
|
|
669
669
|
taxSetting: pe,
|
|
670
670
|
// Action
|
|
671
671
|
setMenu: f,
|
|
672
672
|
readMenu: ve,
|
|
673
673
|
readRestaurants: ge,
|
|
674
|
-
selectCatalog:
|
|
674
|
+
selectCatalog: q,
|
|
675
675
|
selectScheduler: _e,
|
|
676
676
|
selectCategory: ye,
|
|
677
677
|
setRestaurantAttrParams: he,
|
|
@@ -707,6 +707,6 @@ export {
|
|
|
707
707
|
st as f,
|
|
708
708
|
tt as g,
|
|
709
709
|
et as m,
|
|
710
|
-
|
|
710
|
+
Ge as o,
|
|
711
711
|
at as u
|
|
712
712
|
};
|
|
@@ -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-Bf2WmNLJ.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-Bf2WmNLJ.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-6K-H9b8-.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-CmVLUyqN.js";
|
|
8
|
+
import { L as ge } from "./LinkProductSideSheet-B5Mv40Np.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-Bf2WmNLJ.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-DOFVpwgW.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-BKYGviw4.js";
|
|
2
|
+
import "./menu-Bf2WmNLJ.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-Bf2WmNLJ.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-CiBqmBzO.js";
|
|
10
|
-
import "./menuV2-
|
|
10
|
+
import "./menuV2-DOFVpwgW.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-menu",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.51-beta.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@feedmepos/auth": "^1.1.14",
|
|
19
19
|
"@feedmepos/core": "2.14.36",
|
|
20
20
|
"@feedmepos/core-dart": "^0.2.6",
|
|
21
|
-
"@feedmepos/core-legacy": "file:../../core-legacy-1.
|
|
21
|
+
"@feedmepos/core-legacy": "file:../../core-legacy-1.3.tar.gz",
|
|
22
22
|
"@feedmepos/custom-attributes": "0.0.1-rc.4",
|
|
23
23
|
"@feedmepos/inventory-core": "^0.2.6",
|
|
24
24
|
"@feedmepos/menu": "1.7.14",
|