@feedmepos/mf-menu 0.20.1 → 0.20.2
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/{ApplyProduct.vue_vue_type_script_setup_true_lang-CYQnhiBN.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Ds2qfY_X.js} +2 -2
- package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-DKlRd-kN.js → ApplyProducts.vue_vue_type_script_setup_true_lang-BRepaPR3.js} +2 -2
- package/dist/{Catalog-C_MjlkAH.js → Catalog-S5KDEWzG.js} +3 -3
- package/dist/{Category-hDpbuKdl.js → Category-DLaNEtA5.js} +6 -6
- package/dist/{CookingGuide-DoTQcfZo.js → CookingGuide-DSGZapxz.js} +4 -4
- package/dist/{Group-CnbKRGYg.js → Group-B0VQ-64x.js} +4 -4
- package/dist/{Group-CIwshUNs.js → Group-CBMSkmwQ.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BmqRBXoX.js → Group.vue_vue_type_script_setup_true_lang-DKzrhXtM.js} +43 -43
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BKuXmC_M.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BV-FC8tM.js} +2 -2
- package/dist/{Ingredient-E4dxFuRx.js → Ingredient-CnPQ0kiR.js} +5 -5
- package/dist/{LinkProductSideSheet-CN4VpQoC.js → LinkProductSideSheet-A26Otbdm.js} +9 -9
- package/dist/{PrintRoute-Cp9qAt37.js → PrintRoute-BlJMdPP0.js} +3 -3
- package/dist/{Product-CukHHpY7.js → Product-BvD813LL.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-Bwlojikf.js → Product.vue_vue_type_script_setup_true_lang-D_oKtXbh.js} +251 -247
- package/dist/{Products----2Vzee.js → Products-B8Ok-bkN.js} +8 -8
- package/dist/{Publish-CTL7_VDW.js → Publish-qBiJUQ4X.js} +33 -33
- package/dist/{Recipe-C71_p_4o.js → Recipe-CJxJJAUV.js} +34 -34
- package/dist/{Scheduler-CMY10OCN.js → Scheduler-DfAMwXCu.js} +2 -2
- package/dist/{SchedulerSelector.vue_vue_type_script_setup_true_lang-DIyqCShi.js → SchedulerSelector.vue_vue_type_script_setup_true_lang-CArE_Hua.js} +1 -1
- package/dist/ServingSequence-DxDMeto7.js +4 -0
- package/dist/{Setting-N_IomrUQ.js → Setting-BbgJcWsN.js} +1 -1
- package/dist/{Setting.vue_vue_type_script_setup_true_lang-BTiZlc2E.js → Setting.vue_vue_type_script_setup_true_lang-BbVEzNve.js} +3 -3
- package/dist/{Takeaway-C6wwnu5v.js → Takeaway-CMDFYeUw.js} +1 -1
- package/dist/{Takeaway-DThy6R7w.js → Takeaway-wAXsZQN2.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CrIDoLuT.js → Takeaway.vue_vue_type_script_setup_true_lang-DSphRs_i.js} +4 -4
- package/dist/{TaxSetting-f09g9uzO.js → TaxSetting-C1XOTv-9.js} +4 -4
- package/dist/{Unit-DpN-cIoI.js → Unit-BW3iqgp8.js} +2 -2
- package/dist/{Variant-DVj3Rl1M.js → Variant-BJIxp9PJ.js} +2 -2
- package/dist/{_id_-D_LlvKj8.js → _id_-B25OxuPV.js} +6 -6
- package/dist/{app-Cn8ejMq2.js → app-BFJlAowN.js} +63563 -80078
- package/dist/app.js +2 -2
- package/dist/assets/linked-status-4i88AmvK.js +24 -0
- package/dist/assets/validate-menu-CTKwgXfw.js +24 -0
- package/dist/{catalog-DYe86x7O.js → catalog-B-Z6lEFK.js} +1 -1
- package/dist/{catalog-B4hTLUkg.js → catalog-Do7RfIKm.js} +22510 -22511
- package/dist/{category-Cn9bav8Y.js → category-DEWEor3m.js} +14 -14
- package/dist/{currency-ak89ne8W.js → currency-33gUke3q.js} +1 -1
- package/dist/{index-B-PHXxgb.js → index-BEdHzZvu.js} +44 -44
- package/dist/index-BXl09ebx.js +21908 -0
- package/dist/{item-CtPBj2_Y.js → item-BooojPpg.js} +930 -930
- package/dist/{lodash-QRXx-M3X.js → lodash-247YxYiQ.js} +439 -439
- package/dist/{menu-DyHXKzGq.js → menu-DCnWrgH7.js} +1 -1
- package/dist/{object-DrR2KRA7.js → object-B2cP_UeG.js} +19 -19
- package/dist/{scheduler-C8HLf4JH.js → scheduler-0cChIv2I.js} +4 -4
- package/dist/{takeaway-D1YMjOoE.js → takeaway-mwqVQ1ij.js} +4 -4
- package/dist/{toExcel-CeOvEnsu.js → toExcel-Dha8Vf3u.js} +237 -237
- package/dist/{unit-DJPAcXZf.js → unit-BgfdgXAu.js} +3 -3
- package/dist/{vuedraggable-WU01qJgi.js → vuedraggable-BEszc36M.js} +110 -110
- package/package.json +3 -3
- package/dist/ServingSequence-C6L1_ijp.js +0 -4
- package/dist/assets/linked-status-CcasRdDR.js +0 -24
- package/dist/assets/validate-menu-Dsx_6ljN.js +0 -24
- package/dist/index-D1sxBB7B.js +0 -7392
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as F, computed as f, ref as h, resolveComponent as S, openBlock as u, createBlock as g, unref as e, withCtx as p, createElementVNode as i, toDisplayString as U, createVNode as o, createCommentVNode as A, createElementBlock as T, Fragment as E } from "vue";
|
|
2
|
-
import { u as L, a as j, c as I, e as P, b as H, m as G, d as J, _ as K, f as V, D as Q } from "./app-
|
|
2
|
+
import { u as L, a as j, c as I, e as P, b as H, m as G, d as J, _ as K, f as V, D as Q } from "./app-BFJlAowN.js";
|
|
3
3
|
import { useCoreStore as W, useI18n as X } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as q, useDialogChild as Z, useSnackbar as z, useBreakpoints as ee, FmButtonColorThemeVariant as M, FmButtonVariant as D } from "@feedmepos/ui-library";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
import { L as N } from "./LinkProductSideSheet-
|
|
7
|
-
import { _ as te, a as B } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as oe, a as ne } from "./menu-
|
|
9
|
-
import { u as ae } from "./item-
|
|
10
|
-
import { u as re, a as se, w as le } from "./catalog-
|
|
11
|
-
import { m as ie } from "./toExcel-
|
|
12
|
-
import { l as ue } from "./lodash-
|
|
6
|
+
import { L as N } from "./LinkProductSideSheet-A26Otbdm.js";
|
|
7
|
+
import { _ as te, a as B } from "./Product.vue_vue_type_script_setup_true_lang-D_oKtXbh.js";
|
|
8
|
+
import { u as oe, a as ne } from "./menu-DCnWrgH7.js";
|
|
9
|
+
import { u as ae } from "./item-BooojPpg.js";
|
|
10
|
+
import { u as re, a as se, w as le } from "./catalog-Do7RfIKm.js";
|
|
11
|
+
import { m as ie } from "./toExcel-Dha8Vf3u.js";
|
|
12
|
+
import { l as ue } from "./lodash-247YxYiQ.js";
|
|
13
13
|
import { _ as ce, a as R } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DPis3HVx.js";
|
|
14
14
|
const me = { class: "space-y-24 mb-24" }, de = ["innerHTML"], pe = { class: "flex justify-end gap-8" }, fe = /* @__PURE__ */ F({
|
|
15
15
|
__name: "ConfirmActionDialog",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as T, computed as V, ref as A, resolveComponent as C, openBlock as h, createBlock as P, unref as i, withCtx as U, createElementVNode as o, toDisplayString as F, createVNode as n, createElementBlock as M, Fragment as B, renderList as Y, onMounted as ne, withModifiers as j, createCommentVNode as se, h as K } from "vue";
|
|
2
|
-
import { d as W, D as J, c as ue, e as ie, a as Q,
|
|
3
|
-
import { useSnackbar as X, useDialogChild as
|
|
4
|
-
import { u as
|
|
2
|
+
import { d as W, D as J, c as ue, e as ie, a as Q, v as re, u as ce, b as de, j as me, k as pe } from "./app-BFJlAowN.js";
|
|
3
|
+
import { useSnackbar as X, useDialogChild as fe, useDialog as ge, components as G } from "@feedmepos/ui-library";
|
|
4
|
+
import { u as ve, l as be } from "./lodash-247YxYiQ.js";
|
|
5
5
|
import { useI18n as q, useCoreStore as _e, RestaurantSelector as he } from "@feedmepos/mf-common";
|
|
6
6
|
import { _ as ye } from "./TextChip.vue_vue_type_script_setup_true_lang-CNp85hoQ.js";
|
|
7
7
|
import { _ as Ce, w as ke } from "./InfoBasic.vue_vue_type_script_setup_true_lang-DxQBDu16.js";
|
|
@@ -36,27 +36,27 @@ const xe = { class: "fm-typo-en-title-md-600" }, Ve = { class: "mt-40" }, Fe = {
|
|
|
36
36
|
label: r("menu.publish.update_catalog_dialog.sections.default.use_default"),
|
|
37
37
|
value: null
|
|
38
38
|
},
|
|
39
|
-
...s.catalogs.map((
|
|
40
|
-
label:
|
|
41
|
-
value:
|
|
39
|
+
...s.catalogs.map((f) => ({
|
|
40
|
+
label: f.name,
|
|
41
|
+
value: f._id
|
|
42
42
|
}))
|
|
43
43
|
]), p = V(() => [
|
|
44
44
|
{
|
|
45
45
|
label: r("menu.publish.update_catalog_dialog.sections.default.use_default"),
|
|
46
46
|
value: null
|
|
47
47
|
},
|
|
48
|
-
...s.catalogs.map((
|
|
49
|
-
label:
|
|
50
|
-
value:
|
|
48
|
+
...s.catalogs.map((f) => ({
|
|
49
|
+
label: f.name,
|
|
50
|
+
value: f._id
|
|
51
51
|
}))
|
|
52
52
|
]), t = A(y()), c = A(!1), b = A(void 0);
|
|
53
|
-
function S(
|
|
54
|
-
b.value =
|
|
53
|
+
function S(f) {
|
|
54
|
+
b.value = f ? W(f) : y(), t.value = W(b.value), c.value = !0;
|
|
55
55
|
}
|
|
56
56
|
function x() {
|
|
57
57
|
c.value = !1;
|
|
58
58
|
}
|
|
59
|
-
const L =
|
|
59
|
+
const L = ve(
|
|
60
60
|
() => !be.isEqual(b.value, t.value),
|
|
61
61
|
() => {
|
|
62
62
|
x();
|
|
@@ -65,11 +65,11 @@ const xe = { class: "fm-typo-en-title-md-600" }, Ve = { class: "mt-40" }, Fe = {
|
|
|
65
65
|
function E() {
|
|
66
66
|
x(), m("onComplete", t.value);
|
|
67
67
|
}
|
|
68
|
-
return (
|
|
68
|
+
return (f, g) => {
|
|
69
69
|
const $ = C("FmSelect"), N = C("FmCheckbox"), R = C("FmButton"), D = C("FmSideSheet");
|
|
70
70
|
return h(), P(D, {
|
|
71
71
|
modelValue: c.value,
|
|
72
|
-
"onUpdate:modelValue": g[5] || (g[5] = (
|
|
72
|
+
"onUpdate:modelValue": g[5] || (g[5] = (v) => c.value = v),
|
|
73
73
|
"max-width": 560,
|
|
74
74
|
"onOn:clickedAway": i(L)
|
|
75
75
|
}, {
|
|
@@ -95,35 +95,35 @@ const xe = { class: "fm-typo-en-title-md-600" }, Ve = { class: "mt-40" }, Fe = {
|
|
|
95
95
|
default: U(() => [
|
|
96
96
|
n($, {
|
|
97
97
|
modelValue: t.value.catalogId,
|
|
98
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
98
|
+
"onUpdate:modelValue": g[0] || (g[0] = (v) => t.value.catalogId = v),
|
|
99
99
|
items: _.value,
|
|
100
100
|
class: "mb-24",
|
|
101
101
|
label: i(r)("menu.publish.update_catalog_dialog.sections.default.label")
|
|
102
102
|
}, null, 8, ["modelValue", "items", "label"]),
|
|
103
103
|
n($, {
|
|
104
104
|
modelValue: t.value.takeawayCatalog,
|
|
105
|
-
"onUpdate:modelValue": g[1] || (g[1] = (
|
|
105
|
+
"onUpdate:modelValue": g[1] || (g[1] = (v) => t.value.takeawayCatalog = v),
|
|
106
106
|
items: p.value,
|
|
107
107
|
class: "mb-24",
|
|
108
108
|
label: i(r)("menu.publish.update_catalog_dialog.sections.pos_takeaway.label")
|
|
109
109
|
}, null, 8, ["modelValue", "items", "label"]),
|
|
110
110
|
n($, {
|
|
111
111
|
modelValue: t.value.pickupCatalog,
|
|
112
|
-
"onUpdate:modelValue": g[2] || (g[2] = (
|
|
112
|
+
"onUpdate:modelValue": g[2] || (g[2] = (v) => t.value.pickupCatalog = v),
|
|
113
113
|
items: p.value,
|
|
114
114
|
label: i(r)("menu.publish.update_catalog_dialog.sections.pickup.label")
|
|
115
115
|
}, null, 8, ["modelValue", "items", "label"]),
|
|
116
116
|
o("div", Ve, [
|
|
117
117
|
o("div", Fe, F(i(r)("menu.publish.update_catalog_dialog.sections.additional.title")), 1),
|
|
118
118
|
o("div", Se, F(i(r)("menu.publish.update_catalog_dialog.sections.additional.subtitle")), 1),
|
|
119
|
-
(h(!0), M(B, null, Y(k.catalogs, (
|
|
120
|
-
key:
|
|
119
|
+
(h(!0), M(B, null, Y(k.catalogs, (v) => (h(), M("div", {
|
|
120
|
+
key: v._id
|
|
121
121
|
}, [
|
|
122
122
|
n(N, {
|
|
123
123
|
modelValue: t.value.additionalCatalogs,
|
|
124
124
|
"onUpdate:modelValue": g[3] || (g[3] = (I) => t.value.additionalCatalogs = I),
|
|
125
|
-
label:
|
|
126
|
-
value:
|
|
125
|
+
label: v.name,
|
|
126
|
+
value: v._id
|
|
127
127
|
}, null, 8, ["modelValue", "label", "value"])
|
|
128
128
|
]))), 128))
|
|
129
129
|
])
|
|
@@ -216,7 +216,7 @@ const Me = {
|
|
|
216
216
|
}
|
|
217
217
|
];
|
|
218
218
|
});
|
|
219
|
-
return ne(async () => y()),
|
|
219
|
+
return ne(async () => y()), fe(), (c, b) => {
|
|
220
220
|
const S = C("FmCircularProgress");
|
|
221
221
|
return s.value ? (h(), M("div", Me, [
|
|
222
222
|
n(S, { size: "lg" })
|
|
@@ -368,7 +368,7 @@ const Me = {
|
|
|
368
368
|
function L(e) {
|
|
369
369
|
return e ? J(e).format("DD/MM/YYYY hh:mmA") : "";
|
|
370
370
|
}
|
|
371
|
-
const E = V(() => t.state.menu.modules.catalog),
|
|
371
|
+
const E = V(() => t.state.menu.modules.catalog), f = V(() => R.queue.value.some((e) => e.id === t.state.menu._id));
|
|
372
372
|
function g(e) {
|
|
373
373
|
var a;
|
|
374
374
|
return e ? ((a = E.value.find((d) => d._id === e)) == null ? void 0 : a.name) ?? l("menu.publish.labels.catalog.invalid") : l("menu.publish.labels.catalog.main");
|
|
@@ -397,9 +397,9 @@ const Me = {
|
|
|
397
397
|
successMessage: `Published to ${a}`
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
|
-
const
|
|
400
|
+
const v = A(null), I = V(() => t.state.restaurants.filter((e) => {
|
|
401
401
|
var a;
|
|
402
|
-
return !
|
|
402
|
+
return !v.value || ((a = v.value) == null ? void 0 : a.includes(e._id));
|
|
403
403
|
}).map((e) => ({
|
|
404
404
|
...e,
|
|
405
405
|
catalog: {
|
|
@@ -415,7 +415,7 @@ const Me = {
|
|
|
415
415
|
}) => a.toLowerCase().includes(e) || d.default.toLowerCase().includes(e) || d.takeaway.toLowerCase().includes(e) || d.pickup.toLowerCase().includes(e));
|
|
416
416
|
});
|
|
417
417
|
async function H() {
|
|
418
|
-
if (
|
|
418
|
+
if (f.value) return;
|
|
419
419
|
const e = Object.keys(m.value).map(Number).filter((a) => m.value[a]);
|
|
420
420
|
if (e.length === 0 || e.length === I.value.length)
|
|
421
421
|
await R.minor(async () => await t.publishAllMenu(), {
|
|
@@ -435,15 +435,15 @@ const Me = {
|
|
|
435
435
|
label: x.value,
|
|
436
436
|
class: "xs:hidden text-fm-color-primary bg-fm-color-system-warning-100"
|
|
437
437
|
}, null, 8, ["label"]), n(z), o("div", Oe, [n(O, {
|
|
438
|
-
disabled:
|
|
438
|
+
disabled: f.value,
|
|
439
439
|
icon: "ios_share",
|
|
440
440
|
label: i(l)("menu.publish.actions.publish_all"),
|
|
441
441
|
variant: "primary",
|
|
442
442
|
onClick: a[0] || (a[0] = () => H())
|
|
443
443
|
}, null, 8, ["disabled", "label"])])]), o("div", je, [n(i(he), {
|
|
444
444
|
multiple: "",
|
|
445
|
-
modelValue:
|
|
446
|
-
"onUpdate:modelValue": a[1] || (a[1] = (u) =>
|
|
445
|
+
modelValue: v.value,
|
|
446
|
+
"onUpdate:modelValue": a[1] || (a[1] = (u) => v.value = u)
|
|
447
447
|
}, null, 8, ["modelValue"]), n(ae, {
|
|
448
448
|
modelValue: _.value,
|
|
449
449
|
"onUpdate:modelValue": a[2] || (a[2] = (u) => _.value = u),
|
|
@@ -459,7 +459,7 @@ const Me = {
|
|
|
459
459
|
modelValue: m.value,
|
|
460
460
|
"onUpdate:modelValue": a[3] || (a[3] = (u) => m.value = u),
|
|
461
461
|
"column-defs": y,
|
|
462
|
-
loading:
|
|
462
|
+
loading: f.value,
|
|
463
463
|
"page-size": I.value.length,
|
|
464
464
|
"row-data": I.value,
|
|
465
465
|
"search-value": _.value,
|
|
@@ -486,12 +486,12 @@ const Me = {
|
|
|
486
486
|
row: u
|
|
487
487
|
}, null, 8, ["row"])]), o("div", Ye, [o("div", qe, F(u.name), 1), o("div", He, [o("div", null, "Default: " + F(u.catalog.default), 1), o("div", null, "POS takeaway: " + F(u.catalog.takeaway), 1), o("div", null, "Pickup: " + F(u.catalog.pickup), 1)])])]), o("div", We, [b.value && u.revertConfig ? (h(), P(O, {
|
|
488
488
|
key: 0,
|
|
489
|
-
disabled:
|
|
489
|
+
disabled: f.value,
|
|
490
490
|
icon: "undo",
|
|
491
491
|
variant: "tertiary",
|
|
492
492
|
onClick: j(() => S(u), ["stop"])
|
|
493
493
|
}, null, 8, ["disabled", "onClick"])) : se("", !0), n(O, {
|
|
494
|
-
disabled:
|
|
494
|
+
disabled: f.value,
|
|
495
495
|
icon: "ios_share",
|
|
496
496
|
variant: "tertiary",
|
|
497
497
|
onClick: j(() => D($(u)), ["stop"])
|
|
@@ -513,7 +513,7 @@ const Me = {
|
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
}, null, 8, ["title", "subtitle", "action"]))]), o("div", Ge, [n(O, {
|
|
516
|
-
disabled:
|
|
516
|
+
disabled: f.value,
|
|
517
517
|
icon: "ios_share",
|
|
518
518
|
label: i(l)("menu.publish.actions.publish_all"),
|
|
519
519
|
variant: "fab",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { i as K, a as I, d as te, m as P, e as Y, g as ae, b as T, h as U, u as G, l as oe, _ as le, k as ie, j as se, f as ce } from "./app-
|
|
1
|
+
import { defineComponent as z, computed as h, ref as w, reactive as Q, watch as W, resolveComponent as k, openBlock as g, createElementBlock as F, Fragment as E, renderSlot as X, createVNode as m, unref as e, withCtx as x, createElementVNode as c, toDisplayString as S, getCurrentInstance as Z, h as L, withModifiers as D, createBlock as O, renderList as ee, normalizeClass as j, createCommentVNode as ne } from "vue";
|
|
2
|
+
import { i as K, a as I, d as te, m as P, e as Y, g as ae, b as T, h as U, u as G, l as oe, _ as le, k as ie, j as se, f as ce } from "./app-BFJlAowN.js";
|
|
3
3
|
import { useSnackbar as $, components as q, useDialog as re, FmButtonVariant as H, useBreakpoints as ue } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as A } from "@feedmepos/mf-common";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
import { defineStore as
|
|
7
|
-
import "./unit-
|
|
8
|
-
import { u as
|
|
9
|
-
import { _ as B,
|
|
10
|
-
const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */
|
|
6
|
+
import { defineStore as de } from "pinia";
|
|
7
|
+
import "./unit-BgfdgXAu.js";
|
|
8
|
+
import { u as me, l as pe } from "./lodash-247YxYiQ.js";
|
|
9
|
+
import { _ as B, g as fe } from "./index-BXl09ebx.js";
|
|
10
|
+
const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */ z({
|
|
11
11
|
__name: "Form",
|
|
12
12
|
props: {
|
|
13
13
|
initialValue: { default: void 0 },
|
|
@@ -20,7 +20,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
20
20
|
ae.isBoolean(n) ? o.value = n : o.value = !o.value;
|
|
21
21
|
}, t = Q(
|
|
22
22
|
p.initialValue ? te(p.initialValue) : P.generator.initRecipe()
|
|
23
|
-
), R = h(() => p.invalidSkuAndRecipe.skus), a = h(() => p.invalidSkuAndRecipe.recipes), y =
|
|
23
|
+
), R = h(() => p.invalidSkuAndRecipe.skus), a = h(() => p.invalidSkuAndRecipe.recipes), y = me(
|
|
24
24
|
() => !pe.isEqual(t, p.initialValue || P.generator.initRecipe()),
|
|
25
25
|
() => {
|
|
26
26
|
o.value = !1;
|
|
@@ -61,10 +61,10 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
61
61
|
const N = k("FmTextField"), M = k("FmFormGroup"), s = k("fm-button"), J = k("fm-side-sheet");
|
|
62
62
|
return g(), F(E, null, [
|
|
63
63
|
X(n.$slots, "default", { trigger: V }),
|
|
64
|
-
|
|
64
|
+
m(J, {
|
|
65
65
|
id: "unit-form",
|
|
66
66
|
modelValue: o.value,
|
|
67
|
-
"onUpdate:modelValue": i[5] || (i[5] = (
|
|
67
|
+
"onUpdate:modelValue": i[5] || (i[5] = (d) => o.value = d),
|
|
68
68
|
"is-container": e(q).FmForm,
|
|
69
69
|
"is-container-props": {
|
|
70
70
|
onValidationSuccess: l,
|
|
@@ -79,14 +79,14 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
79
79
|
]),
|
|
80
80
|
"side-sheet-footer": x(() => [
|
|
81
81
|
c("div", ge, [
|
|
82
|
-
|
|
82
|
+
m(s, {
|
|
83
83
|
label: _.value,
|
|
84
84
|
loading: v.value,
|
|
85
85
|
size: "lg",
|
|
86
86
|
type: "submit",
|
|
87
87
|
variant: "primary"
|
|
88
88
|
}, null, 8, ["label", "loading"]),
|
|
89
|
-
|
|
89
|
+
m(s, {
|
|
90
90
|
label: e(u)("menu.common.actions.cancel"),
|
|
91
91
|
size: "lg",
|
|
92
92
|
variant: "tertiary",
|
|
@@ -97,34 +97,34 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
97
97
|
default: x(() => [
|
|
98
98
|
c("div", ve, [
|
|
99
99
|
c("div", ye, [
|
|
100
|
-
|
|
100
|
+
m(N, {
|
|
101
101
|
class: "flex-2",
|
|
102
102
|
label: e(u)("menu.recipe.columns.name"),
|
|
103
103
|
modelValue: t.name,
|
|
104
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
104
|
+
"onUpdate:modelValue": i[0] || (i[0] = (d) => t.name = d),
|
|
105
105
|
autofocus: "",
|
|
106
106
|
rules: [
|
|
107
|
-
(
|
|
107
|
+
(d) => !!d || e(u)("menu.common.validation.required", {
|
|
108
108
|
field: e(u)("menu.recipe.columns.name").toLowerCase()
|
|
109
109
|
})
|
|
110
110
|
]
|
|
111
111
|
}, null, 8, ["label", "modelValue", "rules"])
|
|
112
112
|
]),
|
|
113
|
-
|
|
113
|
+
m(M, {
|
|
114
114
|
modelValue: t.contains,
|
|
115
|
-
"onUpdate:modelValue": i[3] || (i[3] = (
|
|
116
|
-
rules: [(
|
|
115
|
+
"onUpdate:modelValue": i[3] || (i[3] = (d) => t.contains = d),
|
|
116
|
+
rules: [(d) => d.length > 0 || e(u)("menu.recipe.validation.bind_required")]
|
|
117
117
|
}, {
|
|
118
118
|
default: x(() => [
|
|
119
|
-
|
|
119
|
+
m(B, {
|
|
120
120
|
modelValue: t.contains,
|
|
121
|
-
"onUpdate:modelValue": i[1] || (i[1] = (
|
|
121
|
+
"onUpdate:modelValue": i[1] || (i[1] = (d) => t.contains = d),
|
|
122
122
|
type: e(Y.F_INVENTORY_BINDING_TYPE).enum.RECIPE,
|
|
123
123
|
"filter-option-ids": a.value
|
|
124
124
|
}, null, 8, ["modelValue", "type", "filter-option-ids"]),
|
|
125
|
-
|
|
125
|
+
m(B, {
|
|
126
126
|
modelValue: t.contains,
|
|
127
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
127
|
+
"onUpdate:modelValue": i[2] || (i[2] = (d) => t.contains = d),
|
|
128
128
|
type: e(Y.F_INVENTORY_BINDING_TYPE).enum.SKU,
|
|
129
129
|
"filter-option-ids": R.value
|
|
130
130
|
}, null, 8, ["modelValue", "type", "filter-option-ids"])
|
|
@@ -138,7 +138,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
138
138
|
], 64);
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
}), he = be, ke =
|
|
141
|
+
}), he = be, ke = de("recipe-manager", () => {
|
|
142
142
|
const C = re(), r = $(), u = I(r), p = K(u), f = G(), b = Z(), { t: _ } = A(), v = (a) => {
|
|
143
143
|
var l, n;
|
|
144
144
|
const { vNode: y } = oe(
|
|
@@ -151,7 +151,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
151
151
|
async function o(a) {
|
|
152
152
|
v({
|
|
153
153
|
initialValue: a,
|
|
154
|
-
invalidSkuAndRecipe: a ? fe
|
|
154
|
+
invalidSkuAndRecipe: a ? fe({
|
|
155
155
|
id: a._id,
|
|
156
156
|
skus: f.skus,
|
|
157
157
|
recipes: f.state.menu.modules.recipe
|
|
@@ -202,7 +202,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
202
202
|
}, Fe = {
|
|
203
203
|
class: "flex justify-end items-center my-8 px-16"
|
|
204
204
|
}, Re = {
|
|
205
|
-
class: /* @__PURE__ */
|
|
205
|
+
class: /* @__PURE__ */ j(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
|
|
206
206
|
}, Ce = ["onClick"], Ee = {
|
|
207
207
|
class: "flex-1"
|
|
208
208
|
}, Se = {
|
|
@@ -217,7 +217,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
217
217
|
class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4"
|
|
218
218
|
}, Te = {
|
|
219
219
|
class: "fm-typo-en-body-md-600 font-semibold"
|
|
220
|
-
},
|
|
220
|
+
}, ze = /* @__PURE__ */ z({
|
|
221
221
|
__name: "Recipe",
|
|
222
222
|
setup(C) {
|
|
223
223
|
const {
|
|
@@ -277,7 +277,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
277
277
|
key: 1
|
|
278
278
|
}, [a.value ? (g(), F(E, {
|
|
279
279
|
key: 1
|
|
280
|
-
}, [c("div", Fe, [
|
|
280
|
+
}, [c("div", Fe, [m(n, {
|
|
281
281
|
modelValue: v.value,
|
|
282
282
|
"onUpdate:modelValue": l[2] || (l[2] = (s) => v.value = s),
|
|
283
283
|
autofocus: "",
|
|
@@ -285,21 +285,21 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
285
285
|
placeholder: e(r)("menu.recipe.table.search.placeholder")
|
|
286
286
|
}, null, 8, ["modelValue", "placeholder"])]), c("div", Re, [(g(!0), F(E, null, ee(_.value, (s) => (g(), F("div", {
|
|
287
287
|
key: s._id,
|
|
288
|
-
class:
|
|
288
|
+
class: j(["py-12 px-16", "flex space-x-8", "items-center", "cursor-pointer"]),
|
|
289
289
|
onClick: () => e(f).updateRecipe(s)
|
|
290
|
-
}, [c("div", Ee, [c("p", Se, S(s.name), 1), c("p", we, S(s.ingredients), 1)]),
|
|
290
|
+
}, [c("div", Ee, [c("p", Se, S(s.name), 1), c("p", we, S(s.ingredients), 1)]), m(N, {
|
|
291
291
|
variant: e(H).Tertiary,
|
|
292
292
|
"prepend-icon": "delete",
|
|
293
293
|
"text-color": "neutral-gray-400",
|
|
294
294
|
onClick: D(() => e(f).deleteRecipe(s), ["stop"])
|
|
295
|
-
}, null, 8, ["variant", "onClick"])], 8, Ce))), 128))])], 64)) : (g(), F("div", Ve, [c("div", xe, [
|
|
295
|
+
}, null, 8, ["variant", "onClick"])], 8, Ce))), 128))])], 64)) : (g(), F("div", Ve, [c("div", xe, [m(n, {
|
|
296
296
|
modelValue: v.value,
|
|
297
297
|
"onUpdate:modelValue": l[0] || (l[0] = (s) => v.value = s),
|
|
298
298
|
autofocus: "",
|
|
299
299
|
class: "mb-8 w-[320px]",
|
|
300
300
|
placeholder: e(r)("menu.recipe.table.search.placeholder")
|
|
301
|
-
}, null, 8, ["modelValue", "placeholder"])]),
|
|
302
|
-
default: x(() => [
|
|
301
|
+
}, null, 8, ["modelValue", "placeholder"])]), m(se, null, {
|
|
302
|
+
default: x(() => [m(i, {
|
|
303
303
|
"column-defs": o.value,
|
|
304
304
|
"page-size": _.value.length,
|
|
305
305
|
"row-data": _.value,
|
|
@@ -310,7 +310,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
310
310
|
}, null, 8, ["column-defs", "page-size", "row-data"])]),
|
|
311
311
|
_: 1
|
|
312
312
|
})]))], 64))]),
|
|
313
|
-
"append-heading": x(() => [c("div", Ne, [c("div", Me, [c("div", Oe, [c("p", Te, S(t.value), 1)])]),
|
|
313
|
+
"append-heading": x(() => [c("div", Ne, [c("div", Me, [c("div", Oe, [c("p", Te, S(t.value), 1)])]), m(M), b.value.length > 0 ? (g(), O(ce, {
|
|
314
314
|
key: 0,
|
|
315
315
|
label: e(r)("menu.recipe.actions.add"),
|
|
316
316
|
"prepend-icon": "add",
|
|
@@ -322,5 +322,5 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
export {
|
|
325
|
-
|
|
325
|
+
ze as default
|
|
326
326
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as N, computed as y, h as c, withModifiers as U, ref as V, resolveComponent as _, openBlock as d, createBlock as k, unref as m, withCtx as h, createElementVNode as l, createCommentVNode as H, createElementBlock as D, Fragment as I, createVNode as f, renderList as T, toDisplayString as S } from "vue";
|
|
2
|
-
import { b as i, u as W, i as Q, a as G, _ as J, f as X, k as Z, j as ee } from "./app-
|
|
2
|
+
import { b as i, u as W, i as Q, a as G, _ as J, f as X, k as Z, j as ee } from "./app-BFJlAowN.js";
|
|
3
3
|
import { components as te, useDialog as ne, useSnackbar as ae } from "@feedmepos/ui-library";
|
|
4
|
-
import { d as oe, _ as se, u as le, c as re } from "./scheduler-
|
|
4
|
+
import { d as oe, _ as se, u as le, c as re } from "./scheduler-0cChIv2I.js";
|
|
5
5
|
import { useI18n as ue } from "@feedmepos/mf-common";
|
|
6
6
|
const ce = {
|
|
7
7
|
class: "flex flex-1 justify-end"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as k, computed as r, ref as I, resolveComponent as l, openBlock as u, createBlock as p, withCtx as m, createVNode as s, createElementVNode as d, toDisplayString as w, unref as _, createElementBlock as M, Fragment as V, renderList as L } from "vue";
|
|
2
|
-
import { u as g } from "./app-
|
|
2
|
+
import { u as g } from "./app-BFJlAowN.js";
|
|
3
3
|
import { useI18n as B } from "@feedmepos/mf-common";
|
|
4
4
|
const E = { class: "p-4" }, N = { class: "flex-1 overflow-y-auto min-h-0" }, j = /* @__PURE__ */ k({
|
|
5
5
|
__name: "SchedulerSelector",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as ue, computed as p, ref as P, watch as ie, watchEffect as re, resolveComponent as m, openBlock as r, createElementBlock as S, createVNode as s, normalizeClass as W, withCtx as c, createElementVNode as v, createBlock as g, unref as e, createCommentVNode as y, Fragment as $, renderList as z, createTextVNode as me, toDisplayString as U } from "vue";
|
|
2
|
-
import { u as ce, a as de, b as f, i as pe, c as ve, d as w } from "./app-
|
|
3
|
-
import { C as H } from "./catalog-
|
|
4
|
-
import { C as _, a as k, _ as j } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as ce, a as de, b as f, i as pe, c as ve, d as w } from "./app-BFJlAowN.js";
|
|
3
|
+
import { C as H } from "./catalog-B-Z6lEFK.js";
|
|
4
|
+
import { C as _, a as k, _ as j } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BV-FC8tM.js";
|
|
5
5
|
import { useSnackbar as ge, useDialog as fe, FmButtonColorThemeVariant as q, FmButtonVariant as J, components as _e } from "@feedmepos/ui-library";
|
|
6
6
|
import { useCoreStore as be, useI18n as ye } from "@feedmepos/mf-common";
|
|
7
7
|
import { _ as ke } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as f, computed as y, ref as k, openBlock as r, createBlock as d, unref as a, withCtx as s, createVNode as u, createElementVNode as t, toDisplayString as b, createCommentVNode as g } from "vue";
|
|
2
|
-
import { a as v } from "./menu-
|
|
3
|
-
import { a as w, u as x, _ as M, b as T, h, f as E, i as V } from "./app-
|
|
4
|
-
import { _ as C } from "./Takeaway.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { a as v } from "./menu-DCnWrgH7.js";
|
|
3
|
+
import { a as w, u as x, _ as M, b as T, h, f as E, i as V } from "./app-BFJlAowN.js";
|
|
4
|
+
import { _ as C } from "./Takeaway.vue_vue_type_script_setup_true_lang-DSphRs_i.js";
|
|
5
5
|
import { useSnackbar as N } from "@feedmepos/ui-library";
|
|
6
6
|
import { useI18n as S } from "@feedmepos/mf-common";
|
|
7
7
|
import "vue-router";
|
|
8
|
-
import { T as L, l as O } from "./takeaway-
|
|
8
|
+
import { T as L, l as O } from "./takeaway-mwqVQ1ij.js";
|
|
9
9
|
const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "flex items-center" }, F = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, D = { class: "fm-typo-en-body-md-600 font-semibold" }, G = /* @__PURE__ */ f({
|
|
10
10
|
__name: "Takeaway",
|
|
11
11
|
setup(I) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { getCurrentInstance as te, defineComponent as ne, computed as h, watch as oe, h as R, resolveComponent as S, openBlock as _, createElementBlock as x, Fragment as O, createElementVNode as k, createVNode as V, unref as t, isRef as j, withCtx as P, renderList as ie, normalizeClass as D, toDisplayString as I, createBlock as $, withModifiers as G, createCommentVNode as q } from "vue";
|
|
2
|
-
import { a as J, u as Q, b as N, h as z, i as W, d as L, l as se, c as re, n as le, U as H, j as ce, k as de } from "./app-
|
|
3
|
-
import { l as X, a as ue, T as me } from "./takeaway-
|
|
4
|
-
import { f as F } from "./currency-
|
|
2
|
+
import { a as J, u as Q, b as N, h as z, i as W, d as L, l as se, c as re, n as le, U as H, j as ce, k as de } from "./app-BFJlAowN.js";
|
|
3
|
+
import { l as X, a as ue, T as me } from "./takeaway-mwqVQ1ij.js";
|
|
4
|
+
import { f as F } from "./currency-33gUke3q.js";
|
|
5
5
|
import { useDialog as ye, useSnackbar as Z, FmButtonVariant as A, components as pe, useBreakpoints as fe } from "@feedmepos/ui-library";
|
|
6
6
|
import { useI18n as ee, useCoreStore as _e } from "@feedmepos/mf-common";
|
|
7
7
|
import { defineStore as ke } from "pinia";
|
|
8
|
-
import { C as ve } from "./catalog-
|
|
8
|
+
import { C as ve } from "./catalog-B-Z6lEFK.js";
|
|
9
9
|
function we(T, U, l, m) {
|
|
10
10
|
var y, v, w, g;
|
|
11
11
|
const i = L(T);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as r, openBlock as s, createBlock as i, unref as m, withCtx as c, createVNode as u } from "vue";
|
|
2
|
-
import { a as _ } from "./menu-
|
|
3
|
-
import { a as f, _ as p, i as d } from "./app-
|
|
4
|
-
import { _ as g } from "./Setting.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { u as l } from "./category-
|
|
2
|
+
import { a as _ } from "./menu-DCnWrgH7.js";
|
|
3
|
+
import { a as f, _ as p, i as d } from "./app-BFJlAowN.js";
|
|
4
|
+
import { _ as g } from "./Setting.vue_vue_type_script_setup_true_lang-BbVEzNve.js";
|
|
5
|
+
import { u as l } from "./category-DEWEor3m.js";
|
|
6
6
|
import { useDialog as x, useSnackbar as h } from "@feedmepos/ui-library";
|
|
7
7
|
import { useI18n as k } from "@feedmepos/mf-common";
|
|
8
8
|
const I = /* @__PURE__ */ r({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as L, computed as m, ref as g, h as k, withModifiers as x, resolveComponent as p, openBlock as a, createBlock as b, unref as e, withCtx as h, createElementBlock as u, Fragment as v, createElementVNode as o, createVNode as r, renderList as N, normalizeClass as C, toDisplayString as f, createCommentVNode as T } from "vue";
|
|
2
|
-
import { a as E, u as K, _ as R, k as D, f as I } from "./app-
|
|
2
|
+
import { a as E, u as K, _ as R, k as D, f as I } from "./app-BFJlAowN.js";
|
|
3
3
|
import { useSnackbar as q, components as A, useBreakpoints as G, FmButtonVariant as H } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as J } from "@feedmepos/mf-common";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
import { u as O, U as P } from "./unit-
|
|
6
|
+
import { u as O, U as P } from "./unit-BgfdgXAu.js";
|
|
7
7
|
const Q = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "h-[600px]"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCurrentInstance as $, defineComponent as A, computed as g, onMounted as O, h as E, resolveComponent as x, openBlock as m, createBlock as F, unref as e, withCtx as p, createVNode as i, withModifiers as V, createCommentVNode as R, createElementBlock as f, Fragment as C, createElementVNode as r, isRef as I, renderList as Y, normalizeClass as L, toDisplayString as w } from "vue";
|
|
2
|
-
import { a as N, u as j, b as G, h as q, i as D, l as H, n as J, _ as Q, f as W, j as X, k as Z } from "./app-
|
|
2
|
+
import { a as N, u as j, b as G, h as q, i as D, l as H, n as J, _ as Q, f as W, j as X, k as Z } from "./app-BFJlAowN.js";
|
|
3
3
|
import { useDialog as ee, useSnackbar as K, FmButtonVariant as M, components as ae, useBreakpoints as ne } from "@feedmepos/ui-library";
|
|
4
|
-
import { V as S } from "./index-
|
|
4
|
+
import { V as S } from "./index-BEdHzZvu.js";
|
|
5
5
|
import { defineStore as te } from "pinia";
|
|
6
6
|
import { useI18n as P } from "@feedmepos/mf-common";
|
|
7
7
|
const oe = te("variant-manager", () => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as B, computed as u, ref as p, watch as C, onMounted as q, resolveComponent as c, openBlock as x, createElementBlock as F, Fragment as H, createVNode as l, withCtx as r, createElementVNode as i, toDisplayString as T, unref as n, createBlock as I } from "vue";
|
|
2
2
|
import { useRoute as K, useRouter as W } from "vue-router";
|
|
3
|
-
import { a as j, u as J, R as m, m as Q, d as X, _ as Z, f as M, i as ee, D as ae } from "./app-
|
|
3
|
+
import { a as j, u as J, R as m, m as Q, d as X, _ as Z, f as M, i as ee, D as ae } from "./app-BFJlAowN.js";
|
|
4
4
|
import { useDialog as te, useSnackbar as oe, useBreakpoints as ne } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as le, u as se, c as ue } from "./scheduler-
|
|
6
|
-
import { m as re } from "./toExcel-
|
|
7
|
-
import { u as ie, a as me, _ as ce, w as de } from "./catalog-
|
|
8
|
-
import { L as A } from "./LinkProductSideSheet-
|
|
9
|
-
import { a as pe } from "./menu-
|
|
5
|
+
import { _ as le, u as se, c as ue } from "./scheduler-0cChIv2I.js";
|
|
6
|
+
import { m as re } from "./toExcel-Dha8Vf3u.js";
|
|
7
|
+
import { u as ie, a as me, _ as ce, w as de } from "./catalog-Do7RfIKm.js";
|
|
8
|
+
import { L as A } from "./LinkProductSideSheet-A26Otbdm.js";
|
|
9
|
+
import { a as pe } from "./menu-DCnWrgH7.js";
|
|
10
10
|
import { useI18n as _e } from "@feedmepos/mf-common";
|
|
11
11
|
const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class: "flex ml-auto space-x-8" }, be = { class: "flex-1 flex flex-col overflow-hidden" }, De = /* @__PURE__ */ B({
|
|
12
12
|
__name: "[id]",
|