@feedmepos/mf-menu 0.32.66-dev.1 → 0.32.66-dev.3
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-CI_iNcgK.js → App-bCL9DMmd.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CYxG4ihX.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CnoYMg6T.js} +7 -7
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-UllnR0h6.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-Ccw08-Uw.js} +3 -3
- package/dist/{Catalog-Bh2SAffq.js → Catalog-Ds6GYriM.js} +6 -6
- package/dist/{Category-CVKnqszH.js → Category-CnFL0t4m.js} +4 -4
- package/dist/{Category-DfTtG9CR.js → Category-DY_XSrsn.js} +4 -4
- package/dist/{CookingGuide-ya45J1Mt.js → CookingGuide-BTk8BaAd.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-i6fzPFdp.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BgI4r-xU.js} +1 -1
- package/dist/{Group-d5ODb1qt.js → Group-860k7lB8.js} +3 -3
- package/dist/{Group-DLo3Tq5F.js → Group-BSMIM376.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-mJM1hfDS.js → Group.vue_vue_type_script_setup_true_lang-DWA-dDCM.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Ctw_g4uv.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-dKJjPwe3.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-OzkvL_JP.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-H2rtSZTK.js} +9 -8
- package/dist/{Ingredient-BT24CVH8.js → Ingredient-BYDjOmNr.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Cd2xFodR.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Bdhyk7wJ.js} +2 -2
- package/dist/{LinkProductSideSheet-CAjxumsy.js → LinkProductSideSheet-CQS8yW-C.js} +4 -4
- package/dist/{MenuSetting-CrKps0Pr.js → MenuSetting-BmK8AlkW.js} +7 -7
- package/dist/{OrderPacing-DV8YhW4M.js → OrderPacing-TJ6ZYLYV.js} +5 -5
- package/dist/{PrintRoute-N_c01sX7.js → PrintRoute-CR9yyKNK.js} +5 -5
- package/dist/{Product-i45cWBne.js → Product-UVz9VsGm.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-SBnKF6Dc.js → Product.vue_vue_type_script_setup_true_lang-DaUlfmGn.js} +622 -610
- package/dist/{ProductInternalTools-C10beN3h.js → ProductInternalTools-D-SOeCcO.js} +6 -6
- package/dist/{Products-Copz_NxK.js → Products-DhNIR6E7.js} +72 -72
- package/dist/{Publish-Dx9g-Iml.js → Publish-CsjlWTjc.js} +446 -444
- package/dist/{Recipe-B0dhSxLY.js → Recipe-uwZYJm_N.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BfTWVSgk.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CF-r4vAJ.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CGjp5ObO.js → RuleView.vue_vue_type_script_setup_true_lang-BfdS-xS1.js} +3 -3
- package/dist/{Scheduler-Bdy9DG0p.js → Scheduler-B1_i4bRR.js} +3 -3
- package/dist/{ServingSequence-onP8TGmt.js → ServingSequence-B7TO7rNV.js} +3 -3
- package/dist/{Setting-h1N-6VJG.js → Setting-ByrEh4BA.js} +5 -5
- package/dist/{Subcategory-uRvIJSP2.js → Subcategory-BWqzLw-d.js} +6 -6
- package/dist/{Takeaway-BVfssE0J.js → Takeaway-BDtDA3Oz.js} +1 -1
- package/dist/{Takeaway-1LAZ7cjz.js → Takeaway-BJpHwTck.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DQy0jvn3.js → Takeaway.vue_vue_type_script_setup_true_lang-DaqAIPrd.js} +10 -10
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CFfvrpnY.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-Ctua4piB.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DY_CAuFa.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-CaIv_N0Y.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BL_x8Upd.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BXJsNMO4.js} +15 -15
- package/dist/{Unit-Bdjbice8.js → Unit-CztcKfU8.js} +2 -2
- package/dist/{Variant-D6lnVRhc.js → Variant-DoKsw2Kp.js} +3 -3
- package/dist/{_id_-_IoP91Df.js → _id_-Bm8i0F1E.js} +10 -10
- package/dist/{app-CHa-DBPQ.js → app-BGCDoU-0.js} +328 -328
- package/dist/{app-DuSxtjmC.js → app-Du5OtlE9.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/media.d.ts +63 -10
- package/dist/apps/mf-menu/src/api/menu.d.ts +3 -3
- package/dist/apps/mf-menu/src/app.d.ts +120 -10
- package/dist/apps/mf-menu/src/components/feature/Fields/RangeSlider.vue.d.ts +62 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +95 -12
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageEditorDialog.vue.d.ts +56 -0
- package/dist/apps/mf-menu/src/composable/imageSource.d.ts +7 -0
- package/dist/apps/mf-menu/src/composable/imageVersion.d.ts +11 -0
- package/dist/apps/mf-menu/src/helper/itemOverrider.d.ts +10 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +5 -4
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{override-menu-CIRYGinT.js → linked-status-CGYWO8Yo.js} +4 -4
- package/dist/assets/{menu-export-UgrjUnN2.js → menu-export-D32WVYBV.js} +3 -3
- package/dist/assets/{linked-status-DBJxrh2U.js → override-menu-B2muNR2b.js} +4 -4
- package/dist/assets/{validate-menu-D8-_8UwY.js → validate-menu-DRc93ut_.js} +2 -2
- package/dist/{catalog-C_rhdKvu.js → catalog-B1szIMSS.js} +1 -1
- package/dist/{catalogSetting-SujM_d4-.js → catalogSetting-D317tpwX.js} +1 -1
- package/dist/{currency-CBsQulKD.js → currency-DDMkadDP.js} +1 -1
- package/dist/{dayjs.min-CBi2aUyP.js → dayjs.min-BAfSpgzt.js} +2 -2
- package/dist/{discardConfirm-BhV1iT_G.js → discardConfirm-ulS7oH8I.js} +1 -1
- package/dist/{index-aXVdUVi9.js → index-BNCGppNp.js} +6 -6
- package/dist/{index-D10URGOP.js → index-ClAWU743.js} +5 -5
- package/dist/{index-CtMD-H5N.js → index-DVh6Gi2K.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-cI7uKVre.js → index.vue_vue_type_script_setup_true_lang-Cf2AKbC7.js} +25712 -25587
- package/dist/{item-B7ovTnkT.js → item-D3jvuhGD.js} +5058 -4584
- package/dist/{jszip.min-nm6XtoQ3.js → jszip.min-t1qkoubE.js} +3 -3
- package/dist/{linkProducts-lOTzQqNK.js → linkProducts-IK0-iQJR.js} +4 -4
- package/dist/{memberPricing-BYT32y4D.js → memberPricing-DagiXBzk.js} +1 -1
- package/dist/{menu-6qHiTu0j.js → menu-B-BBAQKK.js} +1 -1
- package/dist/{menuV2-ILhcIRUD.js → menuV2-0X1EYaDt.js} +89 -89
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-Bq09k_C7.js → order_pacing-Cz0wFd_o.js} +5 -5
- package/dist/{priceTier-BzuYYCqN.js → priceTier-DBzOsSgm.js} +1 -1
- package/dist/{rules-BrliKHcG.js → rules-C6WjUylO.js} +3 -3
- package/dist/{scheduler-6lSaa1nT.js → scheduler-aKSniDdK.js} +5 -5
- package/dist/{toExcel-C8QPvQuM.js → toExcel-SxxuXoXI.js} +2 -2
- package/dist/{unit-s4XWrNN2.js → unit-CltVM3dM.js} +3 -3
- package/package.json +2 -2
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadDialog.vue.d.ts +0 -18
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as v, computed as $, resolveComponent as W, createElementBlock as c, openBlock as r, createElementVNode as s, createVNode as I, unref as h, createCommentVNode as T, normalizeClass as E, toDisplayString as U, createStaticVNode as B, Fragment as P, renderList as R, createBlock as oe, withCtx as A } from "vue";
|
|
2
|
-
import { J as O, F as ne } from "./jszip.min-
|
|
3
|
-
import { l as D } from "./discardConfirm-
|
|
2
|
+
import { J as O, F as ne } from "./jszip.min-t1qkoubE.js";
|
|
3
|
+
import { l as D } from "./discardConfirm-ulS7oH8I.js";
|
|
4
4
|
import { useI18n as le } from "@feedmepos/mf-common";
|
|
5
5
|
import { FmButtonVariant as z, useSnackbar as V, useDialog as ie, FmButtonColorThemeVariant as M } from "@feedmepos/ui-library";
|
|
6
|
-
import { b as re, u as ce, p as de, x as me } from "./index.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { b as re, u as ce, p as de, x as me } from "./index.vue_vue_type_script_setup_true_lang-Cf2AKbC7.js";
|
|
7
7
|
import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
8
|
-
import { u as ge, a as pe } from "./menu-
|
|
9
|
-
import { a as fe } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { ae as he, af as ye, ag as be, ah as ve, ai as _e } from "./item-
|
|
8
|
+
import { u as ge, a as pe } from "./menu-B-BBAQKK.js";
|
|
9
|
+
import { a as fe } from "./Product.vue_vue_type_script_setup_true_lang-DaUlfmGn.js";
|
|
10
|
+
import { ae as he, af as ye, ag as be, ah as ve, ai as _e } from "./item-D3jvuhGD.js";
|
|
11
11
|
const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center justify-between p-16 border-b border-gray-200" }, Ie = { class: "flex gap-8" }, ke = { class: "border-b border-gray-200" }, Ce = { class: "flex" }, Ue = { class: "flex-1 overflow-hidden" }, je = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "h-full flex flex-col"
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as B, computed as _, ref as
|
|
2
|
-
import { D as T } from "./dayjs.min-
|
|
3
|
-
import { J as re, F as ie } from "./jszip.min-
|
|
4
|
-
import { l as
|
|
5
|
-
import { w as le } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { h as
|
|
7
|
-
import { u as K, b as Q, a as H, e as q, F as X, m as ue, d as ce, f as me } from "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as B, computed as _, ref as J, resolveComponent as F, createBlock as m, openBlock as l, unref as e, withCtx as f, createElementVNode as d, toDisplayString as Z, createVNode as u, createCommentVNode as w, createElementBlock as U, Fragment as z } from "vue";
|
|
2
|
+
import { D as T } from "./dayjs.min-BAfSpgzt.js";
|
|
3
|
+
import { J as re, F as ie } from "./jszip.min-t1qkoubE.js";
|
|
4
|
+
import { l as R } from "./discardConfirm-ulS7oH8I.js";
|
|
5
|
+
import { w as le } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-H2rtSZTK.js";
|
|
6
|
+
import { h as $, A as j } from "./app-BGCDoU-0.js";
|
|
7
|
+
import { u as K, b as Q, a as H, e as q, F as X, m as ue, d as ce, f as me } from "./index.vue_vue_type_script_setup_true_lang-Cf2AKbC7.js";
|
|
8
8
|
import { useCoreStore as ee, useI18n as de } from "@feedmepos/mf-common";
|
|
9
|
-
import { useDialog as te, useDialogChild as pe, useSnackbar as ne, useBreakpoints as fe, FmButtonVariant as
|
|
10
|
-
import { _ as
|
|
9
|
+
import { useDialog as te, useDialogChild as pe, useSnackbar as ne, useBreakpoints as fe, FmButtonVariant as D, FmButtonColorThemeVariant as S } from "@feedmepos/ui-library";
|
|
10
|
+
import { _ as I } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
11
11
|
import { _ as _e, a as O } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
12
|
-
import { _ as
|
|
13
|
-
import { u as
|
|
14
|
-
import { w as ye } from "./item-
|
|
15
|
-
import { _ as G, a as ke } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { L as
|
|
17
|
-
import { _ as xe } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { u as Se } from "./linkProducts-
|
|
19
|
-
import { m as he } from "./toExcel-
|
|
12
|
+
import { _ as ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
13
|
+
import { u as ge, a as be } from "./menu-B-BBAQKK.js";
|
|
14
|
+
import { w as ye } from "./item-D3jvuhGD.js";
|
|
15
|
+
import { _ as G, a as ke } from "./Product.vue_vue_type_script_setup_true_lang-DaUlfmGn.js";
|
|
16
|
+
import { L as W } from "./LinkProductSideSheet-CQS8yW-C.js";
|
|
17
|
+
import { _ as xe } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BXJsNMO4.js";
|
|
18
|
+
import { u as Se } from "./linkProducts-IK0-iQJR.js";
|
|
19
|
+
import { m as he } from "./toExcel-SxxuXoXI.js";
|
|
20
20
|
const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "flex justify-end gap-8" }, Fe = /* @__PURE__ */ B({
|
|
21
21
|
__name: "ConfirmActionDialog",
|
|
22
22
|
props: {
|
|
@@ -25,16 +25,16 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
25
25
|
message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
|
|
26
26
|
},
|
|
27
27
|
setup(A) {
|
|
28
|
-
const n = A, p = _(() => n.message.replace("[[value]]", n.value)), k =
|
|
29
|
-
return (
|
|
30
|
-
const M = F("FmTextField"),
|
|
28
|
+
const n = A, p = _(() => n.message.replace("[[value]]", n.value)), k = J(""), o = te(), { emitAction: h } = pe();
|
|
29
|
+
return (v, r) => {
|
|
30
|
+
const M = F("FmTextField"), g = F("FmButton"), x = F("FmForm");
|
|
31
31
|
return l(), m(x, {
|
|
32
32
|
"on-validation-success": () => e(h)("primary"),
|
|
33
33
|
"blame-form-child-on-validation-failed": ""
|
|
34
34
|
}, {
|
|
35
35
|
default: f(() => [
|
|
36
36
|
d("div", Me, [
|
|
37
|
-
d("div", null, Z(
|
|
37
|
+
d("div", null, Z(v.description), 1),
|
|
38
38
|
d("div", { innerHTML: p.value }, null, 8, Ce),
|
|
39
39
|
d("div", null, [
|
|
40
40
|
u(M, {
|
|
@@ -44,17 +44,17 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
44
44
|
r[1] || (r[1] = () => {
|
|
45
45
|
})
|
|
46
46
|
],
|
|
47
|
-
placeholder:
|
|
48
|
-
rules: [(c) => c ===
|
|
47
|
+
placeholder: v.value,
|
|
48
|
+
rules: [(c) => c === v.value || "Value does not match"]
|
|
49
49
|
}, null, 8, ["modelValue", "placeholder", "rules"])
|
|
50
50
|
]),
|
|
51
51
|
d("div", we, [
|
|
52
|
-
u(
|
|
52
|
+
u(g, {
|
|
53
53
|
label: "Cancel",
|
|
54
54
|
variant: "secondary",
|
|
55
55
|
onClick: r[2] || (r[2] = (c) => e(o).close())
|
|
56
56
|
}),
|
|
57
|
-
u(
|
|
57
|
+
u(g, {
|
|
58
58
|
label: "Confirm",
|
|
59
59
|
type: "submit"
|
|
60
60
|
})
|
|
@@ -65,12 +65,12 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
65
65
|
}, 8, ["on-validation-success"]);
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
}),
|
|
68
|
+
}), Ve = /* @__PURE__ */ B({
|
|
69
69
|
__name: "Migrate",
|
|
70
70
|
setup(A) {
|
|
71
|
-
const n = K(), p = ee(), { isRestaurantLevelMenu: k } = p, o = ne(), { minor: h } = Q(o),
|
|
71
|
+
const n = K(), p = ee(), { isRestaurantLevelMenu: k } = p, o = ne(), { minor: h } = Q(o), v = J(!1), r = te();
|
|
72
72
|
async function M() {
|
|
73
|
-
|
|
73
|
+
g.value || v.value || r.open({
|
|
74
74
|
title: "Migrate to new version",
|
|
75
75
|
contentComponent: Fe,
|
|
76
76
|
contentComponentProps: {
|
|
@@ -85,7 +85,7 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
85
85
|
}, 2e3);
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
isLoading:
|
|
88
|
+
isLoading: v,
|
|
89
89
|
customId: n.state.menu._id,
|
|
90
90
|
message: "Migrating menu",
|
|
91
91
|
successMessage: "Migration completed"
|
|
@@ -93,7 +93,7 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
93
93
|
);
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const g = _(() => {
|
|
97
97
|
var C;
|
|
98
98
|
if (((C = p.sessionUser.value) == null ? void 0 : C.role.isAdmin) === !0)
|
|
99
99
|
return null;
|
|
@@ -104,7 +104,7 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
104
104
|
});
|
|
105
105
|
return (x, c) => {
|
|
106
106
|
const b = F("FmSnackbar");
|
|
107
|
-
return !e(k) && !
|
|
107
|
+
return !e(k) && !g.value && e(n).version !== e(X).enum.v4 ? (l(), m(b, {
|
|
108
108
|
key: 0,
|
|
109
109
|
class: "!max-w-full",
|
|
110
110
|
title: "New version of menu is out now!",
|
|
@@ -116,21 +116,21 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
116
116
|
})) : w("", !0);
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
}),
|
|
119
|
+
}), $e = "/assets/menu-export-D32WVYBV.js", Ae = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ee = { class: "flex items-center" }, Te = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, De = { class: "fm-typo-en-body-md-600 font-semibold" }, Ie = { class: "flex gap-8" }, et = /* @__PURE__ */ B({
|
|
120
120
|
__name: "Products",
|
|
121
121
|
setup(A) {
|
|
122
|
-
const { t: n } = de(), p = ee(), k = Q(ne()), o = K(), h = _(() => o.rules.item),
|
|
122
|
+
const { t: n } = de(), p = ee(), k = Q(ne()), o = K(), h = _(() => o.rules.item), v = ye(), r = _(() => !o.state.currentSchedulerId), { selectedCategories: M } = ge(), g = _(() => ({
|
|
123
123
|
...ue.menuV4ToV3(ce(o.state.menu)),
|
|
124
124
|
_id: o.state.menu._id,
|
|
125
125
|
_rev: o.state.menu._rev
|
|
126
126
|
})), x = _(() => {
|
|
127
|
-
const i =
|
|
128
|
-
return
|
|
127
|
+
const i = R.flatten(M.value.map((t) => t.items));
|
|
128
|
+
return R.uniqBy(i, (t) => t._id).length;
|
|
129
129
|
});
|
|
130
130
|
async function c(i, t) {
|
|
131
131
|
const a = new re();
|
|
132
|
-
for (let
|
|
133
|
-
a.file(`${t[
|
|
132
|
+
for (let V = 0; V < i.length; V++)
|
|
133
|
+
a.file(`${t[V]}.xlsx`, i[V]);
|
|
134
134
|
const s = await a.generateAsync({ type: "blob" });
|
|
135
135
|
ie.saveAs(s, `books_${T().format("DD-MM-YYYY_HH-mm")}.zip`);
|
|
136
136
|
}
|
|
@@ -144,7 +144,7 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
144
144
|
`itemLinkedAddon_${t}`,
|
|
145
145
|
`translationLocalization_${t}`
|
|
146
146
|
], s = await me(
|
|
147
|
-
|
|
147
|
+
$e,
|
|
148
148
|
JSON.stringify({
|
|
149
149
|
menu: i,
|
|
150
150
|
attributeSettings: p.itemAttributeSettings.value,
|
|
@@ -153,7 +153,7 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
153
153
|
);
|
|
154
154
|
await c(s, a);
|
|
155
155
|
} else {
|
|
156
|
-
const i = he(
|
|
156
|
+
const i = he(g.value), t = `menu_${T().format("DD-MM-YYYY_HH-mm")}`;
|
|
157
157
|
await le(i, `${t}.xlsx`, {
|
|
158
158
|
bookType: "xlsx",
|
|
159
159
|
bookSST: !0,
|
|
@@ -169,41 +169,41 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
169
169
|
menuItems: E,
|
|
170
170
|
categories: C,
|
|
171
171
|
linkItemRules: y,
|
|
172
|
-
handleSubmit:
|
|
173
|
-
catalogManager:
|
|
174
|
-
schedulerManager:
|
|
172
|
+
handleSubmit: Y,
|
|
173
|
+
catalogManager: N,
|
|
174
|
+
schedulerManager: L
|
|
175
175
|
} = Se(!1), oe = fe(), ae = _(() => oe.breakpoints.value.xs), se = _(() => {
|
|
176
176
|
var a;
|
|
177
177
|
const i = ((a = p.sessionUser.value) == null ? void 0 : a.permissions) ?? [], t = {
|
|
178
|
-
action:
|
|
179
|
-
subject:
|
|
178
|
+
action: $.Action.manage,
|
|
179
|
+
subject: $.Subject.Business.menu_menuManagement
|
|
180
180
|
};
|
|
181
|
-
return
|
|
182
|
-
}),
|
|
181
|
+
return j([t], i).granted;
|
|
182
|
+
}), P = _(() => {
|
|
183
183
|
var a;
|
|
184
184
|
const i = ((a = p.sessionUser.value) == null ? void 0 : a.permissions) ?? [], t = {
|
|
185
|
-
action:
|
|
186
|
-
subject:
|
|
185
|
+
action: $.Action.manage,
|
|
186
|
+
subject: $.Subject.Business.menu_importExport
|
|
187
187
|
};
|
|
188
|
-
return
|
|
188
|
+
return j([t], i).granted;
|
|
189
189
|
});
|
|
190
190
|
return be().resetOnMount(), (i, t) => {
|
|
191
191
|
const a = F("fm-button");
|
|
192
|
-
return l(), m(
|
|
192
|
+
return l(), m(ve, {
|
|
193
193
|
heading: e(n)("menu.products.title")
|
|
194
194
|
}, {
|
|
195
195
|
default: f(() => [
|
|
196
|
-
u(
|
|
196
|
+
u(Ve),
|
|
197
197
|
u(ke)
|
|
198
198
|
]),
|
|
199
199
|
"append-heading": f(() => [
|
|
200
200
|
d("div", Ae, [
|
|
201
201
|
d("div", Ee, [
|
|
202
202
|
d("div", Te, [
|
|
203
|
-
d("p",
|
|
203
|
+
d("p", De, Z(x.value), 1)
|
|
204
204
|
])
|
|
205
205
|
]),
|
|
206
|
-
d("div",
|
|
206
|
+
d("div", Ie, [
|
|
207
207
|
ae.value ? (l(), m(G, { key: 1 }, {
|
|
208
208
|
default: f(({ trigger: s }) => [
|
|
209
209
|
u(_e, null, {
|
|
@@ -221,33 +221,33 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
221
221
|
}, 1024)
|
|
222
222
|
]),
|
|
223
223
|
_: 1
|
|
224
|
-
})) : (l(),
|
|
224
|
+
})) : (l(), U(z, { key: 0 }, [
|
|
225
225
|
se.value ? (l(), m(xe, { key: 0 }, {
|
|
226
226
|
default: f(({ trigger: s }) => [
|
|
227
227
|
u(a, {
|
|
228
228
|
label: e(n)("menu.tree_editor.title"),
|
|
229
229
|
"bg-color": e(S).NeutralGray100,
|
|
230
230
|
"text-color": e(S).TypoSecondary,
|
|
231
|
-
variant: e(
|
|
231
|
+
variant: e(D).Primary,
|
|
232
232
|
onClick: s
|
|
233
233
|
}, null, 8, ["label", "bg-color", "text-color", "variant", "onClick"])
|
|
234
234
|
]),
|
|
235
235
|
_: 1
|
|
236
236
|
})) : w("", !0),
|
|
237
|
-
|
|
237
|
+
P.value ? (l(), m(a, {
|
|
238
238
|
key: 1,
|
|
239
239
|
"bg-color": e(S).NeutralGray100,
|
|
240
240
|
"text-color": e(S).TypoSecondary,
|
|
241
|
-
variant: e(
|
|
241
|
+
variant: e(D).Primary,
|
|
242
242
|
label: e(n)("menu.products.actions.export"),
|
|
243
243
|
onClick: b
|
|
244
244
|
}, null, 8, ["bg-color", "text-color", "variant", "label"])) : w("", !0),
|
|
245
|
-
|
|
245
|
+
P.value ? (l(), m(G, { key: 2 }, {
|
|
246
246
|
default: f(({ trigger: s }) => [
|
|
247
247
|
u(a, {
|
|
248
248
|
"bg-color": e(S).NeutralGray100,
|
|
249
249
|
"text-color": e(S).TypoSecondary,
|
|
250
|
-
variant: e(
|
|
250
|
+
variant: e(D).Primary,
|
|
251
251
|
label: e(n)("menu.products.actions.import"),
|
|
252
252
|
onClick: s
|
|
253
253
|
}, null, 8, ["bg-color", "text-color", "variant", "label", "onClick"])
|
|
@@ -255,44 +255,44 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
255
255
|
_: 1
|
|
256
256
|
})) : w("", !0)
|
|
257
257
|
], 64)),
|
|
258
|
-
x.value > 0 ? (l(),
|
|
259
|
-
h.value.create ? (l(), m(
|
|
258
|
+
x.value > 0 ? (l(), U(z, { key: 2 }, [
|
|
259
|
+
h.value.create ? (l(), m(I, {
|
|
260
260
|
key: 0,
|
|
261
261
|
label: e(n)("menu.products.actions.add"),
|
|
262
262
|
"prepend-icon": "add",
|
|
263
|
-
onClick: t[0] || (t[0] = (s) => e(
|
|
264
|
-
}, null, 8, ["label"])) : r.value ? (l(), m(
|
|
263
|
+
onClick: t[0] || (t[0] = (s) => e(v).create(null))
|
|
264
|
+
}, null, 8, ["label"])) : r.value ? (l(), m(W, {
|
|
265
265
|
key: 1,
|
|
266
|
-
"categorized-items": e(
|
|
267
|
-
"initial-value": e(
|
|
266
|
+
"categorized-items": e(N).linkableItems.value,
|
|
267
|
+
"initial-value": e(N).currentItems.value,
|
|
268
268
|
"show-variant": !1,
|
|
269
269
|
"menu-items": e(E),
|
|
270
270
|
categories: e(C),
|
|
271
271
|
"link-item-rules": e(y),
|
|
272
272
|
"no-scheduler": r.value,
|
|
273
|
-
onSubmit: e(
|
|
273
|
+
onSubmit: e(Y)
|
|
274
274
|
}, {
|
|
275
275
|
default: f(({ trigger: s }) => [
|
|
276
|
-
u(
|
|
276
|
+
u(I, {
|
|
277
277
|
label: e(n)("menu.products.actions.link"),
|
|
278
278
|
"prepend-icon": "link",
|
|
279
279
|
onClick: s
|
|
280
280
|
}, null, 8, ["label", "onClick"])
|
|
281
281
|
]),
|
|
282
282
|
_: 1
|
|
283
|
-
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (l(), m(
|
|
283
|
+
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (l(), m(W, {
|
|
284
284
|
key: 2,
|
|
285
|
-
"categorized-items": e(
|
|
286
|
-
"initial-value": e(
|
|
285
|
+
"categorized-items": e(L).linkableItems.value,
|
|
286
|
+
"initial-value": e(L).currentItems.value,
|
|
287
287
|
"show-variant": !1,
|
|
288
288
|
"menu-items": e(E),
|
|
289
289
|
categories: e(C),
|
|
290
290
|
"link-item-rules": e(y),
|
|
291
291
|
"no-scheduler": r.value,
|
|
292
|
-
onSubmit: e(
|
|
292
|
+
onSubmit: e(Y)
|
|
293
293
|
}, {
|
|
294
294
|
default: f(({ trigger: s }) => [
|
|
295
|
-
u(
|
|
295
|
+
u(I, {
|
|
296
296
|
label: e(n)("menu.products.actions.apply_scheduler"),
|
|
297
297
|
onClick: s
|
|
298
298
|
}, null, 8, ["label", "onClick"])
|