@feedmepos/mf-menu 0.32.44 → 0.32.45
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-BXkiQoTM.js → App-CczmyQeJ.js} +1471 -1458
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BoSL4dm7.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BscsJpMV.js} +3 -3
- package/dist/{Catalog-CLFVLyor.js → Catalog-RU_6keJm.js} +6 -6
- package/dist/{Category-CNuVHuI3.js → Category-7Fg2kD0h.js} +79 -79
- package/dist/{Category-BdyouDU8.js → Category-CwEXbsDv.js} +4 -4
- package/dist/{CookingGuide-Bed7bUt1.js → CookingGuide-DFu5VStf.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CZDL2xJC.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CeNfLbfq.js} +1 -1
- package/dist/{Group-TUqCPmO3.js → Group-C6vQeBnj.js} +1 -1
- package/dist/{Group-D4UTsIxI.js → Group-l-YpAi6B.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BJPT8flL.js → Group.vue_vue_type_script_setup_true_lang-1UdOBdv-.js} +165 -165
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D83liryu.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-C309DrLU.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CRIRinHB.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C903fhuj.js} +6 -6
- package/dist/{Ingredient-CcxoeuDd.js → Ingredient-CHqDo-GY.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-58tyxdVh.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CXHHlrI0.js} +2 -2
- package/dist/{LinkProductSideSheet-DazOkwkd.js → LinkProductSideSheet-DY32g33Q.js} +3 -3
- package/dist/{MenuSetting-B3oLll4C.js → MenuSetting-DhbxlKuU.js} +5 -5
- package/dist/{PrintRoute-D878qPu8.js → PrintRoute-CToZ0ClG.js} +4 -4
- package/dist/{Product-DOC8y_mW.js → Product-Cpg32wpg.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-tZyBhWYT.js → Product.vue_vue_type_script_setup_true_lang-BC2KG1q4.js} +440 -438
- package/dist/{ProductInternalTools-9TgIc2bR.js → ProductInternalTools-wH9BN1NK.js} +5 -5
- package/dist/Products-CpINHaH6.js +291 -0
- package/dist/{Publish-BktK_PKq.js → Publish-CJS_836k.js} +3 -3
- package/dist/{Recipe-eA0xrGYk.js → Recipe-Cz7hivmM.js} +4 -4
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-t8M7z09s.js → RuleView.vue_vue_type_script_setup_true_lang-CRLzqgQe.js} +207 -207
- package/dist/{Scheduler-CKSqPZLQ.js → Scheduler-QuWCnEJw.js} +3 -3
- package/dist/{ServingSequence-Ea20baNj.js → ServingSequence-CqK5Sjmq.js} +3 -3
- package/dist/{Setting-u6lX_Dzg.js → Setting-C3tKUfsm.js} +5 -5
- package/dist/{Subcategory-C6s7OMOb.js → Subcategory-DCtTOPUj.js} +99 -100
- package/dist/{Takeaway-lWxS9oWe.js → Takeaway-BnB1OFnK.js} +1 -1
- package/dist/{Takeaway-B9kr-Nf4.js → Takeaway-Fi8SAH2t.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-oA0e9oI5.js → Takeaway.vue_vue_type_script_setup_true_lang-Cbz7Qt_g.js} +91 -91
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-T40ChY7j.js → Thumbnail.vue_vue_type_script_setup_true_lang-CPM_muXB.js} +4 -4
- package/dist/TranslationFieldSection.vue_vue_type_script_setup_true_lang-BpL8UrFY.js +278 -0
- package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-DtkzQeq4.js +140 -0
- package/dist/TranslationViewChip.vue_vue_type_script_setup_true_lang-CHT7Xozn.js +60 -0
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B1e3d-uX.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoIgiwHh.js} +13 -13
- package/dist/{Unit-DkQlUg2l.js → Unit-5yE2-y9D.js} +2 -2
- package/dist/Variant-C7lIdRID.js +248 -0
- package/dist/{_id_-_oqk-OhC.js → _id_-08ykp97a.js} +9 -9
- package/dist/{app-CfCYl2pO.js → app-CA4g3v2n.js} +26 -26
- package/dist/{app-DIYHNWEw.js → app-DPovSnb_.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/translation/LanguageChip.vue.d.ts +18 -0
- package/dist/apps/mf-menu/src/components/translation/LanguageSelector.vue.d.ts +33 -0
- package/dist/apps/mf-menu/src/components/translation/LocaleIconBadge.vue.d.ts +29 -0
- package/dist/apps/mf-menu/src/components/translation/TranslationFieldRow.vue.d.ts +39 -0
- package/dist/apps/mf-menu/src/components/translation/TranslationViewChip.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/composable/translationLanguages.d.ts +16 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
- package/dist/apps/mf-menu/src/utils/translation.d.ts +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-AoXjo9FF.js → linked-status-WT6deoPw.js} +2 -2
- package/dist/assets/{menu-export-BHcaWhM3.js → menu-export-DxtFXMED.js} +2 -2
- package/dist/assets/{override-menu-B9xQcjuJ.js → override-menu-BJGRdWWE.js} +2 -2
- package/dist/assets/{validate-menu-D-ezd4W8.js → validate-menu-B_tmkHe7.js} +2 -2
- package/dist/{catalog-CvN9Wu8V.js → catalog-D7Jjqj3-.js} +1 -1
- package/dist/{catalogSetting-qS5Np22q.js → catalogSetting-Bg_zMUrV.js} +1 -1
- package/dist/{currency-Nxod6uwl.js → currency-DDxFMjAI.js} +1 -1
- package/dist/{dayjs.min-B1AjAGva.js → dayjs.min-BVOO8wJG.js} +1 -1
- package/dist/{index-Cq-czJjU.js → index-BlLRjkMF.js} +8 -7
- package/dist/{index-nKlYiotY.js → index-CG7GFWlC.js} +1 -1
- package/dist/index-Cq2MVpMv.js +472 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-YXKayPEp.js → index.vue_vue_type_script_setup_true_lang-C6IVvAua.js} +169 -168
- package/dist/{item-CUZSonzT.js → item-Bq6SCc7D.js} +3250 -3386
- package/dist/{jszip.min-BnkZQ6lD.js → jszip.min-1MrCGuHF.js} +2 -2
- package/dist/{menu-BP_ArXCI.js → menu-CKA9uouu.js} +1 -1
- package/dist/{menuV2-BGEYgQ8-.js → menuV2-DBkrmeha.js} +71 -71
- package/dist/{priceTier-B-Qa0xaO.js → priceTier-Cxr9IcVP.js} +1 -1
- package/dist/{rules-Dchd_ilF.js → rules-DFWR7a3m.js} +4 -4
- package/dist/{scheduler-DN7ZGLk8.js → scheduler-HKff8Ty2.js} +4 -4
- package/dist/{toExcel-jHmkDqcm.js → toExcel-DopYrxBW.js} +2 -2
- package/dist/{unit-DgL56pkI.js → unit-5G600HMJ.js} +2 -2
- package/package.json +1 -1
- package/dist/Products-DfUGnHmD.js +0 -1568
- package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-CcIGCUwk.js +0 -194
- package/dist/Variant-BF5r2WLL.js +0 -247
- package/dist/index-C0Zw1cSS.js +0 -545
- package/dist/translation-Cdap0IVg.js +0 -79
- /package/dist/apps/mf-menu/src/components/{TranslationBadge.vue.d.ts → translation/TranslationBadge.vue.d.ts} +0 -0
- /package/dist/apps/mf-menu/src/components/{TranslationFieldSection.vue.d.ts → translation/TranslationFieldSection.vue.d.ts} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as v, computed as M, resolveComponent as G, createElementBlock as c, openBlock as r, createElementVNode as s, createVNode as I, unref as h, createCommentVNode as T, normalizeClass as E, toDisplayString as U, createStaticVNode as B, Fragment as P, renderList as O, createBlock as oe, withCtx as R } from "vue";
|
|
2
|
-
import { J as A, F as ne } from "./jszip.min-
|
|
3
|
-
import { G as le, u as ie, J as D, a2 as re, N as ce, O as de, P as me } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { J as A, F as ne } from "./jszip.min-1MrCGuHF.js";
|
|
3
|
+
import { G as le, u as ie, J as D, a2 as re, N as ce, O as de, P as me } from "./index.vue_vue_type_script_setup_true_lang-C6IVvAua.js";
|
|
4
4
|
import { useI18n as ue } from "@feedmepos/mf-common";
|
|
5
5
|
import { FmButtonVariant as $, useSnackbar as V, useDialog as ge, FmButtonColorThemeVariant as z } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as pe } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { u as fe, a as he } from "./menu-
|
|
8
|
-
import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { x as be, y as ve, z as _e } from "./item-
|
|
7
|
+
import { u as fe, a as he } from "./menu-CKA9uouu.js";
|
|
8
|
+
import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-BC2KG1q4.js";
|
|
9
|
+
import { x as be, y as ve, z as _e } from "./item-Bq6SCc7D.js";
|
|
10
10
|
const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center justify-between p-16 border-b border-gray-200" }, Ie = { class: "flex gap-8" }, ke = { class: "border-b border-gray-200" }, Ce = { class: "flex" }, Ue = { class: "flex-1 overflow-hidden" }, je = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "h-full flex flex-col"
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { defineComponent as E, computed as g, ref as j, resolveComponent as M, createBlock as y, openBlock as m, unref as e, withCtx as c, createElementVNode as i, toDisplayString as q, createVNode as o, createCommentVNode as G, createElementBlock as A, Fragment as P } from "vue";
|
|
2
|
+
import { D as F } from "./dayjs.min-BVOO8wJG.js";
|
|
3
|
+
import { J as oe, F as ne } from "./jszip.min-1MrCGuHF.js";
|
|
4
|
+
import { u as J, G as W, B as R, H, A as Z, D as ae, I as re, J as U, K as se } from "./index.vue_vue_type_script_setup_true_lang-C6IVvAua.js";
|
|
5
|
+
import { w as ie } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-C903fhuj.js";
|
|
6
|
+
import { useCoreStore as K, useI18n as le } from "@feedmepos/mf-common";
|
|
7
|
+
import { useDialog as X, useDialogChild as ue, useSnackbar as Q, useBreakpoints as ce, FmButtonVariant as $, FmButtonColorThemeVariant as h } from "@feedmepos/ui-library";
|
|
8
|
+
import { _ as V } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
9
|
+
import { _ as me, a as z } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
10
|
+
import { _ as de } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
11
|
+
import { u as pe, a as fe } from "./menu-CKA9uouu.js";
|
|
12
|
+
import { u as _e } from "./item-Bq6SCc7D.js";
|
|
13
|
+
import { _ as L, a as ve } from "./Product.vue_vue_type_script_setup_true_lang-BC2KG1q4.js";
|
|
14
|
+
import { L as O } from "./LinkProductSideSheet-DY32g33Q.js";
|
|
15
|
+
import { _ as ge } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoIgiwHh.js";
|
|
16
|
+
import { u as be } from "./Thumbnail.vue_vue_type_script_setup_true_lang-CPM_muXB.js";
|
|
17
|
+
import { m as ye } from "./toExcel-DopYrxBW.js";
|
|
18
|
+
const ke = { class: "space-y-24 mb-24" }, xe = ["innerHTML"], he = { class: "flex justify-end gap-8" }, Se = /* @__PURE__ */ E({
|
|
19
|
+
__name: "ConfirmActionDialog",
|
|
20
|
+
props: {
|
|
21
|
+
description: {},
|
|
22
|
+
value: {},
|
|
23
|
+
message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
|
|
24
|
+
},
|
|
25
|
+
setup(C) {
|
|
26
|
+
const t = C, S = g(() => t.message.replace("[[value]]", t.value)), k = j(""), r = X(), { emitAction: x } = ue();
|
|
27
|
+
return (d, s) => {
|
|
28
|
+
const p = M("FmTextField"), f = M("FmButton"), _ = M("FmForm");
|
|
29
|
+
return m(), y(_, {
|
|
30
|
+
"on-validation-success": () => e(x)("primary"),
|
|
31
|
+
"blame-form-child-on-validation-failed": ""
|
|
32
|
+
}, {
|
|
33
|
+
default: c(() => [
|
|
34
|
+
i("div", ke, [
|
|
35
|
+
i("div", null, q(d.description), 1),
|
|
36
|
+
i("div", { innerHTML: S.value }, null, 8, xe),
|
|
37
|
+
i("div", null, [
|
|
38
|
+
o(p, {
|
|
39
|
+
modelValue: k.value,
|
|
40
|
+
"onUpdate:modelValue": [
|
|
41
|
+
s[0] || (s[0] = (l) => k.value = l),
|
|
42
|
+
s[1] || (s[1] = () => {
|
|
43
|
+
})
|
|
44
|
+
],
|
|
45
|
+
placeholder: d.value,
|
|
46
|
+
rules: [(l) => l === d.value || "Value does not match"]
|
|
47
|
+
}, null, 8, ["modelValue", "placeholder", "rules"])
|
|
48
|
+
]),
|
|
49
|
+
i("div", he, [
|
|
50
|
+
o(f, {
|
|
51
|
+
label: "Cancel",
|
|
52
|
+
variant: "secondary",
|
|
53
|
+
onClick: s[2] || (s[2] = (l) => e(r).close())
|
|
54
|
+
}),
|
|
55
|
+
o(f, {
|
|
56
|
+
label: "Confirm",
|
|
57
|
+
type: "submit"
|
|
58
|
+
})
|
|
59
|
+
])
|
|
60
|
+
])
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
}, 8, ["on-validation-success"]);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
}), Me = /* @__PURE__ */ E({
|
|
67
|
+
__name: "Migrate",
|
|
68
|
+
setup(C) {
|
|
69
|
+
const t = J(), S = K(), k = Q(), { minor: r } = W(k), x = j(!1), d = X();
|
|
70
|
+
async function s() {
|
|
71
|
+
p.value || x.value || d.open({
|
|
72
|
+
title: "Migrate to new version",
|
|
73
|
+
contentComponent: Se,
|
|
74
|
+
contentComponentProps: {
|
|
75
|
+
value: "MIGRATE",
|
|
76
|
+
description: "Do you want to migrate to new version? Once migrate it will unable to revert to the older version."
|
|
77
|
+
}
|
|
78
|
+
}).onPrimary(async () => {
|
|
79
|
+
d.close(), await r(
|
|
80
|
+
async () => {
|
|
81
|
+
await t.migrate(), setTimeout(() => {
|
|
82
|
+
window.location.reload();
|
|
83
|
+
}, 2e3);
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
isLoading: x,
|
|
87
|
+
customId: t.state.menu._id,
|
|
88
|
+
message: "Migrating menu",
|
|
89
|
+
successMessage: "Migration completed"
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
const p = g(() => {
|
|
95
|
+
const f = S.restaurants.value;
|
|
96
|
+
if (!f.length) return "Required at least one restaurant to migrate";
|
|
97
|
+
const _ = f.filter((b) => !b.posVersion || !R.Pos.canUse({ feature: H.F_FEATURE.enum.menuV4, posVersion: b.posVersion }));
|
|
98
|
+
return _.length ? `Upgrade POS to V${R.Pos.minVersionToUse(H.F_FEATURE.enum.menuV4)} to use new menu: ${_.map((b) => b.profile.name).join(", ")}` : null;
|
|
99
|
+
});
|
|
100
|
+
return g(() => p.value ? p.value : "Migrate your menu to new version to enjoy more features. Content of new menu will remain the same as current."), (f, _) => {
|
|
101
|
+
const l = M("FmSnackbar");
|
|
102
|
+
return !p.value && e(t).version !== e(Z.F_MENU_VERSION).enum.v4 ? (m(), y(l, {
|
|
103
|
+
key: 0,
|
|
104
|
+
class: "!max-w-full",
|
|
105
|
+
title: "New version of menu is out now!",
|
|
106
|
+
description: "Migrate your current menu version to the latest to enjoy more features such as product sequential dispatch, serving sequence, scheduler and more! Your content and current setting will be preserved.",
|
|
107
|
+
variant: "info",
|
|
108
|
+
action: "Migrate",
|
|
109
|
+
"z-index": 0,
|
|
110
|
+
onOnAction: s
|
|
111
|
+
})) : G("", !0);
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
}), we = "/assets/menu-export-DxtFXMED.js", Ce = { class: "flex-1 flex justify-between gap-8 pl-8" }, Fe = { class: "flex items-center" }, $e = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ve = { class: "fm-typo-en-body-md-600 font-semibold" }, Ee = { class: "flex gap-8" }, Je = /* @__PURE__ */ E({
|
|
115
|
+
__name: "Products",
|
|
116
|
+
setup(C) {
|
|
117
|
+
const { t } = le(), S = K(), k = W(Q()), r = J(), x = g(() => r.rules.item), d = _e(), s = g(() => !r.state.currentSchedulerId), { selectedCategories: p } = pe(), f = g(() => ({
|
|
118
|
+
...ae.menuV4ToV3(re(r.state.menu)),
|
|
119
|
+
_id: r.state.menu._id,
|
|
120
|
+
_rev: r.state.menu._rev
|
|
121
|
+
})), _ = g(() => {
|
|
122
|
+
const u = U.flatten(p.value.map((n) => n.items));
|
|
123
|
+
return U.uniqBy(u, (n) => n._id).length;
|
|
124
|
+
});
|
|
125
|
+
async function l(u, n) {
|
|
126
|
+
const v = new oe();
|
|
127
|
+
for (let w = 0; w < u.length; w++)
|
|
128
|
+
v.file(`${n[w]}.xlsx`, u[w]);
|
|
129
|
+
const a = await v.generateAsync({ type: "blob" });
|
|
130
|
+
ne.saveAs(a, `books_${F().format("DD-MM-YYYY_HH-mm")}.zip`);
|
|
131
|
+
}
|
|
132
|
+
async function b() {
|
|
133
|
+
await k.minor(
|
|
134
|
+
async () => {
|
|
135
|
+
if (await r.readMenu(), r.version === Z.F_MENU_VERSION.enum.v4) {
|
|
136
|
+
const u = r.state.menu, n = F().format("DD-MM-YYYY_HH-mm"), v = [
|
|
137
|
+
`menu_${n}`,
|
|
138
|
+
`addonGroup_${n}`,
|
|
139
|
+
`itemLinkedAddon_${n}`
|
|
140
|
+
], a = await se(
|
|
141
|
+
we,
|
|
142
|
+
JSON.stringify({
|
|
143
|
+
menu: u,
|
|
144
|
+
attributeSettings: S.itemAttributeSettings.value
|
|
145
|
+
})
|
|
146
|
+
);
|
|
147
|
+
await l(a, v);
|
|
148
|
+
} else {
|
|
149
|
+
const u = ye(f.value), n = `menu_${F().format("DD-MM-YYYY_HH-mm")}`;
|
|
150
|
+
await ie(u, `${n}.xlsx`, {
|
|
151
|
+
bookType: "xlsx",
|
|
152
|
+
bookSST: !0,
|
|
153
|
+
type: "array",
|
|
154
|
+
compression: !0
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{ successMessage: "Menu exported", customId: r.state.menu._id }
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
const {
|
|
162
|
+
menuItems: T,
|
|
163
|
+
categories: D,
|
|
164
|
+
linkItemRules: I,
|
|
165
|
+
handleSubmit: N,
|
|
166
|
+
catalogManager: Y,
|
|
167
|
+
schedulerManager: B
|
|
168
|
+
} = be(!1), ee = ce(), te = g(() => ee.breakpoints.value.xs);
|
|
169
|
+
return fe().resetOnMount(), (u, n) => {
|
|
170
|
+
const v = M("fm-button");
|
|
171
|
+
return m(), y(de, {
|
|
172
|
+
heading: e(t)("menu.products.title")
|
|
173
|
+
}, {
|
|
174
|
+
default: c(() => [
|
|
175
|
+
o(Me),
|
|
176
|
+
o(ve)
|
|
177
|
+
]),
|
|
178
|
+
"append-heading": c(() => [
|
|
179
|
+
i("div", Ce, [
|
|
180
|
+
i("div", Fe, [
|
|
181
|
+
i("div", $e, [
|
|
182
|
+
i("p", Ve, q(_.value), 1)
|
|
183
|
+
])
|
|
184
|
+
]),
|
|
185
|
+
i("div", Ee, [
|
|
186
|
+
te.value ? (m(), y(L, { key: 1 }, {
|
|
187
|
+
default: c(({ trigger: a }) => [
|
|
188
|
+
o(me, null, {
|
|
189
|
+
default: c(() => [
|
|
190
|
+
o(z, {
|
|
191
|
+
label: e(t)("menu.products.actions.export"),
|
|
192
|
+
onClick: b
|
|
193
|
+
}, null, 8, ["label"]),
|
|
194
|
+
o(z, {
|
|
195
|
+
label: e(t)("menu.products.actions.import"),
|
|
196
|
+
onClick: a
|
|
197
|
+
}, null, 8, ["label", "onClick"])
|
|
198
|
+
]),
|
|
199
|
+
_: 2
|
|
200
|
+
}, 1024)
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
})) : (m(), A(P, { key: 0 }, [
|
|
204
|
+
o(ge, null, {
|
|
205
|
+
default: c(({ trigger: a }) => [
|
|
206
|
+
o(v, {
|
|
207
|
+
label: e(t)("menu.tree_editor.title"),
|
|
208
|
+
"bg-color": e(h).NeutralGray100,
|
|
209
|
+
"text-color": e(h).TypoSecondary,
|
|
210
|
+
variant: e($).Primary,
|
|
211
|
+
onClick: a
|
|
212
|
+
}, null, 8, ["label", "bg-color", "text-color", "variant", "onClick"])
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
}),
|
|
216
|
+
o(v, {
|
|
217
|
+
"bg-color": e(h).NeutralGray100,
|
|
218
|
+
"text-color": e(h).TypoSecondary,
|
|
219
|
+
variant: e($).Primary,
|
|
220
|
+
label: e(t)("menu.products.actions.export"),
|
|
221
|
+
onClick: b
|
|
222
|
+
}, null, 8, ["bg-color", "text-color", "variant", "label"]),
|
|
223
|
+
o(L, null, {
|
|
224
|
+
default: c(({ trigger: a }) => [
|
|
225
|
+
o(v, {
|
|
226
|
+
"bg-color": e(h).NeutralGray100,
|
|
227
|
+
"text-color": e(h).TypoSecondary,
|
|
228
|
+
variant: e($).Primary,
|
|
229
|
+
label: e(t)("menu.products.actions.import"),
|
|
230
|
+
onClick: a
|
|
231
|
+
}, null, 8, ["bg-color", "text-color", "variant", "label", "onClick"])
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
})
|
|
235
|
+
], 64)),
|
|
236
|
+
_.value > 0 ? (m(), A(P, { key: 2 }, [
|
|
237
|
+
x.value.create ? (m(), y(V, {
|
|
238
|
+
key: 0,
|
|
239
|
+
label: e(t)("menu.products.actions.add"),
|
|
240
|
+
"prepend-icon": "add",
|
|
241
|
+
onClick: n[0] || (n[0] = (a) => e(d).create(null))
|
|
242
|
+
}, null, 8, ["label"])) : s.value ? (m(), y(O, {
|
|
243
|
+
key: 1,
|
|
244
|
+
"categorized-items": e(Y).linkableItems.value,
|
|
245
|
+
"initial-value": e(Y).currentItems.value,
|
|
246
|
+
"show-variant": !1,
|
|
247
|
+
"menu-items": e(T),
|
|
248
|
+
categories: e(D),
|
|
249
|
+
"link-item-rules": e(I),
|
|
250
|
+
"no-scheduler": s.value,
|
|
251
|
+
onSubmit: e(N)
|
|
252
|
+
}, {
|
|
253
|
+
default: c(({ trigger: a }) => [
|
|
254
|
+
o(V, {
|
|
255
|
+
label: e(t)("menu.products.actions.link"),
|
|
256
|
+
"prepend-icon": "link",
|
|
257
|
+
onClick: a
|
|
258
|
+
}, null, 8, ["label", "onClick"])
|
|
259
|
+
]),
|
|
260
|
+
_: 1
|
|
261
|
+
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (m(), y(O, {
|
|
262
|
+
key: 2,
|
|
263
|
+
"categorized-items": e(B).linkableItems.value,
|
|
264
|
+
"initial-value": e(B).currentItems.value,
|
|
265
|
+
"show-variant": !1,
|
|
266
|
+
"menu-items": e(T),
|
|
267
|
+
categories: e(D),
|
|
268
|
+
"link-item-rules": e(I),
|
|
269
|
+
"no-scheduler": s.value,
|
|
270
|
+
onSubmit: e(N)
|
|
271
|
+
}, {
|
|
272
|
+
default: c(({ trigger: a }) => [
|
|
273
|
+
o(V, {
|
|
274
|
+
label: e(t)("menu.products.actions.apply_scheduler"),
|
|
275
|
+
onClick: a
|
|
276
|
+
}, null, 8, ["label", "onClick"])
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"]))
|
|
280
|
+
], 64)) : G("", !0)
|
|
281
|
+
])
|
|
282
|
+
])
|
|
283
|
+
]),
|
|
284
|
+
_: 1
|
|
285
|
+
}, 8, ["heading"]);
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
export {
|
|
290
|
+
Je as default
|
|
291
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as G, ref as M, computed as R, onMounted as ie, resolveComponent as $, createElementBlock as V, openBlock as y, createVNode as h, createElementVNode as f, toDisplayString as L, unref as p, Fragment as j, renderList as Q, createBlock as Y, watch as de, withCtx as E, h as T, normalizeClass as re, createCommentVNode as X, createTextVNode as me, mergeProps as $e, normalizeStyle as Ae, renderSlot as Ue, withModifiers as te, onUnmounted as Be } from "vue";
|
|
2
|
-
import { D as z } from "./dayjs.min-
|
|
2
|
+
import { D as z } from "./dayjs.min-BVOO8wJG.js";
|
|
3
3
|
import { useRouter as De } from "vue-router";
|
|
4
4
|
import { O as Oe, b as Te } from "./app-5fxKLAzS.js";
|
|
5
|
-
import { B as Ne, H as Re, G as ve, ac as Ee, a4 as be, A as q, u as _e, I as pe, J as Le } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { B as Ne, H as Re, G as ve, ac as Ee, a4 as be, A as q, u as _e, I as pe, J as Le } from "./index.vue_vue_type_script_setup_true_lang-C6IVvAua.js";
|
|
6
6
|
import { useI18n as Z, useCoreStore as ge, RestaurantSelector as ye } from "@feedmepos/mf-common";
|
|
7
7
|
import { useSnackbar as ce, useDialogChild as ze, useProxiedModel as je, useDialog as ke, FmButtonVariant as fe, components as W } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as He } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
9
|
-
import { _ as Ce } from "./app-
|
|
9
|
+
import { _ as Ce } from "./app-CA4g3v2n.js";
|
|
10
10
|
import { a as Ye, w as Je } from "./tooltip-B5BiPMx9.js";
|
|
11
11
|
import { u as we } from "./discardConfirm-BHni0LNu.js";
|
|
12
12
|
import { _ as xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -2,14 +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 A, 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 { Q as q, G as $, I as ie, D as P, J as se, H as Y, M as O, A as T, u as H, a4 as re } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as le } from "./app-CA4g3v2n.js";
|
|
6
|
+
import { Q as q, G as $, I as ie, D as P, J as se, H as Y, M as O, A as T, u as H, a4 as re } from "./index.vue_vue_type_script_setup_true_lang-C6IVvAua.js";
|
|
7
7
|
import { _ as ce } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
8
8
|
import { defineStore as ue } from "pinia";
|
|
9
|
-
import { _ as B, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as B, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-CXHHlrI0.js";
|
|
10
10
|
import { u as de } from "./discardConfirm-BHni0LNu.js";
|
|
11
11
|
import { c as pe } from "./check-C9mY6LiX.js";
|
|
12
|
-
import "./unit-
|
|
12
|
+
import "./unit-5G600HMJ.js";
|
|
13
13
|
import { c as fe } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
14
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({
|
|
15
15
|
__name: "Form",
|