@feedmepos/mf-menu 0.32.3-beta.1 → 0.32.4-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-DJBZBaaC.js → App-5YVGeojR.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-c9SlmPp2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DhoHYIHW.js} +20 -20
- package/dist/{Catalog-Ct9jk3A_.js → Catalog-BTNv5n_D.js} +18 -18
- package/dist/{Category-Cf5KfKdv.js → Category-BE-kkKcL.js} +22 -23
- package/dist/{Category-CTTAtG31.js → Category-DuLhbRxE.js} +21 -22
- package/dist/{CookingGuide-BaNzajgf.js → CookingGuide-JtE8QMC6.js} +92 -93
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CRodr6tr.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DdJ-o_PW.js} +1 -1
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js +26 -0
- package/dist/{Group-BfRPCCbK.js → Group-BP-j3K6J.js} +1 -1
- package/dist/{Group-BJep-xq-.js → Group-DhS9e2E3.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CoCq0edM.js → Group.vue_vue_type_script_setup_true_lang-DXUQrXXI.js} +33 -34
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DviXfima.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXzz4ClS.js} +24 -23
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DSrxcKIK.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Bpt-8tbe.js} +11525 -11504
- package/dist/{Ingredient-BnzW69zW.js → Ingredient-NSl0x-0T.js} +5 -6
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-D8m1pyLp.js → InventoryBinding.vue_vue_type_script_setup_true_lang-ByrNVvzs.js} +2 -2
- package/dist/LinkProductSideSheet-B_R_2iH6.js +692 -0
- package/dist/MenuSetting-C7cpv4S3.js +580 -0
- package/dist/{PrintRoute-CLsiDIkn.js → PrintRoute-DmP7KH58.js} +10 -11
- package/dist/{Product-DHE0XtX1.js → Product-B6gwN4g0.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CVR8j-XT.js → Product.vue_vue_type_script_setup_true_lang-BKhn8Txf.js} +15 -16
- package/dist/{ProductInternalTools-BQOXHzYp.js → ProductInternalTools-D5xIh2j2.js} +5 -5
- package/dist/Products-Cxx8pJGK.js +692 -0
- package/dist/{Publish-BlEcoJaI.js → Publish-ZCzRBB5V.js} +21 -22
- package/dist/{Recipe-CkcNxf7p.js → Recipe-DcHdr_5J.js} +9 -10
- package/dist/RuleView.vue_vue_type_script_setup_true_lang-edNbsZTq.js +3282 -0
- package/dist/{Scheduler-DV0s_qkV.js → Scheduler-ZhDXk5gQ.js} +18 -19
- package/dist/{ServingSequence-CFd8Nwws.js → ServingSequence-DcfMbHjn.js} +15 -16
- package/dist/{Setting-B55IsZCX.js → Setting-fqf_sOIc.js} +45 -44
- package/dist/{Subcategory-BXCcVdR3.js → Subcategory-BidmfEOK.js} +18 -19
- package/dist/{Takeaway-BDvcwBHP.js → Takeaway-C83SKEvl.js} +1 -1
- package/dist/{Takeaway--U_lsgYi.js → Takeaway-p6thRg74.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DaYk2xdF.js → Takeaway.vue_vue_type_script_setup_true_lang-Dq6CjXCv.js} +48 -49
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-VBpTghy9.js → Thumbnail.vue_vue_type_script_setup_true_lang-CjLOy2k9.js} +10 -10
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-IBM6rC5M.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CWdsp9eo.js} +17 -16
- package/dist/{Unit-DkvTsQWA.js → Unit-CKIaBxVE.js} +7 -8
- package/dist/{Variant-tte76SbR.js → Variant-CE21vKC4.js} +38 -39
- package/dist/{_id_-AVMi3j91.js → _id_-BhWpg9Kj.js} +10 -10
- package/dist/{app-0s3jY-aE.js → app-BkcVM9nE.js} +1 -1
- package/dist/app-CEIhTuYG.js +363 -0
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +250 -0
- package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleForm.vue.d.ts +146 -0
- package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleView.vue.d.ts +158 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleCondition.vue.d.ts +103 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleConditionListView.vue.d.ts +54 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleConditionSelector.vue.d.ts +50 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleForm.vue.d.ts +117 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleView.vue.d.ts +141 -0
- package/dist/apps/mf-menu/src/composable/attributes.d.ts +10 -0
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +2 -3
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +3 -1
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +3 -2
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DEGoFflv.js → linked-status-CStQ46Ze.js} +2 -2
- package/dist/assets/{override-menu-CZe07SCm.js → override-menu-DHTQAnIJ.js} +2 -2
- package/dist/assets/{validate-menu-BnHfAUEN.js → validate-menu-C_kUDOhd.js} +2 -2
- package/dist/{catalog-YE_knev1.js → catalog-WBrPmQwl.js} +1 -1
- package/dist/{catalogSetting-CeVHRHOo.js → catalogSetting-BAry7I_V.js} +1 -1
- package/dist/{category-Dph1iWr8.js → category-bW36h16p.js} +1 -1
- package/dist/{currency-Byslycrk.js → currency-vVxHIVBs.js} +1 -1
- package/dist/{index-C0T32LLy.js → index-Ba5-dCQA.js} +1 -1
- package/dist/{index-CUTY6cCm.js → index-C0EV3eSc.js} +20 -20
- package/dist/{index-DycbrG1l.js → index-XZlEgR2k.js} +8 -7
- package/dist/{index-Ddt_Nw9F.js → index-pxnQHVnU.js} +4 -4
- package/dist/{menu-tHhzkxDL.js → index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js} +18612 -18558
- package/dist/item-mFv0bFSn.js +7648 -0
- package/dist/{iteration-CcobmcUk.js → iteration-CaFp1Rtz.js} +3 -3
- package/dist/{jszip.min-DQrtMdm5.js → jszip.min-BkSmQKmf.js} +353 -353
- package/dist/{menu-DkRrqTVY.js → menu-ud-tWfIM.js} +1 -1
- package/dist/{menuV2-DJevKCqE.js → menuV2-xUMdUls0.js} +65 -65
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-Bkogs1qc.js → priceTier-BVTab4k1.js} +1 -1
- package/dist/{scheduler-BGQ_lxUL.js → scheduler-CAt7sELO.js} +13 -12
- package/dist/{subcategory-DvxvLe8X.js → subcategory-DMZuedoM.js} +2 -2
- package/dist/{toExcel-DQ4jlZPI.js → toExcel-CczXOnKy.js} +2 -2
- package/dist/{unit-DoxpI5dG.js → unit-CbD3sYqC.js} +2 -2
- package/package.json +4 -3
- package/dist/LinkProductSideSheet-C4yBnJSM.js +0 -361
- package/dist/MenuSetting-Fxl8F6N5.js +0 -618
- package/dist/Products-BLvwrz9P.js +0 -689
- package/dist/app-CjfWVFOg.js +0 -363
- package/dist/customAttributes-DvbvCfOd.js +0 -180
- package/dist/index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js +0 -57
- package/dist/item-x1WWjISR.js +0 -9175
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, createElementBlock as c, openBlock as u, normalizeClass as _, renderSlot as p, createCommentVNode as v, createVNode as x, createElementVNode as m, toDisplayString as f, withCtx as $, computed as d } from "vue";
|
|
2
|
-
import { I as h } from "./menu-tHhzkxDL.js";
|
|
3
|
-
import { x as A, N as T } from "./app-CzXxFrl1.js";
|
|
4
|
-
import { useCoreStore as E, EMPTY_RULE as I, isEmptyMongoQuery as N, isEmptyRule as C } from "@feedmepos/mf-common";
|
|
5
|
-
const S = /* @__PURE__ */ b({
|
|
6
|
-
__name: "FormColumn",
|
|
7
|
-
props: {
|
|
8
|
-
shrinkable: { type: Boolean }
|
|
9
|
-
},
|
|
10
|
-
setup(e) {
|
|
11
|
-
return (o, a) => (u(), c("div", {
|
|
12
|
-
class: _(["flex-1 flex flex-col space-y-24", { "min-h-0": e.shrinkable }])
|
|
13
|
-
}, [
|
|
14
|
-
p(o.$slots, "default")
|
|
15
|
-
], 2));
|
|
16
|
-
}
|
|
17
|
-
}), w = {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "flex flex-row justify-between items-center"
|
|
20
|
-
}, M = { class: "space-y-4" }, V = { class: "fm-typo-en-title-sm-600" }, B = {
|
|
21
|
-
key: 0,
|
|
22
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
23
|
-
}, Y = /* @__PURE__ */ b({
|
|
24
|
-
__name: "FormSection",
|
|
25
|
-
props: {
|
|
26
|
-
title: {},
|
|
27
|
-
subTitle: {},
|
|
28
|
-
shrinkable: { type: Boolean }
|
|
29
|
-
},
|
|
30
|
-
setup(e) {
|
|
31
|
-
return (o, a) => (u(), c("div", {
|
|
32
|
-
class: _(["flex flex-col space-y-16", { "min-h-0": e.shrinkable }])
|
|
33
|
-
}, [
|
|
34
|
-
e.title ? (u(), c("div", w, [
|
|
35
|
-
m("div", M, [
|
|
36
|
-
m("p", V, f(e.title), 1),
|
|
37
|
-
e.subTitle ? (u(), c("p", B, f(e.subTitle), 1)) : v("", !0)
|
|
38
|
-
]),
|
|
39
|
-
p(o.$slots, "append-title")
|
|
40
|
-
])) : v("", !0),
|
|
41
|
-
x(S, { shrinkable: e.shrinkable }, {
|
|
42
|
-
default: $(() => [
|
|
43
|
-
p(o.$slots, "default")
|
|
44
|
-
]),
|
|
45
|
-
_: 3
|
|
46
|
-
}, 8, ["shrinkable"])
|
|
47
|
-
], 2));
|
|
48
|
-
}
|
|
49
|
-
}), D = { class: "space-y-8" }, F = { 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__ */ b({
|
|
53
|
-
__name: "FormItem",
|
|
54
|
-
props: {
|
|
55
|
-
label: {},
|
|
56
|
-
description: {}
|
|
57
|
-
},
|
|
58
|
-
setup(e) {
|
|
59
|
-
return (o, a) => (u(), c("div", D, [
|
|
60
|
-
m("div", F, [
|
|
61
|
-
m("div", Q, [
|
|
62
|
-
m("p", R, f(e.label), 1),
|
|
63
|
-
e.description ? (u(), c("p", j, f(e.description), 1)) : v("", !0)
|
|
64
|
-
]),
|
|
65
|
-
p(o.$slots, "append")
|
|
66
|
-
]),
|
|
67
|
-
p(o.$slots, "default")
|
|
68
|
-
]));
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
function y(e) {
|
|
72
|
-
return Array.from(new Set(e));
|
|
73
|
-
}
|
|
74
|
-
function J() {
|
|
75
|
-
const e = E();
|
|
76
|
-
return {
|
|
77
|
-
restaurantAttributes: d(() => [
|
|
78
|
-
{
|
|
79
|
-
type: "string",
|
|
80
|
-
key: "name",
|
|
81
|
-
entity: "restaurant",
|
|
82
|
-
values: y(
|
|
83
|
-
e.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: y(
|
|
94
|
-
e.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(e = {}) {
|
|
104
|
-
const o = d(() => {
|
|
105
|
-
var t, l;
|
|
106
|
-
const n = ((t = e.menuItems) == null ? void 0 : t.value) || [], s = ((l = e.categories) == null ? void 0 : l.value) || [];
|
|
107
|
-
return [
|
|
108
|
-
{
|
|
109
|
-
type: "string",
|
|
110
|
-
key: "name",
|
|
111
|
-
entity: "item",
|
|
112
|
-
values: y(n.filter((r) => !!r.name).map((r) => r.name))
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
type: "string",
|
|
116
|
-
key: "code",
|
|
117
|
-
entity: "item",
|
|
118
|
-
values: y(n.filter((r) => !!r.code).map((r) => r.code))
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
type: "string",
|
|
122
|
-
key: "category",
|
|
123
|
-
entity: "item",
|
|
124
|
-
values: y(s.filter((r) => !!r.name).map((r) => r.name))
|
|
125
|
-
}
|
|
126
|
-
];
|
|
127
|
-
}), a = d(() => {
|
|
128
|
-
var s;
|
|
129
|
-
const n = {};
|
|
130
|
-
return (s = e.categories) == null || s.value.forEach((t) => {
|
|
131
|
-
n[t.name] = t._id;
|
|
132
|
-
}), n;
|
|
133
|
-
}), i = d(() => {
|
|
134
|
-
var s;
|
|
135
|
-
const n = {};
|
|
136
|
-
return (s = e.categories) == null || s.value.forEach((t) => {
|
|
137
|
-
n[t._id] = t.name;
|
|
138
|
-
}), n;
|
|
139
|
-
});
|
|
140
|
-
function g(n) {
|
|
141
|
-
const s = h.cloneDeep(n);
|
|
142
|
-
return s != null && s.rules && (s.rules = s.rules.map((t) => {
|
|
143
|
-
if ("property" in t && t.property === "category" && Array.isArray(t.value)) {
|
|
144
|
-
const l = t.value.map((r) => i.value[r]);
|
|
145
|
-
return { ...t, value: l };
|
|
146
|
-
}
|
|
147
|
-
return t;
|
|
148
|
-
})), s;
|
|
149
|
-
}
|
|
150
|
-
function k(n) {
|
|
151
|
-
const s = h.cloneDeep(n);
|
|
152
|
-
return s != null && s.rules && (s.rules = s.rules.map((t) => {
|
|
153
|
-
if ("property" in t && t.property === "category" && Array.isArray(t.value)) {
|
|
154
|
-
const l = t.value.map((r) => a.value[r]);
|
|
155
|
-
return { ...t, value: l };
|
|
156
|
-
}
|
|
157
|
-
return t;
|
|
158
|
-
})), s;
|
|
159
|
-
}
|
|
160
|
-
return {
|
|
161
|
-
itemAttributes: o,
|
|
162
|
-
convertCategoryIdToName: g,
|
|
163
|
-
convertCategoryNameToId: k
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
function O(e) {
|
|
167
|
-
return N(e) ? I : A.build(e);
|
|
168
|
-
}
|
|
169
|
-
function W(e) {
|
|
170
|
-
return C(e) ? null : T.build(e);
|
|
171
|
-
}
|
|
172
|
-
export {
|
|
173
|
-
Y as _,
|
|
174
|
-
H as a,
|
|
175
|
-
S as b,
|
|
176
|
-
K as c,
|
|
177
|
-
W as f,
|
|
178
|
-
O as m,
|
|
179
|
-
J as u
|
|
180
|
-
};
|