@feedmepos/mf-menu 0.32.3-prod → 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-8N5tGJF2.js → App-5YVGeojR.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Br16H4fV.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DhoHYIHW.js} +20 -20
- package/dist/{Catalog-BnM4mCZm.js → Catalog-BTNv5n_D.js} +18 -18
- package/dist/{Category-p6vK_8tt.js → Category-BE-kkKcL.js} +22 -23
- package/dist/{Category-D3V4Y3E2.js → Category-DuLhbRxE.js} +21 -22
- package/dist/{CookingGuide-BEyOSy2I.js → CookingGuide-JtE8QMC6.js} +92 -93
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CHBcF6_T.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-Blu1HDB2.js → Group-BP-j3K6J.js} +1 -1
- package/dist/{Group-BY9232AU.js → Group-DhS9e2E3.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-JduS0ulj.js → Group.vue_vue_type_script_setup_true_lang-DXUQrXXI.js} +33 -34
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-asCTrWh0.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXzz4ClS.js} +24 -23
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CrR36Dws.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Bpt-8tbe.js} +13876 -13855
- package/dist/{Ingredient-CF0dxZUQ.js → Ingredient-NSl0x-0T.js} +5 -6
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-C4U0ceUs.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-BEnT12ry.js → PrintRoute-DmP7KH58.js} +10 -11
- package/dist/{Product-DYyQya8z.js → Product-B6gwN4g0.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-vvVg5ch6.js → Product.vue_vue_type_script_setup_true_lang-BKhn8Txf.js} +15 -16
- package/dist/{ProductInternalTools-Ca0gMXjM.js → ProductInternalTools-D5xIh2j2.js} +6 -6
- package/dist/Products-Cxx8pJGK.js +692 -0
- package/dist/{Publish-CMfkOdfl.js → Publish-ZCzRBB5V.js} +21 -22
- package/dist/{Recipe-BfUBwe0V.js → Recipe-DcHdr_5J.js} +9 -10
- package/dist/RuleView.vue_vue_type_script_setup_true_lang-edNbsZTq.js +3282 -0
- package/dist/{Scheduler-DMW0eXTC.js → Scheduler-ZhDXk5gQ.js} +18 -19
- package/dist/{ServingSequence-KKxKWiMg.js → ServingSequence-DcfMbHjn.js} +15 -16
- package/dist/{Setting-DnZKIPxv.js → Setting-fqf_sOIc.js} +45 -44
- package/dist/{Subcategory-oyRT_DCE.js → Subcategory-BidmfEOK.js} +18 -19
- package/dist/{Takeaway-D5poi3-c.js → Takeaway-C83SKEvl.js} +1 -1
- package/dist/{Takeaway-C0BaX46b.js → Takeaway-p6thRg74.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DDwfWxUJ.js → Takeaway.vue_vue_type_script_setup_true_lang-Dq6CjXCv.js} +48 -49
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DxufNX42.js → Thumbnail.vue_vue_type_script_setup_true_lang-CjLOy2k9.js} +10 -10
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BCwN1cb1.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CWdsp9eo.js} +18 -17
- package/dist/{Unit-CArpokl8.js → Unit-CKIaBxVE.js} +7 -8
- package/dist/{Variant-BV3nweCM.js → Variant-CE21vKC4.js} +38 -39
- package/dist/{_id_-CHBIR0od.js → _id_-BhWpg9Kj.js} +10 -10
- package/dist/{app-ClfI0NCo.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-1abKFGec.js → linked-status-CStQ46Ze.js} +5 -5
- package/dist/assets/{override-menu-DOesQlvM.js → override-menu-DHTQAnIJ.js} +5 -5
- package/dist/assets/{validate-menu-Ckg7bFn6.js → validate-menu-C_kUDOhd.js} +2 -2
- package/dist/{catalog-D2MMaQiI.js → catalog-WBrPmQwl.js} +1 -1
- package/dist/{catalogSetting-DebIUtSe.js → catalogSetting-BAry7I_V.js} +1 -1
- package/dist/{category-BHGAz-ho.js → category-bW36h16p.js} +1 -1
- package/dist/{currency-DxSrkfKE.js → currency-vVxHIVBs.js} +1 -1
- package/dist/{index-BtDu6NNE.js → index-Ba5-dCQA.js} +1 -1
- package/dist/{index-BPR0rPrd.js → index-C0EV3eSc.js} +20 -20
- package/dist/{index-jgDp0lEh.js → index-XZlEgR2k.js} +8 -7
- package/dist/{index-B5BMIuHw.js → index-pxnQHVnU.js} +4 -4
- package/dist/{menu-CMEcKbuU.js → index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js} +18612 -18558
- package/dist/item-mFv0bFSn.js +7648 -0
- package/dist/{iteration-G0iUBmAn.js → iteration-CaFp1Rtz.js} +3 -3
- package/dist/{jszip.min-BefdZytK.js → jszip.min-BkSmQKmf.js} +2 -2
- package/dist/{menu-BLfW2H1Z.js → menu-ud-tWfIM.js} +1 -1
- package/dist/{menuV2-BcpoAOlp.js → menuV2-xUMdUls0.js} +20 -20
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-DX7Ftywx.js → priceTier-BVTab4k1.js} +1 -1
- package/dist/{scheduler-DkpL7eTj.js → scheduler-CAt7sELO.js} +13 -12
- package/dist/{subcategory-DgjYdoN2.js → subcategory-DMZuedoM.js} +2 -2
- package/dist/{toExcel-B8SARmQK.js → toExcel-CczXOnKy.js} +2 -2
- package/dist/{unit-ZDCjsjpN.js → unit-CbD3sYqC.js} +2 -2
- package/package.json +4 -3
- package/dist/LinkProductSideSheet-Bh7xVIuq.js +0 -361
- package/dist/MenuSetting-LcXAkPyG.js +0 -618
- package/dist/Products-DuZ3lQVu.js +0 -689
- package/dist/app-DbQb1kAv.js +0 -363
- package/dist/customAttributes-DYPI8IMf.js +0 -180
- package/dist/index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js +0 -57
- package/dist/item-CY4zYxYb.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-CMEcKbuU.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
|
-
};
|