@feedmepos/mf-menu 0.31.74 → 0.31.75-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-B6Hn5Wwr.js → App-Cw2D3IXT.js} +528 -585
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-CFtcqy58.js +161 -0
- package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.js +74 -0
- package/dist/{Catalog-D-2hDU2I.js → Catalog-B5kAKdVW.js} +9 -9
- package/dist/{Category-hSOIgBkH.js → Category-CAd9BTRX.js} +8 -8
- package/dist/{Category-DjTbuAvE.js → Category-DKjU47aW.js} +5 -5
- package/dist/{CookingGuide-D7ruB7eP.js → CookingGuide-BN739JkB.js} +7 -7
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-mxVSGXAz.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-gii2CTYD.js} +3 -3
- package/dist/{Group-evJZbgZn.js → Group-DmII5Nwf.js} +4 -4
- package/dist/{Group-CjlhbhDV.js → Group-DnpVxZkN.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DiKraPiw.js → Group.vue_vue_type_script_setup_true_lang-BEeCwmKt.js} +163 -163
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BYku8MAc.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DB5B3PLx.js} +90 -90
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DScxctPb.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BEISm7uc.js} +3046 -3046
- package/dist/{Ingredient-jNDx1pUw.js → Ingredient-CpuyDF4n.js} +30 -30
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CuM_k-C3.js → InventoryBinding.vue_vue_type_script_setup_true_lang-GHiwD8VV.js} +1112 -1112
- package/dist/{LinkProductSideSheet-CAPIdf6P.js → LinkProductSideSheet-DrSKOBLg.js} +129 -129
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-Bm_hSelC.js +69 -0
- package/dist/{MenuSetting-C2MDgy57.js → MenuSetting-BNuIUnjz.js} +138 -138
- package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js → PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js} +8 -8
- package/dist/{PrintRoute-SmWbKr9Y.js → PrintRoute-Dl0oWYju.js} +6 -6
- package/dist/{Product-BCm49V9T.js → Product-IQBP1vvY.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CTOjLqbF.js → Product.vue_vue_type_script_setup_true_lang-Bdss6VRj.js} +607 -607
- package/dist/{ProductInternalTools-DGsvvnIs.js → ProductInternalTools-Dkhbg1WE.js} +11 -11
- package/dist/{Products-D4qeSEfO.js → Products-Dcafs3Lk.js} +59 -59
- package/dist/{Publish-3A3EEQ9x.js → Publish-BTuO4AlR.js} +6 -6
- package/dist/{Recipe-CS7TZGA6.js → Recipe-Dx2ZkHsk.js} +6 -6
- package/dist/{Scheduler-BIwTUJMJ.js → Scheduler-Dh_0J2g9.js} +5 -5
- package/dist/{ServingSequence-C0N8wJfr.js → ServingSequence-DXhx9dcu.js} +5 -5
- package/dist/{Setting-fA6tvQK2.js → Setting-4x_w46t_.js} +5 -5
- package/dist/{Subcategory-BAFAmflQ.js → Subcategory-vztBpQnB.js} +6 -6
- package/dist/{Takeaway-D4aO8zzN.js → Takeaway-CDgIyUrN.js} +5 -5
- package/dist/{Takeaway-CLZouw1j.js → Takeaway-Dz5PxJk_.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-1oN-i9bo.js → Takeaway.vue_vue_type_script_setup_true_lang-BMMXiDFL.js} +6 -6
- package/dist/{TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js → TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Dwol_Lkd.js → Thumbnail.vue_vue_type_script_setup_true_lang-DJ8JMV28.js} +74 -74
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-cTzWxjM4.js +5996 -0
- package/dist/{Unit-ByqUb4Po.js → Unit-z7OVmlSq.js} +4 -4
- package/dist/{Variant-BmqrUfen.js → Variant-CFRgvlXf.js} +5 -5
- package/dist/{_id_-RUWzOB0B.js → _id_-B9q3j4_m.js} +11 -11
- package/dist/{app-B1N2F0j8.js → app-CdsS_tMb.js} +1 -1
- package/dist/app-CkCBPor3.js +363 -0
- package/dist/{app-5fxKLAzS.js → app-CzXxFrl1.js} +447 -447
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +0 -1
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/MenuSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/SubcategoryManager/SubcategorySelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-B8qYyYR6.js +13 -0
- package/dist/assets/override-menu-nmSTTTn7.js +13 -0
- package/dist/assets/validate-menu-CF1XZECU.js +13 -0
- package/dist/{catalog-CarmtheV.js → catalog-DBBEUpMo.js} +1 -1
- package/dist/{catalogSetting-BqrTpBP8.js → catalogSetting-DKvBjleU.js} +1 -1
- package/dist/{category-5R83ypNS.js → category-DILExwHL.js} +1 -1
- package/dist/{currency-CUl4r9rT.js → currency-B7Xm1xZJ.js} +1 -1
- package/dist/customAttributes-DrA0YC82.js +180 -0
- package/dist/{index-Ttqt4iFV.js → index-2lrKSO_O.js} +20 -20
- package/dist/{index-DlwLw-BQ.js → index-BoVEGKz7.js} +91 -91
- package/dist/{index-DAWSNP3G.js → index-Bu5LuO1j.js} +4 -4
- package/dist/{index-DUfYYdZ-.js → index-SNNvjtFa.js} +56 -56
- package/dist/{index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js → index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js} +16 -16
- package/dist/{item-B0UPYxsB.js → item-BnOnvN8x.js} +3091 -3174
- package/dist/{iteration-CfmAZiOO.js → iteration-Csz_aSxy.js} +3 -3
- package/dist/{jszip.min-zROpry0S.js → jszip.min-B0T3I-lE.js} +329 -329
- package/dist/{menu-DAac726D.js → menu-3XEn1C9F.js} +6402 -6332
- package/dist/{menu-DpYo8dYR.js → menu-DzbYSPGP.js} +1 -1
- package/dist/{menuV2-DZj_FPqR.js → menuV2-cXg54GYW.js} +93 -93
- package/dist/mf-menu.css +1 -1
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
- package/dist/{priceTier-BvDLl8v2.js → priceTier-DVd27LFd.js} +1 -1
- package/dist/{scheduler-pNUXG6En.js → scheduler-D8IgBrUX.js} +6 -6
- package/dist/{subcategory-DCDCQnAX.js → subcategory-BOpm3s8K.js} +2 -2
- package/dist/{toExcel-DqMa1Hn8.js → toExcel-BJM3fOB2.js} +2 -2
- package/dist/{unit-CuCXoWPG.js → unit-DF9d3piP.js} +151 -151
- package/dist/{vuedraggable-CK8z7qA8.js → vuedraggable-DnBIRDMr.js} +2 -2
- package/package.json +5 -5
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-CqGU3bJQ.js +0 -161
- package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js +0 -74
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +0 -69
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CabQS55D.js +0 -6012
- package/dist/app-CHpw_EM1.js +0 -2101
- package/dist/apps/mf-menu/src/components/feature/RemyButton.vue.d.ts +0 -15
- package/dist/apps/mf-menu/src/components/feature/RemyDialog.vue.d.ts +0 -15
- package/dist/apps/mf-menu/src/helper/remy.d.ts +0 -5
- package/dist/assets/linked-status-CFdi7K3K.js +0 -13
- package/dist/assets/override-menu-CXOY8i3w.js +0 -13
- package/dist/assets/validate-menu-DLlrsx2f.js +0 -13
- package/dist/customAttributes-BkqKM_KW.js +0 -180
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, createElementBlock as c, openBlock as u, normalizeClass as h, renderSlot as y, createCommentVNode as _, createVNode as $, createElementVNode as m, toDisplayString as f, withCtx as A, computed as d } from "vue";
|
|
2
|
-
import { I as b } from "./menu-DAac726D.js";
|
|
3
|
-
import { x as T, N as E } from "./app-5fxKLAzS.js";
|
|
4
|
-
import { useCoreStore as I, EMPTY_RULE as N, isEmptyMongoQuery as C, isEmptyRule as S } from "@feedmepos/mf-common";
|
|
5
|
-
const w = /* @__PURE__ */ v({
|
|
6
|
-
__name: "FormColumn",
|
|
7
|
-
props: {
|
|
8
|
-
shrinkable: { type: Boolean }
|
|
9
|
-
},
|
|
10
|
-
setup(r) {
|
|
11
|
-
return (s, a) => (u(), c("div", {
|
|
12
|
-
class: h(["flex-1 flex flex-col space-y-24", { "min-h-0": s.shrinkable }])
|
|
13
|
-
}, [
|
|
14
|
-
y(s.$slots, "default")
|
|
15
|
-
], 2));
|
|
16
|
-
}
|
|
17
|
-
}), M = {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "flex flex-row justify-between items-center"
|
|
20
|
-
}, V = { class: "space-y-4" }, B = { class: "fm-typo-en-title-sm-600" }, D = {
|
|
21
|
-
key: 0,
|
|
22
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
23
|
-
}, Y = /* @__PURE__ */ v({
|
|
24
|
-
__name: "FormSection",
|
|
25
|
-
props: {
|
|
26
|
-
title: {},
|
|
27
|
-
subTitle: {},
|
|
28
|
-
shrinkable: { type: Boolean }
|
|
29
|
-
},
|
|
30
|
-
setup(r) {
|
|
31
|
-
return (s, a) => (u(), c("div", {
|
|
32
|
-
class: h(["flex flex-col space-y-16", { "min-h-0": s.shrinkable }])
|
|
33
|
-
}, [
|
|
34
|
-
s.title ? (u(), c("div", M, [
|
|
35
|
-
m("div", V, [
|
|
36
|
-
m("p", B, f(s.title), 1),
|
|
37
|
-
s.subTitle ? (u(), c("p", D, f(s.subTitle), 1)) : _("", !0)
|
|
38
|
-
]),
|
|
39
|
-
y(s.$slots, "append-title")
|
|
40
|
-
])) : _("", !0),
|
|
41
|
-
$(w, { shrinkable: s.shrinkable }, {
|
|
42
|
-
default: A(() => [
|
|
43
|
-
y(s.$slots, "default")
|
|
44
|
-
]),
|
|
45
|
-
_: 3
|
|
46
|
-
}, 8, ["shrinkable"])
|
|
47
|
-
], 2));
|
|
48
|
-
}
|
|
49
|
-
}), F = { class: "space-y-8" }, x = { class: "flex items-center justify-between" }, Q = { class: "space-y-8" }, R = { class: "fm-typo-en-body-lg-600" }, j = {
|
|
50
|
-
key: 0,
|
|
51
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
52
|
-
}, H = /* @__PURE__ */ v({
|
|
53
|
-
__name: "FormItem",
|
|
54
|
-
props: {
|
|
55
|
-
label: {},
|
|
56
|
-
description: {}
|
|
57
|
-
},
|
|
58
|
-
setup(r) {
|
|
59
|
-
return (s, a) => (u(), c("div", F, [
|
|
60
|
-
m("div", x, [
|
|
61
|
-
m("div", Q, [
|
|
62
|
-
m("p", R, f(s.label), 1),
|
|
63
|
-
s.description ? (u(), c("p", j, f(s.description), 1)) : _("", !0)
|
|
64
|
-
]),
|
|
65
|
-
y(s.$slots, "append")
|
|
66
|
-
]),
|
|
67
|
-
y(s.$slots, "default")
|
|
68
|
-
]));
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
function p(r) {
|
|
72
|
-
return Array.from(new Set(r));
|
|
73
|
-
}
|
|
74
|
-
function J() {
|
|
75
|
-
const r = I();
|
|
76
|
-
return {
|
|
77
|
-
restaurantAttributes: d(() => [
|
|
78
|
-
{
|
|
79
|
-
type: "string",
|
|
80
|
-
key: "name",
|
|
81
|
-
entity: "restaurant",
|
|
82
|
-
values: p(
|
|
83
|
-
r.restaurants.value.filter((a) => {
|
|
84
|
-
var i;
|
|
85
|
-
return !!((i = a.profile) != null && i.name);
|
|
86
|
-
}).map((a) => a.profile.name)
|
|
87
|
-
)
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
type: "string",
|
|
91
|
-
key: "code",
|
|
92
|
-
entity: "restaurant",
|
|
93
|
-
values: p(
|
|
94
|
-
r.restaurants.value.filter((a) => {
|
|
95
|
-
var i;
|
|
96
|
-
return !!((i = a.profile) != null && i.code);
|
|
97
|
-
}).map((a) => a.profile.code)
|
|
98
|
-
)
|
|
99
|
-
}
|
|
100
|
-
])
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
function K(r = {}) {
|
|
104
|
-
const s = d(() => {
|
|
105
|
-
var e, l;
|
|
106
|
-
const n = ((e = r.menuItems) == null ? void 0 : e.value) || [], t = ((l = r.categories) == null ? void 0 : l.value) || [];
|
|
107
|
-
return [
|
|
108
|
-
{
|
|
109
|
-
type: "string",
|
|
110
|
-
key: "name",
|
|
111
|
-
entity: "item",
|
|
112
|
-
values: p(n.filter((o) => !!o.name).map((o) => o.name))
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
type: "string",
|
|
116
|
-
key: "code",
|
|
117
|
-
entity: "item",
|
|
118
|
-
values: p(n.filter((o) => !!o.code).map((o) => o.code))
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
type: "string",
|
|
122
|
-
key: "category",
|
|
123
|
-
entity: "item",
|
|
124
|
-
values: p(t.filter((o) => !!o.name).map((o) => o.name))
|
|
125
|
-
}
|
|
126
|
-
];
|
|
127
|
-
}), a = d(() => {
|
|
128
|
-
var t;
|
|
129
|
-
const n = {};
|
|
130
|
-
return (t = r.categories) == null || t.value.forEach((e) => {
|
|
131
|
-
n[e.name] = e._id;
|
|
132
|
-
}), n;
|
|
133
|
-
}), i = d(() => {
|
|
134
|
-
var t;
|
|
135
|
-
const n = {};
|
|
136
|
-
return (t = r.categories) == null || t.value.forEach((e) => {
|
|
137
|
-
n[e._id] = e.name;
|
|
138
|
-
}), n;
|
|
139
|
-
});
|
|
140
|
-
function g(n) {
|
|
141
|
-
const t = b.cloneDeep(n);
|
|
142
|
-
return t != null && t.rules && (t.rules = t.rules.map((e) => {
|
|
143
|
-
if ("property" in e && e.property === "category" && Array.isArray(e.value)) {
|
|
144
|
-
const l = e.value.map((o) => i.value[o]);
|
|
145
|
-
return { ...e, value: l };
|
|
146
|
-
}
|
|
147
|
-
return e;
|
|
148
|
-
})), t;
|
|
149
|
-
}
|
|
150
|
-
function k(n) {
|
|
151
|
-
const t = b.cloneDeep(n);
|
|
152
|
-
return t != null && t.rules && (t.rules = t.rules.map((e) => {
|
|
153
|
-
if ("property" in e && e.property === "category" && Array.isArray(e.value)) {
|
|
154
|
-
const l = e.value.map((o) => a.value[o]);
|
|
155
|
-
return { ...e, value: l };
|
|
156
|
-
}
|
|
157
|
-
return e;
|
|
158
|
-
})), t;
|
|
159
|
-
}
|
|
160
|
-
return {
|
|
161
|
-
itemAttributes: s,
|
|
162
|
-
convertCategoryIdToName: g,
|
|
163
|
-
convertCategoryNameToId: k
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
function O(r) {
|
|
167
|
-
return C(r) ? N : T.build(r);
|
|
168
|
-
}
|
|
169
|
-
function W(r) {
|
|
170
|
-
return S(r) ? null : E.build(r);
|
|
171
|
-
}
|
|
172
|
-
export {
|
|
173
|
-
Y as _,
|
|
174
|
-
H as a,
|
|
175
|
-
w as b,
|
|
176
|
-
K as c,
|
|
177
|
-
W as f,
|
|
178
|
-
O as m,
|
|
179
|
-
J as u
|
|
180
|
-
};
|