@feedmepos/mf-menu 0.32.63-dev.1 → 0.32.63-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-DhfTGlgM.js → App-DHxlR--3.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js → ApplyProduct.vue_vue_type_script_setup_true_lang-6noIwjis.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CMI2Nh0n.js} +3 -3
- package/dist/{Catalog-WuZJfM6l.js → Catalog-B-S0gygH.js} +22 -22
- package/dist/{Category-BeIo7XWY.js → Category-DGDddfLx.js} +4 -4
- package/dist/{Category-D-cQQCPS.js → Category-DOhNama9.js} +4 -4
- package/dist/{CookingGuide-B-yvD9ZA.js → CookingGuide-CUR57F4P.js} +29 -29
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-bIONGM6k.js} +1 -1
- package/dist/{Group-CY8lUzQG.js → Group-BsGJ0omP.js} +1 -1
- package/dist/{Group-13i5igrS.js → Group-z-0jQPCd.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js → Group.vue_vue_type_script_setup_true_lang-bBWkJ2Hx.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BbqcH4sM.js} +19 -19
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CVGilzd0.js} +4210 -4210
- package/dist/{Ingredient-vrUOW6gk.js → Ingredient-D38IVDXK.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CKmyz9CP.js} +2 -2
- package/dist/{LinkProductSideSheet-DMbJG6wf.js → LinkProductSideSheet-DsBA_o9g.js} +4 -4
- package/dist/{MenuSetting-Di2xwm00.js → MenuSetting-D-tln58o.js} +7 -7
- package/dist/{OrderPacing-CCe-IcGO.js → OrderPacing-BdCEHKD9.js} +7 -7
- package/dist/{PrintRoute-CcfObcHY.js → PrintRoute-DKFMqyeI.js} +10 -10
- package/dist/{Product-ChUVnMgG.js → Product-Dzo4ljes.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js → Product.vue_vue_type_script_setup_true_lang-BtE2aiwU.js} +58 -58
- package/dist/{ProductInternalTools-D9HXhgo5.js → ProductInternalTools-Z6XR4zko.js} +14 -14
- package/dist/{Products-Bly2ktEC.js → Products-CCo675Ee.js} +63 -63
- package/dist/{Publish-C8ubb8Qf.js → Publish-tixV8Of1.js} +107 -107
- package/dist/{Recipe-BpMRLsyO.js → Recipe-V9kzxmlf.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DBhAzVz3.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js → RuleView.vue_vue_type_script_setup_true_lang-D9DqmAVY.js} +3 -3
- package/dist/{Scheduler-CiB4b2Fn.js → Scheduler-0UpDGQKJ.js} +17 -17
- package/dist/{ServingSequence-BlcyW-dv.js → ServingSequence-CutiXht7.js} +3 -3
- package/dist/{Setting-DqkL6YYU.js → Setting-jyYmoDiq.js} +5 -5
- package/dist/{Subcategory-B4Jg_wtT.js → Subcategory-CQSKOLjU.js} +10 -10
- package/dist/{Takeaway-5G3f7jWT.js → Takeaway-CQ0m09TB.js} +1 -1
- package/dist/{Takeaway-5rFPYYNA.js → Takeaway-DeCthkOI.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js → Takeaway.vue_vue_type_script_setup_true_lang-FHE6oQ0d.js} +7 -7
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-D9Ga3fOj.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-Bz32rpvX.js} +2 -2
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DCPGAyOm.js +5858 -0
- package/dist/{Unit-CAkdmQLg.js → Unit-_XiPfauV.js} +2 -2
- package/dist/{Variant-BbLQqbAK.js → Variant-DfdMywhn.js} +6 -6
- package/dist/{_id_-Dzacr40I.js → _id_-Yj5av4B4.js} +12 -12
- package/dist/{app-4yWs09Fr.js → app-BcGgfvbE.js} +102 -102
- package/dist/{app-Deov1985.js → app-CqdVluGs.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/media.d.ts +10 -3
- package/dist/apps/mf-menu/src/app.d.ts +60 -10
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +67 -21
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ManageImageDrawer.vue.d.ts +33 -3
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ProductImageField.vue.d.ts +31 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/RegenerateImageDialog.vue.d.ts +10 -0
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +22 -0
- package/dist/apps/mf-menu/src/manager/menu/itemOverrider.d.ts +17 -0
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +0 -1
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +9 -3
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-B2WLhKkV.js → linked-status-DdDQXL8Y.js} +3 -3
- package/dist/assets/{menu-export-Dcw5a_dN.js → menu-export-CK5bJyLT.js} +4 -4
- package/dist/assets/{override-menu-cBe2aMY6.js → override-menu-CHL7Bynw.js} +3 -3
- package/dist/assets/{validate-menu-BM-5GK85.js → validate-menu-g2fslPcE.js} +2 -2
- package/dist/{catalog-DKygS2Cs.js → catalog-B_yk-l1-.js} +1 -1
- package/dist/{catalogSetting-Bn2TplvM.js → catalogSetting-Dl7uIiJm.js} +1 -1
- package/dist/{currency-DXgNHtK8.js → currency-BpjSDqef.js} +1 -1
- package/dist/dayjs.min-CVH5LqOA.js +7 -0
- package/dist/{discardConfirm-DZwzKO-Q.js → discardConfirm-fCmrAVO1.js} +1 -1
- package/dist/{index-K-MBqJJo.js → index-CD_omf3p.js} +1 -1
- package/dist/{index-B48KLyqg.js → index-Cru6sUb6.js} +5 -5
- package/dist/{index-BEocaqRK.js → index-LYc0WKDO.js} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-Nl505vPi.js → index.vue_vue_type_script_setup_true_lang-qgDBinUn.js} +7932 -7868
- package/dist/{item-Da3ArD-G.js → item-EPxRgVm0.js} +4904 -4654
- package/dist/{jszip.min-Cc2eR4Cq.js → jszip.min-CNgWv4I3.js} +52 -52
- package/dist/{linkProducts-GNuUxFEE.js → linkProducts-DvQ0oP1V.js} +6 -6
- package/dist/{memberPricing-T-jr7tn1.js → memberPricing-deWSH2K0.js} +1 -1
- package/dist/{menu-DSDRAil-.js → menu-DKJ7olgK.js} +1 -1
- package/dist/{menuV2-fTlJdjxi.js → menuV2-CB3eZiiP.js} +318 -313
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-Dgo1fySS.js → order_pacing-DvP19Nxa.js} +5 -5
- package/dist/{priceTier-aT_gIfrN.js → priceTier-DyxDcoSh.js} +1 -1
- package/dist/{rules-Cx2hkV20.js → rules-GmuBnHtU.js} +3 -3
- package/dist/{scheduler-Bd-q7yF8.js → scheduler-BWAzMbPl.js} +28 -28
- package/dist/{toExcel-qfjR83qT.js → toExcel-BMOGsD6n.js} +2 -2
- package/dist/{unit-n1T9grbM.js → unit-BCREKGn9.js} +24 -24
- package/package.json +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js +0 -5836
- package/dist/dayjs.min-DpX65tgj.js +0 -7
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as v, computed as $, resolveComponent as
|
|
2
|
-
import { J as O, F as ne } from "./jszip.min-
|
|
3
|
-
import { l as D } from "./discardConfirm-
|
|
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-CNgWv4I3.js";
|
|
3
|
+
import { l as D } from "./discardConfirm-fCmrAVO1.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,
|
|
6
|
+
import { b as re, u as ce, p as de, x as me } from "./index.vue_vue_type_script_setup_true_lang-qgDBinUn.js";
|
|
7
7
|
import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
8
|
-
import { u as pe, a as ge } from "./menu-
|
|
9
|
-
import { a as fe } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { aj as he, ak as ye, al as be, am as ve, an as _e } from "./item-
|
|
8
|
+
import { u as pe, a as ge } from "./menu-DKJ7olgK.js";
|
|
9
|
+
import { a as fe } from "./Product.vue_vue_type_script_setup_true_lang-BtE2aiwU.js";
|
|
10
|
+
import { aj as he, ak as ye, al as be, am as ve, an as _e } from "./item-EPxRgVm0.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"
|
|
@@ -29,7 +29,7 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
29
29
|
}, Oe = {
|
|
30
30
|
key: 1,
|
|
31
31
|
class: "flex-1 overflow-y-auto p-16"
|
|
32
|
-
}, De = { class: "space-y-12" }, Ve = { class: "fm-typo-en-body-sm font-medium break-all" }, Ze = { class: "flex" },
|
|
32
|
+
}, De = { class: "space-y-12" }, Ve = { class: "fm-typo-en-body-sm font-medium break-all" }, Ze = { class: "flex" }, We = { class: "w-64 h-64 bg-gray-100 rounded-md overflow-hidden" }, qe = ["src", "alt"], Ge = /* @__PURE__ */ Z({
|
|
33
33
|
__name: "ImageUpdatePreview",
|
|
34
34
|
props: {
|
|
35
35
|
matchedImages: {},
|
|
@@ -45,7 +45,7 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
45
45
|
F("update", u.matchedImages);
|
|
46
46
|
}
|
|
47
47
|
return (w, l) => {
|
|
48
|
-
const x =
|
|
48
|
+
const x = W("fm-button");
|
|
49
49
|
return r(), c("div", we, [
|
|
50
50
|
s("div", xe, [
|
|
51
51
|
l[2] || (l[2] = s("h2", { class: "fm-typo-en-headline-sm font-semibold" }, "Update Product Images", -1)),
|
|
@@ -135,12 +135,12 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
135
135
|
}, [
|
|
136
136
|
s("div", Ve, U(m.filename), 1),
|
|
137
137
|
s("div", Ze, [
|
|
138
|
-
s("div",
|
|
138
|
+
s("div", We, [
|
|
139
139
|
s("img", {
|
|
140
140
|
src: m.imageUrl,
|
|
141
141
|
alt: m.filename,
|
|
142
142
|
class: "w-full h-full object-cover"
|
|
143
|
-
}, null, 8,
|
|
143
|
+
}, null, 8, qe)
|
|
144
144
|
])
|
|
145
145
|
])
|
|
146
146
|
]))), 128))
|
|
@@ -169,7 +169,7 @@ const He = {
|
|
|
169
169
|
filename: a
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
async function
|
|
172
|
+
async function q(e, a = "images.zip") {
|
|
173
173
|
const o = new O();
|
|
174
174
|
e.forEach(({ blob: d, filename: n }) => {
|
|
175
175
|
d && o.file(n, d);
|
|
@@ -216,7 +216,7 @@ const He = {
|
|
|
216
216
|
})).filter((n) => n !== null);
|
|
217
217
|
if (a.value = "Creating ZIP file...", d.length > 0) {
|
|
218
218
|
const n = `images_${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.zip`;
|
|
219
|
-
await
|
|
219
|
+
await q(d, n);
|
|
220
220
|
} else
|
|
221
221
|
throw new Error("Failed to fetch any images");
|
|
222
222
|
},
|
|
@@ -355,7 +355,7 @@ const He = {
|
|
|
355
355
|
a.value = "";
|
|
356
356
|
}
|
|
357
357
|
return ge().resetOnMount(), (e, a) => {
|
|
358
|
-
const o =
|
|
358
|
+
const o = W("fm-button");
|
|
359
359
|
return r(), c(P, null, [
|
|
360
360
|
_.value ? (r(), c("div", He, [
|
|
361
361
|
I(Ge, {
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as B, computed as _, ref as W, resolveComponent as F, createBlock as m, openBlock as l, unref as e, withCtx as f, createElementVNode as d, toDisplayString as
|
|
2
|
-
import { D as
|
|
3
|
-
import { J as re, F as ie } from "./jszip.min-
|
|
4
|
-
import { l as R } from "./discardConfirm-
|
|
5
|
-
import { w as le } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { h as V, A as j } from "./app-
|
|
7
|
-
import { u as
|
|
1
|
+
import { defineComponent as B, computed as _, ref as W, resolveComponent as F, createBlock as m, openBlock as l, unref as e, withCtx as f, createElementVNode as d, toDisplayString as K, createVNode as u, createCommentVNode as w, createElementBlock as U, Fragment as z } from "vue";
|
|
2
|
+
import { D as E } from "./dayjs.min-CVH5LqOA.js";
|
|
3
|
+
import { J as re, F as ie } from "./jszip.min-CNgWv4I3.js";
|
|
4
|
+
import { l as R } from "./discardConfirm-fCmrAVO1.js";
|
|
5
|
+
import { w as le } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CVGilzd0.js";
|
|
6
|
+
import { h as V, A as j } from "./app-BcGgfvbE.js";
|
|
7
|
+
import { u as Z, 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-qgDBinUn.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 I, FmButtonColorThemeVariant as S } from "@feedmepos/ui-library";
|
|
10
|
+
import { _ as D } 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
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-
|
|
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 J } from "./LinkProductSideSheet-
|
|
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-
|
|
20
|
-
const Me = { class: "space-y-24 mb-24" },
|
|
13
|
+
import { u as ge, a as be } from "./menu-DKJ7olgK.js";
|
|
14
|
+
import { w as ye } from "./item-EPxRgVm0.js";
|
|
15
|
+
import { _ as G, a as ke } from "./Product.vue_vue_type_script_setup_true_lang-BtE2aiwU.js";
|
|
16
|
+
import { L as J } from "./LinkProductSideSheet-DsBA_o9g.js";
|
|
17
|
+
import { _ as xe } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DCPGAyOm.js";
|
|
18
|
+
import { u as Se } from "./linkProducts-DvQ0oP1V.js";
|
|
19
|
+
import { m as he } from "./toExcel-BMOGsD6n.js";
|
|
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: {
|
|
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 n =
|
|
27
|
+
setup(T) {
|
|
28
|
+
const n = T, p = _(() => n.message.replace("[[value]]", n.value)), k = W(""), o = te(), { emitAction: h } = pe();
|
|
29
29
|
return (v, r) => {
|
|
30
30
|
const M = F("FmTextField"), g = F("FmButton"), x = F("FmForm");
|
|
31
31
|
return l(), m(x, {
|
|
@@ -34,8 +34,8 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
34
34
|
}, {
|
|
35
35
|
default: f(() => [
|
|
36
36
|
d("div", Me, [
|
|
37
|
-
d("div", null,
|
|
38
|
-
d("div", { innerHTML: p.value }, null, 8,
|
|
37
|
+
d("div", null, K(v.description), 1),
|
|
38
|
+
d("div", { innerHTML: p.value }, null, 8, Ce),
|
|
39
39
|
d("div", null, [
|
|
40
40
|
u(M, {
|
|
41
41
|
modelValue: k.value,
|
|
@@ -48,7 +48,7 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
48
48
|
rules: [(c) => c === v.value || "Value does not match"]
|
|
49
49
|
}, null, 8, ["modelValue", "placeholder", "rules"])
|
|
50
50
|
]),
|
|
51
|
-
d("div",
|
|
51
|
+
d("div", we, [
|
|
52
52
|
u(g, {
|
|
53
53
|
label: "Cancel",
|
|
54
54
|
variant: "secondary",
|
|
@@ -67,8 +67,8 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
67
67
|
}
|
|
68
68
|
}), $e = /* @__PURE__ */ B({
|
|
69
69
|
__name: "Migrate",
|
|
70
|
-
setup(
|
|
71
|
-
const n =
|
|
70
|
+
setup(T) {
|
|
71
|
+
const n = Z(), p = ee(), { isRestaurantLevelMenu: k } = p, o = ne(), { minor: h } = Q(o), v = W(!1), r = te();
|
|
72
72
|
async function M() {
|
|
73
73
|
g.value || v.value || r.open({
|
|
74
74
|
title: "Migrate to new version",
|
|
@@ -94,8 +94,8 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
const g = _(() => {
|
|
97
|
-
var
|
|
98
|
-
if (((
|
|
97
|
+
var C;
|
|
98
|
+
if (((C = p.sessionUser.value) == null ? void 0 : C.role.isAdmin) === !0)
|
|
99
99
|
return null;
|
|
100
100
|
const c = p.restaurants.value;
|
|
101
101
|
if (!c.length) return "Required at least one restaurant to migrate";
|
|
@@ -113,13 +113,13 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
113
113
|
action: "Migrate",
|
|
114
114
|
"z-index": 0,
|
|
115
115
|
onOnAction: M
|
|
116
|
-
})) :
|
|
116
|
+
})) : w("", !0);
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
}), Ve = "/assets/menu-export-
|
|
119
|
+
}), Ve = "/assets/menu-export-CK5bJyLT.js", Te = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ae = { class: "flex items-center" }, Ee = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ie = { class: "fm-typo-en-body-md-600 font-semibold" }, De = { class: "flex gap-8" }, et = /* @__PURE__ */ B({
|
|
120
120
|
__name: "Products",
|
|
121
|
-
setup(
|
|
122
|
-
const { t: n } = de(), p = ee(), k = Q(ne()), o =
|
|
121
|
+
setup(T) {
|
|
122
|
+
const { t: n } = de(), p = ee(), k = Q(ne()), o = Z(), 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
|
|
@@ -132,13 +132,13 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
132
132
|
for (let $ = 0; $ < i.length; $++)
|
|
133
133
|
a.file(`${t[$]}.xlsx`, i[$]);
|
|
134
134
|
const s = await a.generateAsync({ type: "blob" });
|
|
135
|
-
ie.saveAs(s, `books_${
|
|
135
|
+
ie.saveAs(s, `books_${E().format("DD-MM-YYYY_HH-mm")}.zip`);
|
|
136
136
|
}
|
|
137
137
|
async function b() {
|
|
138
138
|
await k.minor(
|
|
139
139
|
async () => {
|
|
140
140
|
if (await o.readMenu(), o.version === X.enum.v4) {
|
|
141
|
-
const i = o.state.menu, t =
|
|
141
|
+
const i = o.state.menu, t = E().format("DD-MM-YYYY_HH-mm"), a = [
|
|
142
142
|
`menu_${t}`,
|
|
143
143
|
`addonGroup_${t}`,
|
|
144
144
|
`itemLinkedAddon_${t}`,
|
|
@@ -153,7 +153,7 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
153
153
|
);
|
|
154
154
|
await c(s, a);
|
|
155
155
|
} else {
|
|
156
|
-
const i = he(g.value), t = `menu_${
|
|
156
|
+
const i = he(g.value), t = `menu_${E().format("DD-MM-YYYY_HH-mm")}`;
|
|
157
157
|
await le(i, `${t}.xlsx`, {
|
|
158
158
|
bookType: "xlsx",
|
|
159
159
|
bookSST: !0,
|
|
@@ -166,12 +166,12 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
166
166
|
);
|
|
167
167
|
}
|
|
168
168
|
const {
|
|
169
|
-
menuItems:
|
|
170
|
-
categories:
|
|
169
|
+
menuItems: A,
|
|
170
|
+
categories: C,
|
|
171
171
|
linkItemRules: y,
|
|
172
|
-
handleSubmit:
|
|
173
|
-
catalogManager:
|
|
174
|
-
schedulerManager:
|
|
172
|
+
handleSubmit: Y,
|
|
173
|
+
catalogManager: L,
|
|
174
|
+
schedulerManager: N
|
|
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 = {
|
|
@@ -197,13 +197,13 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
197
197
|
u(ke)
|
|
198
198
|
]),
|
|
199
199
|
"append-heading": f(() => [
|
|
200
|
-
d("div",
|
|
201
|
-
d("div",
|
|
202
|
-
d("div",
|
|
203
|
-
d("p",
|
|
200
|
+
d("div", Te, [
|
|
201
|
+
d("div", Ae, [
|
|
202
|
+
d("div", Ee, [
|
|
203
|
+
d("p", Ie, K(x.value), 1)
|
|
204
204
|
])
|
|
205
205
|
]),
|
|
206
|
-
d("div",
|
|
206
|
+
d("div", De, [
|
|
207
207
|
ae.value ? (l(), m(G, { key: 1 }, {
|
|
208
208
|
default: f(({ trigger: s }) => [
|
|
209
209
|
u(_e, null, {
|
|
@@ -228,52 +228,52 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
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(I).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(I).Primary,
|
|
242
242
|
label: e(n)("menu.products.actions.export"),
|
|
243
243
|
onClick: b
|
|
244
|
-
}, null, 8, ["bg-color", "text-color", "variant", "label"])) :
|
|
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(I).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"])
|
|
254
254
|
]),
|
|
255
255
|
_: 1
|
|
256
|
-
})) :
|
|
256
|
+
})) : w("", !0)
|
|
257
257
|
], 64)),
|
|
258
258
|
x.value > 0 ? (l(), U(z, { key: 2 }, [
|
|
259
|
-
h.value.create ? (l(), m(
|
|
259
|
+
h.value.create ? (l(), m(D, {
|
|
260
260
|
key: 0,
|
|
261
261
|
label: e(n)("menu.products.actions.add"),
|
|
262
262
|
"prepend-icon": "add",
|
|
263
263
|
onClick: t[0] || (t[0] = (s) => e(v).create(null))
|
|
264
264
|
}, null, 8, ["label"])) : r.value ? (l(), m(J, {
|
|
265
265
|
key: 1,
|
|
266
|
-
"categorized-items": e(
|
|
267
|
-
"initial-value": e(
|
|
266
|
+
"categorized-items": e(L).linkableItems.value,
|
|
267
|
+
"initial-value": e(L).currentItems.value,
|
|
268
268
|
"show-variant": !1,
|
|
269
|
-
"menu-items": e(
|
|
270
|
-
categories: e(
|
|
269
|
+
"menu-items": e(A),
|
|
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(D, {
|
|
277
277
|
label: e(n)("menu.products.actions.link"),
|
|
278
278
|
"prepend-icon": "link",
|
|
279
279
|
onClick: s
|
|
@@ -282,24 +282,24 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
282
282
|
_: 1
|
|
283
283
|
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (l(), m(J, {
|
|
284
284
|
key: 2,
|
|
285
|
-
"categorized-items": e(
|
|
286
|
-
"initial-value": e(
|
|
285
|
+
"categorized-items": e(N).linkableItems.value,
|
|
286
|
+
"initial-value": e(N).currentItems.value,
|
|
287
287
|
"show-variant": !1,
|
|
288
|
-
"menu-items": e(
|
|
289
|
-
categories: e(
|
|
288
|
+
"menu-items": e(A),
|
|
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(D, {
|
|
296
296
|
label: e(n)("menu.products.actions.apply_scheduler"),
|
|
297
297
|
onClick: s
|
|
298
298
|
}, null, 8, ["label", "onClick"])
|
|
299
299
|
]),
|
|
300
300
|
_: 1
|
|
301
301
|
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"]))
|
|
302
|
-
], 64)) :
|
|
302
|
+
], 64)) : w("", !0)
|
|
303
303
|
])
|
|
304
304
|
])
|
|
305
305
|
]),
|