@feedmepos/mf-menu 0.32.3-beta.1 → 0.32.4-dev
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-DJBZBaaC.js → App-5YVGeojR.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-c9SlmPp2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DhoHYIHW.js} +20 -20
- package/dist/{Catalog-Ct9jk3A_.js → Catalog-BTNv5n_D.js} +18 -18
- package/dist/{Category-Cf5KfKdv.js → Category-BE-kkKcL.js} +22 -23
- package/dist/{Category-CTTAtG31.js → Category-DuLhbRxE.js} +21 -22
- package/dist/{CookingGuide-BaNzajgf.js → CookingGuide-JtE8QMC6.js} +92 -93
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CRodr6tr.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DdJ-o_PW.js} +1 -1
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js +26 -0
- package/dist/{Group-BfRPCCbK.js → Group-BP-j3K6J.js} +1 -1
- package/dist/{Group-BJep-xq-.js → Group-DhS9e2E3.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CoCq0edM.js → Group.vue_vue_type_script_setup_true_lang-DXUQrXXI.js} +33 -34
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DviXfima.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXzz4ClS.js} +24 -23
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DSrxcKIK.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Bpt-8tbe.js} +11525 -11504
- package/dist/{Ingredient-BnzW69zW.js → Ingredient-NSl0x-0T.js} +5 -6
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-D8m1pyLp.js → InventoryBinding.vue_vue_type_script_setup_true_lang-ByrNVvzs.js} +2 -2
- package/dist/LinkProductSideSheet-B_R_2iH6.js +692 -0
- package/dist/MenuSetting-C7cpv4S3.js +580 -0
- package/dist/{PrintRoute-CLsiDIkn.js → PrintRoute-DmP7KH58.js} +10 -11
- package/dist/{Product-DHE0XtX1.js → Product-B6gwN4g0.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CVR8j-XT.js → Product.vue_vue_type_script_setup_true_lang-BKhn8Txf.js} +15 -16
- package/dist/{ProductInternalTools-BQOXHzYp.js → ProductInternalTools-D5xIh2j2.js} +5 -5
- package/dist/Products-Cxx8pJGK.js +692 -0
- package/dist/{Publish-BlEcoJaI.js → Publish-ZCzRBB5V.js} +21 -22
- package/dist/{Recipe-CkcNxf7p.js → Recipe-DcHdr_5J.js} +9 -10
- package/dist/RuleView.vue_vue_type_script_setup_true_lang-edNbsZTq.js +3282 -0
- package/dist/{Scheduler-DV0s_qkV.js → Scheduler-ZhDXk5gQ.js} +18 -19
- package/dist/{ServingSequence-CFd8Nwws.js → ServingSequence-DcfMbHjn.js} +15 -16
- package/dist/{Setting-B55IsZCX.js → Setting-fqf_sOIc.js} +45 -44
- package/dist/{Subcategory-BXCcVdR3.js → Subcategory-BidmfEOK.js} +18 -19
- package/dist/{Takeaway-BDvcwBHP.js → Takeaway-C83SKEvl.js} +1 -1
- package/dist/{Takeaway--U_lsgYi.js → Takeaway-p6thRg74.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DaYk2xdF.js → Takeaway.vue_vue_type_script_setup_true_lang-Dq6CjXCv.js} +48 -49
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-VBpTghy9.js → Thumbnail.vue_vue_type_script_setup_true_lang-CjLOy2k9.js} +10 -10
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-IBM6rC5M.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CWdsp9eo.js} +17 -16
- package/dist/{Unit-DkvTsQWA.js → Unit-CKIaBxVE.js} +7 -8
- package/dist/{Variant-tte76SbR.js → Variant-CE21vKC4.js} +38 -39
- package/dist/{_id_-AVMi3j91.js → _id_-BhWpg9Kj.js} +10 -10
- package/dist/{app-0s3jY-aE.js → app-BkcVM9nE.js} +1 -1
- package/dist/app-CEIhTuYG.js +363 -0
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +250 -0
- package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleForm.vue.d.ts +146 -0
- package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleView.vue.d.ts +158 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleCondition.vue.d.ts +103 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleConditionListView.vue.d.ts +54 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleConditionSelector.vue.d.ts +50 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleForm.vue.d.ts +117 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleView.vue.d.ts +141 -0
- package/dist/apps/mf-menu/src/composable/attributes.d.ts +10 -0
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +2 -3
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +3 -1
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +3 -2
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DEGoFflv.js → linked-status-CStQ46Ze.js} +2 -2
- package/dist/assets/{override-menu-CZe07SCm.js → override-menu-DHTQAnIJ.js} +2 -2
- package/dist/assets/{validate-menu-BnHfAUEN.js → validate-menu-C_kUDOhd.js} +2 -2
- package/dist/{catalog-YE_knev1.js → catalog-WBrPmQwl.js} +1 -1
- package/dist/{catalogSetting-CeVHRHOo.js → catalogSetting-BAry7I_V.js} +1 -1
- package/dist/{category-Dph1iWr8.js → category-bW36h16p.js} +1 -1
- package/dist/{currency-Byslycrk.js → currency-vVxHIVBs.js} +1 -1
- package/dist/{index-C0T32LLy.js → index-Ba5-dCQA.js} +1 -1
- package/dist/{index-CUTY6cCm.js → index-C0EV3eSc.js} +20 -20
- package/dist/{index-DycbrG1l.js → index-XZlEgR2k.js} +8 -7
- package/dist/{index-Ddt_Nw9F.js → index-pxnQHVnU.js} +4 -4
- package/dist/{menu-tHhzkxDL.js → index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js} +18612 -18558
- package/dist/item-mFv0bFSn.js +7648 -0
- package/dist/{iteration-CcobmcUk.js → iteration-CaFp1Rtz.js} +3 -3
- package/dist/{jszip.min-DQrtMdm5.js → jszip.min-BkSmQKmf.js} +353 -353
- package/dist/{menu-DkRrqTVY.js → menu-ud-tWfIM.js} +1 -1
- package/dist/{menuV2-DJevKCqE.js → menuV2-xUMdUls0.js} +65 -65
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-Bkogs1qc.js → priceTier-BVTab4k1.js} +1 -1
- package/dist/{scheduler-BGQ_lxUL.js → scheduler-CAt7sELO.js} +13 -12
- package/dist/{subcategory-DvxvLe8X.js → subcategory-DMZuedoM.js} +2 -2
- package/dist/{toExcel-DQ4jlZPI.js → toExcel-CczXOnKy.js} +2 -2
- package/dist/{unit-DoxpI5dG.js → unit-CbD3sYqC.js} +2 -2
- package/package.json +4 -3
- package/dist/LinkProductSideSheet-C4yBnJSM.js +0 -361
- package/dist/MenuSetting-Fxl8F6N5.js +0 -618
- package/dist/Products-BLvwrz9P.js +0 -689
- package/dist/app-CjfWVFOg.js +0 -363
- package/dist/customAttributes-DvbvCfOd.js +0 -180
- package/dist/index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js +0 -57
- package/dist/item-x1WWjISR.js +0 -9175
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { defineComponent as G, ref as V, computed as R, onMounted as re, resolveComponent as w, createElementBlock as U, openBlock as y, createVNode as i, createElementVNode as o, toDisplayString as A, unref as r, Fragment as O, renderList as W, createBlock as T, withCtx as L, createCommentVNode as ce, withModifiers as N, h as Y } from "vue";
|
|
2
|
-
import { D as ae, c as de } from "./iteration-
|
|
2
|
+
import { D as ae, c as de } from "./iteration-CaFp1Rtz.js";
|
|
3
3
|
import { useRouter as me } from "vue-router";
|
|
4
4
|
import { O as pe, b as ge } from "./app-CzXxFrl1.js";
|
|
5
|
-
import { A as be, G as ve, D as te,
|
|
6
|
-
import { useI18n as J, useCoreStore as
|
|
7
|
-
import { useSnackbar as le, useDialogChild as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { a as
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as $e } from "./index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js";
|
|
5
|
+
import { A as be, G as ve, D as te, ab as fe, H as Z, I as _e, u as he, z as ye, a3 as Ce } from "./index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js";
|
|
6
|
+
import { useI18n as J, useCoreStore as ke, RestaurantSelector as we } from "@feedmepos/mf-common";
|
|
7
|
+
import { useSnackbar as le, useDialogChild as xe, useDialog as Ve, components as ee } from "@feedmepos/ui-library";
|
|
8
|
+
import { _ as Se } from "./TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js";
|
|
9
|
+
import { _ as Fe } from "./app-CEIhTuYG.js";
|
|
10
|
+
import { a as Ie, w as Ae, p as Me } from "./tooltip-CQW9YRO5.js";
|
|
11
|
+
import { u as $e } from "./discardConfirm-BHni0LNu.js";
|
|
13
12
|
function se(S) {
|
|
14
13
|
return S ? ae(S).format("DD/MM/YY HH:mm") : "-";
|
|
15
14
|
}
|
|
@@ -75,7 +74,7 @@ const De = {
|
|
|
75
74
|
catalogId: m.catalogId || null
|
|
76
75
|
}
|
|
77
76
|
],
|
|
78
|
-
|
|
77
|
+
ke().restaurants.value,
|
|
79
78
|
x.value
|
|
80
79
|
)[0];
|
|
81
80
|
return [
|
|
@@ -94,7 +93,7 @@ const De = {
|
|
|
94
93
|
];
|
|
95
94
|
});
|
|
96
95
|
re(async () => v());
|
|
97
|
-
const { emitData: D } =
|
|
96
|
+
const { emitData: D } = xe();
|
|
98
97
|
return (m, C) => {
|
|
99
98
|
const _ = w("FmCircularProgress");
|
|
100
99
|
return u.value ? (y(), U("div", De, [
|
|
@@ -102,7 +101,7 @@ const De = {
|
|
|
102
101
|
])) : (y(), U("div", Pe, [
|
|
103
102
|
o("div", Ue, A(r(t)("menu.revert.description", { name: F.restaurant.name })), 1),
|
|
104
103
|
o("div", Le, [
|
|
105
|
-
(y(!0), U(O, null, W(d.value, (P) => (y(), T(
|
|
104
|
+
(y(!0), U(O, null, W(d.value, (P) => (y(), T(Ie, {
|
|
106
105
|
key: P.label,
|
|
107
106
|
name: P.label,
|
|
108
107
|
value: P.value || "--"
|
|
@@ -161,7 +160,7 @@ const De = {
|
|
|
161
160
|
function _() {
|
|
162
161
|
D.value = !1;
|
|
163
162
|
}
|
|
164
|
-
const P =
|
|
163
|
+
const P = $e(
|
|
165
164
|
() => !_e.isEqual(m.value, d.value),
|
|
166
165
|
() => {
|
|
167
166
|
_();
|
|
@@ -267,7 +266,7 @@ const De = {
|
|
|
267
266
|
class: "flex gap-8"
|
|
268
267
|
}, sa = {
|
|
269
268
|
class: "xs:block hidden fixed bottom-72 right-16"
|
|
270
|
-
}, q = 40,
|
|
269
|
+
}, q = 40, va = /* @__PURE__ */ G({
|
|
271
270
|
__name: "Publish",
|
|
272
271
|
setup(S) {
|
|
273
272
|
const F = me(), {
|
|
@@ -276,7 +275,7 @@ const De = {
|
|
|
276
275
|
row: e
|
|
277
276
|
}) => {
|
|
278
277
|
const a = e.status === "latest";
|
|
279
|
-
return i(
|
|
278
|
+
return i(Se, {
|
|
280
279
|
label: l(a ? "menu.publish.table.status.latest" : "menu.publish.table.status.outdated"),
|
|
281
280
|
variant: a ? "success" : "warning"
|
|
282
281
|
}, null);
|
|
@@ -324,7 +323,7 @@ const De = {
|
|
|
324
323
|
const a = e.row.original;
|
|
325
324
|
return Y("div", {
|
|
326
325
|
class: "flex justify-end gap-8"
|
|
327
|
-
}, [D.value && a.revertConfig ?
|
|
326
|
+
}, [D.value && a.revertConfig ? Ae(Y(ee.FmButton, {
|
|
328
327
|
prependIcon: "undo",
|
|
329
328
|
variant: "secondary",
|
|
330
329
|
onClick: N(async () => {
|
|
@@ -343,7 +342,7 @@ const De = {
|
|
|
343
342
|
meta: {
|
|
344
343
|
width: "150px"
|
|
345
344
|
}
|
|
346
|
-
}], v = V(""), x = V(), t = he(), d =
|
|
345
|
+
}], v = V(""), x = V(), t = he(), d = Ve(), D = R(() => t.version !== ye.F_MENU_VERSION.enum.v3);
|
|
347
346
|
async function m(e) {
|
|
348
347
|
e.revertConfig && d.open({
|
|
349
348
|
title: "Revert menu",
|
|
@@ -432,7 +431,7 @@ const De = {
|
|
|
432
431
|
async function ne(e) {
|
|
433
432
|
const a = e.map((I) => I._id), s = de(a, q), p = V("");
|
|
434
433
|
await $.minor(async () => {
|
|
435
|
-
await
|
|
434
|
+
await Me({
|
|
436
435
|
items: s,
|
|
437
436
|
processor: async (I) => await t.publishMultipleMenu(I, !1),
|
|
438
437
|
batchSize: 1,
|
|
@@ -487,7 +486,7 @@ const De = {
|
|
|
487
486
|
label: r(l)("menu.publish.actions.publish_all"),
|
|
488
487
|
variant: "primary",
|
|
489
488
|
onClick: a[1] || (a[1] = () => Q())
|
|
490
|
-
}, null, 8, ["disabled", "label"])])]), o("div", Je, [i(r(
|
|
489
|
+
}, null, 8, ["disabled", "label"])])]), o("div", Je, [i(r(we), {
|
|
491
490
|
multiple: "",
|
|
492
491
|
modelValue: b.value,
|
|
493
492
|
"onUpdate:modelValue": a[3] || (a[3] = (n) => b.value = n)
|
|
@@ -506,7 +505,7 @@ const De = {
|
|
|
506
505
|
placeholder: r(l)("menu.publish.table.search.placeholder")
|
|
507
506
|
}, null, 8, ["modelValue", "placeholder"])]), k.value.length > 0 ? (y(), U(O, {
|
|
508
507
|
key: 0
|
|
509
|
-
}, [i(
|
|
508
|
+
}, [i(Fe, {
|
|
510
509
|
class: "xs:hidden block"
|
|
511
510
|
}, {
|
|
512
511
|
default: L(() => [i(X, {
|
|
@@ -554,7 +553,7 @@ const De = {
|
|
|
554
553
|
_: 2
|
|
555
554
|
}, 1032, ["label", "onClick"]))), 128))]),
|
|
556
555
|
_: 1
|
|
557
|
-
})], 64)) : (y(), T(r(
|
|
556
|
+
})], 64)) : (y(), T(r(Ce), {
|
|
558
557
|
key: 1,
|
|
559
558
|
title: r(l)("menu.publish.empty.title"),
|
|
560
559
|
subtitle: r(l)("menu.publish.empty.subtitle"),
|
|
@@ -583,5 +582,5 @@ const De = {
|
|
|
583
582
|
}
|
|
584
583
|
});
|
|
585
584
|
export {
|
|
586
|
-
|
|
585
|
+
va as default
|
|
587
586
|
};
|
|
@@ -2,15 +2,14 @@ import { defineComponent as z, computed as h, ref as w, reactive as Q, watch as
|
|
|
2
2
|
import { useI18n as U } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as $, components as j, useDialog as ne, FmButtonVariant as G, 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 { O as q, D as A, H as ie, B as P, I as se, G as B, J as I, z as T, u as H } from "./
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js";
|
|
5
|
+
import { _ as le } from "./app-CEIhTuYG.js";
|
|
6
|
+
import { O as q, D as A, H as ie, B as P, I as se, G as B, J as I, z as T, u as H, a3 as re } from "./index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js";
|
|
7
|
+
import { _ as ce } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
|
|
9
8
|
import { defineStore as ue } from "pinia";
|
|
10
|
-
import { _ as Y, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as Y, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-ByrNVvzs.js";
|
|
11
10
|
import { u as de } from "./discardConfirm-BHni0LNu.js";
|
|
12
11
|
import { c as pe } from "./check-C9mY6LiX.js";
|
|
13
|
-
import "./unit-
|
|
12
|
+
import "./unit-CbD3sYqC.js";
|
|
14
13
|
import { c as fe } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
15
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__ */ z({
|
|
16
15
|
__name: "Form",
|
|
@@ -221,7 +220,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
221
220
|
class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4"
|
|
222
221
|
}, Ie = {
|
|
223
222
|
class: "fm-typo-en-body-md-600 font-semibold"
|
|
224
|
-
},
|
|
223
|
+
}, qe = /* @__PURE__ */ z({
|
|
225
224
|
__name: "Recipe",
|
|
226
225
|
setup(R) {
|
|
227
226
|
const {
|
|
@@ -264,10 +263,10 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
264
263
|
const n = h(() => b.value.length), E = oe(), o = h(() => E.breakpoints.value.xs);
|
|
265
264
|
return (y, l) => {
|
|
266
265
|
const t = V("FmSearch"), i = V("FmTable"), N = V("fm-button"), M = V("FmSpacer");
|
|
267
|
-
return g(), O(
|
|
266
|
+
return g(), O(ce, {
|
|
268
267
|
heading: e(c)("menu.recipe.title")
|
|
269
268
|
}, {
|
|
270
|
-
default: x(() => [b.value.length === 0 ? (g(), O(e(
|
|
269
|
+
default: x(() => [b.value.length === 0 ? (g(), O(e(re), {
|
|
271
270
|
key: 0,
|
|
272
271
|
action: {
|
|
273
272
|
text: e(c)("menu.recipe.empty.action"),
|
|
@@ -326,5 +325,5 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
326
325
|
}
|
|
327
326
|
});
|
|
328
327
|
export {
|
|
329
|
-
|
|
328
|
+
qe as default
|
|
330
329
|
};
|