@feedmepos/mf-menu 0.32.45 → 0.32.46-dev.2
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-CczmyQeJ.js → App-DnmPW7GQ.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BscsJpMV.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BN_pomak.js} +3 -3
- package/dist/{Catalog-RU_6keJm.js → Catalog-gxj-MZB8.js} +44 -44
- package/dist/{Category-7Fg2kD0h.js → Category-CqWHFR6I.js} +19 -19
- package/dist/{Category-CwEXbsDv.js → Category-JHb56PfQ.js} +24 -24
- package/dist/{CookingGuide-DFu5VStf.js → CookingGuide-DNMfIDDf.js} +105 -105
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CeNfLbfq.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BYdToHa3.js} +1 -1
- package/dist/{Group-l-YpAi6B.js → Group-DXEgfQ_e.js} +3 -3
- package/dist/{Group-C6vQeBnj.js → Group-bxjyN23A.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-1UdOBdv-.js → Group.vue_vue_type_script_setup_true_lang-DPhYCl15.js} +19 -19
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-C309DrLU.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DAsxXqGu.js} +30 -30
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C903fhuj.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BuD8TeFi.js} +2940 -2939
- package/dist/{Ingredient-CHqDo-GY.js → Ingredient-BAnjcaO0.js} +20 -20
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CXHHlrI0.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CppjxcTA.js} +2 -2
- package/dist/{LinkProductSideSheet-DY32g33Q.js → LinkProductSideSheet-CvWcioxX.js} +45 -45
- package/dist/{MenuSetting-DhbxlKuU.js → MenuSetting-DCQM7rh6.js} +47 -47
- package/dist/{PrintRoute-CToZ0ClG.js → PrintRoute-Be0WG4oQ.js} +39 -39
- package/dist/{Product-Cpg32wpg.js → Product-DfYmo4vJ.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BC2KG1q4.js → Product.vue_vue_type_script_setup_true_lang-BsRZ0VVW.js} +93 -93
- package/dist/{ProductInternalTools-wH9BN1NK.js → ProductInternalTools-D2QTAjE7.js} +66 -66
- package/dist/{Products-CpINHaH6.js → Products-BhY4Cwaz.js} +41 -41
- package/dist/{Publish-CJS_836k.js → Publish-BfEtLeeh.js} +29 -29
- package/dist/{Recipe-Cz7hivmM.js → Recipe-ssNUNy2j.js} +24 -24
- package/dist/RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DHnuxBck.js +144 -0
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CRLzqgQe.js → RuleView.vue_vue_type_script_setup_true_lang-CkpwtUSB.js} +176 -176
- package/dist/{Scheduler-QuWCnEJw.js → Scheduler-CAUHWrZs.js} +11 -11
- package/dist/{ServingSequence-CqK5Sjmq.js → ServingSequence-D12rqxa8.js} +44 -44
- package/dist/{Setting-C3tKUfsm.js → Setting-pJ06C7wS.js} +17 -17
- package/dist/{Subcategory-DCtTOPUj.js → Subcategory-Dfd-qx6m.js} +54 -54
- package/dist/{Takeaway-Fi8SAH2t.js → Takeaway-Bnat0taD.js} +13 -13
- package/dist/{Takeaway-BnB1OFnK.js → Takeaway-Cv-kA3M_.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cbz7Qt_g.js → Takeaway.vue_vue_type_script_setup_true_lang-9aZi7wvY.js} +33 -33
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CPM_muXB.js → Thumbnail.vue_vue_type_script_setup_true_lang-C3Sk0LVd.js} +27 -27
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-BpL8UrFY.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-5RV7_0Wc.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DtkzQeq4.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BBXAoJje.js} +5 -5
- package/dist/{TranslationViewChip.vue_vue_type_script_setup_true_lang-CHT7Xozn.js → TranslationViewChip.vue_vue_type_script_setup_true_lang-CIGgeuKb.js} +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D9EEpjV6.js +5767 -0
- package/dist/{Unit-5yE2-y9D.js → Unit-DeegDDRz.js} +8 -8
- package/dist/{Variant-C7lIdRID.js → Variant-D8WwGu3E.js} +14 -14
- package/dist/{_id_-08ykp97a.js → _id_-BfOGbmqs.js} +28 -28
- package/dist/app-BmAr9vNI.js +2283 -0
- package/dist/{app-DPovSnb_.js → app-DhZxk0zL.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/index.d.ts +1 -1
- package/dist/apps/mf-menu/src/api/menu.d.ts +14 -5
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-WT6deoPw.js → linked-status-CxpcEFX9.js} +5 -5
- package/dist/assets/{menu-export-DxtFXMED.js → menu-export-C09ZbTRq.js} +2 -2
- package/dist/assets/{override-menu-BJGRdWWE.js → override-menu-0rFjySh6.js} +5 -5
- package/dist/assets/{validate-menu-B_tmkHe7.js → validate-menu-cO19zy8y.js} +2 -2
- package/dist/{catalog-D7Jjqj3-.js → catalog-tNpB0Dhn.js} +1 -1
- package/dist/{catalogSetting-Bg_zMUrV.js → catalogSetting-BRnA4v49.js} +1 -1
- package/dist/{currency-DDxFMjAI.js → currency-CyKauaRc.js} +1 -1
- package/dist/dayjs.min-ipgoM27T.js +7 -0
- package/dist/{index-BlLRjkMF.js → index-BGm2uHNk.js} +31 -31
- package/dist/{index-Cq2MVpMv.js → index-CXquA22H.js} +30 -30
- package/dist/{index.vue_vue_type_script_setup_true_lang-C6IVvAua.js → index.vue_vue_type_script_setup_true_lang-D6HyeIid.js} +6918 -6861
- package/dist/{item-Bq6SCc7D.js → item-Cik-YX-L.js} +16 -16
- package/dist/{jszip.min-1MrCGuHF.js → jszip.min-D22BefT1.js} +388 -387
- package/dist/{menu-CKA9uouu.js → menu-ag-37Ofg.js} +1 -1
- package/dist/{menuV2-DBkrmeha.js → menuV2-DZDWxmas.js} +172 -172
- package/dist/{priceTier-Cxr9IcVP.js → priceTier-BmDl3J-3.js} +1 -1
- package/dist/{rules-DFWR7a3m.js → rules-pJdF9REd.js} +12 -12
- package/dist/{scheduler-HKff8Ty2.js → scheduler-DRHXK6kX.js} +29 -29
- package/dist/{toExcel-DopYrxBW.js → toExcel-5kDfvPVG.js} +2 -2
- package/dist/{unit-5G600HMJ.js → unit-CIlgFZ50.js} +35 -35
- package/package.json +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoIgiwHh.js +0 -6130
- package/dist/app-CA4g3v2n.js +0 -363
- package/dist/dayjs.min-BVOO8wJG.js +0 -6
- package/dist/index-CG7GFWlC.js +0 -246
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { ref as F, computed as h, defineComponent as j, resolveComponent as N, createBlock as I, openBlock as m, withCtx as T, createElementVNode as g, createVNode as d, unref as o, createElementBlock as w, Fragment as pe, renderList as ke, createCommentVNode as M, normalizeClass as ve, toDisplayString as
|
|
2
|
-
import { u as Fe,
|
|
1
|
+
import { ref as F, computed as h, defineComponent as j, resolveComponent as N, createBlock as I, openBlock as m, withCtx as T, createElementVNode as g, createVNode as d, unref as o, createElementBlock as w, Fragment as pe, renderList as ke, createCommentVNode as M, normalizeClass as ve, toDisplayString as B, withModifiers as fe, mergeModels as Xe, useModel as et, renderSlot as _e, watch as de, createTextVNode as tt, watchEffect as lt, nextTick as Ae, resolveDynamicComponent as at, onMounted as ot, h as O, isRef as je, normalizeStyle as gt } from "vue";
|
|
2
|
+
import { u as Fe, Q as Ce, z as me, G as Re, H as ge, T as bt, ac as _t, ad as yt, ae as Pe, af as ht, P as xt, a2 as be, ag as Ee } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
|
|
3
3
|
import { useI18n as Ie, useCoreStore as ze, useCustomAttributes as Ct } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as Se } from "./menu-
|
|
5
|
-
import { L as Ge } from "./LinkProductSideSheet-
|
|
6
|
-
import {
|
|
7
|
-
import { _ as Me, a as qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as Ue, u as
|
|
9
|
-
import { f as
|
|
10
|
-
import { u as rt, C as
|
|
11
|
-
import { b as We, H as
|
|
12
|
-
import { useBreakpoints as nt, components as te, useDialog as
|
|
13
|
-
import { F as
|
|
14
|
-
import { _ as De,
|
|
4
|
+
import { u as Se } from "./menu-ag-37Ofg.js";
|
|
5
|
+
import { L as Ge } from "./LinkProductSideSheet-CvWcioxX.js";
|
|
6
|
+
import { _ as Le } from "./RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DHnuxBck.js";
|
|
7
|
+
import { _ as Me, a as qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-BYdToHa3.js";
|
|
8
|
+
import { _ as Ue, u as wt } from "./Thumbnail.vue_vue_type_script_setup_true_lang-C3Sk0LVd.js";
|
|
9
|
+
import { f as kt, o as St, a as Vt, m as Ft } from "./menuV2-DZDWxmas.js";
|
|
10
|
+
import { u as rt, C as It } from "./item-Cik-YX-L.js";
|
|
11
|
+
import { b as We, H as $t } from "./app-5fxKLAzS.js";
|
|
12
|
+
import { useBreakpoints as nt, components as te, useDialog as Tt, FmButtonColorThemeVariant as W, FmButtonVariant as ee } from "@feedmepos/ui-library";
|
|
13
|
+
import { F as Pt } from "./index-CisutoS9.js";
|
|
14
|
+
import { _ as De, d as At, e as Rt } from "./app-BmAr9vNI.js";
|
|
15
15
|
import { _ as we } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
16
|
-
import { _ as Mt } from "./index-
|
|
17
|
-
import { r as Ut, _ as zt } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { _ as He } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-
|
|
16
|
+
import { _ as Mt } from "./index-BGm2uHNk.js";
|
|
17
|
+
import { r as Ut, _ as zt } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BuD8TeFi.js";
|
|
18
|
+
import { _ as He } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-CIGgeuKb.js";
|
|
19
19
|
import { c as Dt } from "./check-C9mY6LiX.js";
|
|
20
|
-
import { f as Ot } from "./currency-
|
|
20
|
+
import { f as Ot } from "./currency-CyKauaRc.js";
|
|
21
21
|
import { w as Nt } from "./tooltip-B5BiPMx9.js";
|
|
22
|
-
function
|
|
22
|
+
function Kt(C, e, i = C) {
|
|
23
23
|
const n = F(!0), t = h(() => {
|
|
24
24
|
if (!n.value && !e.value)
|
|
25
25
|
return !0;
|
|
@@ -45,7 +45,7 @@ function Bt(C, e, i = C) {
|
|
|
45
45
|
e.value === void 0 && n.value ? s = [f] : e.value === void 0 && !n.value ? s = (b = C.value.map((z) => z.value)) == null ? void 0 : b.filter((z) => z !== f) : (y = e.value) != null && y.includes(f) ? s = (k = e.value) == null ? void 0 : k.filter((z) => z !== f) : s = [...e.value || [], f], s.length === 0 ? (e.value = void 0, n.value = !0) : s.length === C.value.length ? (e.value = void 0, n.value = !1) : e.value = s;
|
|
46
46
|
} };
|
|
47
47
|
}
|
|
48
|
-
const
|
|
48
|
+
const Bt = { class: "inline-flex items-center" }, jt = {
|
|
49
49
|
key: 0,
|
|
50
50
|
class: /* @__PURE__ */ ve([
|
|
51
51
|
"fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap",
|
|
@@ -56,36 +56,36 @@ const Kt = { class: "inline-flex items-center" }, jt = {
|
|
|
56
56
|
emits: ["toggleAttributeFilter"],
|
|
57
57
|
setup(C, { emit: e }) {
|
|
58
58
|
const i = e, n = Fe(), { categories: t, selectedCategories: u } = Se(), l = h(() => n.state.currentCategoryIds), v = h(
|
|
59
|
-
() => t.value.map((
|
|
59
|
+
() => t.value.map((K) => ({ label: K.name, value: K.id }))
|
|
60
60
|
), f = h(() => v.value.filter(
|
|
61
|
-
(
|
|
61
|
+
(K) => K.label.toLowerCase().includes(y.value.toLowerCase())
|
|
62
62
|
)), { t: s } = Ie(), b = h(() => {
|
|
63
|
-
var
|
|
64
|
-
return t.value.length === ((
|
|
63
|
+
var K, D, H;
|
|
64
|
+
return t.value.length === ((K = u.value) == null ? void 0 : K.length) ? s("menu.category.selector.all") : ((D = u.value) == null ? void 0 : D.length) === 1 ? u.value[0].name : `${(H = u.value) == null ? void 0 : H.length}`;
|
|
65
65
|
}), y = F(""), k = h({
|
|
66
66
|
get: () => l.value,
|
|
67
|
-
set: (
|
|
68
|
-
n.selectCategory(
|
|
67
|
+
set: (K) => {
|
|
68
|
+
n.selectCategory(K);
|
|
69
69
|
}
|
|
70
|
-
}), { allSelected: z, toggleAll: Y, toggleOption: S, indeterminate: oe } =
|
|
70
|
+
}), { allSelected: z, toggleAll: Y, toggleOption: S, indeterminate: oe } = Kt(
|
|
71
71
|
v,
|
|
72
72
|
k,
|
|
73
73
|
f
|
|
74
|
-
),
|
|
74
|
+
), Z = ze(), re = h(() => Z.itemAttributeSettings.value.length > 0);
|
|
75
75
|
function L() {
|
|
76
76
|
i("toggleAttributeFilter");
|
|
77
77
|
}
|
|
78
|
-
return (
|
|
79
|
-
const H = N("FmIcon"),
|
|
78
|
+
return (K, D) => {
|
|
79
|
+
const H = N("FmIcon"), J = N("FmChip"), ne = N("FmSearch"), Q = N("FmMenuItem"), se = N("FmMenu");
|
|
80
80
|
return m(), I(se, {
|
|
81
81
|
"close-on-click": !1,
|
|
82
82
|
width: 220
|
|
83
83
|
}, {
|
|
84
84
|
"menu-button": T(() => [
|
|
85
|
-
g("div",
|
|
86
|
-
d(
|
|
85
|
+
g("div", Bt, [
|
|
86
|
+
d(J, null, {
|
|
87
87
|
default: T(() => [
|
|
88
|
-
b.value ? (m(), w("div", jt,
|
|
88
|
+
b.value ? (m(), w("div", jt, B(o(s)("menu.category.selector.title", { label: b.value })), 1)) : M("", !0),
|
|
89
89
|
d(H, {
|
|
90
90
|
color: "neutral-gray-400",
|
|
91
91
|
name: "expand_more",
|
|
@@ -146,10 +146,10 @@ const Kt = { class: "inline-flex items-center" }, jt = {
|
|
|
146
146
|
}), Lt = { class: "flex flex-wrap gap-8" }, qt = { class: "py-12 px-16 space-y-12" }, Wt = { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600" }, Ht = { class: "flex flex-wrap gap-8" }, Qt = {
|
|
147
147
|
key: 0,
|
|
148
148
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
149
|
-
}, Yt = { key: 0 },
|
|
149
|
+
}, Yt = { key: 0 }, Zt = {
|
|
150
150
|
key: 1,
|
|
151
151
|
class: "inline-block w-8"
|
|
152
|
-
},
|
|
152
|
+
}, Jt = { key: 0 }, Xt = { key: 1 }, Ye = /* @__PURE__ */ j({
|
|
153
153
|
__name: "CategoriesChip",
|
|
154
154
|
props: {
|
|
155
155
|
categories: { default: () => [] },
|
|
@@ -167,15 +167,15 @@ const Kt = { class: "inline-flex items-center" }, jt = {
|
|
|
167
167
|
const y = N("FmTooltip");
|
|
168
168
|
return t.value ? (m(), w(pe, { key: 1 }, [
|
|
169
169
|
s.categories.length > 0 ? (m(), w("p", Qt, [
|
|
170
|
-
g("span", null,
|
|
171
|
-
g("span", null,
|
|
172
|
-
v.value ? (m(), w("span",
|
|
170
|
+
g("span", null, B(o(i)("menu.product.table.columns.category")) + ": ", 1),
|
|
171
|
+
g("span", null, B(f.value), 1),
|
|
172
|
+
v.value ? (m(), w("span", Zt)) : (m(), w("br", Yt)),
|
|
173
173
|
s.categories.length > u.value ? (m(), w("span", {
|
|
174
174
|
key: 2,
|
|
175
175
|
class: "fm-typo-en-body-md-400 text-fm-color-primary cursor-pointer",
|
|
176
176
|
onClick: b[0] || (b[0] = fe((k) => v.value = !v.value, ["stop", "prevent"]))
|
|
177
177
|
}, [
|
|
178
|
-
v.value ? (m(), w("span",
|
|
178
|
+
v.value ? (m(), w("span", Jt, B(o(i)("menu.product.table.category.expand", { count: s.categories.length - u.value })), 1)) : (m(), w("span", Xt, B(o(i)("menu.product.table.category.collapse")), 1))
|
|
179
179
|
])) : M("", !0)
|
|
180
180
|
])) : M("", !0)
|
|
181
181
|
], 64)) : (m(), I(y, {
|
|
@@ -187,7 +187,7 @@ const Kt = { class: "inline-flex items-center" }, jt = {
|
|
|
187
187
|
}, {
|
|
188
188
|
content: T(() => [
|
|
189
189
|
g("div", qt, [
|
|
190
|
-
g("p", Wt,
|
|
190
|
+
g("p", Wt, B(o(i)("menu.product.table.category.all")), 1),
|
|
191
191
|
g("div", Ht, [
|
|
192
192
|
(m(!0), w(pe, null, ke(e.categories, (k) => (m(), I(we, {
|
|
193
193
|
key: k,
|
|
@@ -266,9 +266,9 @@ const Kt = { class: "inline-flex items-center" }, jt = {
|
|
|
266
266
|
return m(), w("div", tl, [
|
|
267
267
|
g("div", ll, [
|
|
268
268
|
g("div", al, [
|
|
269
|
-
g("p", ol,
|
|
269
|
+
g("p", ol, B(i.title), 1),
|
|
270
270
|
i.titleBadge !== void 0 ? (m(), w("div", rl, [
|
|
271
|
-
g("p", nl,
|
|
271
|
+
g("p", nl, B(i.titleBadge), 1)
|
|
272
272
|
])) : M("", !0)
|
|
273
273
|
]),
|
|
274
274
|
d(De, null, {
|
|
@@ -434,7 +434,7 @@ const Kt = { class: "inline-flex items-center" }, jt = {
|
|
|
434
434
|
b.badge = () => d(te.FmCircularProgress, {
|
|
435
435
|
size: "md"
|
|
436
436
|
}, null);
|
|
437
|
-
const y = await
|
|
437
|
+
const y = await kt(Re(e.menu), s, e.itemId);
|
|
438
438
|
b.badge = y.length, b.disabled = y.length <= 0, b.itemInGroup = y;
|
|
439
439
|
}
|
|
440
440
|
}
|
|
@@ -522,7 +522,7 @@ const Kt = { class: "inline-flex items-center" }, jt = {
|
|
|
522
522
|
var l;
|
|
523
523
|
return t(u, ((l = e.menu.modules.scheduler.find((v) => v._id === u)) == null ? void 0 : l.name) || "Unknown");
|
|
524
524
|
})], n.value.forEach(async (u) => {
|
|
525
|
-
const v = (await
|
|
525
|
+
const v = (await St(Re(e.menu), e.catalogId, u.schedulerId)).modules.item.find((s) => s._id === e.itemId), f = n.value.findIndex((s) => s.schedulerId === u.schedulerId);
|
|
526
526
|
if (v) {
|
|
527
527
|
const s = Re(n.value);
|
|
528
528
|
s[f].loading = !1, s[f].code = v.code || "--", s[f].productName = v.name || "--", s[f].price = me.Dinero.fromFdoDinero(v.price).toFormat(), s[f].orderFrom = v.orderFrom || "--", n.value = s;
|
|
@@ -552,7 +552,7 @@ const Kt = { class: "inline-flex items-center" }, jt = {
|
|
|
552
552
|
setup(C) {
|
|
553
553
|
const e = C, i = F(null);
|
|
554
554
|
lt(async () => {
|
|
555
|
-
i.value = await
|
|
555
|
+
i.value = await Vt(e.menu, e.itemId), await Ae(), n.value = t.value[0].value;
|
|
556
556
|
});
|
|
557
557
|
const n = F(""), t = h(() => {
|
|
558
558
|
var f, s;
|
|
@@ -624,10 +624,10 @@ const Kt = { class: "inline-flex items-center" }, jt = {
|
|
|
624
624
|
}, null, 8, ["alt", "src"]),
|
|
625
625
|
g("div", vl, [
|
|
626
626
|
g("p", fl, [
|
|
627
|
-
(f = i.value) != null && f.code ? (m(), w("span", gl,
|
|
628
|
-
g("span", null,
|
|
627
|
+
(f = i.value) != null && f.code ? (m(), w("span", gl, B((s = i.value) == null ? void 0 : s.code) + ", ", 1)) : M("", !0),
|
|
628
|
+
g("span", null, B((b = i.value) == null ? void 0 : b.name), 1)
|
|
629
629
|
]),
|
|
630
|
-
g("p", bl, "Base price: " +
|
|
630
|
+
g("p", bl, "Base price: " + B(n.value), 1),
|
|
631
631
|
(y = i.value) != null && y.customAttributes ? (m(), w("div", _l, [
|
|
632
632
|
g("div", yl, [
|
|
633
633
|
u[0] || (u[0] = g("span", null, "Tagging:", -1)),
|
|
@@ -750,7 +750,7 @@ const Kt = { class: "inline-flex items-center" }, jt = {
|
|
|
750
750
|
}
|
|
751
751
|
});
|
|
752
752
|
var Fl = Ut();
|
|
753
|
-
const
|
|
753
|
+
const Ze = /* @__PURE__ */ j({
|
|
754
754
|
__name: "ImportButton",
|
|
755
755
|
setup(C) {
|
|
756
756
|
const e = F(!1);
|
|
@@ -774,7 +774,7 @@ const Je = /* @__PURE__ */ j({
|
|
|
774
774
|
_e(t.$slots, "default", { trigger: i })
|
|
775
775
|
], 64));
|
|
776
776
|
}
|
|
777
|
-
}),
|
|
777
|
+
}), Je = (C) => d("div", {
|
|
778
778
|
class: "flex flex-1 justify-end"
|
|
779
779
|
}, [d("span", null, [C, tt(" ")])]), Il = {
|
|
780
780
|
class: "flex justify-between items-center space-x-8"
|
|
@@ -804,9 +804,9 @@ const Je = /* @__PURE__ */ j({
|
|
|
804
804
|
class: "pt-8 flex flex-col flex-1 overflow-hidden"
|
|
805
805
|
}, Nl = {
|
|
806
806
|
class: "space-y-8 pb-8"
|
|
807
|
-
}, Bl = {
|
|
808
|
-
class: "w-full px-8"
|
|
809
807
|
}, Kl = {
|
|
808
|
+
class: "w-full px-8"
|
|
809
|
+
}, Bl = {
|
|
810
810
|
class: "flex space-x-8 px-8"
|
|
811
811
|
}, jl = {
|
|
812
812
|
key: 0,
|
|
@@ -826,9 +826,9 @@ const Je = /* @__PURE__ */ j({
|
|
|
826
826
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
827
827
|
}, Yl = {
|
|
828
828
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
829
|
-
}, Jl = {
|
|
830
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
831
829
|
}, Zl = {
|
|
830
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
831
|
+
}, Jl = {
|
|
832
832
|
key: 1
|
|
833
833
|
}, Xl = {
|
|
834
834
|
class: "flex space-x-8"
|
|
@@ -848,7 +848,7 @@ const Je = /* @__PURE__ */ j({
|
|
|
848
848
|
}) {
|
|
849
849
|
const n = C, {
|
|
850
850
|
t
|
|
851
|
-
} = Ie(), u = ze(), l = Fe(), v =
|
|
851
|
+
} = Ie(), u = ze(), l = Fe(), v = Tt(), f = rt(), s = u.currentCountry, b = h(() => s.value ? me.Country.getCountry(s.value) : null), y = h(() => l.rules.item), {
|
|
852
852
|
selectedCategories: k
|
|
853
853
|
} = Se(), z = h(() => {
|
|
854
854
|
const r = ge.flatten(k.value.map((a) => a.items));
|
|
@@ -859,25 +859,25 @@ const Je = /* @__PURE__ */ j({
|
|
|
859
859
|
});
|
|
860
860
|
const oe = (r) => {
|
|
861
861
|
Dt.isBoolean(r) ? S.value = r : S.value = !S.value;
|
|
862
|
-
},
|
|
862
|
+
}, Z = F(!1), re = F(null);
|
|
863
863
|
async function L() {
|
|
864
|
-
|
|
864
|
+
Z.value = !Z.value, Z.value && (await Ae(), re.value && re.value.toggleProperty(!0));
|
|
865
865
|
}
|
|
866
866
|
e({
|
|
867
867
|
toggleAttributeFilter: L
|
|
868
868
|
});
|
|
869
869
|
const {
|
|
870
|
-
attributes:
|
|
870
|
+
attributes: K,
|
|
871
871
|
filterRule: D,
|
|
872
872
|
mongoQuery: H
|
|
873
873
|
} = Ct({
|
|
874
874
|
valueSource: z,
|
|
875
875
|
entity: "item"
|
|
876
|
-
}),
|
|
876
|
+
}), J = F(""), ne = At(J, 300), Q = h(() => {
|
|
877
877
|
const r = (c) => {
|
|
878
878
|
var x;
|
|
879
879
|
return !ne.value || !ne.value.trim() ? !0 : [c.code, c.name, Ne(c), ...Pe(se.value, c), (x = Ce()[c.orderFrom]) == null ? void 0 : x.label, Object.values(c.customAttributes ?? {}).join(" ")].join(" ").toLowerCase().includes(ne.value.toLowerCase());
|
|
880
|
-
}, a = (c) => H.value ?
|
|
880
|
+
}, a = (c) => H.value ? $t(c.customAttributes, H.value) : !0;
|
|
881
881
|
return z.value.filter((c) => r(c) && a(c));
|
|
882
882
|
}), {
|
|
883
883
|
categories: se
|
|
@@ -971,7 +971,7 @@ const Je = /* @__PURE__ */ j({
|
|
|
971
971
|
accessorKey: "price",
|
|
972
972
|
header: () => {
|
|
973
973
|
var r;
|
|
974
|
-
return
|
|
974
|
+
return Je(t("menu.product.table.columns.price", {
|
|
975
975
|
currency: (r = b.value) == null ? void 0 : r.currency.symbol
|
|
976
976
|
}));
|
|
977
977
|
},
|
|
@@ -1000,7 +1000,7 @@ const Je = /* @__PURE__ */ j({
|
|
|
1000
1000
|
}
|
|
1001
1001
|
}, {
|
|
1002
1002
|
accessorKey: "taxes",
|
|
1003
|
-
header: () =>
|
|
1003
|
+
header: () => Je(G.value.systemCode),
|
|
1004
1004
|
size: S.value ? 120 : 80,
|
|
1005
1005
|
enableSorting: !1,
|
|
1006
1006
|
meta: {
|
|
@@ -1033,7 +1033,7 @@ const Je = /* @__PURE__ */ j({
|
|
|
1033
1033
|
categories: Pe(se.value, a)
|
|
1034
1034
|
});
|
|
1035
1035
|
const c = ht(n.originalValue, n.modelValue, a._id) ?? xt(a), p = (c == null ? void 0 : c.map((V) => V._id)) ?? [], x = c == null ? void 0 : c.reduce((V, _) => (V[_._id] = _, V), {});
|
|
1036
|
-
return O(
|
|
1036
|
+
return O(It, {
|
|
1037
1037
|
shouldShowChips: !1,
|
|
1038
1038
|
shouldShowSelectedItemsWithinPlaceholder: !0,
|
|
1039
1039
|
modelValue: p.length > 0 ? p : [null],
|
|
@@ -1044,8 +1044,8 @@ const Je = /* @__PURE__ */ j({
|
|
|
1044
1044
|
A(a._id, {
|
|
1045
1045
|
category: _,
|
|
1046
1046
|
additionalCategories: ae.map((xe) => {
|
|
1047
|
-
const
|
|
1048
|
-
return
|
|
1047
|
+
const Be = x == null ? void 0 : x[xe];
|
|
1048
|
+
return Be || {
|
|
1049
1049
|
_id: xe,
|
|
1050
1050
|
position: null
|
|
1051
1051
|
};
|
|
@@ -1228,7 +1228,7 @@ const Je = /* @__PURE__ */ j({
|
|
|
1228
1228
|
return V == null ? void 0 : V[0];
|
|
1229
1229
|
} else return a ? a.override.items[r][0] : c ? l.schedulers.find((_) => _._id === c).items.filter((_) => _._id === r)[0] : z.value.find((x) => x._id === r);
|
|
1230
1230
|
}
|
|
1231
|
-
const mt = nt(), pt = h(() => mt.breakpoints.value.xs),
|
|
1231
|
+
const mt = nt(), pt = h(() => mt.breakpoints.value.xs), Ke = F(null), vt = Rt(Ke, Z), ft = h(() => {
|
|
1232
1232
|
var a;
|
|
1233
1233
|
return {
|
|
1234
1234
|
height: `calc(100vh - ${((a = vt.value) == null ? void 0 : a.top) + 24}px)`
|
|
@@ -1236,17 +1236,17 @@ const Je = /* @__PURE__ */ j({
|
|
|
1236
1236
|
});
|
|
1237
1237
|
return (r, a) => {
|
|
1238
1238
|
const c = N("fm-search"), p = N("fm-button"), x = N("fm-table"), V = N("fm-form");
|
|
1239
|
-
return pt.value ? (m(), w("div", Ol, [g("div", Nl, [g("div",
|
|
1240
|
-
"model-value":
|
|
1241
|
-
"onUpdate:modelValue": a[5] || (a[5] = (_) =>
|
|
1239
|
+
return pt.value ? (m(), w("div", Ol, [g("div", Nl, [g("div", Kl, [d(c, {
|
|
1240
|
+
"model-value": J.value,
|
|
1241
|
+
"onUpdate:modelValue": a[5] || (a[5] = (_) => J.value = _),
|
|
1242
1242
|
autofocus: "",
|
|
1243
1243
|
placeholder: o(t)("menu.product.table.search.placeholder")
|
|
1244
1244
|
}, null, 8, ["model-value", "placeholder"])]), a[8] || (a[8] = g("div", {
|
|
1245
1245
|
class: "w-full h-[1px] bg-fm-color-neutral-gray-100"
|
|
1246
|
-
}, null, -1)), g("div",
|
|
1246
|
+
}, null, -1)), g("div", Bl, [_e(r.$slots, "filter")]), Z.value ? (m(), w("div", jl, [d(o(We), {
|
|
1247
1247
|
ref_key: "attributeFilterRef",
|
|
1248
1248
|
ref: re,
|
|
1249
|
-
attributes: o(
|
|
1249
|
+
attributes: o(K),
|
|
1250
1250
|
modelValue: o(D),
|
|
1251
1251
|
"onUpdate:modelValue": a[6] || (a[6] = (_) => je(D) ? D.value = _ : null)
|
|
1252
1252
|
}, null, 8, ["attributes", "modelValue"])])) : M("", !0)]), z.value.length ? (m(), w("div", El, [(m(!0), w(pe, null, ke(Q.value, (_) => {
|
|
@@ -1259,9 +1259,9 @@ const Je = /* @__PURE__ */ j({
|
|
|
1259
1259
|
alt: _.name,
|
|
1260
1260
|
size: 72,
|
|
1261
1261
|
src: _.thumbnail
|
|
1262
|
-
}, null, 8, ["alt", "src"]), g("div", ql, [g("div", Wl, [g("p", Hl,
|
|
1262
|
+
}, null, 8, ["alt", "src"]), g("div", ql, [g("div", Wl, [g("p", Hl, B(_.name), 1), d(Ve, {
|
|
1263
1263
|
"order-from": _.orderFrom
|
|
1264
|
-
}, null, 8, ["order-from"])]), g("p", Ql,
|
|
1264
|
+
}, null, 8, ["order-from"])]), g("p", Ql, B(Ne(_)), 1), g("p", Yl, B(o(t)("menu.product.table.columns.code")) + ": " + B(((ae = Te(_._id)) == null ? void 0 : ae.code) || "--"), 1), g("p", Zl, [d(Ye, {
|
|
1265
1265
|
categories: o(Pe)(o(se), _)
|
|
1266
1266
|
}, null, 8, ["categories"])]), d(Me, {
|
|
1267
1267
|
"custom-attributes": _.customAttributes
|
|
@@ -1275,7 +1275,7 @@ const Je = /* @__PURE__ */ j({
|
|
|
1275
1275
|
thumbnail: _.thumbnail
|
|
1276
1276
|
}]), ["stop"])
|
|
1277
1277
|
}, null, 8, ["text-color", "variant", "onClick"])], 8, Gl);
|
|
1278
|
-
}), 128))])) : (m(), w("div",
|
|
1278
|
+
}), 128))])) : (m(), w("div", Jl, [d(be, {
|
|
1279
1279
|
subtitle: o(t)("menu.product.table.empty.subtitle"),
|
|
1280
1280
|
title: o(t)("menu.product.table.empty.title")
|
|
1281
1281
|
}, {
|
|
@@ -1284,7 +1284,7 @@ const Je = /* @__PURE__ */ j({
|
|
|
1284
1284
|
label: o(t)("menu.product.table.empty.actions.add"),
|
|
1285
1285
|
"prepend-icon": "add",
|
|
1286
1286
|
onClick: a[7] || (a[7] = (_) => o(f).create(null))
|
|
1287
|
-
}, null, 8, ["variant", "label"]), d(
|
|
1287
|
+
}, null, 8, ["variant", "label"]), d(Ze, null, {
|
|
1288
1288
|
default: T(({
|
|
1289
1289
|
trigger: _
|
|
1290
1290
|
}) => [d(p, {
|
|
@@ -1305,17 +1305,17 @@ const Je = /* @__PURE__ */ j({
|
|
|
1305
1305
|
onValidationSuccess: Oe
|
|
1306
1306
|
}, {
|
|
1307
1307
|
default: T(() => [g("div", Il, [g("div", $l, [_e(r.$slots, "filter")]), g("div", Tl, [d(c, {
|
|
1308
|
-
"model-value":
|
|
1309
|
-
"onUpdate:modelValue": a[0] || (a[0] = (_) =>
|
|
1308
|
+
"model-value": J.value,
|
|
1309
|
+
"onUpdate:modelValue": a[0] || (a[0] = (_) => J.value = _),
|
|
1310
1310
|
autofocus: "",
|
|
1311
1311
|
placeholder: o(t)("menu.product.table.search.placeholder")
|
|
1312
|
-
}, null, 8, ["model-value", "placeholder"])])]),
|
|
1312
|
+
}, null, 8, ["model-value", "placeholder"])])]), Z.value ? (m(), w("div", Pl, [d(o(We), {
|
|
1313
1313
|
ref_key: "attributeFilterRef",
|
|
1314
1314
|
ref: re,
|
|
1315
|
-
attributes: o(
|
|
1315
|
+
attributes: o(K),
|
|
1316
1316
|
modelValue: o(D),
|
|
1317
1317
|
"onUpdate:modelValue": a[1] || (a[1] = (_) => je(D) ? D.value = _ : null)
|
|
1318
|
-
}, null, 8, ["attributes", "modelValue"])])) : M("", !0), z.value.length ? (m(), w("div", Al, [X.value.length && !S.value ? (m(), w("div", Rl, [g("p", Ml,
|
|
1318
|
+
}, null, 8, ["attributes", "modelValue"])])) : M("", !0), z.value.length ? (m(), w("div", Al, [X.value.length && !S.value ? (m(), w("div", Rl, [g("p", Ml, B(o(t)("menu.product.table.selection.count", {
|
|
1319
1319
|
count: X.value.length
|
|
1320
1320
|
})), 1), d(p, {
|
|
1321
1321
|
label: o(t)("menu.product.table.selection.actions.deselect_all"),
|
|
@@ -1346,8 +1346,8 @@ const Je = /* @__PURE__ */ j({
|
|
|
1346
1346
|
type: "submit"
|
|
1347
1347
|
}, null, 8, ["borderColor", "textColor", "variant", "label"])])) : M("", !0), g("div", {
|
|
1348
1348
|
ref_key: "tableWrapper",
|
|
1349
|
-
ref:
|
|
1350
|
-
}, [(m(), I(at(S.value ?
|
|
1349
|
+
ref: Ke
|
|
1350
|
+
}, [(m(), I(at(S.value ? Pt : "div"), {
|
|
1351
1351
|
ref: "fullWrapper",
|
|
1352
1352
|
title: S.value ? o(t)("menu.product.table.bulk_edit.title") : "",
|
|
1353
1353
|
show: S.value,
|
|
@@ -1396,7 +1396,7 @@ const Je = /* @__PURE__ */ j({
|
|
|
1396
1396
|
label: o(t)("menu.product.table.empty.actions.add"),
|
|
1397
1397
|
"prepend-icon": "add",
|
|
1398
1398
|
onClick: a[4] || (a[4] = (_) => o(f).create(null))
|
|
1399
|
-
}, null, 8, ["variant", "label"]), d(
|
|
1399
|
+
}, null, 8, ["variant", "label"]), d(Ze, null, {
|
|
1400
1400
|
default: T(({
|
|
1401
1401
|
trigger: _
|
|
1402
1402
|
}) => [d(p, {
|
|
@@ -1440,7 +1440,7 @@ const Je = /* @__PURE__ */ j({
|
|
|
1440
1440
|
}), b = F({}), y = F({}), k = async () => {
|
|
1441
1441
|
var ue, q;
|
|
1442
1442
|
f.value = !0;
|
|
1443
|
-
const R = !!s.value, $ = ge.flatten(Y.value.map((E) => E.items)), P = R && v.value ? await
|
|
1443
|
+
const R = !!s.value, $ = ge.flatten(Y.value.map((E) => E.items)), P = R && v.value ? await Ft(
|
|
1444
1444
|
e.mergedMenu,
|
|
1445
1445
|
$,
|
|
1446
1446
|
e.state.menu,
|
|
@@ -1475,22 +1475,22 @@ const Je = /* @__PURE__ */ j({
|
|
|
1475
1475
|
lt(async () => {
|
|
1476
1476
|
Y.value && await k();
|
|
1477
1477
|
});
|
|
1478
|
-
function
|
|
1478
|
+
function Z() {
|
|
1479
1479
|
n.create(null);
|
|
1480
1480
|
}
|
|
1481
1481
|
const re = () => {
|
|
1482
1482
|
Y.value && k();
|
|
1483
|
-
}, { t: L } = Ie(),
|
|
1483
|
+
}, { t: L } = Ie(), K = h(() => {
|
|
1484
1484
|
var R, $;
|
|
1485
1485
|
return ($ = (R = e.currentCatalog) == null ? void 0 : R.linkItemRules) == null ? void 0 : $.length;
|
|
1486
1486
|
}), {
|
|
1487
1487
|
menuItems: D,
|
|
1488
1488
|
categories: H,
|
|
1489
|
-
linkItemRules:
|
|
1489
|
+
linkItemRules: J,
|
|
1490
1490
|
handleSubmit: ne,
|
|
1491
1491
|
catalogManager: Q,
|
|
1492
1492
|
schedulerManager: se
|
|
1493
|
-
} =
|
|
1493
|
+
} = wt(!1);
|
|
1494
1494
|
return (R, $) => {
|
|
1495
1495
|
const P = N("fm-button");
|
|
1496
1496
|
return o(z).length ? (m(), w("div", ta, [
|
|
@@ -1510,7 +1510,7 @@ const Je = /* @__PURE__ */ j({
|
|
|
1510
1510
|
filter: T(() => [
|
|
1511
1511
|
d(Qe, { onToggleAttributeFilter: oe }),
|
|
1512
1512
|
u.value.multiScheduler ? (m(), I(qe, { key: 0 })) : M("", !0),
|
|
1513
|
-
|
|
1513
|
+
K.value ? (m(), I(Le, {
|
|
1514
1514
|
key: 1,
|
|
1515
1515
|
"current-restaurant-attr-params": o(e).state.currentRestaurantAttrParams,
|
|
1516
1516
|
onConfirm: $[0] || ($[0] = (A) => o(e).setRestaurantAttrParams(A))
|
|
@@ -1524,7 +1524,7 @@ const Je = /* @__PURE__ */ j({
|
|
|
1524
1524
|
g("div", ra, [
|
|
1525
1525
|
d(Qe),
|
|
1526
1526
|
u.value.multiScheduler ? (m(), I(qe, { key: 0 })) : M("", !0),
|
|
1527
|
-
|
|
1527
|
+
K.value ? (m(), I(Le, {
|
|
1528
1528
|
key: 1,
|
|
1529
1529
|
"current-restaurant-attr-params": o(e).state.currentRestaurantAttrParams,
|
|
1530
1530
|
onConfirm: $[3] || ($[3] = (A) => o(e).setRestaurantAttrParams(A))
|
|
@@ -1534,7 +1534,7 @@ const Je = /* @__PURE__ */ j({
|
|
|
1534
1534
|
key: 0,
|
|
1535
1535
|
action: {
|
|
1536
1536
|
text: o(L)("menu.product.empty.with_create.action"),
|
|
1537
|
-
callback:
|
|
1537
|
+
callback: Z
|
|
1538
1538
|
},
|
|
1539
1539
|
subtitle: o(L)("menu.product.empty.with_create.subtitle"),
|
|
1540
1540
|
title: o(L)("menu.product.empty.with_create.title")
|
|
@@ -1550,7 +1550,7 @@ const Je = /* @__PURE__ */ j({
|
|
|
1550
1550
|
"show-variant": !1,
|
|
1551
1551
|
"menu-items": o(D),
|
|
1552
1552
|
categories: o(H),
|
|
1553
|
-
"link-item-rules": o(
|
|
1553
|
+
"link-item-rules": o(J),
|
|
1554
1554
|
"no-scheduler": l.value,
|
|
1555
1555
|
"is-local-only": !0,
|
|
1556
1556
|
onSubmit: o(ne)
|
|
@@ -1578,7 +1578,7 @@ const Je = /* @__PURE__ */ j({
|
|
|
1578
1578
|
"show-variant": !1,
|
|
1579
1579
|
"menu-items": o(D),
|
|
1580
1580
|
categories: o(H),
|
|
1581
|
-
"link-item-rules": o(
|
|
1581
|
+
"link-item-rules": o(J),
|
|
1582
1582
|
"no-scheduler": l.value,
|
|
1583
1583
|
"is-local-only": !0,
|
|
1584
1584
|
onSubmit: o(ne)
|
|
@@ -1599,6 +1599,6 @@ const Je = /* @__PURE__ */ j({
|
|
|
1599
1599
|
}
|
|
1600
1600
|
});
|
|
1601
1601
|
export {
|
|
1602
|
-
|
|
1602
|
+
Ze as _,
|
|
1603
1603
|
Fa as a
|
|
1604
1604
|
};
|