@feedmepos/mf-menu 0.31.47-prod → 0.31.48-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-8_Vr3J1_.js → App-D-dcqNRb.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BXLO4wRK.js → ApplyProduct.vue_vue_type_script_setup_true_lang-na_OOlYX.js} +20 -20
- package/dist/{Catalog-CtxYDf8U.js → Catalog-BT_NvH4H.js} +6 -6
- package/dist/{Category-eJPVt-__.js → Category-CIlVNPov.js} +4 -4
- package/dist/{Category-t5USmy5W.js → Category-bsYxspvu.js} +6 -6
- package/dist/{CookingGuide-C8WASY_U.js → CookingGuide-C7IxQzTM.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-gkkLbJmk.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJnE543q.js} +1 -1
- package/dist/{Group-CvCCFBQd.js → Group-B5882UFx.js} +1 -1
- package/dist/{Group-DHpRTZYX.js → Group-CuQ0gDgC.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-IAO1fyPW.js → Group.vue_vue_type_script_setup_true_lang-Btk8J3Tp.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CzSyXGSd.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-yIXsPtY4.js} +9 -9
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BsQYL-bI.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DFSHCb9I.js} +7 -7
- package/dist/{Ingredient-CQlggbtt.js → Ingredient-24hSAj8Z.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BbWRtnQ8.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BVcdOrDO.js} +2 -2
- package/dist/{LinkProductSideSheet-qWebf6C7.js → LinkProductSideSheet-CD9mIEpc.js} +3 -3
- package/dist/{MenuSetting-Cr0V03uO.js → MenuSetting-CVySuMK8.js} +5 -5
- package/dist/{PrintRoute-Be-cJqee.js → PrintRoute-CT0-6o2w.js} +4 -4
- package/dist/{Product-D9PJsQWT.js → Product-C2CtWFM5.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-Caq2QMeN.js → Product.vue_vue_type_script_setup_true_lang-Ts0KnCTU.js} +499 -488
- package/dist/{ProductInternalTools-Z6roJxjy.js → ProductInternalTools-CyKeO24R.js} +32 -31
- package/dist/{Products-VEZuFeYe.js → Products-wRIs1LNY.js} +11 -11
- package/dist/{Publish-VtjhyJMe.js → Publish-BKRVvye3.js} +16 -16
- package/dist/{Recipe-6lpED5Jo.js → Recipe-BQvRhIeZ.js} +4 -4
- package/dist/{Scheduler-C8ADLbDO.js → Scheduler-CaQu66-9.js} +3 -3
- package/dist/{ServingSequence-blQqZaDi.js → ServingSequence-BlUi0Hzb.js} +3 -3
- package/dist/{Setting-w3lilAhR.js → Setting-DFsZYxSB.js} +5 -5
- package/dist/{Subcategory-CKtwfQrk.js → Subcategory-BYnb9L7M.js} +4 -4
- package/dist/{Takeaway-PatPZog3.js → Takeaway-BQINJijW.js} +4 -4
- package/dist/{Takeaway-BIs7qdXT.js → Takeaway-DYiN0Yws.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DQJ1E-nv.js → Takeaway.vue_vue_type_script_setup_true_lang-CnMEeZrd.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-D3szwli1.js → Thumbnail.vue_vue_type_script_setup_true_lang-Bp40RcvB.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CzK37ydr.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-jzJLp-Ac.js} +15 -15
- package/dist/{Unit-D9K8aQkO.js → Unit-rT9SjnsI.js} +2 -2
- package/dist/{Variant-Mlc7mOFQ.js → Variant-B7aqcbez.js} +3 -3
- package/dist/{_id_-DSnUrneJ.js → _id_-DY1Fitul.js} +10 -10
- package/dist/{app-CFcEoZ6g.js → app-BO6bn7uh.js} +26 -26
- package/dist/{app-DAW9YGKu.js → app-RULuHy55.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-CcbwR1Re.js → linked-status-DRWIBDK1.js} +2 -2
- package/dist/assets/{override-menu-dSXkmmTm.js → override-menu-BLjzPUsy.js} +2 -2
- package/dist/assets/{validate-menu-8ibnWZpF.js → validate-menu-5sybvnwS.js} +2 -2
- package/dist/{catalog-CyBWoMx9.js → catalog-bwlWW8PZ.js} +4 -4
- package/dist/{catalogSetting-BEuK6iSU.js → catalogSetting-DzX172wP.js} +1 -1
- package/dist/{category-CH86FpDF.js → category-B28CLR_r.js} +1 -1
- package/dist/{currency-B7e3Bn-5.js → currency-SjGU_s1p.js} +1 -1
- package/dist/{customAttributes-C5SxhXst.js → customAttributes-D8y8beXk.js} +1 -1
- package/dist/{dayjs.min-0wOo37zY.js → dayjs.min-CUujDjy2.js} +1 -1
- package/dist/{index-BQRQtKtb.js → index-BjlPBJit.js} +4 -4
- package/dist/{index-wQFnsXZM.js → index-Dc0tIOma.js} +1 -1
- package/dist/{index-C4wpev23.js → index-KiKL6590.js} +1 -1
- package/dist/{index-CcWwRY7j.js → index-TqIfnnRh.js} +3 -3
- package/dist/{item-YOVwd-Jf.js → item-Bk4ePGsA.js} +25 -25
- package/dist/{jszip.min-DdVRNxeR.js → jszip.min-Cb0oLCRU.js} +2 -2
- package/dist/{menu-DPDGA5BU.js → menu-CKvTLOA7.js} +2613 -2659
- package/dist/{menu-5V5zXzja.js → menu-J976EXhb.js} +1 -1
- package/dist/{menuV2-DrMICNsd.js → menuV2-BWSBAnVp.js} +53 -53
- package/dist/packages/shared/src/composable/filterSelector.d.ts +1 -1
- package/dist/{priceTier-ZWgpadCg.js → priceTier-BpWKl-29.js} +1 -1
- package/dist/{scheduler-BhONdYht.js → scheduler-CnU_uh6T.js} +4 -4
- package/dist/{subcategory-BWp35Kp3.js → subcategory-Bn1Jr1uy.js} +2 -2
- package/dist/{toExcel-D0K9W29E.js → toExcel-DxAn19PY.js} +2 -2
- package/dist/tooltip-CQW9YRO5.js +60 -0
- package/dist/{unit-DkmcIwvs.js → unit-BzHG0aHZ.js} +2 -2
- package/package.json +2 -2
- package/dist/tooltip-B5BiPMx9.js +0 -32
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import { shallowRef as
|
|
1
|
+
import { an as L, H as I, D as R, A as J, ao as j, J as U, I as Y, a8 as w, c as N, X as E, ai as q, ap as Me, aq as Ee, B as Ie, aa as Re, ar as ke, as as Te, a7 as Fe } from "./menu-CKvTLOA7.js";
|
|
2
|
+
import { defineStore as Pe } from "pinia";
|
|
3
|
+
import { shallowRef as X, ref as D, computed as h, shallowReactive as Ae, effectScope as Ke, watch as Oe } from "vue";
|
|
4
4
|
import { useCoreStore as z } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as Ve } from "@feedmepos/ui-library";
|
|
6
|
-
const Ne = "/assets/linked-status-
|
|
6
|
+
const Ne = "/assets/linked-status-DRWIBDK1.js", xe = "/assets/override-menu-BLjzPUsy.js";
|
|
7
7
|
function $e(e) {
|
|
8
8
|
var a;
|
|
9
|
-
const n =
|
|
9
|
+
const n = I(e), o = (a = n.variant) == null ? void 0 : a.variantCombinations;
|
|
10
10
|
return delete n.variant, delete n.thumbnail, [n, ...o || []];
|
|
11
11
|
}
|
|
12
12
|
function Ue(e, n, o, a) {
|
|
13
|
-
const r =
|
|
13
|
+
const r = I(n), l = o ? r.modules.catalog.find((_) => _._id === o) : null, d = a ? r.modules.scheduler.find((_) => _._id === a) : null, i = l ? I(l) : void 0, c = o ? r.modules.catalog.filter((_) => _._id !== o) : [], m = d ? I(d) : void 0, f = e.reduce((_, y) => (_[y._id] = $e(y), _), {});
|
|
14
14
|
function v(_ = []) {
|
|
15
15
|
const y = e.map((C) => C._id);
|
|
16
16
|
return [
|
|
@@ -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
|
+
...j(),
|
|
39
39
|
modules: {
|
|
40
|
-
...
|
|
40
|
+
...j().modules,
|
|
41
41
|
catalog: r.modules.catalog,
|
|
42
42
|
item: r.modules.item,
|
|
43
43
|
group: r.modules.group,
|
|
@@ -59,7 +59,7 @@ function T(e, n, o) {
|
|
|
59
59
|
return i ? c = ((f = d.items) == null ? void 0 : f.map((_) => {
|
|
60
60
|
var C;
|
|
61
61
|
const y = (C = i.items) == null ? void 0 : C.find(
|
|
62
|
-
(
|
|
62
|
+
(k) => k._id === _._id && k.combinationKey === _.combinationKey
|
|
63
63
|
);
|
|
64
64
|
return T(y || _, n, o + 1);
|
|
65
65
|
})) ?? [] : c = ((v = d.items) == null ? void 0 : v.map((_) => T(_, n, o + 1))) ?? [], {
|
|
@@ -85,7 +85,7 @@ function De(e, n) {
|
|
|
85
85
|
if (m)
|
|
86
86
|
return T(m, n, 1);
|
|
87
87
|
const f = {
|
|
88
|
-
...
|
|
88
|
+
...R.generator.initMenuV4ItemOverrider(),
|
|
89
89
|
_id: c._id,
|
|
90
90
|
combinationKey: c.combinationKey
|
|
91
91
|
};
|
|
@@ -93,7 +93,7 @@ function De(e, n) {
|
|
|
93
93
|
});
|
|
94
94
|
return { ...l, items: i };
|
|
95
95
|
}), a = e.variant ? e.variant.variantCombinations.map((l) => T(l, n, 1)) : [], r = {
|
|
96
|
-
...
|
|
96
|
+
...R.generator.initMenuV4ItemOverrider(),
|
|
97
97
|
_id: e._id,
|
|
98
98
|
name: e.name,
|
|
99
99
|
code: e.code,
|
|
@@ -150,10 +150,10 @@ function He(e, n) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
async function et(e, n, o, a, r, l = !0) {
|
|
153
|
-
const d =
|
|
153
|
+
const d = I(o), i = l ? Ue(n, d, a, r) : d, c = n.reduce((v, _) => (v[_._id] = i.modules.item.find((y) => y._id === _._id), v), {}), m = n.reduce((v, _) => {
|
|
154
154
|
const y = _._id;
|
|
155
155
|
return v[y] = De(c[y], e), v;
|
|
156
|
-
}, {}), f =
|
|
156
|
+
}, {}), f = R.getFallbackPrices({
|
|
157
157
|
rawMenu: i,
|
|
158
158
|
items: m,
|
|
159
159
|
catalogId: a || void 0,
|
|
@@ -232,7 +232,7 @@ 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 Be(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);
|
|
@@ -241,8 +241,8 @@ async function Ge(e, n, o) {
|
|
|
241
241
|
}
|
|
242
242
|
async function st(e, n, o) {
|
|
243
243
|
var d, i;
|
|
244
|
-
const a = await
|
|
245
|
-
const f =
|
|
244
|
+
const a = await Be(e, n, null), r = [], l = (c, m) => {
|
|
245
|
+
const f = I(c);
|
|
246
246
|
for (const v in m)
|
|
247
247
|
m[v] && (f[v] = m[v]);
|
|
248
248
|
return f;
|
|
@@ -251,11 +251,11 @@ 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
|
-
(
|
|
257
|
-
) : f,
|
|
258
|
-
return l(
|
|
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
|
+
) : f, k = C && f ? l(f, C) : y;
|
|
258
|
+
return l(k, y);
|
|
259
259
|
});
|
|
260
260
|
r.push({
|
|
261
261
|
group: c,
|
|
@@ -268,7 +268,7 @@ async function st(e, n, o) {
|
|
|
268
268
|
function We({
|
|
269
269
|
maxHistorySize: e = 50
|
|
270
270
|
}) {
|
|
271
|
-
const n =
|
|
271
|
+
const n = X([]), 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 We({
|
|
|
292
292
|
clear: c
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
|
-
const
|
|
295
|
+
const Ge = {
|
|
296
296
|
async updateMenuModule(e, n) {
|
|
297
297
|
const o = U.RequestRunner.operation(n, e.modules);
|
|
298
298
|
if (o.validateError.length > 0)
|
|
@@ -303,7 +303,7 @@ const je = {
|
|
|
303
303
|
modules: o.result || e.modules,
|
|
304
304
|
_rev: o.id ?? ""
|
|
305
305
|
};
|
|
306
|
-
return
|
|
306
|
+
return Y.cloneDeep({ menu: a, updateId: o.id ?? null });
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
function Z() {
|
|
@@ -329,7 +329,7 @@ function Z() {
|
|
|
329
329
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function je() {
|
|
333
333
|
return {
|
|
334
334
|
restaurants: [],
|
|
335
335
|
menu: { ...Z(), _rev: "" },
|
|
@@ -342,10 +342,10 @@ 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(je()), 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;
|
|
@@ -358,7 +358,7 @@ const at = Ae(
|
|
|
358
358
|
let t = e.menu.modules.catalog.find(
|
|
359
359
|
(u) => u._id === e.currentCatalogId
|
|
360
360
|
);
|
|
361
|
-
return t && ((s = t.linkItemRules) != null && s.length) && (t =
|
|
361
|
+
return t && ((s = t.linkItemRules) != null && s.length) && (t = R.populateCatalog({
|
|
362
362
|
catalog: t,
|
|
363
363
|
ruleGroupSettings: e.menu.ruleGroupSettings,
|
|
364
364
|
items: e.menu.modules.item,
|
|
@@ -370,13 +370,13 @@ 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 = X(Z()), _ = D(!1), y = D(1);
|
|
374
374
|
async function C() {
|
|
375
375
|
var u;
|
|
376
376
|
_.value = !0;
|
|
377
377
|
let t = e.menu.modules.catalog;
|
|
378
378
|
if (i.value && ((u = i.value.linkItemRules) != null && u.length)) {
|
|
379
|
-
const p =
|
|
379
|
+
const p = R.populateCatalog({
|
|
380
380
|
catalog: i.value,
|
|
381
381
|
ruleGroupSettings: e.menu.ruleGroupSettings,
|
|
382
382
|
items: e.menu.modules.item,
|
|
@@ -405,7 +405,7 @@ const at = Ae(
|
|
|
405
405
|
}
|
|
406
406
|
return v.value = s, _.value = !1, y.value = y.value + 1, s;
|
|
407
407
|
}
|
|
408
|
-
const F =
|
|
408
|
+
const F = Y.debounce(C, 200);
|
|
409
409
|
Ke(!0).run(() => {
|
|
410
410
|
Oe(
|
|
411
411
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
@@ -414,7 +414,7 @@ const at = Ae(
|
|
|
414
414
|
}
|
|
415
415
|
);
|
|
416
416
|
});
|
|
417
|
-
const
|
|
417
|
+
const A = h(() => [
|
|
418
418
|
{
|
|
419
419
|
label: "Main",
|
|
420
420
|
value: null
|
|
@@ -423,7 +423,7 @@ const at = Ae(
|
|
|
423
423
|
label: t.name,
|
|
424
424
|
value: t._id
|
|
425
425
|
}))
|
|
426
|
-
]),
|
|
426
|
+
]), B = h(() => {
|
|
427
427
|
const t = v.value.modules.category;
|
|
428
428
|
return [
|
|
429
429
|
...O.value.item.addon ? [
|
|
@@ -433,11 +433,11 @@ const at = Ae(
|
|
|
433
433
|
position: 0
|
|
434
434
|
}
|
|
435
435
|
] : [],
|
|
436
|
-
...
|
|
436
|
+
...E(t, (s) => s.name)
|
|
437
437
|
];
|
|
438
438
|
}), ee = h(() => {
|
|
439
439
|
const t = v.value.modules.subCategory || [];
|
|
440
|
-
return
|
|
440
|
+
return E(t, (s) => s.name);
|
|
441
441
|
}), W = h(() => {
|
|
442
442
|
var s;
|
|
443
443
|
let t = v.value.modules.item;
|
|
@@ -451,17 +451,17 @@ const at = Ae(
|
|
|
451
451
|
return (g == null ? void 0 : g.orderFrom) !== J.F_ORDER_FROM.enum.NONE;
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
|
-
return
|
|
454
|
+
return E(t, (u) => u.code || u.name);
|
|
455
455
|
}), te = h(() => {
|
|
456
|
-
const t = e.menu.modules.category, s =
|
|
456
|
+
const t = e.menu.modules.category, s = E(t, (p) => p.name).reduce(
|
|
457
457
|
(p, g, S) => (p[g._id] = S, p),
|
|
458
458
|
{ "": 0 }
|
|
459
459
|
), u = e.menu.modules.item;
|
|
460
|
-
return
|
|
460
|
+
return E(
|
|
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(() =>
|
|
464
|
+
}), ne = h(() => q(K.value, B.value, W.value)), re = h(() => {
|
|
465
465
|
const t = O.value.item.addon ? [
|
|
466
466
|
{
|
|
467
467
|
_id: e.currentCatalogId ? "" : null,
|
|
@@ -470,7 +470,7 @@ const at = Ae(
|
|
|
470
470
|
},
|
|
471
471
|
...e.menu.modules.category
|
|
472
472
|
] : e.menu.modules.category;
|
|
473
|
-
return
|
|
473
|
+
return q(
|
|
474
474
|
e.menu.modules.variant,
|
|
475
475
|
t,
|
|
476
476
|
e.menu.modules.item
|
|
@@ -481,14 +481,14 @@ const at = Ae(
|
|
|
481
481
|
});
|
|
482
482
|
function oe(t = []) {
|
|
483
483
|
const s = t.map((p) => K.value.find((g) => g._id === p)).filter((p) => !!p);
|
|
484
|
-
return
|
|
484
|
+
return R.fullVariantCombination(s).reduce((p, g) => (p[g.combinationKey] = g.selectionName.join(" / "), p), {});
|
|
485
485
|
}
|
|
486
|
-
const se = h(() =>
|
|
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 || [], {
|
|
487
487
|
selector: "name"
|
|
488
488
|
})), ie = h(() => w(e.menu.modules.unit, { selector: "name" })), ce = h(() => w(Me(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
489
489
|
selector: "name"
|
|
490
490
|
})), le = h(() => e.menu.modules.cookingGuide), de = h(() => {
|
|
491
|
-
const t =
|
|
491
|
+
const t = Ee(e.menu.modules.sku);
|
|
492
492
|
return w(t, { selector: "code" });
|
|
493
493
|
}), O = h(() => {
|
|
494
494
|
const t = !e.currentCatalogId, s = r.value === N.F_MENU_VERSION.v4, u = !e.currentSchedulerId, p = {
|
|
@@ -571,10 +571,10 @@ const at = Ae(
|
|
|
571
571
|
}
|
|
572
572
|
const pe = h(() => {
|
|
573
573
|
var p;
|
|
574
|
-
const t = ["SV5", "SV10"], s =
|
|
574
|
+
const t = ["SV5", "SV10"], s = Ie.Country.getCountryFlattenTaxes(
|
|
575
575
|
z().currentCountry.value
|
|
576
576
|
), u = s.filter((g) => l.value || !t.includes(g.taxCode)).map((g) => ({
|
|
577
|
-
label: `${g.name} (${
|
|
577
|
+
label: `${g.name} (${Re(g.rate)}%)`,
|
|
578
578
|
value: V(g),
|
|
579
579
|
meta: {
|
|
580
580
|
rate: g.rate
|
|
@@ -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, G(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
|
+
}, G = (t) => {
|
|
598
598
|
e.currentCatalogId = t;
|
|
599
599
|
}, _e = (t) => {
|
|
600
600
|
e.currentSchedulerId = t;
|
|
@@ -614,10 +614,10 @@ const at = Ae(
|
|
|
614
614
|
if (s || p.some(
|
|
615
615
|
(S) => [U.F_OPERATION_TYPE.delete, U.F_OPERATION_TYPE.deleteMany].includes(S.operation)
|
|
616
616
|
)) {
|
|
617
|
-
const S = await
|
|
617
|
+
const S = await ke(p, e.menu.modules);
|
|
618
618
|
if (S !== !0) throw new Error(S);
|
|
619
619
|
}
|
|
620
|
-
const g = await
|
|
620
|
+
const g = await Ge.updateMenuModule(e.menu, p);
|
|
621
621
|
return f(g.menu), g;
|
|
622
622
|
} catch (g) {
|
|
623
623
|
o.open({
|
|
@@ -650,8 +650,8 @@ const at = Ae(
|
|
|
650
650
|
currentCatalog: i,
|
|
651
651
|
schedulers: c,
|
|
652
652
|
currentScheduler: m,
|
|
653
|
-
catalogOptions:
|
|
654
|
-
categories:
|
|
653
|
+
catalogOptions: A,
|
|
654
|
+
categories: B,
|
|
655
655
|
subcategories: ee,
|
|
656
656
|
items: W,
|
|
657
657
|
sortedItems: te,
|
|
@@ -671,7 +671,7 @@ const at = Ae(
|
|
|
671
671
|
setMenu: f,
|
|
672
672
|
readMenu: ve,
|
|
673
673
|
readRestaurants: ge,
|
|
674
|
-
selectCatalog:
|
|
674
|
+
selectCatalog: G,
|
|
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
|
+
Be as o,
|
|
711
711
|
at as u
|
|
712
712
|
};
|
|
@@ -2,7 +2,7 @@ import { type Ref } from "vue";
|
|
|
2
2
|
interface Option<T> {
|
|
3
3
|
value: T;
|
|
4
4
|
}
|
|
5
|
-
export declare function useFilterSelector<T>(options: Ref<Option<T>[]>, model: Ref<T[] | undefined | null>): {
|
|
5
|
+
export declare function useFilterSelector<T>(options: Ref<Option<T>[]>, model: Ref<T[] | undefined | null>, filteredOptions?: Ref<Option<T>[]>): {
|
|
6
6
|
allCleared: Ref<boolean, boolean>;
|
|
7
7
|
allSelected: import("vue").ComputedRef<boolean>;
|
|
8
8
|
indeterminate: import("vue").ComputedRef<boolean>;
|
|
@@ -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-CKvTLOA7.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-CKvTLOA7.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-D8y8beXk.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-J976EXhb.js";
|
|
8
|
+
import { L as ge } from "./LinkProductSideSheet-CD9mIEpc.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-CKvTLOA7.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-BWSBAnVp.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-DFSHCb9I.js";
|
|
2
|
+
import "./menu-CKvTLOA7.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent as v, createElementBlock as w, openBlock as B, createElementVNode as d, toDisplayString as f, resolveDirective as P, withDirectives as S } from "vue";
|
|
2
|
+
const x = { class: "space-y-4" }, D = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, E = { class: "fm-typo-en-body-lg-600" }, I = /* @__PURE__ */ v({
|
|
3
|
+
__name: "InfoBasic",
|
|
4
|
+
props: {
|
|
5
|
+
name: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: !0
|
|
8
|
+
},
|
|
9
|
+
value: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: !0
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
setup(s) {
|
|
15
|
+
return (t, n) => (B(), w("div", x, [
|
|
16
|
+
d("div", D, f(s.name), 1),
|
|
17
|
+
d("div", E, f(s.value), 1)
|
|
18
|
+
]));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
async function M(s) {
|
|
22
|
+
const {
|
|
23
|
+
items: t,
|
|
24
|
+
processor: n,
|
|
25
|
+
batchSize: o = 5,
|
|
26
|
+
batchDelay: g = 200,
|
|
27
|
+
onProgress: c,
|
|
28
|
+
progressMessage: a,
|
|
29
|
+
onBatchEnd: r
|
|
30
|
+
} = s, i = t.length, l = [];
|
|
31
|
+
for (let e = 0; e < t.length; e += o) {
|
|
32
|
+
const y = t.slice(e, e + o), h = e + 1, m = Math.min(e + o, t.length), u = `Processing items ${h}-${m}/${i}...`;
|
|
33
|
+
a && (a.value = u), c && c({
|
|
34
|
+
current: e,
|
|
35
|
+
total: i,
|
|
36
|
+
batchStart: h,
|
|
37
|
+
batchEnd: m,
|
|
38
|
+
message: u
|
|
39
|
+
});
|
|
40
|
+
const _ = y.map(n), p = await Promise.all(_);
|
|
41
|
+
l.push(...p), r && r({
|
|
42
|
+
batchIndex: Math.floor(e / o),
|
|
43
|
+
results: p
|
|
44
|
+
}), e + o < t.length && await new Promise((b) => setTimeout(b, g));
|
|
45
|
+
}
|
|
46
|
+
return l;
|
|
47
|
+
}
|
|
48
|
+
function $(s, t, n = 110) {
|
|
49
|
+
const o = P("tooltip");
|
|
50
|
+
return S(s, [[o, { content: t, zIndex: n }]]);
|
|
51
|
+
}
|
|
52
|
+
function k(s, t = 110) {
|
|
53
|
+
return { content: s, zIndex: t };
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
k as _,
|
|
57
|
+
I as a,
|
|
58
|
+
M as p,
|
|
59
|
+
$ as w
|
|
60
|
+
};
|
|
@@ -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 {
|
|
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-CKvTLOA7.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-BWSBAnVp.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.48-prod",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"vue3-lottie": "^3.3.0",
|
|
54
54
|
"vuedraggable": "^4.1.0",
|
|
55
55
|
"xlsx": "^0.18.5",
|
|
56
|
-
"@feedmepos/mf-common": "^1.27.
|
|
56
|
+
"@feedmepos/mf-common": "^1.27.5"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@rollup/plugin-commonjs": "^28.0.2",
|
package/dist/tooltip-B5BiPMx9.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, createElementBlock as s, openBlock as a, createElementVNode as n, toDisplayString as i, resolveDirective as l, withDirectives as p } from "vue";
|
|
2
|
-
const d = { class: "space-y-4" }, u = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, m = { class: "fm-typo-en-body-lg-600" }, y = /* @__PURE__ */ c({
|
|
3
|
-
__name: "InfoBasic",
|
|
4
|
-
props: {
|
|
5
|
-
name: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: !0
|
|
8
|
-
},
|
|
9
|
-
value: {
|
|
10
|
-
type: String,
|
|
11
|
-
required: !0
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
setup(e) {
|
|
15
|
-
return (t, o) => (a(), s("div", d, [
|
|
16
|
-
n("div", u, i(e.name), 1),
|
|
17
|
-
n("div", m, i(e.value), 1)
|
|
18
|
-
]));
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
function f(e, t, o = 110) {
|
|
22
|
-
const r = l("tooltip");
|
|
23
|
-
return p(e, [[r, { content: t, zIndex: o }]]);
|
|
24
|
-
}
|
|
25
|
-
function v(e, t = 110) {
|
|
26
|
-
return { content: e, zIndex: t };
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
v as _,
|
|
30
|
-
y as a,
|
|
31
|
-
f as w
|
|
32
|
-
};
|