@feedmepos/mf-menu 0.32.82-dev.1 → 0.32.82
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-VKB5Ovi7.js → App-CP6dKdsG.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DEjP4c24.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CxKh2z62.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-L094Mj3B.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-D5yV-KHS.js} +3 -3
- package/dist/{Catalog-DJ-gYH0R.js → Catalog-rmn_wi_K.js} +6 -6
- package/dist/{CatalogBinding-WkP8w4i7.js → CatalogBinding-B6qmT4ZX.js} +3 -3
- package/dist/{Category-B7eOB8YA.js → Category-DSWeQdzi.js} +4 -4
- package/dist/{Category-DvnaphvD.js → Category-dZn4oK25.js} +4 -4
- package/dist/{CookingGuide-DKxcoHua.js → CookingGuide-BVTYWxaA.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-C2MN7msL.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bjfql_55.js} +1 -1
- package/dist/{Group-bKLIn8jB.js → Group-B3C6clax.js} +1 -1
- package/dist/{Group-BkPzqgIz.js → Group-CHi-dO5H.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CpPggqwG.js → Group.vue_vue_type_script_setup_true_lang-UxVrkBuN.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Da0QUvjy.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Do1OBBQf.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-5qxYsLBv.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CO-vKv_2.js} +7 -7
- package/dist/{Ingredient-DzEoehgX.js → Ingredient-BiSrkQVk.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-G7G0EY0a.js → InventoryBinding.vue_vue_type_script_setup_true_lang-0w-RN_R_.js} +2 -2
- package/dist/{LinkProductSideSheet-D62kZpL7.js → LinkProductSideSheet-DocQGJPp.js} +4 -4
- package/dist/{MenuSetting-Dfbjza8E.js → MenuSetting-CtyVoKWq.js} +7 -7
- package/dist/{OrderPacing-CIdNKduH.js → OrderPacing-D13DbuOg.js} +5 -5
- package/dist/{PrintRoute-BW48kOTl.js → PrintRoute-Ci3Iys0w.js} +5 -5
- package/dist/{Product-BQuYELu0.js → Product-9OKt-6KX.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DpnRkend.js → Product.vue_vue_type_script_setup_true_lang-B2CRE8lH.js} +14 -14
- package/dist/{ProductInternalTools-DCqxJoiD.js → ProductInternalTools-Cpq_h_Jv.js} +7 -7
- package/dist/{Products-snDa6kLu.js → Products-BtUxMJgT.js} +56 -56
- package/dist/{Publish-5siwkHm9.js → Publish-syGXcNlA.js} +4 -4
- package/dist/{Recipe-tEf-JC8_.js → Recipe-BLPc5AMa.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DNM0vmzf.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BlgHu1wy.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-B4POC2CN.js → RuleView.vue_vue_type_script_setup_true_lang-DddG4OKH.js} +366 -366
- package/dist/{Scheduler-D7jM1w4O.js → Scheduler-xKSccoH0.js} +3 -3
- package/dist/{ServingSequence-DZ1J5IBd.js → ServingSequence-DskyUkTW.js} +3 -3
- package/dist/{Setting-B_XMMdC1.js → Setting-k8Id6cHv.js} +5 -5
- package/dist/{Subcategory-DSAOZBye.js → Subcategory-D17FTwWm.js} +6 -6
- package/dist/{Takeaway-DT00MpuE.js → Takeaway-Bpoi-oyf.js} +4 -4
- package/dist/{Takeaway-CTXPXXBX.js → Takeaway-C3JIyMai.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Bp2Xv0Sr.js → Takeaway.vue_vue_type_script_setup_true_lang-Cg6RnIkW.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-_d0RrGhD.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-DGbxQDG5.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-Bdt6TCeB.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-CTco6ODU.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DbaFzALX.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CZhTqKW3.js} +16 -16
- package/dist/{Unit-Dued423v.js → Unit-Bhn4-m_i.js} +2 -2
- package/dist/{Variant-Mc-pMkeJ.js → Variant-CElpkood.js} +3 -3
- package/dist/{_id_-Dlh9zwGb.js → _id_-Cd1qbY0n.js} +10 -10
- package/dist/{app-CGrMOf47.js → app-DsnkFZ-H.js} +33 -33
- package/dist/{app-BDmvIFPr.js → app-UDWbW4OG.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/assets/{linked-status-D-6NbqRf.js → linked-status-DgsdjPHB.js} +3 -3
- package/dist/assets/{menu-export-DPhT8dxg.js → menu-export-BGMqa5WQ.js} +2 -2
- package/dist/assets/{override-menu-ofuRGkDo.js → override-menu-D4M8wytN.js} +3 -3
- package/dist/assets/{validate-menu-3RNzKhn8.js → validate-menu-BxFnQvZD.js} +2 -2
- package/dist/{catalog-DdI_U6c_.js → catalog-C0qDPI4x.js} +1 -1
- package/dist/{catalogSetting-vTXiRIlg.js → catalogSetting-CNiRVcRy.js} +1 -1
- package/dist/{currency-QnNQv8si.js → currency-CBTIYnEv.js} +1 -1
- package/dist/{dayjs.min-7FVEhcxS.js → dayjs.min-Dibo6tEl.js} +2 -2
- package/dist/{discardConfirm-5S0eFAP6.js → discardConfirm-CY30eR1E.js} +1 -1
- package/dist/{index-naCc02Ky.js → index-B0ldk6F6.js} +5 -5
- package/dist/{index-C3THwchZ.js → index-BFShshS2.js} +1 -1
- package/dist/{index-Cynt9jL_.js → index-CB458_NN.js} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-DfJEchiA.js → index.vue_vue_type_script_setup_true_lang-D1Voe2H_.js} +884 -884
- package/dist/{item-r2BxAbvV.js → item-CYQbNtVH.js} +20 -20
- package/dist/{jszip.min-Bs8HPuj9.js → jszip.min-vyjXBfka.js} +167 -167
- package/dist/{linkProducts-COlkKvMz.js → linkProducts-CxJsNjEk.js} +4 -4
- package/dist/{memberPricing-DWY2QR4x.js → memberPricing-BT91F3oY.js} +1 -1
- package/dist/{menu-BSs8p5ab.js → menu-DC2L58Mr.js} +1 -1
- package/dist/{menuV2-SjJ0196K.js → menuV2-BVrodTOd.js} +47 -47
- package/dist/{order_pacing-C0KtyRcP.js → order_pacing-DlMGv564.js} +5 -5
- package/dist/{priceTier--Jrc2AeT.js → priceTier-tLHSa3f-.js} +1 -1
- package/dist/{rules-y0MFnFNI.js → rules-SVD2wEfD.js} +3 -3
- package/dist/{scheduler-CxpWDtzi.js → scheduler-DwdWTugd.js} +5 -5
- package/dist/{toExcel-Dk3ZQeCr.js → toExcel-Cw_mdmEb.js} +2 -2
- package/dist/{unit-BGY8k1sb.js → unit-D7bZ5bN-.js} +3 -3
- package/package.json +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { ref as F, computed as x, defineComponent as G, resolveComponent as K, createBlock as I, openBlock as m, withCtx as $, createElementVNode as g, createVNode as d, unref as n, createElementBlock as w, Fragment as de, renderList as Se, createCommentVNode as M, normalizeClass as me, toDisplayString as E, withModifiers as fe, mergeModels as at, useModel as ot, renderSlot as ye, watch as ie, createTextVNode as nt, watchEffect as rt, nextTick as Oe, resolveDynamicComponent as st, onMounted as ut, h as O, isRef as qe, normalizeStyle as xt } from "vue";
|
|
2
|
-
import { l as be } from "./discardConfirm-
|
|
3
|
-
import { u as Ie, o as we, a as ce, f as Ue, I as Ct, T as wt, _ as _e } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { l as be } from "./discardConfirm-CY30eR1E.js";
|
|
3
|
+
import { u as Ie, o as we, a as ce, f as Ue, I as Ct, T as wt, _ as _e } from "./index.vue_vue_type_script_setup_true_lang-D1Voe2H_.js";
|
|
4
4
|
import { useI18n as $e, useCoreStore as De, useCustomAttributes as kt } from "@feedmepos/mf-common";
|
|
5
|
-
import { u as Ve } from "./menu-
|
|
6
|
-
import { L as We } from "./LinkProductSideSheet-
|
|
7
|
-
import { _ as He } from "./RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as ze, a as Qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as St } from "./linkProducts-
|
|
10
|
-
import { f as Vt, o as Ft, a as It, m as $t } from "./menuV2-
|
|
11
|
-
import { w as it, ap as Tt, aq as Pt, M as At, G as Rt, ar as Ye } from "./item-
|
|
5
|
+
import { u as Ve } from "./menu-DC2L58Mr.js";
|
|
6
|
+
import { L as We } from "./LinkProductSideSheet-DocQGJPp.js";
|
|
7
|
+
import { _ as He } from "./RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BlgHu1wy.js";
|
|
8
|
+
import { _ as ze, a as Qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bjfql_55.js";
|
|
9
|
+
import { u as St } from "./linkProducts-CxJsNjEk.js";
|
|
10
|
+
import { f as Vt, o as Ft, a as It, m as $t } from "./menuV2-BVrodTOd.js";
|
|
11
|
+
import { w as it, ap as Tt, aq as Pt, M as At, G as Rt, ar as Ye } from "./item-CYQbNtVH.js";
|
|
12
12
|
import { b as Ze, H as Mt } from "./app-5fxKLAzS.js";
|
|
13
13
|
import { useBreakpoints as ct, components as ee, useDialog as Ot, FmButtonColorThemeVariant as W, FmButtonVariant as X } from "@feedmepos/ui-library";
|
|
14
|
-
import { f as Ne, h as Re, g as Ut, F as zt } from "./index-
|
|
15
|
-
import { _ as Ke, d as Nt, e as Dt } from "./app-
|
|
14
|
+
import { f as Ne, h as Re, g as Ut, F as zt } from "./index-BFShshS2.js";
|
|
15
|
+
import { _ as Ke, d as Nt, e as Dt } from "./app-DsnkFZ-H.js";
|
|
16
16
|
import { _ as ke } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
17
|
-
import { _ as Kt } from "./index-
|
|
18
|
-
import { r as Bt, _ as jt } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
17
|
+
import { _ as Kt } from "./index-CB458_NN.js";
|
|
18
|
+
import { r as Bt, _ as jt } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CO-vKv_2.js";
|
|
19
19
|
import { _ as Je } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-DiK3fi9J.js";
|
|
20
20
|
import { c as Et } from "./check-C9mY6LiX.js";
|
|
21
|
-
import { f as Gt } from "./currency-
|
|
21
|
+
import { f as Gt } from "./currency-CBTIYnEv.js";
|
|
22
22
|
import { w as Lt } from "./tooltip-B5BiPMx9.js";
|
|
23
23
|
function qt(h, e, c = h) {
|
|
24
24
|
const r = F(!0), o = x(() => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as W, ref as v, computed as M, resolveComponent as G, createElementBlock as c, openBlock as i, createElementVNode as s, createVNode as k, unref as h, createCommentVNode as B, normalizeClass as R, toDisplayString as $, createStaticVNode as A, Fragment as T, renderList as O, createBlock as re, withCtx as D } from "vue";
|
|
2
|
-
import { J as V, F as ie } from "./jszip.min-
|
|
3
|
-
import { l as Z } from "./discardConfirm-
|
|
2
|
+
import { J as V, F as ie } from "./jszip.min-vyjXBfka.js";
|
|
3
|
+
import { l as Z } from "./discardConfirm-CY30eR1E.js";
|
|
4
4
|
import { useI18n as ce } from "@feedmepos/mf-common";
|
|
5
5
|
import { FmButtonVariant as P, useSnackbar as q, useDialog as de, FmButtonColorThemeVariant as z } from "@feedmepos/ui-library";
|
|
6
|
-
import { b as me, u as ue, q as pe, y as ge, z as fe } from "./index.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { b as me, u as ue, q as pe, y as ge, z as fe } from "./index.vue_vue_type_script_setup_true_lang-D1Voe2H_.js";
|
|
7
7
|
import { _ as he } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
8
|
-
import { u as be, a as ye } from "./menu-
|
|
9
|
-
import { a as ve } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { ai as _e, aj as we, ak as xe, al as Ie, am as ke } from "./item-
|
|
8
|
+
import { u as be, a as ye } from "./menu-DC2L58Mr.js";
|
|
9
|
+
import { a as ve } from "./Product.vue_vue_type_script_setup_true_lang-B2CRE8lH.js";
|
|
10
|
+
import { ai as _e, aj as we, ak as xe, al as Ie, am as ke } from "./item-CYQbNtVH.js";
|
|
11
11
|
const Ce = { class: "h-full flex flex-col" }, Ue = { class: "flex items-center justify-between p-16 border-b border-gray-200" }, je = { class: "flex gap-8" }, $e = { class: "border-b border-gray-200" }, Fe = { class: "flex" }, Se = { class: "flex-1 overflow-hidden" }, ze = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "h-full flex flex-col"
|
|
@@ -152,7 +152,7 @@ const Ce = { class: "h-full flex flex-col" }, Ue = { class: "flex items-center j
|
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
|
-
var Qe = { firebase: { storageBucket: "image.
|
|
155
|
+
var Qe = { firebase: { storageBucket: "image.feedme.cc" } };
|
|
156
156
|
const Ye = {
|
|
157
157
|
key: 0,
|
|
158
158
|
class: "h-screen"
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { D as
|
|
3
|
-
import { J as ie, F as le } from "./jszip.min-
|
|
4
|
-
import { l as j } from "./discardConfirm-
|
|
5
|
-
import { w as ue } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { u as Q, b as X, a as H, e as q, F as ee, d as ce, m as me, f as de, g as pe } from "./index.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { h as V, A as
|
|
1
|
+
import { defineComponent as D, computed as d, ref as Z, resolveComponent as F, createBlock as p, openBlock as l, unref as e, withCtx as _, createElementVNode as f, toDisplayString as K, createVNode as u, createCommentVNode as w, createElementBlock as z, Fragment as R } from "vue";
|
|
2
|
+
import { D as T } from "./dayjs.min-Dibo6tEl.js";
|
|
3
|
+
import { J as ie, F as le } from "./jszip.min-vyjXBfka.js";
|
|
4
|
+
import { l as j } from "./discardConfirm-CY30eR1E.js";
|
|
5
|
+
import { w as ue } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CO-vKv_2.js";
|
|
6
|
+
import { u as Q, b as X, a as H, e as q, F as ee, d as ce, m as me, f as de, g as pe } from "./index.vue_vue_type_script_setup_true_lang-D1Voe2H_.js";
|
|
7
|
+
import { h as V, A as G } from "./app-DsnkFZ-H.js";
|
|
8
8
|
import { useCoreStore as te, useI18n as fe } from "@feedmepos/mf-common";
|
|
9
|
-
import { useDialog as oe, useDialogChild as _e, useSnackbar as ne, useBreakpoints as ge, FmButtonVariant as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as ve, a as
|
|
9
|
+
import { useDialog as oe, useDialogChild as _e, useSnackbar as ne, useBreakpoints as ge, FmButtonVariant as I, FmButtonColorThemeVariant as x } from "@feedmepos/ui-library";
|
|
10
|
+
import { _ as B } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
11
|
+
import { _ as ve, a as O } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
12
12
|
import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
13
|
-
import { u as ye, a as ke } from "./menu-
|
|
14
|
-
import { w as xe } from "./item-
|
|
15
|
-
import { _ as
|
|
16
|
-
import { L as
|
|
17
|
-
import { _ as Se } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { u as Me } from "./linkProducts-
|
|
19
|
-
import { m as Ce } from "./toExcel-
|
|
20
|
-
const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "flex justify-end gap-8" }, Ve = /* @__PURE__ */
|
|
13
|
+
import { u as ye, a as ke } from "./menu-DC2L58Mr.js";
|
|
14
|
+
import { w as xe } from "./item-CYQbNtVH.js";
|
|
15
|
+
import { _ as W, a as he } from "./Product.vue_vue_type_script_setup_true_lang-B2CRE8lH.js";
|
|
16
|
+
import { L as J } from "./LinkProductSideSheet-DocQGJPp.js";
|
|
17
|
+
import { _ as Se } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CZhTqKW3.js";
|
|
18
|
+
import { u as Me } from "./linkProducts-CxJsNjEk.js";
|
|
19
|
+
import { m as Ce } from "./toExcel-Cw_mdmEb.js";
|
|
20
|
+
const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "flex justify-end gap-8" }, Ve = /* @__PURE__ */ D({
|
|
21
21
|
__name: "ConfirmActionDialog",
|
|
22
22
|
props: {
|
|
23
23
|
description: {},
|
|
24
24
|
value: {},
|
|
25
25
|
message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
|
|
26
26
|
},
|
|
27
|
-
setup(
|
|
28
|
-
const o =
|
|
27
|
+
setup(A) {
|
|
28
|
+
const o = A, c = d(() => o.message.replace("[[value]]", o.value)), y = Z(""), a = oe(), { emitAction: h } = _e();
|
|
29
29
|
return (g, i) => {
|
|
30
30
|
const S = F("FmTextField"), v = F("FmButton"), M = F("FmForm");
|
|
31
31
|
return l(), p(M, {
|
|
@@ -65,9 +65,9 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
65
65
|
}, 8, ["on-validation-success"]);
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
}),
|
|
68
|
+
}), Ae = /* @__PURE__ */ D({
|
|
69
69
|
__name: "Migrate",
|
|
70
|
-
setup(
|
|
70
|
+
setup(A) {
|
|
71
71
|
const o = Q(), c = te(), { isRestaurantLevelMenu: y } = c, a = ne(), { minor: h } = X(a), g = Z(!1), i = oe();
|
|
72
72
|
async function S() {
|
|
73
73
|
v.value || g.value || i.open({
|
|
@@ -116,9 +116,9 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
116
116
|
})) : w("", !0);
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
}),
|
|
119
|
+
}), Ee = "/assets/menu-export-BGMqa5WQ.js", Te = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ie = { class: "flex items-center" }, Be = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, De = { class: "fm-typo-en-body-md-600 font-semibold" }, Ye = { class: "flex gap-8" }, ot = /* @__PURE__ */ D({
|
|
120
120
|
__name: "Products",
|
|
121
|
-
setup(
|
|
121
|
+
setup(A) {
|
|
122
122
|
const { t: o } = fe(), c = te(), y = X(ne()), a = Q(), h = d(() => a.rules.item), g = xe(), i = d(() => !a.state.currentSchedulerId), S = d(() => c.currentCountry.value ? ce(c.currentCountry.value).map((n) => n.code) : []), { selectedCategories: v } = ye(), M = d(() => ({
|
|
123
123
|
...me.menuV4ToV3(de(a.state.menu)),
|
|
124
124
|
_id: a.state.menu._id,
|
|
@@ -132,19 +132,19 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
132
132
|
for (let $ = 0; $ < n.length; $++)
|
|
133
133
|
s.file(`${t[$]}.xlsx`, n[$]);
|
|
134
134
|
const r = await s.generateAsync({ type: "blob" });
|
|
135
|
-
le.saveAs(r, `books_${
|
|
135
|
+
le.saveAs(r, `books_${T().format("DD-MM-YYYY_HH-mm")}.zip`);
|
|
136
136
|
}
|
|
137
|
-
async function
|
|
137
|
+
async function E() {
|
|
138
138
|
await y.minor(
|
|
139
139
|
async () => {
|
|
140
140
|
if (await a.readMenu(), a.version === ee.enum.v4) {
|
|
141
|
-
const n = a.state.menu, t =
|
|
141
|
+
const n = a.state.menu, t = T().format("DD-MM-YYYY_HH-mm"), s = [
|
|
142
142
|
`menu_${t}`,
|
|
143
143
|
`addonGroup_${t}`,
|
|
144
144
|
`itemLinkedAddon_${t}`,
|
|
145
145
|
`translationLocalization_${t}`
|
|
146
146
|
], r = await pe(
|
|
147
|
-
|
|
147
|
+
Ee,
|
|
148
148
|
JSON.stringify({
|
|
149
149
|
menu: n,
|
|
150
150
|
attributeSettings: c.itemAttributeSettings.value,
|
|
@@ -154,7 +154,7 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
154
154
|
);
|
|
155
155
|
await k(r, s);
|
|
156
156
|
} else {
|
|
157
|
-
const n = Ce(M.value), t = `menu_${
|
|
157
|
+
const n = Ce(M.value), t = `menu_${T().format("DD-MM-YYYY_HH-mm")}`;
|
|
158
158
|
await ue(n, `${t}.xlsx`, {
|
|
159
159
|
bookType: "xlsx",
|
|
160
160
|
bookSST: !0,
|
|
@@ -171,22 +171,22 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
171
171
|
categories: b,
|
|
172
172
|
linkItemRules: Y,
|
|
173
173
|
handleSubmit: N,
|
|
174
|
-
catalogManager:
|
|
175
|
-
schedulerManager:
|
|
174
|
+
catalogManager: L,
|
|
175
|
+
schedulerManager: P
|
|
176
176
|
} = Me(!1), ae = ge(), se = d(() => ae.breakpoints.value.xs), re = d(() => {
|
|
177
177
|
var s;
|
|
178
178
|
const n = ((s = c.sessionUser.value) == null ? void 0 : s.permissions) ?? [], t = {
|
|
179
179
|
action: V.Action.manage,
|
|
180
180
|
subject: V.Subject.Business.menu_menuManagement
|
|
181
181
|
};
|
|
182
|
-
return
|
|
182
|
+
return G([t], n).granted;
|
|
183
183
|
}), U = d(() => {
|
|
184
184
|
var s;
|
|
185
185
|
const n = ((s = c.sessionUser.value) == null ? void 0 : s.permissions) ?? [], t = {
|
|
186
186
|
action: V.Action.manage,
|
|
187
187
|
subject: V.Subject.Business.menu_importExport
|
|
188
188
|
};
|
|
189
|
-
return
|
|
189
|
+
return G([t], n).granted;
|
|
190
190
|
});
|
|
191
191
|
return ke().resetOnMount(), (n, t) => {
|
|
192
192
|
const s = F("fm-button");
|
|
@@ -194,26 +194,26 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
194
194
|
heading: e(o)("menu.products.title")
|
|
195
195
|
}, {
|
|
196
196
|
default: _(() => [
|
|
197
|
-
u(
|
|
197
|
+
u(Ae),
|
|
198
198
|
u(he)
|
|
199
199
|
]),
|
|
200
200
|
"append-heading": _(() => [
|
|
201
|
-
f("div",
|
|
202
|
-
f("div",
|
|
203
|
-
f("div",
|
|
204
|
-
f("p",
|
|
201
|
+
f("div", Te, [
|
|
202
|
+
f("div", Ie, [
|
|
203
|
+
f("div", Be, [
|
|
204
|
+
f("p", De, K(m.value), 1)
|
|
205
205
|
])
|
|
206
206
|
]),
|
|
207
207
|
f("div", Ye, [
|
|
208
|
-
se.value ? (l(), p(
|
|
208
|
+
se.value ? (l(), p(W, { key: 1 }, {
|
|
209
209
|
default: _(({ trigger: r }) => [
|
|
210
210
|
u(ve, null, {
|
|
211
211
|
default: _(() => [
|
|
212
|
-
u(
|
|
212
|
+
u(O, {
|
|
213
213
|
label: e(o)("menu.products.actions.export"),
|
|
214
|
-
onClick:
|
|
214
|
+
onClick: E
|
|
215
215
|
}, null, 8, ["label"]),
|
|
216
|
-
u(
|
|
216
|
+
u(O, {
|
|
217
217
|
label: e(o)("menu.products.actions.import"),
|
|
218
218
|
onClick: r
|
|
219
219
|
}, null, 8, ["label", "onClick"])
|
|
@@ -229,7 +229,7 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
229
229
|
label: e(o)("menu.tree_editor.title"),
|
|
230
230
|
"bg-color": e(x).NeutralGray100,
|
|
231
231
|
"text-color": e(x).TypoSecondary,
|
|
232
|
-
variant: e(
|
|
232
|
+
variant: e(I).Primary,
|
|
233
233
|
onClick: r
|
|
234
234
|
}, null, 8, ["label", "bg-color", "text-color", "variant", "onClick"])
|
|
235
235
|
]),
|
|
@@ -239,16 +239,16 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
239
239
|
key: 1,
|
|
240
240
|
"bg-color": e(x).NeutralGray100,
|
|
241
241
|
"text-color": e(x).TypoSecondary,
|
|
242
|
-
variant: e(
|
|
242
|
+
variant: e(I).Primary,
|
|
243
243
|
label: e(o)("menu.products.actions.export"),
|
|
244
|
-
onClick:
|
|
244
|
+
onClick: E
|
|
245
245
|
}, null, 8, ["bg-color", "text-color", "variant", "label"])) : w("", !0),
|
|
246
|
-
U.value ? (l(), p(
|
|
246
|
+
U.value ? (l(), p(W, { key: 2 }, {
|
|
247
247
|
default: _(({ trigger: r }) => [
|
|
248
248
|
u(s, {
|
|
249
249
|
"bg-color": e(x).NeutralGray100,
|
|
250
250
|
"text-color": e(x).TypoSecondary,
|
|
251
|
-
variant: e(
|
|
251
|
+
variant: e(I).Primary,
|
|
252
252
|
label: e(o)("menu.products.actions.import"),
|
|
253
253
|
onClick: r
|
|
254
254
|
}, null, 8, ["bg-color", "text-color", "variant", "label", "onClick"])
|
|
@@ -257,15 +257,15 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
257
257
|
})) : w("", !0)
|
|
258
258
|
], 64)),
|
|
259
259
|
m.value > 0 ? (l(), z(R, { key: 2 }, [
|
|
260
|
-
h.value.create ? (l(), p(
|
|
260
|
+
h.value.create ? (l(), p(B, {
|
|
261
261
|
key: 0,
|
|
262
262
|
label: e(o)("menu.products.actions.add"),
|
|
263
263
|
"prepend-icon": "add",
|
|
264
264
|
onClick: t[0] || (t[0] = (r) => e(g).create(null))
|
|
265
|
-
}, null, 8, ["label"])) : i.value ? (l(), p(
|
|
265
|
+
}, null, 8, ["label"])) : i.value ? (l(), p(J, {
|
|
266
266
|
key: 1,
|
|
267
|
-
"categorized-items": e(
|
|
268
|
-
"initial-value": e(
|
|
267
|
+
"categorized-items": e(L).linkableItems.value,
|
|
268
|
+
"initial-value": e(L).currentItems.value,
|
|
269
269
|
"show-variant": !1,
|
|
270
270
|
"menu-items": e(C),
|
|
271
271
|
categories: e(b),
|
|
@@ -274,17 +274,17 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
274
274
|
onSubmit: e(N)
|
|
275
275
|
}, {
|
|
276
276
|
default: _(({ trigger: r }) => [
|
|
277
|
-
u(
|
|
277
|
+
u(B, {
|
|
278
278
|
label: e(o)("menu.products.actions.link"),
|
|
279
279
|
"prepend-icon": "link",
|
|
280
280
|
onClick: r
|
|
281
281
|
}, null, 8, ["label", "onClick"])
|
|
282
282
|
]),
|
|
283
283
|
_: 1
|
|
284
|
-
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (l(), p(
|
|
284
|
+
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (l(), p(J, {
|
|
285
285
|
key: 2,
|
|
286
|
-
"categorized-items": e(
|
|
287
|
-
"initial-value": e(
|
|
286
|
+
"categorized-items": e(P).linkableItems.value,
|
|
287
|
+
"initial-value": e(P).currentItems.value,
|
|
288
288
|
"show-variant": !1,
|
|
289
289
|
"menu-items": e(C),
|
|
290
290
|
categories: e(b),
|
|
@@ -293,7 +293,7 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
293
293
|
onSubmit: e(N)
|
|
294
294
|
}, {
|
|
295
295
|
default: _(({ trigger: r }) => [
|
|
296
|
-
u(
|
|
296
|
+
u(B, {
|
|
297
297
|
label: e(o)("menu.products.actions.apply_scheduler"),
|
|
298
298
|
onClick: r
|
|
299
299
|
}, null, 8, ["label", "onClick"])
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as ee, ref as M, computed as $, onMounted as we, resolveComponent as A, createElementBlock as N, openBlock as C, createVNode as _, createElementVNode as h, toDisplayString as K, unref as p, Fragment as H, renderList as te, createBlock as W, watch as Re, withCtx as j, h as E, normalizeClass as ke, createCommentVNode as ae, createTextVNode as Me, mergeProps as Ye, normalizeStyle as Je, renderSlot as We, withModifiers as re, onUnmounted as Qe } from "vue";
|
|
2
2
|
import { useRouter as Xe } from "vue-router";
|
|
3
3
|
import { O as Ze, b as et } from "./app-5fxKLAzS.js";
|
|
4
|
-
import { a as tt, e as at, b as De, O as lt, _ as Oe, P as z, u as Ue, f as Ne, F as st } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { a as tt, e as at, b as De, O as lt, _ as Oe, P as z, u as Ue, f as Ne, F as st } from "./index.vue_vue_type_script_setup_true_lang-D1Voe2H_.js";
|
|
5
5
|
import { formatDateTime as ie, useI18n as le, useAppLocale as ce, useCoreStore as xe, RestaurantSelector as Te, prefersHour12 as nt } from "@feedmepos/mf-common";
|
|
6
6
|
import { useSnackbar as Se, useDialogChild as ot, useProxiedModel as ut, useDialog as Be, components as oe, FmButtonVariant as $e } from "@feedmepos/ui-library";
|
|
7
7
|
import { _ as rt } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
8
|
-
import { _ as it } from "./app-
|
|
8
|
+
import { _ as it } from "./app-DsnkFZ-H.js";
|
|
9
9
|
import { a as ct, w as dt } from "./tooltip-B5BiPMx9.js";
|
|
10
|
-
import { D as q } from "./dayjs.min-
|
|
11
|
-
import { u as Ee, l as mt } from "./discardConfirm-
|
|
10
|
+
import { D as q } from "./dayjs.min-Dibo6tEl.js";
|
|
11
|
+
import { u as Ee, l as mt } from "./discardConfirm-CY30eR1E.js";
|
|
12
12
|
import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
import { r as pt } from "./publishMeta-CAbjnmmS.js";
|
|
14
14
|
function ze(V, v, l) {
|
|
@@ -2,14 +2,14 @@ import { defineComponent as j, computed as h, ref as E, reactive as Q, watch as
|
|
|
2
2
|
import { useI18n as M } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as $, components as G, useDialog as ne, FmButtonVariant as K, useBreakpoints as oe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ae } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as le } from "./app-
|
|
6
|
-
import { j as q, b as P, f as ie, m as B, e as D, h as O, i as A, u as H, _ as se } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as le } from "./app-DsnkFZ-H.js";
|
|
6
|
+
import { j as q, b as P, f as ie, m as B, e as D, h as O, i as A, u as H, _ as se } from "./index.vue_vue_type_script_setup_true_lang-D1Voe2H_.js";
|
|
7
7
|
import { _ as re } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
8
8
|
import { defineStore as ce } from "pinia";
|
|
9
|
-
import { _ as Y, g as ue } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as me, l as de } from "./discardConfirm-
|
|
9
|
+
import { _ as Y, g as ue } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-0w-RN_R_.js";
|
|
10
|
+
import { u as me, l as de } from "./discardConfirm-CY30eR1E.js";
|
|
11
11
|
import { c as pe } from "./check-C9mY6LiX.js";
|
|
12
|
-
import "./unit-
|
|
12
|
+
import "./unit-D7bZ5bN-.js";
|
|
13
13
|
import { c as fe } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
14
14
|
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__ */ j({
|
|
15
15
|
__name: "Form",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as D, ref as R, resolveComponent as u, createElementBlock as E, openBlock as P, Fragment as B, createElementVNode as d, createVNode as l, normalizeClass as A, withCtx as i, toDisplayString as g, unref as o, h as I } from "vue";
|
|
2
2
|
import { useI18n as T, useCustomAttributes as K, useCoreStore as N } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as U } from "@feedmepos/ui-library";
|
|
4
|
-
import { e as W, _ as y } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { e as W, _ as y } from "./RuleView.vue_vue_type_script_setup_true_lang-DddG4OKH.js";
|
|
5
5
|
const j = {
|
|
6
6
|
class: /* @__PURE__ */ A(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap", "text-fm-color-neutral-gray-400"])
|
|
7
7
|
}, O = {
|