@feedmepos/mf-menu 0.32.62 → 0.32.63-dev.1
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-CE4fZP2_.js → App-DhfTGlgM.js} +467 -462
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-PpYjjdOP.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-C_JKiJRD.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js} +8 -8
- package/dist/{Catalog-C2MyXkps.js → Catalog-WuZJfM6l.js} +78 -78
- package/dist/{Category-B7Uxbyug.js → Category-BeIo7XWY.js} +20 -20
- package/dist/{Category-BoV0MYQp.js → Category-D-cQQCPS.js} +19 -19
- package/dist/{CookingGuide-Bdyj8XMv.js → CookingGuide-B-yvD9ZA.js} +88 -88
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-EDbgLHTU.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js} +1 -1
- package/dist/{Group-BuFbi0Z-.js → Group-13i5igrS.js} +5 -5
- package/dist/{Group-DYpxc5ui.js → Group-CY8lUzQG.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-B5Uw2Rzm.js → Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js} +95 -94
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-COYg8e7h.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js} +13 -13
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-YY25YW4B.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js} +219 -220
- package/dist/{Ingredient-Ddw06I0B.js → Ingredient-vrUOW6gk.js} +49 -49
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CsWdL5Lz.js → InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js} +2 -2
- package/dist/{LinkProductSideSheet-COAMZqOM.js → LinkProductSideSheet-DMbJG6wf.js} +8 -8
- package/dist/{MenuSetting--G1_lGoV.js → MenuSetting-Di2xwm00.js} +10 -10
- package/dist/{OrderPacing-DnvLJh5M.js → OrderPacing-CCe-IcGO.js} +28 -28
- package/dist/{PrintRoute-CP-3JGP3.js → PrintRoute-CcfObcHY.js} +27 -27
- package/dist/{Product-D-q15-Qw.js → Product-ChUVnMgG.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BaOg60Q6.js → Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js} +153 -152
- package/dist/{ProductInternalTools-wYn0bzml.js → ProductInternalTools-D9HXhgo5.js} +80 -79
- package/dist/{Products-CxEsB-7l.js → Products-Bly2ktEC.js} +75 -74
- package/dist/{Publish-BCljLztW.js → Publish-C8ubb8Qf.js} +113 -113
- package/dist/{Recipe-DgfobgnQ.js → Recipe-BpMRLsyO.js} +32 -32
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BgDVFKRI.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DCbrAMxd.js → RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js} +474 -473
- package/dist/{Scheduler-C-LJs7Gl.js → Scheduler-CiB4b2Fn.js} +9 -9
- package/dist/{ServingSequence-BoaDRfsc.js → ServingSequence-BlcyW-dv.js} +18 -18
- package/dist/{Setting-BfFqBD9u.js → Setting-DqkL6YYU.js} +31 -31
- package/dist/{Subcategory-BsnC9ZSS.js → Subcategory-B4Jg_wtT.js} +43 -43
- package/dist/{Takeaway-PilRifJP.js → Takeaway-5G3f7jWT.js} +1 -1
- package/dist/{Takeaway-dSEAc70g.js → Takeaway-5rFPYYNA.js} +16 -16
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CgioM0sV.js → Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js} +23 -23
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CHf3g1ia.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-A43XxqyC.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js} +8 -9
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js +5836 -0
- package/dist/{Unit-DW1dFJas.js → Unit-CAkdmQLg.js} +2 -2
- package/dist/{Variant-CzLzrt2N.js → Variant-BbLQqbAK.js} +13 -13
- package/dist/{_id_-qfASfKMD.js → _id_-Dzacr40I.js} +13 -13
- package/dist/{app-BB33yKM6.js → app-4yWs09Fr.js} +495 -495
- package/dist/{app-CJnEQz-U.js → app-Deov1985.js} +3 -3
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/media.d.ts +161 -0
- package/dist/apps/mf-menu/src/app.d.ts +340 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +150 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/CustomDimensionDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadDialog.vue.d.ts +16 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ManageImageDrawer.vue.d.ts +42 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ProductImageField.vue.d.ts +75 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/RegenerateImageDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +3 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
- package/dist/apps/mf-menu/src/composable/remyImageTarget.d.ts +5 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +14 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
- package/dist/apps/mf-menu/src/types/rule.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +3 -2
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +8 -8
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-VaVE9Pyh.js → linked-status-B2WLhKkV.js} +3 -3
- package/dist/assets/{menu-export-DD9Zt6XH.js → menu-export-Dcw5a_dN.js} +3 -3
- package/dist/assets/{override-menu-DZCgrhuF.js → override-menu-cBe2aMY6.js} +3 -3
- package/dist/assets/{validate-menu-BFsQlikL.js → validate-menu-BM-5GK85.js} +2 -2
- package/dist/{catalog-Cvn1ZMGp.js → catalog-DKygS2Cs.js} +6 -6
- package/dist/{catalogSetting-D2bOCGW7.js → catalogSetting-Bn2TplvM.js} +1 -1
- package/dist/currency-DXgNHtK8.js +7 -0
- package/dist/dayjs.min-DpX65tgj.js +7 -0
- package/dist/discardConfirm-DZwzKO-Q.js +3704 -0
- package/dist/{index-B2fxLO4K.js → index-B48KLyqg.js} +61 -61
- package/dist/{index-CizrxT_e.js → index-BEocaqRK.js} +30 -30
- package/dist/index-K-MBqJJo.js +222 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-gaRM4vfS.js → index.vue_vue_type_script_setup_true_lang-Nl505vPi.js} +44918 -51563
- package/dist/item-Da3ArD-G.js +13213 -0
- package/dist/{jszip.min-BXLegUsz.js → jszip.min-Cc2eR4Cq.js} +119 -119
- package/dist/linkProducts-GNuUxFEE.js +331 -0
- package/dist/{memberPricing-CizI1rUM.js → memberPricing-T-jr7tn1.js} +1 -1
- package/dist/{menu-BCed1YCE.js → menu-DSDRAil-.js} +1 -1
- package/dist/{menuV2-Bo9AHrdr.js → menuV2-fTlJdjxi.js} +162 -160
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-BkfQeNeC.js → order_pacing-Dgo1fySS.js} +17 -17
- package/dist/packages/shared/src/helpers/agentCode.d.ts +9 -0
- package/dist/{priceTier-rjuK-b6U.js → priceTier-aT_gIfrN.js} +3 -3
- package/dist/{rules-DHX_hK6G.js → rules-Cx2hkV20.js} +8 -8
- package/dist/{scheduler-BsfPbtM2.js → scheduler-Bd-q7yF8.js} +62 -62
- package/dist/{toExcel-DJHljg_L.js → toExcel-qfjR83qT.js} +2 -2
- package/dist/{unit-BxTWR1dZ.js → unit-n1T9grbM.js} +64 -64
- package/package.json +3 -3
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DGqao47l.js +0 -399
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DY1umres.js +0 -6058
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/thumbnailUpload.d.ts +0 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadForm.vue.d.ts +0 -38
- package/dist/currency-DQDsuXB5.js +0 -7
- package/dist/dayjs.min-CzUkrXIR.js +0 -7
- package/dist/discardConfirm-BHni0LNu.js +0 -28
- package/dist/index-CisutoS9.js +0 -156
- package/dist/item-DOHVD6CN.js +0 -9098
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as H, ref as P, computed as p, resolveComponent as g, createBlock as k, openBlock as c, unref as l, withCtx as _, createElementVNode as d, createVNode as m, createCommentVNode as J, toDisplayString as S, createElementBlock as V, Fragment as
|
|
1
|
+
import { defineComponent as H, ref as P, computed as p, resolveComponent as g, createBlock as k, openBlock as c, unref as l, withCtx as _, createElementVNode as d, createVNode as m, createCommentVNode as J, toDisplayString as S, createElementBlock as V, Fragment as B, renderList as K, h as f, withModifiers as j } from "vue";
|
|
2
2
|
import { useI18n as Q } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as W, useBreakpoints as oe, useSnackbar as ne, useDialog as ae } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as le } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as re } from "./app-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { L as pe } from "./LinkProductSideSheet-
|
|
5
|
+
import { _ as re } from "./app-4yWs09Fr.js";
|
|
6
|
+
import { d as Y, g as U, h as M, D as X, u as se, i as ie, b as ue, _ as de } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
7
|
+
import { u as ce, l as me } from "./discardConfirm-DZwzKO-Q.js";
|
|
8
|
+
import { _ as G } from "./RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js";
|
|
9
|
+
import { L as pe } from "./LinkProductSideSheet-DMbJG6wf.js";
|
|
10
10
|
import { _ as _e } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
11
11
|
const fe = { class: "fm-typo-en-title-md-600" }, ve = { class: "space-y-32" }, ye = { class: "space-y-16" }, ge = { class: "flex items-center gap-8" }, he = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, be = { class: "flex-1" }, ke = { class: "grow overflow-y-auto" }, xe = { class: "text-fm-color-typo-secondary bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-fm-color-neutral-gray-200" }, Fe = { class: "px-16 py-8 flex-1" }, Ie = { class: "py-8" }, Ce = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__ */ H({
|
|
12
12
|
__name: "PrintDepartmentDialog",
|
|
@@ -54,7 +54,7 @@ const fe = { class: "fm-typo-en-title-md-600" }, ve = { class: "space-y-32" }, y
|
|
|
54
54
|
applyToItems: r.value.applyToItems.filter((o) => o !== s)
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
const { t: a } = Q(),
|
|
57
|
+
const { t: a } = Q(), O = p(() => r.value._id ? a("menu.print_route.department_dialog.update.title") : a("menu.print_route.department_dialog.add.title")), D = p(() => r.value._id ? a("menu.print_route.department_dialog.update.action") : a("menu.print_route.department_dialog.add.action")), $ = p(() => r.value.applyToItems.length), I = p(
|
|
58
58
|
() => r.value.applyToItems.reduce((s, o) => (s[o] = [], s), {})
|
|
59
59
|
), C = P(""), q = p(() => {
|
|
60
60
|
const s = C.value.toLowerCase();
|
|
@@ -64,8 +64,8 @@ const fe = { class: "fm-typo-en-title-md-600" }, ve = { class: "space-y-32" }, y
|
|
|
64
64
|
);
|
|
65
65
|
return T.length && o.push({ ...b, items: T }), o;
|
|
66
66
|
}, []);
|
|
67
|
-
}), e = x, n =
|
|
68
|
-
() => !
|
|
67
|
+
}), e = x, n = ce(
|
|
68
|
+
() => !me.isEqual(h.value, r.value),
|
|
69
69
|
() => {
|
|
70
70
|
F.value = !1;
|
|
71
71
|
}
|
|
@@ -78,7 +78,7 @@ const fe = { class: "fm-typo-en-title-md-600" }, ve = { class: "space-y-32" }, y
|
|
|
78
78
|
return c(), k(ee, {
|
|
79
79
|
modelValue: F.value,
|
|
80
80
|
"onUpdate:modelValue": o[3] || (o[3] = (u) => F.value = u),
|
|
81
|
-
header:
|
|
81
|
+
header: O.value,
|
|
82
82
|
"max-width": 560,
|
|
83
83
|
"is-container": l(W).FmForm,
|
|
84
84
|
"is-container-props": {
|
|
@@ -89,7 +89,7 @@ const fe = { class: "fm-typo-en-title-md-600" }, ve = { class: "space-y-32" }, y
|
|
|
89
89
|
"onOn:clickedAway": l(n)
|
|
90
90
|
}, {
|
|
91
91
|
"side-sheet-header": _(() => [
|
|
92
|
-
d("span", fe, S(
|
|
92
|
+
d("span", fe, S(O.value), 1)
|
|
93
93
|
]),
|
|
94
94
|
"side-sheet-footer": _(() => [
|
|
95
95
|
d("div", Ce, [
|
|
@@ -156,7 +156,7 @@ const fe = { class: "fm-typo-en-title-md-600" }, ve = { class: "space-y-32" }, y
|
|
|
156
156
|
d("div", ye, [
|
|
157
157
|
d("div", ge, [
|
|
158
158
|
d("div", he, S(l(a)("menu.print_route.department_dialog.sections.link_product.products_linked", {
|
|
159
|
-
count:
|
|
159
|
+
count: $.value
|
|
160
160
|
})), 1),
|
|
161
161
|
d("div", be, [
|
|
162
162
|
m(Z, {
|
|
@@ -167,21 +167,21 @@ const fe = { class: "fm-typo-en-title-md-600" }, ve = { class: "space-y-32" }, y
|
|
|
167
167
|
])
|
|
168
168
|
]),
|
|
169
169
|
d("div", ke, [
|
|
170
|
-
(c(!0), V(
|
|
170
|
+
(c(!0), V(B, null, K(q.value, (u, te) => (c(), V("div", {
|
|
171
171
|
key: u.id || te
|
|
172
172
|
}, [
|
|
173
173
|
d("div", xe, S(u.name), 1),
|
|
174
|
-
(c(!0), V(
|
|
175
|
-
key:
|
|
174
|
+
(c(!0), V(B, null, K(u.items, (N) => (c(), V("div", {
|
|
175
|
+
key: N._id,
|
|
176
176
|
class: "flex items-center border-b border-b-fm-color-neutral-gray-100"
|
|
177
177
|
}, [
|
|
178
|
-
d("div", Fe, S(
|
|
178
|
+
d("div", Fe, S(N.name), 1),
|
|
179
179
|
d("div", Ie, [
|
|
180
180
|
m(i, {
|
|
181
181
|
icon: "delete",
|
|
182
182
|
variant: "tertiary",
|
|
183
183
|
"text-color": "neutral-gray-400",
|
|
184
|
-
onClick: () => E(
|
|
184
|
+
onClick: () => E(N._id)
|
|
185
185
|
}, null, 8, ["onClick"])
|
|
186
186
|
])
|
|
187
187
|
]))), 128))
|
|
@@ -242,7 +242,7 @@ const Ve = {
|
|
|
242
242
|
setup(v) {
|
|
243
243
|
const {
|
|
244
244
|
t
|
|
245
|
-
} = Q(), x = oe(), R = p(() => x.breakpoints.value.xs), w =
|
|
245
|
+
} = Q(), x = oe(), R = p(() => x.breakpoints.value.xs), w = se(), F = p(() => w.categorizedItems), h = p(() => {
|
|
246
246
|
const e = w.state.menu.modules.item;
|
|
247
247
|
return w.printDepartments.map((y) => ({
|
|
248
248
|
...y,
|
|
@@ -282,7 +282,7 @@ const Ve = {
|
|
|
282
282
|
textColor: "neutral-gray-400",
|
|
283
283
|
variant: "tertiary",
|
|
284
284
|
onClick: j(() => {
|
|
285
|
-
|
|
285
|
+
$(e.row.original);
|
|
286
286
|
}, ["stop", "prevent"])
|
|
287
287
|
})])
|
|
288
288
|
}]);
|
|
@@ -299,13 +299,13 @@ const Ve = {
|
|
|
299
299
|
}) => y)
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
|
-
const E = ue(
|
|
303
|
-
async function
|
|
302
|
+
const E = ie(ue(ne())), a = p(() => E.checkMenuIsLoading());
|
|
303
|
+
async function O(e) {
|
|
304
304
|
const n = e._id ? Pe(e, e.applyToItems) : Te(e, e.applyToItems);
|
|
305
305
|
await E.updateMenu(n, e.name);
|
|
306
306
|
}
|
|
307
307
|
const D = ae();
|
|
308
|
-
function
|
|
308
|
+
function $(e) {
|
|
309
309
|
let n = [f("span", t("menu.print_route.dialogs.remove.message.prefix")), f("span", {
|
|
310
310
|
class: "fm-typo-en-body-lg-600"
|
|
311
311
|
}, e.name), f("span", "?")];
|
|
@@ -349,7 +349,7 @@ const Ve = {
|
|
|
349
349
|
variant: "primary",
|
|
350
350
|
onClick: r
|
|
351
351
|
}, null, 8, ["disabled", "label"])) : J("", !0)])]),
|
|
352
|
-
default: _(() => [z.value ? (c(), V(
|
|
352
|
+
default: _(() => [z.value ? (c(), V(B, {
|
|
353
353
|
key: 1
|
|
354
354
|
}, [d("div", Le, [m(y, {
|
|
355
355
|
autofocus: "",
|
|
@@ -362,7 +362,7 @@ const Ve = {
|
|
|
362
362
|
class: "w-full px-16 flex-1 min-h-0 overflow-scroll pb-64",
|
|
363
363
|
separator: ""
|
|
364
364
|
}, {
|
|
365
|
-
default: _(() => [(c(!0), V(
|
|
365
|
+
default: _(() => [(c(!0), V(B, null, K(q.value, (i) => (c(), k(b, {
|
|
366
366
|
key: i._id,
|
|
367
367
|
label: i.name,
|
|
368
368
|
style: {
|
|
@@ -377,7 +377,7 @@ const Ve = {
|
|
|
377
377
|
icon: "delete",
|
|
378
378
|
variant: "tertiary",
|
|
379
379
|
"text-color": "neutral-gray-400",
|
|
380
|
-
onClick: j(() =>
|
|
380
|
+
onClick: j(() => $(i), ["stop"])
|
|
381
381
|
}, null, 8, ["disabled", "onClick"])]),
|
|
382
382
|
_: 2
|
|
383
383
|
}, 1032, ["label", "onClick"]))), 128))]),
|
|
@@ -397,7 +397,7 @@ const Ve = {
|
|
|
397
397
|
onRowClick: n[1] || (n[1] = (i) => A(i.original))
|
|
398
398
|
}, null, 8, ["column-defs", "loading", "page-size", "row-data", "search-value"])]),
|
|
399
399
|
_: 1
|
|
400
|
-
}))], 64)) : (c(), k(l(
|
|
400
|
+
}))], 64)) : (c(), k(l(de), {
|
|
401
401
|
key: 0,
|
|
402
402
|
action: {
|
|
403
403
|
text: l(t)("menu.print_route.empty.action"),
|
|
@@ -409,7 +409,7 @@ const Ve = {
|
|
|
409
409
|
ref_key: "printDepartmentRef",
|
|
410
410
|
ref: C,
|
|
411
411
|
"categorized-items": F.value,
|
|
412
|
-
onOnSave:
|
|
412
|
+
onOnSave: O
|
|
413
413
|
}, null, 8, ["categorized-items"])]),
|
|
414
414
|
_: 1
|
|
415
415
|
}, 8, ["heading"]);
|