@feedmepos/mf-menu 0.32.14 → 0.32.16
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-BFBPwGfb.js → App-Cp6hAf4r.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BDPEBgIX.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Bq8Ai6ir.js} +20 -20
- package/dist/{Catalog-CEUlUbTo.js → Catalog-DZlT5Kv0.js} +20 -20
- package/dist/{Category-GK_sF5cc.js → Category-CgRn_W4_.js} +24 -24
- package/dist/{Category-oxm_RKMU.js → Category-DrZWC1TQ.js} +84 -84
- package/dist/{CookingGuide-BIqPXo2F.js → CookingGuide-DkXKDRwI.js} +65 -65
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-_LjfOdmQ.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BLpFpC3r.js} +1 -1
- package/dist/{Group-G3Zm4zVj.js → Group-CoNa29qN.js} +1 -1
- package/dist/{Group-bW-m1xOv.js → Group-jthvxhWq.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DN7BsgdL.js → Group.vue_vue_type_script_setup_true_lang-edBI3IhG.js} +27 -27
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BBcZxmMz.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Bpu5NPdL.js} +5 -5
- package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-CFoEsqQW.js +72979 -0
- package/dist/{Ingredient-D0S3lRbC.js → Ingredient-87kh0Zeg.js} +26 -26
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BYAInJ7N.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DA12Hppy.js} +1052 -1052
- package/dist/{LinkProductSideSheet-DduICm_3.js → LinkProductSideSheet-q_E0OxBI.js} +3 -3
- package/dist/{MenuSetting-Ddpakood.js → MenuSetting-DrSVmJrv.js} +5 -5
- package/dist/{PrintRoute-CxDRBk-Z.js → PrintRoute-Ag3VVqG5.js} +20 -20
- package/dist/{Product-DAwEX6dW.js → Product-M4UF0g_r.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BH7BRpJ2.js → Product.vue_vue_type_script_setup_true_lang-BuXgUwkf.js} +49 -49
- package/dist/{ProductInternalTools--i0xQb6O.js → ProductInternalTools-COwLVN9M.js} +20 -20
- package/dist/Products-1nOux6aQ.js +292 -0
- package/dist/Publish-DND24UOM.js +1300 -0
- package/dist/{Recipe-DIfPG7dG.js → Recipe-BahCl2QF.js} +9 -9
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DiutI4rb.js → RuleView.vue_vue_type_script_setup_true_lang-DxCclyLW.js} +134 -134
- package/dist/{Scheduler-D-qRoZEk.js → Scheduler-CxW9mXnC.js} +7 -7
- package/dist/{ServingSequence-DdGQTO5m.js → ServingSequence-DBtmKTWP.js} +27 -27
- package/dist/{Setting-Cy3lcj6b.js → Setting-D2CdAkIV.js} +17 -17
- package/dist/{Subcategory-bX7uTJKn.js → Subcategory-B4TkrH7w.js} +37 -37
- package/dist/{Takeaway-Dt4W1Tmn.js → Takeaway-BReaJjqu.js} +1 -1
- package/dist/{Takeaway-DoTobUpw.js → Takeaway-R8sKp9dk.js} +9 -9
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Ccqd0SSb.js → Takeaway.vue_vue_type_script_setup_true_lang-DPphTwY2.js} +54 -54
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Bxd5sGBt.js → Thumbnail.vue_vue_type_script_setup_true_lang-CA-t0MP_.js} +12 -12
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BTny5xEr.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DVJGepyS.js} +15 -14
- package/dist/{Unit-li0qBwz-.js → Unit-DaupB3J7.js} +2 -2
- package/dist/{Variant-CGcJ_TZj.js → Variant-CesYb5do.js} +14 -14
- package/dist/{_id_-BWdsDm62.js → _id_-CN8RH43s.js} +14 -14
- package/dist/{app-M9IH0JfT.js → app-d97Ud4fA.js} +26 -26
- package/dist/{app-4fAuR8EW.js → app-s52udDOz.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +22 -22
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +59 -33
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-3-xHTXMe.js → linked-status-KQPs_XUH.js} +2 -2
- package/dist/assets/menu-export-KHAdCiC5.js +107 -0
- package/dist/assets/{override-menu-9sR4Y3Xg.js → override-menu-CsUVrV3Q.js} +2 -2
- package/dist/assets/{validate-menu-BmHir2_T.js → validate-menu-BEJZow8d.js} +2 -2
- package/dist/{catalog-DFja-c1u.js → catalog-9_jtmYlm.js} +1 -1
- package/dist/{catalogSetting-CcpYLKqf.js → catalogSetting-Btjwav-1.js} +1 -1
- package/dist/{category-DpZwNc4t.js → category-DRwNEBe8.js} +1 -1
- package/dist/{currency-BAE6MewY.js → currency-Do-UYAXP.js} +1 -1
- package/dist/dayjs.min-BaRcKvRp.js +6 -0
- package/dist/{index-CKinAgXM.js → index-BFWW3J1P.js} +1 -1
- package/dist/{index-vusQqUrf.js → index-CuCfLbb2.js} +17 -17
- package/dist/{index-CVzNrW67.js → index-D1GAORV_.js} +4 -4
- package/dist/{index.vue_vue_type_script_setup_true_lang-BdR9Cau8.js → index.vue_vue_type_script_setup_true_lang-_DMs_swc.js} +2439 -2439
- package/dist/{item-CwwbAMhc.js → item-Ge1k1cYH.js} +245 -244
- package/dist/{jszip.min-DYs79nMN.js → jszip.min-BSs0LVJA.js} +2 -2
- package/dist/{menu-BaIAvmpZ.js → menu-DL-wM6sR.js} +1 -1
- package/dist/{menuV2-B2fEnjKF.js → menuV2-DMWng1KE.js} +55 -55
- package/dist/{priceTier-BSQ1vmHy.js → priceTier-BHOMDhXP.js} +1 -1
- package/dist/{scheduler-C7lp1B_N.js → scheduler-B_ztjqQh.js} +4 -4
- package/dist/{subcategory-DUGbyIKt.js → subcategory-53vsxcNn.js} +2 -2
- package/dist/{toExcel-CnvNPzQj.js → toExcel-B5cp0vaL.js} +2 -2
- package/dist/{unit-gzTDfacM.js → unit-VmVDMUZb.js} +12 -12
- package/package.json +3 -3
- package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-BpYIAC6_.js +0 -96043
- package/dist/Products-DHP2P67R.js +0 -794
- package/dist/Publish-BwI7NOud.js +0 -1264
- package/dist/dayjs.min-Bbp8wB12.js +0 -6
|
@@ -2,18 +2,18 @@ import { defineComponent as ie, computed as b, ref as $, reactive as Ve, watch a
|
|
|
2
2
|
import { useI18n as Q } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as W, components as se, useDialog as $e, FmButtonVariant as ue, useBreakpoints as Ue } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as Ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Q as re, G as X, u as Z, I as Ie, D as K, J as Oe, a4 as ce, H as le, M as q, A as H } from "./index.vue_vue_type_script_setup_true_lang-_DMs_swc.js";
|
|
6
6
|
import { _ as Te } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
7
|
import { defineStore as Be } from "pinia";
|
|
8
|
-
import { _ as ae, g as Le } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as
|
|
10
|
-
import { c as
|
|
11
|
-
import { u as Re } from "./unit-
|
|
8
|
+
import { _ as ae, g as Le } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-DA12Hppy.js";
|
|
9
|
+
import { u as De } from "./discardConfirm-BHni0LNu.js";
|
|
10
|
+
import { c as Pe } from "./check-C9mY6LiX.js";
|
|
11
|
+
import { u as Re } from "./unit-VmVDMUZb.js";
|
|
12
12
|
import { c as Ae } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
|
-
const Ye = { class: "fm-typo-en-title-md-600" },
|
|
13
|
+
const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "pt-8 flex flex-col gap-8"
|
|
16
|
-
},
|
|
16
|
+
}, Ke = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "pt-8 space-y-40"
|
|
19
19
|
}, Ge = { class: "flex flex-row gap-16" }, je = { class: "overflow-x-hidden overflow-y-auto max-h-[300px]" }, qe = { class: "flex gap-8 items-center justify-start" }, He = /* @__PURE__ */ ie({
|
|
@@ -27,7 +27,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, Ke = {
|
|
|
27
27
|
const { t: l } = Q(), r = B, u = re(X(W())), S = Re(), h = b(() => r.initialValue ? l("menu.sku.update") : l("menu.sku.add")), x = b(
|
|
28
28
|
() => r.initialValue ? l("menu.common.actions.update") : l("menu.common.actions.add")
|
|
29
29
|
), C = $(!1), f = $(!1), M = (t) => {
|
|
30
|
-
|
|
30
|
+
Pe.isBoolean(t) ? f.value = t : f.value = !f.value;
|
|
31
31
|
}, I = Z(), a = b(() => I.units), i = b(() => a.value.map(({ name: t, _id: o, abbrev: g, measurements: O }) => ({
|
|
32
32
|
label: t,
|
|
33
33
|
value: o,
|
|
@@ -36,21 +36,21 @@ const Ye = { class: "fm-typo-en-title-md-600" }, Ke = {
|
|
|
36
36
|
label: `${t} (${g})`,
|
|
37
37
|
value: null
|
|
38
38
|
},
|
|
39
|
-
...O.map(({ name: A, id: Y, abbrev:
|
|
40
|
-
label: `${A} (${
|
|
39
|
+
...O.map(({ name: A, id: Y, abbrev: z }) => ({
|
|
40
|
+
label: `${A} (${z})`,
|
|
41
41
|
value: Y
|
|
42
42
|
}))
|
|
43
43
|
]
|
|
44
44
|
}))), c = b(() => a.value.length > 0), n = Ve(
|
|
45
45
|
r.initialValue ? Ie(r.initialValue) : {
|
|
46
|
-
...
|
|
47
|
-
unit: a.value[0] ||
|
|
46
|
+
...K.generator.initSku(),
|
|
47
|
+
unit: a.value[0] || K.generator.initUnit()
|
|
48
48
|
}
|
|
49
49
|
), F = $(!!n.convert), L = b(() => {
|
|
50
50
|
var o;
|
|
51
51
|
const t = i.value.find((g) => g.value === n.unit._id);
|
|
52
52
|
return ((o = ((t == null ? void 0 : t.options) || []).find((g) => g.value === (n.trackingMeasurement || null))) == null ? void 0 : o.label) || "";
|
|
53
|
-
}),
|
|
53
|
+
}), D = (t) => n.unit._id === t.value && n.trackingMeasurement === (t.value || null);
|
|
54
54
|
function _(t, o) {
|
|
55
55
|
const g = o || void 0;
|
|
56
56
|
n.unit._id === t && n.trackingMeasurement === g || (n.unit = a.value.find((O) => O._id === t), n.trackingMeasurement = g, n.convert && (n.convert.measurement = g));
|
|
@@ -83,8 +83,8 @@ const Ye = { class: "fm-typo-en-title-md-600" }, Ke = {
|
|
|
83
83
|
var t;
|
|
84
84
|
return R.value = (((t = n.convert) == null ? void 0 : t.inventoryBindings) || []).length === 0, !R.value;
|
|
85
85
|
}
|
|
86
|
-
const fe =
|
|
87
|
-
() => !Oe.isEqual(n, r.initialValue ||
|
|
86
|
+
const fe = De(
|
|
87
|
+
() => !Oe.isEqual(n, r.initialValue || K.generator.initSku()),
|
|
88
88
|
() => {
|
|
89
89
|
f.value = !1;
|
|
90
90
|
}
|
|
@@ -122,7 +122,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, Ke = {
|
|
|
122
122
|
show: f,
|
|
123
123
|
trigger: M
|
|
124
124
|
}), (t, o) => {
|
|
125
|
-
const g = d("FmTextField"), O = d("FmLabel"), A = d("FmField"), Y = d("FmMenuHeader"),
|
|
125
|
+
const g = d("FmTextField"), O = d("FmLabel"), A = d("FmField"), Y = d("FmMenuHeader"), z = d("FmMenuDivider"), ge = d("FmMenuItem"), ye = d("FmMenu"), ke = d("FmFormGroup"), he = d("FmSwitch"), xe = d("FmSelect"), Fe = d("FmCard"), ne = d("fm-button"), Se = d("fm-side-sheet");
|
|
126
126
|
return m(), y(V, null, [
|
|
127
127
|
Me(t.$slots, "default", { trigger: M }),
|
|
128
128
|
s(Se, {
|
|
@@ -158,7 +158,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, Ke = {
|
|
|
158
158
|
])
|
|
159
159
|
]),
|
|
160
160
|
default: k(() => [
|
|
161
|
-
c.value ? (m(), y("div",
|
|
161
|
+
c.value ? (m(), y("div", Ke, [
|
|
162
162
|
v("div", Ge, [
|
|
163
163
|
s(g, {
|
|
164
164
|
class: "flex-2",
|
|
@@ -215,16 +215,16 @@ const Ye = { class: "fm-typo-en-title-md-600" }, Ke = {
|
|
|
215
215
|
]),
|
|
216
216
|
default: k(() => [
|
|
217
217
|
v("div", je, [
|
|
218
|
-
(m(!0), y(V, null, j(i.value, (w,
|
|
218
|
+
(m(!0), y(V, null, j(i.value, (w, P) => (m(), y(V, { key: P }, [
|
|
219
219
|
s(Y, {
|
|
220
220
|
label: w.label
|
|
221
221
|
}, null, 8, ["label"]),
|
|
222
|
-
s(
|
|
222
|
+
s(z),
|
|
223
223
|
(m(!0), y(V, null, j(w.options, (E, dn) => (m(), T(ge, {
|
|
224
224
|
label: E.label,
|
|
225
|
-
"model-value":
|
|
225
|
+
"model-value": D(E),
|
|
226
226
|
onClick: (mn) => _(w.value, E.value),
|
|
227
|
-
"x-should-scroll-into": `${
|
|
227
|
+
"x-should-scroll-into": `${D(E)}`
|
|
228
228
|
}, null, 8, ["label", "model-value", "onClick", "x-should-scroll-into"]))), 256))
|
|
229
229
|
], 64))), 128))
|
|
230
230
|
])
|
|
@@ -239,7 +239,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, Ke = {
|
|
|
239
239
|
class: "p-16 flex flex-col gap-16"
|
|
240
240
|
}, {
|
|
241
241
|
default: k(() => {
|
|
242
|
-
var p, w,
|
|
242
|
+
var p, w, P;
|
|
243
243
|
return [
|
|
244
244
|
s(he, {
|
|
245
245
|
value: "",
|
|
@@ -265,7 +265,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, Ke = {
|
|
|
265
265
|
"onUpdate:modelValue": ee
|
|
266
266
|
}, null, 8, ["model-value", "type", "filter-option-ids"]),
|
|
267
267
|
s(ae, {
|
|
268
|
-
"model-value": ((
|
|
268
|
+
"model-value": ((P = n.convert) == null ? void 0 : P.inventoryBindings) || [],
|
|
269
269
|
type: e(le.F_INVENTORY_BINDING_TYPE).enum.SKU,
|
|
270
270
|
"filter-option-ids": pe.value,
|
|
271
271
|
"onUpdate:modelValue": ee
|
|
@@ -275,7 +275,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, Ke = {
|
|
|
275
275
|
}),
|
|
276
276
|
_: 1
|
|
277
277
|
})
|
|
278
|
-
])) : (m(), y("div",
|
|
278
|
+
])) : (m(), y("div", ze, [
|
|
279
279
|
a.value.length === 0 ? (m(), T(e(ce), {
|
|
280
280
|
key: 0,
|
|
281
281
|
action: {
|
|
@@ -426,7 +426,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, Ke = {
|
|
|
426
426
|
}
|
|
427
427
|
const M = b(() => S.value.length), I = Ue(), a = b(() => I.breakpoints.value.xs);
|
|
428
428
|
return (i, c) => {
|
|
429
|
-
const n = d("FmSearch"), F = d("FmTable"), L = d("fm-button"),
|
|
429
|
+
const n = d("FmSearch"), F = d("FmTable"), L = d("fm-button"), D = d("FmSpacer");
|
|
430
430
|
return m(), T(Te, {
|
|
431
431
|
heading: e(u)("menu.ingredient.title")
|
|
432
432
|
}, {
|
|
@@ -478,7 +478,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, Ke = {
|
|
|
478
478
|
"pin-header-row": "",
|
|
479
479
|
onRowClick: c[1] || (c[1] = (_) => f(_.original))
|
|
480
480
|
}, null, 8, ["column-defs", "row-data", "page-size"])]))], 64))]),
|
|
481
|
-
"append-heading": k(() => [v("div", sn, [v("div", un, [v("div", rn, [v("p", cn, U(M.value), 1)])]), s(
|
|
481
|
+
"append-heading": k(() => [v("div", sn, [v("div", un, [v("div", rn, [v("p", cn, U(M.value), 1)])]), s(D), S.value.length > 0 ? (m(), T(Ne, {
|
|
482
482
|
key: 0,
|
|
483
483
|
label: e(u)("menu.ingredient.actions.add"),
|
|
484
484
|
"prepend-icon": "add",
|