@feedmepos/mf-menu 0.31.31-beta.1 → 0.31.31-prod
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-1TX8v7ZA.js → App-Cvgz2kQV.js} +22 -24
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Bq84uuiq.js} +22 -22
- package/dist/{Catalog-DWClc58s.js → Catalog-Ye-KpQ31.js} +74 -75
- package/dist/{Category-BqKFvFam.js → Category-BPChBqVR.js} +60 -60
- package/dist/{Category-IYMtMoT-.js → Category-CHcxix2b.js} +28 -28
- package/dist/{CookingGuide-BayJ6zj4.js → CookingGuide-DgygBSoB.js} +101 -103
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Ceq86b3d.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-ClV6LD2-.js} +1 -1
- package/dist/{Group-LqSX7ue6.js → Group-223G1Edd.js} +1 -1
- package/dist/{Group-RujTPTns.js → Group-B7EU1xmY.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-Dj9ZmkYe.js → Group.vue_vue_type_script_setup_true_lang-CAZuyOPy.js} +137 -138
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D5GWkh3G.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CdjRWC9z.js} +13 -13
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C4IrA3es.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BRQm-UTk.js} +5067 -5049
- package/dist/{Ingredient-_tc8llr1.js → Ingredient-Dl1Z5Qt2.js} +64 -65
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DLFDf-VZ.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CxuQTH0k.js} +1061 -1063
- package/dist/{LinkProductSideSheet-C6rF-G1v.js → LinkProductSideSheet-Y-Z9_9Kp.js} +12 -14
- package/dist/{MenuSetting-xDHeeROY.js → MenuSetting-Be44fmVj.js} +26 -27
- package/dist/{PrintRoute-B_TFMn5e.js → PrintRoute-BURAEZ6X.js} +15 -17
- package/dist/{Product-DdEEqrtc.js → Product-DSlVHbgr.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-zcistmwh.js → Product.vue_vue_type_script_setup_true_lang-DtYarO0L.js} +256 -257
- package/dist/{ProductInternalTools-BcC7BF6W.js → ProductInternalTools-gW57aUAO.js} +45 -45
- package/dist/{Products-Cu0cJshV.js → Products-Czr-70M8.js} +72 -74
- package/dist/{Publish-Bm3Xiks1.js → Publish-XCowNW_z.js} +32 -34
- package/dist/{Recipe-DWK-luIZ.js → Recipe-6oNz21AB.js} +63 -65
- package/dist/{Scheduler-Cb1TeBhW.js → Scheduler-UYFuFk5E.js} +19 -19
- package/dist/{ServingSequence-evSIET_8.js → ServingSequence-w66ujU4D.js} +34 -34
- package/dist/{Setting-Cn3kwC9F.js → Setting-Dgn3lOx7.js} +53 -54
- package/dist/{Subcategory-q4m4qHsU.js → Subcategory-lnzuxCCH.js} +34 -34
- package/dist/{Takeaway-ClepHYGu.js → Takeaway-C5Up5Odr.js} +14 -14
- package/dist/{Takeaway-D-rdUZuh.js → Takeaway-DP1GJUPF.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-y9Yxstu2.js → Takeaway.vue_vue_type_script_setup_true_lang-B45keXn7.js} +40 -41
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BSeLfoOA.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-yEIxG4F2.js} +1108 -1109
- package/dist/{Unit-IM8Naj82.js → Unit-Bt8aRidX.js} +12 -12
- package/dist/{Variant-fzGvwaMo.js → Variant-DXoOAa9M.js} +16 -16
- package/dist/{_id_-BsKNG9Qv.js → _id_-D9tvinax.js} +22 -22
- package/dist/{app-BzQRUMTK.js → app-Cnlv4rmj.js} +3 -3
- package/dist/{app-CoVUUCa_.js → app-DiizQWjo.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +88 -16
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +44 -8
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +360 -184
- package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +80 -28
- package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +44 -8
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +216 -148
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +216 -148
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/category.d.ts +4 -4
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +218 -150
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +142 -82
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +108 -74
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +80 -28
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +44 -8
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +176 -32
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +324 -222
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +108 -74
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1374 -1040
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +216 -148
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +1374 -1040
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +108 -74
- package/dist/apps/mf-menu/src/helper/menu.d.ts +1523 -1155
- package/dist/apps/mf-menu/src/manager/menu/category.d.ts +4 -4
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +1374 -1040
- package/dist/apps/mf-menu/src/manager/menu/subcategory.d.ts +4 -4
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +324 -222
- package/dist/apps/mf-menu/src/stores/manager/recipe.d.ts +12 -12
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +142 -82
- package/dist/apps/mf-menu/src/stores/manager/sku.d.ts +60 -60
- package/dist/apps/mf-menu/src/stores/manager/takeaway.d.ts +6 -6
- package/dist/apps/mf-menu/src/stores/manager/unit.d.ts +12 -12
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1375 -1041
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +216 -148
- package/dist/apps/mf-menu/src/views/CookingGuide/CookingGuideDialog.vue.d.ts +4 -4
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +352 -132
- package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +84 -32
- package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +84 -32
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-D7AwcSC5.js +24 -0
- package/dist/assets/override-menu-Y9T4wxEn.js +24 -0
- package/dist/assets/validate-menu-DiAW2jY1.js +24 -0
- package/dist/{catalog-CaXceaA2.js → catalog-DUSCax4J.js} +1 -1
- package/dist/{catalogSetting-BGvckFdh.js → catalogSetting-18FJ5pkA.js} +1 -1
- package/dist/{category-u5eo_Vjd.js → category-B9XvlPFy.js} +3 -5
- package/dist/currency-Sno8fZYc.js +7 -0
- package/dist/{dayjs.min-Bsr3tJCn.js → dayjs.min-BsfKOrNo.js} +1 -1
- package/dist/{index-tRQb7RN_.js → index-BDpkSKDX.js} +1 -1
- package/dist/{index-Bbx4iZ6n.js → index-Eomwf2OO.js} +27 -27
- package/dist/{index-DSAG0yWh.js → index-ltyOwsRO.js} +20 -22
- package/dist/{item-BAqzKh4O.js → item-5Kkzf_eF.js} +1069 -1071
- package/dist/{jszip.min-BKJtvCjM.js → jszip.min-CRfpGjN8.js} +545 -545
- package/dist/menu-Btcr0nsk.js +108040 -0
- package/dist/{menu-CDrsBjmr.js → menu-DYs_VNfB.js} +9 -11
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-DfbHonGe.js → priceTier-DvUjWwCM.js} +4 -4
- package/dist/{scheduler-DTWaBudB.js → scheduler-C76blUlS.js} +11 -13
- package/dist/{subcategory-D-R5r1Tr.js → subcategory-C44qN5Vk.js} +133 -135
- package/dist/{toExcel-84VTtSA7.js → toExcel--vNjpF-b.js} +2 -2
- package/dist/{unit-B4zscxzo.js → unit-C4ghZU8x.js} +23 -24
- package/package.json +5 -5
- package/dist/assets/linked-status-eQqjvOq_.js +0 -24
- package/dist/assets/override-menu-C8NTBJgN.js +0 -24
- package/dist/assets/validate-menu-Dn-OO7Ed.js +0 -24
- package/dist/currency-BPHwez-E.js +0 -7
- package/dist/menu-CsIzrBEr.js +0 -74044
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { defineStore as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import {
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { useSnackbar as
|
|
1
|
+
import { defineStore as J } from "pinia";
|
|
2
|
+
import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
+
import { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-Btcr0nsk.js";
|
|
4
|
+
import { useI18n as L } from "@feedmepos/mf-common";
|
|
5
|
+
import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as se } from "./discardConfirm-BHni0LNu.js";
|
|
7
|
-
import "@feedmepos/core/entity";
|
|
8
7
|
import { c as re } from "./check-C9mY6LiX.js";
|
|
9
8
|
import "./vuedraggable-CK8z7qA8.js";
|
|
10
9
|
/* empty css */
|
|
11
10
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
12
|
-
const de = ["value", "disabled"], ce = /* @__PURE__ */
|
|
11
|
+
const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
13
12
|
__name: "NumberPrecisionInput",
|
|
14
13
|
props: {
|
|
15
14
|
modelValue: {},
|
|
@@ -22,7 +21,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
22
21
|
emits: ["update:modelValue"],
|
|
23
22
|
setup(y, { emit: g }) {
|
|
24
23
|
const t = y, n = g, c = U(() => B(t.step ?? 1).precision), d = h(t.modelValue.toString());
|
|
25
|
-
|
|
24
|
+
T([() => d.value], ([e]) => {
|
|
26
25
|
e === "-" || e === "." ? n("update:modelValue", 0) : n("update:modelValue", +e);
|
|
27
26
|
});
|
|
28
27
|
const b = (e) => {
|
|
@@ -39,7 +38,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
39
38
|
};
|
|
40
39
|
return (e, i) => {
|
|
41
40
|
const o = V("FmField"), a = V("FmFormGroup");
|
|
42
|
-
return F(),
|
|
41
|
+
return F(), W(a, {
|
|
43
42
|
disabled: e.disabled,
|
|
44
43
|
modelValue: e.modelValue,
|
|
45
44
|
rules: e.rules,
|
|
@@ -69,7 +68,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
69
68
|
}, 8, ["disabled", "modelValue", "rules", "helper-text", "label"]);
|
|
70
69
|
};
|
|
71
70
|
}
|
|
72
|
-
}), pe = { class: "flex flex-col gap-8" }, ve = { class: "flex justify-between" }, fe = { class: "col q-mb-sm t-body-bold" }, be = { class: "flex flex-row gap-8" }, _e = { class: "q-mt-xs q-pl-sm t-system text-fsecondary" }, Ve = /* @__PURE__ */
|
|
71
|
+
}), pe = { class: "flex flex-col gap-8" }, ve = { class: "flex justify-between" }, fe = { class: "col q-mb-sm t-body-bold" }, be = { class: "flex flex-row gap-8" }, _e = { class: "q-mt-xs q-pl-sm t-system text-fsecondary" }, Ve = /* @__PURE__ */ O({
|
|
73
72
|
__name: "UnitMeasurement",
|
|
74
73
|
props: {
|
|
75
74
|
title: {
|
|
@@ -91,7 +90,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
91
90
|
},
|
|
92
91
|
emits: ["update:model-value", "delete"],
|
|
93
92
|
setup(y, { emit: g }) {
|
|
94
|
-
const { t } =
|
|
93
|
+
const { t } = L(), n = y, c = U(() => te(n.modelValue.conversion)), d = U(() => t("menu.unit.measurement.preview", {
|
|
95
94
|
name: n.modelValue.name,
|
|
96
95
|
value: c.value,
|
|
97
96
|
unit: n.unitName
|
|
@@ -104,7 +103,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
104
103
|
p[o] = a, i("update:model-value", p);
|
|
105
104
|
}
|
|
106
105
|
const i = g;
|
|
107
|
-
return
|
|
106
|
+
return T(
|
|
108
107
|
() => n.precision,
|
|
109
108
|
() => b(c.value)
|
|
110
109
|
), (o, a) => {
|
|
@@ -150,13 +149,13 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
150
149
|
]);
|
|
151
150
|
};
|
|
152
151
|
}
|
|
153
|
-
}), ye = { class: "fm-typo-en-title-md-600" }, ge = { class: "pt-8 space-y-40" }, Fe = { class: "flex flex-row gap-16" }, we = { class: "flex gap-8 items-center justify-start" }, Ue = /* @__PURE__ */
|
|
152
|
+
}), ye = { class: "fm-typo-en-title-md-600" }, ge = { class: "pt-8 space-y-40" }, Fe = { class: "flex flex-row gap-16" }, we = { class: "flex gap-8 items-center justify-start" }, Ue = /* @__PURE__ */ O({
|
|
154
153
|
__name: "Form",
|
|
155
154
|
props: {
|
|
156
155
|
initialValue: {}
|
|
157
156
|
},
|
|
158
157
|
setup(y, { expose: g }) {
|
|
159
|
-
const { t } =
|
|
158
|
+
const { t } = L(), n = y, c = $(I(j())), d = U(() => n.initialValue ? t("menu.unit.update") : t("menu.unit.add")), b = U(
|
|
160
159
|
() => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
|
|
161
160
|
), e = h(n.initialValue ? k(n.initialValue) : E.generator.initUnit()), i = h(!1), o = h(!1), a = (u) => {
|
|
162
161
|
re.isBoolean(u) ? o.value = u : o.value = !o.value;
|
|
@@ -206,7 +205,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
206
205
|
i.value = !1;
|
|
207
206
|
}
|
|
208
207
|
};
|
|
209
|
-
return
|
|
208
|
+
return T(
|
|
210
209
|
() => o.value,
|
|
211
210
|
(u) => {
|
|
212
211
|
u && (e.value = n.initialValue ? k(n.initialValue) : E.generator.initUnit());
|
|
@@ -215,7 +214,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
215
214
|
show: o,
|
|
216
215
|
trigger: a
|
|
217
216
|
}), (u, v) => {
|
|
218
|
-
const
|
|
217
|
+
const N = V("FmTextField"), R = V("FmStepperField"), z = V("FmButton"), S = V("fm-button"), G = V("fm-side-sheet");
|
|
219
218
|
return F(), A(q, null, [
|
|
220
219
|
X(u.$slots, "default", { trigger: a }),
|
|
221
220
|
m(G, {
|
|
@@ -253,7 +252,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
253
252
|
default: w(() => [
|
|
254
253
|
f("div", ge, [
|
|
255
254
|
f("div", Fe, [
|
|
256
|
-
m(
|
|
255
|
+
m(N, {
|
|
257
256
|
class: "flex-2",
|
|
258
257
|
label: l(t)("menu.unit.columns.name"),
|
|
259
258
|
modelValue: e.value.name,
|
|
@@ -264,7 +263,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
264
263
|
})
|
|
265
264
|
]
|
|
266
265
|
}, null, 8, ["label", "modelValue", "rules"]),
|
|
267
|
-
m(
|
|
266
|
+
m(N, {
|
|
268
267
|
class: "flex-1",
|
|
269
268
|
label: l(t)("menu.unit.columns.symbol"),
|
|
270
269
|
modelValue: e.value.abbrev,
|
|
@@ -277,7 +276,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
277
276
|
}, null, 8, ["label", "modelValue", "rules"])
|
|
278
277
|
]),
|
|
279
278
|
f("div", null, [
|
|
280
|
-
m(
|
|
279
|
+
m(R, {
|
|
281
280
|
modelValue: e.value.precision,
|
|
282
281
|
"onUpdate:modelValue": [
|
|
283
282
|
v[2] || (v[2] = (r) => e.value.precision = r),
|
|
@@ -290,7 +289,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
290
289
|
max: 5
|
|
291
290
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
292
291
|
]),
|
|
293
|
-
m(
|
|
292
|
+
m(z, {
|
|
294
293
|
label: l(t)("menu.unit.measurement.add"),
|
|
295
294
|
variant: "secondary",
|
|
296
295
|
onClick: _
|
|
@@ -314,10 +313,10 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
314
313
|
], 64);
|
|
315
314
|
};
|
|
316
315
|
}
|
|
317
|
-
}), xe = Ue,
|
|
318
|
-
const y = ue(), g =
|
|
316
|
+
}), xe = Ue, Ne = J("unit-manager", () => {
|
|
317
|
+
const y = ue(), g = j(), t = I(g), n = $(t);
|
|
319
318
|
oe();
|
|
320
|
-
const c = ee(), { t: d } =
|
|
319
|
+
const c = ee(), { t: d } = L(), b = (a) => {
|
|
321
320
|
var _, s;
|
|
322
321
|
const { vNode: p } = me(
|
|
323
322
|
xe,
|
|
@@ -367,5 +366,5 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
|
|
|
367
366
|
});
|
|
368
367
|
export {
|
|
369
368
|
xe as U,
|
|
370
|
-
|
|
369
|
+
Ne as u
|
|
371
370
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-menu",
|
|
3
|
-
"version": "0.31.31-
|
|
3
|
+
"version": "0.31.31-prod",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@feedmepos/auth": "^1.1.14",
|
|
19
|
-
"@feedmepos/core": "2.14.
|
|
19
|
+
"@feedmepos/core": "2.14.36",
|
|
20
20
|
"@feedmepos/core-dart": "^0.2.6",
|
|
21
|
-
"@feedmepos/core-legacy": "file:../../core-legacy-
|
|
21
|
+
"@feedmepos/core-legacy": "file:../../core-legacy-1.1.tar.gz",
|
|
22
22
|
"@feedmepos/custom-attributes": "0.0.0-rc.6",
|
|
23
23
|
"@feedmepos/inventory-core": "^0.2.6",
|
|
24
|
-
"@feedmepos/menu": "1.7.
|
|
24
|
+
"@feedmepos/menu": "1.7.8",
|
|
25
25
|
"@feedmepos/mf-inventory-portal": "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz",
|
|
26
26
|
"@feedmepos/remy-vue-client": "0.1.3-beta.8",
|
|
27
27
|
"@feedmepos/ui-library": "1.7.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"vue3-lottie": "^3.3.0",
|
|
54
54
|
"vuedraggable": "^4.1.0",
|
|
55
55
|
"xlsx": "^0.18.5",
|
|
56
|
-
"@feedmepos/mf-common": "^1.26.
|
|
56
|
+
"@feedmepos/mf-common": "^1.26.17"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@rollup/plugin-commonjs": "^28.0.2",
|