@feedmepos/mf-menu 0.32.7-dev → 0.32.8-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-DCkQc7e4.js → App-B5S9byVJ.js} +5456 -4621
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js → ApplyProduct.vue_vue_type_script_setup_true_lang-bSXFWpq_.js} +3 -3
- package/dist/{Catalog-CUPoRid3.js → Catalog-CTfF5FmI.js} +52 -52
- package/dist/{Category-BkvhZ57Y.js → Category-BntCVeoT.js} +57 -57
- package/dist/{Category-Cdw0ikhP.js → Category-Z3bphlCX.js} +26 -26
- package/dist/{CookingGuide-BZ-4oULM.js → CookingGuide-CoPo2Alx.js} +127 -127
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJvVFWdR.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DJ3sb3XV.js} +1 -1
- package/dist/{Group-Cec83DWm.js → Group-B7rZfFlT.js} +3 -3
- package/dist/{Group-C1FaXdUb.js → Group-CblWJOl1.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-2_lLBdX2.js → Group.vue_vue_type_script_setup_true_lang-wX7yqw0Z.js} +33 -33
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BEDyKWhK.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DW1gBCBA.js} +27 -27
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CcQBD0I8.js} +7 -7
- package/dist/{Ingredient-DulL8h2B.js → Ingredient-Bn-jeNeI.js} +46 -46
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DbGNFA3D.js} +2 -2
- package/dist/{LinkProductSideSheet-Br2eE8pC.js → LinkProductSideSheet-BjcQDT4U.js} +61 -61
- package/dist/{MenuSetting-DxW4LCW4.js → MenuSetting-BT5YSMgK.js} +14 -14
- package/dist/{PrintRoute-Da6Zkx-0.js → PrintRoute-B0j0eqNM.js} +34 -34
- package/dist/{Product-Cs76t18_.js → Product-BOMprFhc.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js → Product.vue_vue_type_script_setup_true_lang-q9xFzQ0v.js} +142 -142
- package/dist/{ProductInternalTools-DPbeRvTM.js → ProductInternalTools-O5d2jMAH.js} +39 -39
- package/dist/{Products--7dGfuuT.js → Products-BnMrK40x.js} +15 -15
- package/dist/{Publish-COmZtiyX.js → Publish-dTP5mQS3.js} +26 -26
- package/dist/{Recipe-BaN_1zrP.js → Recipe-DnftcZPO.js} +26 -26
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js → RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js} +2 -2
- package/dist/{Scheduler-BSUpIAaK.js → Scheduler-DRLaQK_V.js} +22 -22
- package/dist/{ServingSequence-dXBb7e5d.js → ServingSequence-CPIyJ7T8.js} +39 -39
- package/dist/{Setting-CalEQW0n.js → Setting-CLtISC4c.js} +22 -22
- package/dist/{Subcategory-zPHtX7Vc.js → Subcategory-b0bXCYYY.js} +32 -32
- package/dist/{Takeaway-CRDj2Bpe.js → Takeaway-CCIKDCoF.js} +12 -12
- package/dist/{Takeaway-CcnmeTmu.js → Takeaway-h9uUxFJd.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.js → Takeaway.vue_vue_type_script_setup_true_lang-BOG_W-2a.js} +26 -26
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-B0552qsN.js → Thumbnail.vue_vue_type_script_setup_true_lang-D4KcX3XQ.js} +26 -26
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B3EByLES.js +6016 -0
- package/dist/{Unit-C7-Oj5S3.js → Unit-B0kiwrN6.js} +13 -13
- package/dist/{Variant-CYiMkE0q.js → Variant-CJSk0kTW.js} +18 -18
- package/dist/{_id_-D75ZcNlf.js → _id_-108G3lsv.js} +22 -22
- package/dist/{app-DzVMOviz.js → app-BTn28hDr.js} +1 -1
- package/dist/{app-BhLVpUSl.js → app-CPJH5bgs.js} +26 -26
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +4 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-BoIPm5hC.js → linked-status-Bp5piT25.js} +2 -2
- package/dist/assets/{override-menu-DfTrwWpR.js → override-menu-D47qVZAi.js} +2 -2
- package/dist/assets/{validate-menu-BhWvQ3T9.js → validate-menu-YuXYm9iE.js} +2 -2
- package/dist/{catalog-CudNSsIP.js → catalog-CpFTifAS.js} +1 -1
- package/dist/{catalogSetting-BVHO9tK3.js → catalogSetting-DjGqI2Vf.js} +1 -1
- package/dist/{category-BQpgz1lk.js → category-DaRWiQd8.js} +5 -5
- package/dist/{currency-BfS7H2KE.js → currency-DbURufyM.js} +1 -1
- package/dist/{index-aaoziUNI.js → index-C6AkIinM.js} +1 -1
- package/dist/{index-DmGJvREM.js → index-D67GKEzf.js} +1 -1
- package/dist/{index-DuLXS699.js → index-kjRAsH_h.js} +38 -38
- package/dist/{index-BHdPJta4.js → index-pJtym1c6.js} +21 -21
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js → index.vue_vue_type_script_setup_true_lang-BvohjQ00.js} +438 -428
- package/dist/item-2WoPAnNJ.js +6838 -0
- package/dist/{iteration-CaliNodx.js → iteration-BGItxpWj.js} +1 -1
- package/dist/{jszip.min-DXbkmgRD.js → jszip.min-D8NeBCPG.js} +2 -2
- package/dist/{menu-D-lUEuvX.js → menu-DVdMR0zo.js} +1 -1
- package/dist/{menuV2-D-6O36DO.js → menuV2-CcBdUc80.js} +41 -41
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-DKnYaOA9.js → priceTier-CTfRyTuS.js} +1 -1
- package/dist/{scheduler-DEwfbYPL.js → scheduler-DOMDX4d7.js} +20 -20
- package/dist/{subcategory-CQKklgcd.js → subcategory-NsslZ1my.js} +6 -6
- package/dist/{toExcel-CRwL-QqF.js → toExcel-Bdne-Dw_.js} +2 -2
- package/dist/{unit-BzM1rmN7.js → unit-DKyvdauo.js} +29 -29
- package/package.json +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js +0 -6038
- package/dist/item-BtKW0wdj.js +0 -7685
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as J, ref as T, computed as f, resolveComponent as g, createBlock as P, openBlock as p, unref as l, withCtx as m, createElementVNode as i, createVNode as c, createCommentVNode as
|
|
1
|
+
import { defineComponent as J, ref as T, computed as f, resolveComponent as g, createBlock as P, openBlock as p, unref as l, withCtx as m, createElementVNode as i, createVNode as c, createCommentVNode as H, toDisplayString as S, createElementBlock as L, Fragment as A, renderList as B, h as _, withModifiers as q } from "vue";
|
|
2
2
|
import { useI18n as Q } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as W, useSnackbar as te, useDialog as oe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as ae } from "./app-
|
|
6
|
-
import {
|
|
7
|
-
import { _ as
|
|
5
|
+
import { _ as ae } from "./app-CPJH5bgs.js";
|
|
6
|
+
import { I as j, J as le, K as Y, A as C, u as re, P as se, G as ie, a3 as ue } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
|
|
7
|
+
import { _ as G } from "./RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js";
|
|
8
8
|
import { u as de } from "./discardConfirm-BHni0LNu.js";
|
|
9
|
-
import { L as ce } from "./LinkProductSideSheet-
|
|
9
|
+
import { L as ce } from "./LinkProductSideSheet-BjcQDT4U.js";
|
|
10
10
|
import { _ as me } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
11
11
|
const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, fe = { class: "space-y-16" }, ve = { class: "flex items-center gap-8" }, ye = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ge = { class: "flex-1" }, he = { class: "grow overflow-y-auto" }, be = { 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" }, xe = { class: "px-16 py-8 flex-1" }, ke = { class: "py-8" }, Fe = { class: "flex gap-8 items-center justify-start" }, Ie = /* @__PURE__ */ J({
|
|
12
12
|
__name: "PrintDepartmentDialog",
|
|
@@ -22,9 +22,9 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
22
22
|
},
|
|
23
23
|
emits: ["onSave"],
|
|
24
24
|
setup(v, { expose: t, emit: h }) {
|
|
25
|
-
const
|
|
25
|
+
const K = v;
|
|
26
26
|
t({
|
|
27
|
-
showModal:
|
|
27
|
+
showModal: z,
|
|
28
28
|
hideModal: V
|
|
29
29
|
});
|
|
30
30
|
function b() {
|
|
@@ -35,7 +35,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
const x = T(!1), M = T(void 0);
|
|
38
|
-
function
|
|
38
|
+
function z(r) {
|
|
39
39
|
M.value = r ? j(r) : b(), n.value = j(M.value), x.value = !0;
|
|
40
40
|
}
|
|
41
41
|
function V() {
|
|
@@ -48,21 +48,21 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
48
48
|
applyToItems: r.map((a) => a._id)
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function N(r) {
|
|
52
52
|
n.value = {
|
|
53
53
|
...n.value,
|
|
54
54
|
applyToItems: n.value.applyToItems.filter((a) => a !== r)
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
const { t: u } = Q(), O = f(() => n.value._id ? u("menu.print_route.department_dialog.update.title") : u("menu.print_route.department_dialog.add.title")), F = f(() => n.value._id ? u("menu.print_route.department_dialog.update.action") : u("menu.print_route.department_dialog.add.action")),
|
|
57
|
+
const { t: u } = Q(), O = f(() => n.value._id ? u("menu.print_route.department_dialog.update.title") : u("menu.print_route.department_dialog.add.title")), F = f(() => n.value._id ? u("menu.print_route.department_dialog.update.action") : u("menu.print_route.department_dialog.add.action")), U = f(() => n.value.applyToItems.length), $ = f(
|
|
58
58
|
() => n.value.applyToItems.reduce((r, a) => (r[a] = [], r), {})
|
|
59
59
|
), e = T(""), o = f(() => {
|
|
60
60
|
const r = e.value.toLowerCase();
|
|
61
|
-
return
|
|
62
|
-
const
|
|
63
|
-
(I) => (!r || I.name.toLowerCase().includes(r)) &&
|
|
61
|
+
return K.categorizedItems.reduce((a, d) => {
|
|
62
|
+
const D = d.items.filter(
|
|
63
|
+
(I) => (!r || I.name.toLowerCase().includes(r)) && !!$.value[I._id]
|
|
64
64
|
);
|
|
65
|
-
return
|
|
65
|
+
return D.length && a.push({ ...d, items: D }), a;
|
|
66
66
|
}, []);
|
|
67
67
|
}), y = h, w = de(
|
|
68
68
|
() => !le.isEqual(M.value, n.value),
|
|
@@ -74,7 +74,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
74
74
|
V(), y("onSave", n.value);
|
|
75
75
|
}
|
|
76
76
|
return (r, a) => {
|
|
77
|
-
const d = g("FmTextField"),
|
|
77
|
+
const d = g("FmTextField"), D = g("FmSpacer"), I = g("FmButton"), X = g("FmSearch"), Z = g("FmSideSheet");
|
|
78
78
|
return p(), P(Z, {
|
|
79
79
|
modelValue: x.value,
|
|
80
80
|
"onUpdate:modelValue": a[3] || (a[3] = (s) => x.value = s),
|
|
@@ -109,7 +109,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
109
109
|
]),
|
|
110
110
|
default: m(() => [
|
|
111
111
|
i("div", _e, [
|
|
112
|
-
c(
|
|
112
|
+
c(G, {
|
|
113
113
|
title: l(u)("menu.print_route.department_dialog.sections.route_detail.title")
|
|
114
114
|
}, {
|
|
115
115
|
default: m(() => [
|
|
@@ -126,12 +126,12 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
126
126
|
]),
|
|
127
127
|
_: 1
|
|
128
128
|
}, 8, ["title"]),
|
|
129
|
-
v.canApplyItems ? (p(), P(
|
|
129
|
+
v.canApplyItems ? (p(), P(G, {
|
|
130
130
|
key: 0,
|
|
131
131
|
title: l(u)("menu.print_route.department_dialog.sections.link_product.title")
|
|
132
132
|
}, {
|
|
133
133
|
"append-title": m(() => [
|
|
134
|
-
c(
|
|
134
|
+
c(D),
|
|
135
135
|
c(ce, {
|
|
136
136
|
"categorized-items": v.categorizedItems,
|
|
137
137
|
"initial-value": n.value.applyToItems.map((s) => ({
|
|
@@ -156,7 +156,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
156
156
|
i("div", fe, [
|
|
157
157
|
i("div", ve, [
|
|
158
158
|
i("div", ye, S(l(u)("menu.print_route.department_dialog.sections.link_product.products_linked", {
|
|
159
|
-
count:
|
|
159
|
+
count: U.value
|
|
160
160
|
})), 1),
|
|
161
161
|
i("div", ge, [
|
|
162
162
|
c(X, {
|
|
@@ -181,7 +181,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
181
181
|
icon: "delete",
|
|
182
182
|
variant: "tertiary",
|
|
183
183
|
"text-color": "neutral-gray-400",
|
|
184
|
-
onClick: () =>
|
|
184
|
+
onClick: () => N(R._id)
|
|
185
185
|
}, null, 8, ["onClick"])
|
|
186
186
|
])
|
|
187
187
|
]))), 128))
|
|
@@ -190,7 +190,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
|
|
|
190
190
|
])
|
|
191
191
|
]),
|
|
192
192
|
_: 1
|
|
193
|
-
}, 8, ["title"])) :
|
|
193
|
+
}, 8, ["title"])) : H("", !0)
|
|
194
194
|
])
|
|
195
195
|
]),
|
|
196
196
|
_: 1
|
|
@@ -242,7 +242,7 @@ const Ee = {
|
|
|
242
242
|
setup(v) {
|
|
243
243
|
const {
|
|
244
244
|
t
|
|
245
|
-
} = Q(), h = re(),
|
|
245
|
+
} = Q(), h = re(), K = f(() => h.categorizedItems), b = f(() => {
|
|
246
246
|
const e = h.state.menu.modules.item;
|
|
247
247
|
return h.printDepartments.map((y) => ({
|
|
248
248
|
...y,
|
|
@@ -286,13 +286,13 @@ const Ee = {
|
|
|
286
286
|
}, ["stop", "prevent"])
|
|
287
287
|
})])
|
|
288
288
|
}]);
|
|
289
|
-
function
|
|
289
|
+
function z() {
|
|
290
290
|
var e;
|
|
291
|
-
k.value || (e =
|
|
291
|
+
k.value || (e = U.value) == null || e.showModal();
|
|
292
292
|
}
|
|
293
293
|
function V(e) {
|
|
294
294
|
var o;
|
|
295
|
-
k.value || (o =
|
|
295
|
+
k.value || (o = U.value) == null || o.showModal({
|
|
296
296
|
...e,
|
|
297
297
|
applyToItems: e.applyToItems.map(({
|
|
298
298
|
_id: y
|
|
@@ -300,7 +300,7 @@ const Ee = {
|
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
302
|
const n = se(ie(te())), k = f(() => n.checkMenuIsLoading());
|
|
303
|
-
async function
|
|
303
|
+
async function N(e) {
|
|
304
304
|
const o = e._id ? Ve(e, e.applyToItems) : Ce(e, e.applyToItems);
|
|
305
305
|
await n.updateMenu(o, e.name);
|
|
306
306
|
}
|
|
@@ -331,7 +331,7 @@ const Ee = {
|
|
|
331
331
|
await n.updateMenu(we(e), e.name, !0);
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
|
-
const F = T(""),
|
|
334
|
+
const F = T(""), U = T(), $ = f(() => {
|
|
335
335
|
if (!F.value) return b.value;
|
|
336
336
|
const e = F.value.toLowerCase();
|
|
337
337
|
return b.value.filter((o) => o.name.toLowerCase().includes(e));
|
|
@@ -347,8 +347,8 @@ const Ee = {
|
|
|
347
347
|
icon: "add",
|
|
348
348
|
label: l(t)("menu.print_route.actions.add"),
|
|
349
349
|
variant: "primary",
|
|
350
|
-
onClick:
|
|
351
|
-
}, null, 8, ["disabled", "label"])) :
|
|
350
|
+
onClick: z
|
|
351
|
+
}, null, 8, ["disabled", "label"])) : H("", !0)])]),
|
|
352
352
|
default: m(() => [x.value ? (p(), L(A, {
|
|
353
353
|
key: 1
|
|
354
354
|
}, [i("div", Te, [c(y, {
|
|
@@ -376,7 +376,7 @@ const Ee = {
|
|
|
376
376
|
class: "w-full px-16 xs:block hidden flex-1 min-h-0 overflow-scroll pb-64",
|
|
377
377
|
separator: ""
|
|
378
378
|
}, {
|
|
379
|
-
default: m(() => [(p(!0), L(A, null, B(
|
|
379
|
+
default: m(() => [(p(!0), L(A, null, B($.value, (d) => (p(), P(r, {
|
|
380
380
|
key: d._id,
|
|
381
381
|
label: d.name,
|
|
382
382
|
style: {
|
|
@@ -400,15 +400,15 @@ const Ee = {
|
|
|
400
400
|
key: 0,
|
|
401
401
|
action: {
|
|
402
402
|
text: l(t)("menu.print_route.empty.action"),
|
|
403
|
-
callback:
|
|
403
|
+
callback: z
|
|
404
404
|
},
|
|
405
405
|
subtitle: l(t)("menu.print_route.empty.subtitle"),
|
|
406
406
|
title: l(t)("menu.print_route.empty.title")
|
|
407
407
|
}, null, 8, ["action", "subtitle", "title"])), c(Ie, {
|
|
408
408
|
ref_key: "printDepartmentRef",
|
|
409
|
-
ref:
|
|
410
|
-
"categorized-items":
|
|
411
|
-
onOnSave:
|
|
409
|
+
ref: U,
|
|
410
|
+
"categorized-items": K.value,
|
|
411
|
+
onOnSave: N
|
|
412
412
|
}, null, 8, ["categorized-items"])]),
|
|
413
413
|
_: 1
|
|
414
414
|
}, 8, ["heading"]);
|