@feedmepos/mf-menu 0.31.33-beta.1 → 0.31.33-beta.6
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-B4rnpCXN.js → App-Dt6RQiUh.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-LtwWMoPW.js → ApplyProduct.vue_vue_type_script_setup_true_lang-B_SQpWg7.js} +2 -2
- package/dist/{Catalog-Cd7J8de0.js → Catalog-CFx7t_Nu.js} +79 -79
- package/dist/{Category-p8UUDEiv.js → Category-CPMx86rY.js} +23 -19
- package/dist/{Category-D3WDm9Fe.js → Category-OjK-v--G.js} +5 -5
- package/dist/{CookingGuide-hFtxmtGj.js → CookingGuide-ANnXKBjc.js} +3 -3
- package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-D-1OzZ-i.js +113 -0
- package/dist/{Group-Bv0dyi8v.js → Group--DJjkGab.js} +1 -1
- package/dist/{Group-BTrqZgFd.js → Group-K4925_bP.js} +3 -3
- package/dist/Group.vue_vue_type_script_setup_true_lang-36O78xv0.js +684 -0
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BIX-gPUO.js +372 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CxPaVLVu.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C-z1m3jh.js} +13987 -13378
- package/dist/{Ingredient-BCostN4Y.js → Ingredient-G4Txx6_0.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-MAqpI7ZD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-HgHBlflo.js} +2 -2
- package/dist/{LinkProductSideSheet-abzVzmo3.js → LinkProductSideSheet-CWNarCEs.js} +1 -1
- package/dist/{MenuSetting-TfAo82-E.js → MenuSetting-Cx-EHG-6.js} +4 -4
- package/dist/{PrintRoute-B43rP5A9.js → PrintRoute-IxHGvGzF.js} +3 -3
- package/dist/{Product-C7cYyDHH.js → Product-D1gqn5J6.js} +1 -1
- package/dist/Product.vue_vue_type_script_setup_true_lang-BCQd-ks4.js +1641 -0
- package/dist/{ProductInternalTools-CkswVuAF.js → ProductInternalTools-GJ2OE5gU.js} +5 -5
- package/dist/Products-DJqgSe-Y.js +270 -0
- package/dist/{Publish-DIKqaH2f.js → Publish-C86rd413.js} +3 -3
- package/dist/{Recipe-_ApT00c_.js → Recipe-BbQKou9p.js} +4 -4
- package/dist/{Scheduler-DWY1kKHO.js → Scheduler-DUeTkyGQ.js} +3 -3
- package/dist/{ServingSequence-Z1S9zOTO.js → ServingSequence-BROo5rC_.js} +3 -3
- package/dist/Setting-D-ueTlwO.js +259 -0
- package/dist/{Subcategory-Lqq6XHz2.js → Subcategory-DVewA8HX.js} +4 -4
- package/dist/{Takeaway-DiGzrarg.js → Takeaway-B4lDGQDh.js} +4 -4
- package/dist/{Takeaway-DGvM9SBP.js → Takeaway-DyPjHuCl.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BfWy217t.js → Takeaway.vue_vue_type_script_setup_true_lang-BTDlzYuX.js} +6 -6
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B2wC_Mf0.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B5BAKDRP.js} +642 -642
- package/dist/{Unit-D11rRFAf.js → Unit-CVF0dom4.js} +2 -2
- package/dist/{Variant-LaKYPxDe.js → Variant-DmccAgFU.js} +3 -3
- package/dist/_id_-CWtK62Fy.js +178 -0
- package/dist/{app-C5UXrJGj.js → app-CV_q8OdE.js} +75 -75
- package/dist/{app-Br9mC24D.js → app-ClinzawZ.js} +1 -1
- package/dist/app-DvG3mOom.js +8024 -0
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +60 -1
- package/dist/apps/mf-menu/src/components/feature/AttributesSelector.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductUnifiedSideSheet.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/LinkPriceTierSection.vue.d.ts +24 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +30 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +77 -0
- package/dist/apps/mf-menu/src/composable/customAttributes.d.ts +88 -0
- package/dist/apps/mf-menu/src/helper/{menuImport.d.ts → import-export.d.ts} +204 -3
- package/dist/apps/mf-menu/src/helper/menu.d.ts +77 -0
- package/dist/apps/mf-menu/src/helper/setting/catalogSetting.d.ts +11 -2
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +77 -0
- package/dist/apps/mf-menu/src/stores/manager/catalog.d.ts +2 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +79 -0
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +82 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-fZD691Js.js +24 -0
- package/dist/assets/override-menu-Cjy1BJuz.js +24 -0
- package/dist/assets/validate-menu-uwysUwDP.js +24 -0
- package/dist/{catalog-BDyG_i9q.js → catalog-Wx88K6iI.js} +1 -1
- package/dist/catalogSetting-DTEHDSAd.js +71 -0
- package/dist/{category-Bi6gpIYU.js → category-BRTw76Vf.js} +1 -1
- package/dist/{currency-DDseyYg1.js → currency-562bPc2l.js} +1 -1
- package/dist/customAttributes-CXzd5ud1.js +33 -0
- package/dist/{dayjs.min-DoQgN0KD.js → dayjs.min-Cnfm8bQm.js} +1 -1
- package/dist/{index-DxrEwDTr.js → index-4hf9vONw.js} +2 -2
- package/dist/{index-C-zLHAG1.js → index-Crs_eZ0i.js} +28 -28
- package/dist/{index-DTUmry92.js → index-DJXrJdeQ.js} +3 -3
- package/dist/{item-DqXzPUy9.js → item-CuIxc9FT.js} +377 -377
- package/dist/{jszip.min-iAC5WNVU.js → jszip.min-C9xLIvo4.js} +245 -245
- package/dist/menu-ILWxqJQe.js +133263 -0
- package/dist/{menu-D6df9rcz.js → menu-Mkzv9c8C.js} +4 -4
- package/dist/{priceTier-C56BYecC.js → priceTier-D4joq_kN.js} +1 -1
- package/dist/{scheduler-DCSpt65t.js → scheduler-DuxWoNVb.js} +3 -3
- package/dist/{subcategory-CydaPy_X.js → subcategory-CLLMagXY.js} +43 -43
- package/dist/{toExcel-Bil8CwJs.js → toExcel-hGfpS_Uo.js} +2 -2
- package/dist/{unit-8DyuBx-X.js → unit-9fycj1fu.js} +1 -1
- package/package.json +4 -4
- package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cf17Iy5i.js +0 -7949
- package/dist/Group.vue_vue_type_script_setup_true_lang-vk1J9IxK.js +0 -698
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B1wrLnf6.js +0 -206
- package/dist/Product.vue_vue_type_script_setup_true_lang-BOq8wMzq.js +0 -1560
- package/dist/Products-C7BtAjhB.js +0 -659
- package/dist/Setting-Bfuf26Gc.js +0 -258
- package/dist/_id_-Q_Tyhr4U.js +0 -200
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +0 -123
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +0 -32
- package/dist/assets/linked-status-BhGrXd73.js +0 -24
- package/dist/assets/override-menu-CUNDHOWA.js +0 -24
- package/dist/assets/validate-menu-BqOizHsX.js +0 -24
- package/dist/catalogSetting-C33p_dck.js +0 -65
- package/dist/menu-Cir-22ei.js +0 -108039
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed as n, onMounted as d, onBeforeUnmount as
|
|
2
|
-
import { u as a } from "./menu-
|
|
1
|
+
import { computed as n, onMounted as d, onBeforeUnmount as m } from "vue";
|
|
2
|
+
import { u as a } from "./menu-ILWxqJQe.js";
|
|
3
3
|
import "@feedmepos/mf-common";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
5
|
function p() {
|
|
@@ -14,10 +14,10 @@ function p() {
|
|
|
14
14
|
}
|
|
15
15
|
function v() {
|
|
16
16
|
const e = a(), o = () => {
|
|
17
|
-
e.selectCatalog(null), e.selectCategory(null), e.selectScheduler(null);
|
|
17
|
+
e.selectCatalog(null), e.selectCategory(null), e.selectScheduler(null), e.setRestaurantCustomAttributes(null);
|
|
18
18
|
};
|
|
19
19
|
function s() {
|
|
20
|
-
|
|
20
|
+
m(() => {
|
|
21
21
|
o();
|
|
22
22
|
});
|
|
23
23
|
}
|
|
@@ -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-ILWxqJQe.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,12 +1,12 @@
|
|
|
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 A, 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, G as r, u as pe, I as ve, J as ue } from "./menu-
|
|
2
|
+
import { H as S, G as r, u as pe, I as ve, J as ue } from "./menu-ILWxqJQe.js";
|
|
3
3
|
import { useI18n as de } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as _e } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as fe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
6
6
|
import { _ as ne } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
7
7
|
import { u as ye } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as he } from "./menu-
|
|
9
|
-
import { L as ge } from "./LinkProductSideSheet-
|
|
8
|
+
import { u as he } from "./menu-Mkzv9c8C.js";
|
|
9
|
+
import { L as ge } from "./LinkProductSideSheet-CWNarCEs.js";
|
|
10
10
|
const Ve = { class: "space-y-8" }, Fe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "space-y-16"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { shallowRef as Q, ref as T, computed as h, shallowReactive as Fe, effectScope as Re, watch as
|
|
2
|
-
import { H as k, B as O, ak as
|
|
3
|
-
import { useCoreStore as
|
|
1
|
+
import { shallowRef as Q, ref as T, computed as h, shallowReactive as Fe, effectScope as Re, watch as H, 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 X, G as I, al as G, J as S, I as ee, aa as M, c as D, Y as w, aj as J, 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-ILWxqJQe.js";
|
|
3
|
+
import { useCoreStore as L, useI18n as te } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as Ye, useDialogChild as Be } from "@feedmepos/ui-library";
|
|
5
|
-
import { defineStore as
|
|
6
|
-
const
|
|
7
|
-
function
|
|
5
|
+
import { defineStore as je } from "pinia";
|
|
6
|
+
const We = "/assets/linked-status-fZD691Js.js", ze = "/assets/override-menu-Cjy1BJuz.js";
|
|
7
|
+
function Ge(e) {
|
|
8
8
|
var o;
|
|
9
9
|
const n = k(e), a = (o = n.variant) == null ? void 0 : o.variantCombinations;
|
|
10
10
|
return delete n.variant, delete n.thumbnail, [n, ...a || []];
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const r = k(n), m = a ? r.modules.catalog.find((g) => g._id === a) : null, l = o ? r.modules.scheduler.find((g) => g._id === o) : null, i = m ? k(m) : void 0, d = a ? r.modules.catalog.filter((g) => g._id !== a) : [], u = l ? k(l) : void 0, s = e.reduce((g, y) => (g[y._id] =
|
|
12
|
+
function Je(e, n, a, o) {
|
|
13
|
+
const r = k(n), m = a ? r.modules.catalog.find((g) => g._id === a) : null, l = o ? r.modules.scheduler.find((g) => g._id === o) : null, i = m ? k(m) : void 0, d = a ? r.modules.catalog.filter((g) => g._id !== a) : [], u = l ? k(l) : void 0, s = e.reduce((g, y) => (g[y._id] = Ge(y), g), {});
|
|
14
14
|
function p(g = []) {
|
|
15
15
|
const y = e.map((b) => b._id);
|
|
16
16
|
return [
|
|
@@ -35,9 +35,9 @@ function Le(e, n, a, o) {
|
|
|
35
35
|
...r.modules.scheduler.filter((g) => g._id !== o),
|
|
36
36
|
u
|
|
37
37
|
], r) : {
|
|
38
|
-
...
|
|
38
|
+
...G(),
|
|
39
39
|
modules: {
|
|
40
|
-
...
|
|
40
|
+
...G().modules,
|
|
41
41
|
catalog: r.modules.catalog,
|
|
42
42
|
item: r.modules.item,
|
|
43
43
|
group: r.modules.group,
|
|
@@ -75,7 +75,7 @@ function R(e, n, a) {
|
|
|
75
75
|
groups: r
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Le(e, n) {
|
|
79
79
|
const a = e.groups.map((m) => {
|
|
80
80
|
const l = n.modules.group.find((d) => d._id === m._id), i = ((l == null ? void 0 : l.items) || []).map((d) => {
|
|
81
81
|
var p;
|
|
@@ -118,7 +118,7 @@ function Y(e, n) {
|
|
|
118
118
|
}), r;
|
|
119
119
|
}), a;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Ze(e, n) {
|
|
122
122
|
const a = e.items[n._id];
|
|
123
123
|
n.variant && (n.variant = {
|
|
124
124
|
...n.variant,
|
|
@@ -150,9 +150,9 @@ function Xe(e, n) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
async function dt(e, n, a, o, r, m = !0) {
|
|
153
|
-
const l = k(a), i = m ?
|
|
153
|
+
const l = k(a), i = m ? Je(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
|
-
return p[y] =
|
|
155
|
+
return p[y] = Le(d[y], e), p;
|
|
156
156
|
}, {}), s = O.getFallbackPrices({
|
|
157
157
|
rawMenu: i,
|
|
158
158
|
items: u,
|
|
@@ -162,7 +162,7 @@ async function dt(e, n, a, o, r, m = !0) {
|
|
|
162
162
|
return n.map((p) => {
|
|
163
163
|
const g = p._id, y = d[g];
|
|
164
164
|
return {
|
|
165
|
-
...
|
|
165
|
+
...Ze(s, y),
|
|
166
166
|
category: o || r ? y == null ? void 0 : y.category : null
|
|
167
167
|
};
|
|
168
168
|
});
|
|
@@ -185,8 +185,8 @@ async function ft(e, n) {
|
|
|
185
185
|
const a = `${e._id}-${e.updatedAt}-${n}`;
|
|
186
186
|
if ($.has(a))
|
|
187
187
|
return $.get(a);
|
|
188
|
-
const o = await
|
|
189
|
-
|
|
188
|
+
const o = await X(
|
|
189
|
+
We,
|
|
190
190
|
JSON.stringify({
|
|
191
191
|
menu: e,
|
|
192
192
|
itemId: n
|
|
@@ -195,7 +195,7 @@ async function ft(e, n) {
|
|
|
195
195
|
return $.set(a, o), o;
|
|
196
196
|
}
|
|
197
197
|
async function ne(e, n, a) {
|
|
198
|
-
return await
|
|
198
|
+
return await X(ze, {
|
|
199
199
|
menu: e,
|
|
200
200
|
catalogId: n,
|
|
201
201
|
schedulerId: a
|
|
@@ -231,13 +231,13 @@ function _t(e, n, a) {
|
|
|
231
231
|
}
|
|
232
232
|
return r(n, a);
|
|
233
233
|
}
|
|
234
|
-
const
|
|
234
|
+
const q = /* @__PURE__ */ new Map();
|
|
235
235
|
async function Qe(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;
|
|
@@ -265,7 +265,7 @@ async function gt(e, n, a) {
|
|
|
265
265
|
}
|
|
266
266
|
return r;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function Xe({
|
|
269
269
|
maxHistorySize: e = 50
|
|
270
270
|
}) {
|
|
271
271
|
const n = Q([]), a = T(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
|
|
@@ -338,10 +338,10 @@ function tt() {
|
|
|
338
338
|
currentSchedulerId: ""
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
const nt =
|
|
341
|
+
const nt = je(
|
|
342
342
|
"mf-menu-store-v2",
|
|
343
343
|
() => {
|
|
344
|
-
const e = Fe(tt()), n =
|
|
344
|
+
const e = Fe(tt()), n = L(), 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;
|
|
@@ -375,7 +375,7 @@ const nt = We(
|
|
|
375
375
|
}
|
|
376
376
|
const V = ee.debounce(b, 200);
|
|
377
377
|
Re(!0).run(() => {
|
|
378
|
-
|
|
378
|
+
H(
|
|
379
379
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
380
380
|
() => {
|
|
381
381
|
g.value || V();
|
|
@@ -406,7 +406,7 @@ const nt = We(
|
|
|
406
406
|
}), re = h(() => {
|
|
407
407
|
const t = p.value.modules.subCategory || [];
|
|
408
408
|
return w(t, (c) => c.name);
|
|
409
|
-
}),
|
|
409
|
+
}), j = h(() => {
|
|
410
410
|
var c;
|
|
411
411
|
let t = p.value.modules.item;
|
|
412
412
|
if (i.value) {
|
|
@@ -429,7 +429,7 @@ const nt = We(
|
|
|
429
429
|
f,
|
|
430
430
|
(v) => v.code || v.name
|
|
431
431
|
).reduce((v, _, C) => (v[_._id] = C + c[_.category || ""], v), {});
|
|
432
|
-
}), se = h(() =>
|
|
432
|
+
}), se = h(() => J(A.value, B.value, j.value)), ue = h(() => {
|
|
433
433
|
const t = U.value.item.addon ? [
|
|
434
434
|
{
|
|
435
435
|
_id: e.currentCatalogId ? "" : null,
|
|
@@ -438,7 +438,7 @@ const nt = We(
|
|
|
438
438
|
},
|
|
439
439
|
...e.menu.modules.category
|
|
440
440
|
] : e.menu.modules.category;
|
|
441
|
-
return
|
|
441
|
+
return J(
|
|
442
442
|
e.menu.modules.variant,
|
|
443
443
|
t,
|
|
444
444
|
e.menu.modules.item
|
|
@@ -540,7 +540,7 @@ const nt = We(
|
|
|
540
540
|
const ye = h(() => {
|
|
541
541
|
var v;
|
|
542
542
|
const t = ["SV5", "SV10"], c = Ue.Country.getCountryFlattenTaxes(
|
|
543
|
-
|
|
543
|
+
L().currentCountry.value
|
|
544
544
|
), f = c.filter((_) => m.value || !t.includes(_.taxCode)).map((_) => ({
|
|
545
545
|
label: `${_.name} (${Ke(_.rate)}%)`,
|
|
546
546
|
value: K(_),
|
|
@@ -553,8 +553,8 @@ const nt = We(
|
|
|
553
553
|
countryTaxOptions: f
|
|
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();
|
|
560
560
|
await t({
|
|
@@ -562,7 +562,7 @@ const nt = We(
|
|
|
562
562
|
e.restaurants = c;
|
|
563
563
|
}
|
|
564
564
|
});
|
|
565
|
-
},
|
|
565
|
+
}, W = (t) => {
|
|
566
566
|
e.currentCatalogId = t;
|
|
567
567
|
}, Ce = (t) => {
|
|
568
568
|
e.currentSchedulerId = t;
|
|
@@ -600,7 +600,7 @@ const nt = We(
|
|
|
600
600
|
priceTierSettings: t.priceTierSettings
|
|
601
601
|
};
|
|
602
602
|
return s(c), c;
|
|
603
|
-
}, E =
|
|
603
|
+
}, E = Xe({ maxHistorySize: 50 }), we = h(() => E.canUndo.value), Ie = h(() => E.canRedo.value);
|
|
604
604
|
return {
|
|
605
605
|
state: e,
|
|
606
606
|
// loading state
|
|
@@ -619,7 +619,7 @@ const nt = We(
|
|
|
619
619
|
catalogOptions: P,
|
|
620
620
|
categories: B,
|
|
621
621
|
subcategories: re,
|
|
622
|
-
items:
|
|
622
|
+
items: j,
|
|
623
623
|
sortedItems: ae,
|
|
624
624
|
categorizedItems: se,
|
|
625
625
|
categorizedRawMenuItems: ue,
|
|
@@ -637,7 +637,7 @@ const nt = We(
|
|
|
637
637
|
setMenu: s,
|
|
638
638
|
readMenu: he,
|
|
639
639
|
readRestaurants: be,
|
|
640
|
-
selectCatalog:
|
|
640
|
+
selectCatalog: W,
|
|
641
641
|
selectScheduler: Ce,
|
|
642
642
|
selectCategory: Me,
|
|
643
643
|
updateMenu: Se,
|
|
@@ -664,21 +664,21 @@ const nt = We(
|
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
),
|
|
667
|
+
), Z = /* @__PURE__ */ Te({
|
|
668
668
|
__name: "AddSubcategoryDialogContentComponent",
|
|
669
669
|
props: {
|
|
670
670
|
initialValue: {}
|
|
671
671
|
},
|
|
672
672
|
setup(e) {
|
|
673
673
|
const n = e, { t: a } = te();
|
|
674
|
-
|
|
674
|
+
H(
|
|
675
675
|
() => n.initialValue,
|
|
676
676
|
(l) => {
|
|
677
677
|
o.value = l ?? "";
|
|
678
678
|
}
|
|
679
679
|
);
|
|
680
680
|
const o = T(n.initialValue), { emitData: r, emitAction: m } = Be();
|
|
681
|
-
return
|
|
681
|
+
return H(
|
|
682
682
|
o,
|
|
683
683
|
(l) => {
|
|
684
684
|
r(l);
|
|
@@ -687,7 +687,7 @@ const nt = We(
|
|
|
687
687
|
immediate: !0
|
|
688
688
|
}
|
|
689
689
|
), (l, i) => {
|
|
690
|
-
const d =
|
|
690
|
+
const d = z("fm-text-field"), u = z("FmForm");
|
|
691
691
|
return Ne(), Ve(u, {
|
|
692
692
|
onValidationSuccess: i[1] || (i[1] = (s) => N(m)("primary"))
|
|
693
693
|
}, {
|
|
@@ -715,7 +715,7 @@ const nt = We(
|
|
|
715
715
|
const u = T(!1);
|
|
716
716
|
e.open({
|
|
717
717
|
title: o("menu.subcategory.manager.dialog.add.title"),
|
|
718
|
-
contentComponent:
|
|
718
|
+
contentComponent: Z,
|
|
719
719
|
primaryActions: {
|
|
720
720
|
text: o("menu.subcategory.manager.dialog.add.action"),
|
|
721
721
|
close: !1,
|
|
@@ -734,7 +734,7 @@ const nt = We(
|
|
|
734
734
|
operation: S.F_OPERATION_TYPE.create,
|
|
735
735
|
data: {
|
|
736
736
|
name: s,
|
|
737
|
-
position:
|
|
737
|
+
position: He().subcategories.length
|
|
738
738
|
}
|
|
739
739
|
};
|
|
740
740
|
a ? await r(p) : await n.updateMenu(p, s), e.close();
|
|
@@ -746,7 +746,7 @@ const nt = We(
|
|
|
746
746
|
function l(u) {
|
|
747
747
|
e.open({
|
|
748
748
|
title: o("menu.subcategory.manager.dialog.update.title"),
|
|
749
|
-
contentComponent:
|
|
749
|
+
contentComponent: Z,
|
|
750
750
|
contentComponentProps: {
|
|
751
751
|
initialValue: u.name
|
|
752
752
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { c as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-C-z1m3jh.js";
|
|
2
|
+
import "./menu-ILWxqJQe.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-ILWxqJQe.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";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-menu",
|
|
3
|
-
"version": "0.31.33-beta.
|
|
3
|
+
"version": "0.31.33-beta.6",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"@feedmepos/core": "2.14.36",
|
|
20
20
|
"@feedmepos/core-dart": "^0.2.6",
|
|
21
21
|
"@feedmepos/core-legacy": "file:../../core-legacy-1.2.tar.gz",
|
|
22
|
-
"@feedmepos/custom-attributes": "0.0.
|
|
22
|
+
"@feedmepos/custom-attributes": "0.0.1-rc.3",
|
|
23
23
|
"@feedmepos/inventory-core": "^0.2.6",
|
|
24
|
-
"@feedmepos/menu": "1.7.
|
|
24
|
+
"@feedmepos/menu": "1.7.11",
|
|
25
25
|
"@feedmepos/mf-inventory-portal": "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz",
|
|
26
26
|
"@feedmepos/remy-vue-client": "0.1.3-beta.8",
|
|
27
|
-
"@feedmepos/ui-library": "1.7.
|
|
27
|
+
"@feedmepos/ui-library": "1.7.3",
|
|
28
28
|
"@feedmepos/zod-entity": "0.0.4-alpha.9",
|
|
29
29
|
"@types/dinero.js": "^1.9.4",
|
|
30
30
|
"@vue/devtools-api": "^6.5.0",
|