@feedmepos/mf-menu 0.31.33-beta.8 → 0.31.33-beta.9
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-BAMi-a9P.js → App-WQChaTIO.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BWgnvXjy.js → ApplyProduct.vue_vue_type_script_setup_true_lang-t1K3plXk.js} +2 -2
- package/dist/{Catalog-DiPY42vz.js → Catalog-BX_1g0ru.js} +6 -6
- package/dist/{Category-ClrACB2e.js → Category-C6BSLYTZ.js} +5 -5
- package/dist/{Category-B9jnFDvG.js → Category-COTd0h8i.js} +4 -4
- package/dist/{CookingGuide-1553FWRH.js → CookingGuide-DTTGVOtZ.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DWNx15iJ.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-UQQSF2Fv.js} +1 -1
- package/dist/{Group-DLahX8qi.js → Group-BKhYr_XK.js} +3 -3
- package/dist/{Group-l_-qZSyF.js → Group-tv4NRLFA.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-PNpEgEGB.js → Group.vue_vue_type_script_setup_true_lang-Cql0J4TN.js} +38 -36
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DoVyIdTN.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DIUX09XZ.js} +11 -8
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DSspLK4i.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-azTd9oJY.js} +316 -316
- package/dist/{Ingredient-SsBtwYjB.js → Ingredient-EhrV45jG.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DqnVkfjW.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DNLOCn6Z.js} +2 -2
- package/dist/LinkProductSideSheet-CLUkYMJx.js +297 -0
- package/dist/{MenuSetting-D28a3uD4.js → MenuSetting-DMYnqQqF.js} +4 -4
- package/dist/{PrintRoute-BdlT0DDr.js → PrintRoute-Ct0vYBI0.js} +3 -3
- package/dist/{Product-s5Q4wV8i.js → Product-CVOGBfGP.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-C6iDgQEU.js → Product.vue_vue_type_script_setup_true_lang-3qo4KHwM.js} +19 -16
- package/dist/{ProductInternalTools-DjSkvzw2.js → ProductInternalTools-BD4pbpTq.js} +5 -5
- package/dist/{Products-B3tF_gCa.js → Products-DiqJJi0G.js} +11 -11
- package/dist/{Publish-G4bwUpme.js → Publish-DNW7kAyt.js} +3 -3
- package/dist/{Recipe-BxgHUzb5.js → Recipe-DB59Oilo.js} +4 -4
- package/dist/{Scheduler-DJSKWS-9.js → Scheduler-CdvXOmD9.js} +3 -3
- package/dist/{ServingSequence-_cmuGKlV.js → ServingSequence-BJidBanx.js} +3 -3
- package/dist/{Setting-Dx7ycxAn.js → Setting-CT0-ErCV.js} +5 -5
- package/dist/{Subcategory-25AzJQYt.js → Subcategory-Qss-q16J.js} +4 -4
- package/dist/{Takeaway-Bmm9d5PO.js → Takeaway-Cco68UWM.js} +1 -1
- package/dist/{Takeaway-CcFK-Y2z.js → Takeaway-DJZrAOhK.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Bl5OAG3c.js → Takeaway.vue_vue_type_script_setup_true_lang-_UIxFm40.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-B3-ypwE7.js → Thumbnail.vue_vue_type_script_setup_true_lang-DQ8A_b8N.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D2gzS8Q_.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C-GQNgOs.js} +14 -14
- package/dist/{Unit-Cs1EOuyg.js → Unit-jNMtjCqg.js} +2 -2
- package/dist/{Variant-BTCkw4RC.js → Variant-vgkCtn6k.js} +3 -3
- package/dist/{_id_-C9b2WHzy.js → _id_-VWD7FuB8.js} +10 -10
- package/dist/{app-BhI1mPRh.js → app-DCfZrw5q.js} +1 -1
- package/dist/{app-CU2frfPB.js → app-FT-17pdN.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-r8YcmOs7.js → linked-status-CgdauMC-.js} +8 -8
- package/dist/assets/{override-menu-CDLCS1zK.js → override-menu-BjjuzKpf.js} +8 -8
- package/dist/assets/{validate-menu-B-FxrVmM.js → validate-menu-C0NftO2y.js} +8 -8
- package/dist/{catalog-BudDGPc1.js → catalog-Cu3xX3Ij.js} +1 -1
- package/dist/{catalogSetting-Bk1QEBg5.js → catalogSetting-MeAAWjBX.js} +1 -1
- package/dist/{category-UDpJb7Yh.js → category-D5yCmLTw.js} +1 -1
- package/dist/{currency-BQIQArxm.js → currency-DQtVpVAB.js} +1 -1
- package/dist/{dayjs.min-D0EjAkx4.js → dayjs.min-B17nF95f.js} +1 -1
- package/dist/{index-B_V5s58T.js → index-1CsXkVcJ.js} +1 -1
- package/dist/{index-Dy-u7imh.js → index-B6mBc4vZ.js} +3 -3
- package/dist/{index-CirrSmpA.js → index-CAsg0n3_.js} +3 -3
- package/dist/{index-DRuDRGm-.js → index-D7yR1j9C.js} +49 -47
- package/dist/{item-C45Oe5Un.js → item-BXuPBp61.js} +15 -15
- package/dist/{jszip.min-BR_8QNuk.js → jszip.min-Dzj1bdkj.js} +2 -2
- package/dist/{menu-DTlhFcnq.js → menu-CpOCeOvo.js} +143 -143
- package/dist/{menu-D52oU1sw.js → menu-CzQXSBCu.js} +1 -1
- package/dist/{menuV2-DQtEtGVV.js → menuV2-Cw9jPRug.js} +86 -86
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-CDyccedV.js → priceTier-DmDrpMES.js} +1 -1
- package/dist/{scheduler-DHjrtU8G.js → scheduler-f8MIyGun.js} +3 -3
- package/dist/{subcategory-0ajMWsb2.js → subcategory-C3sMuoGj.js} +2 -2
- package/dist/{toExcel-BNKDwOzQ.js → toExcel-BoLqUKHC.js} +2 -2
- package/dist/{unit-CBe6cpyB.js → unit-CAKmah7M.js} +3 -3
- package/package.json +2 -2
- package/dist/LinkProductSideSheet-CncbzDh3.js +0 -335
- package/dist/apps/mf-menu/src/composable/customAttributes.d.ts +0 -96
- /package/dist/{LinkProductSideSheet.vue_vue_type_style_index_0_scoped_7d7fe73f_lang-DvG3mOom.js → LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js} +0 -0
- /package/dist/{apps/mf-menu/src/components → packages/shared/src/components/info}/CustomAttributeChip.vue.d.ts +0 -0
|
@@ -1,335 +0,0 @@
|
|
|
1
|
-
import { defineComponent as K, createElementBlock as A, openBlock as v, createElementVNode as c, renderSlot as j, createCommentVNode as M, toDisplayString as $, computed as g, ref as R, watch as x, resolveComponent as C, Fragment as L, createVNode as m, unref as l, withCtx as k, createBlock as D, renderList as ce } from "vue";
|
|
2
|
-
import { I as w, H as B, Q as de, u as pe, G as fe } from "./menu-DTlhFcnq.js";
|
|
3
|
-
import { N as z, b as Y, x as G } from "./LinkProductSideSheet.vue_vue_type_style_index_0_scoped_7d7fe73f_lang-DvG3mOom.js";
|
|
4
|
-
import { useI18n as ve, useCoreStore as be, ItemSelector as _e } from "@feedmepos/mf-common";
|
|
5
|
-
import { components as ye, FmButtonVariant as q } from "@feedmepos/ui-library";
|
|
6
|
-
import { u as he } from "./discardConfirm-BHni0LNu.js";
|
|
7
|
-
import { u as ke } from "./menuV2-DQtEtGVV.js";
|
|
8
|
-
import { c as Ae } from "./check-C9mY6LiX.js";
|
|
9
|
-
const Re = (s, d) => {
|
|
10
|
-
const o = s.__vccOpts || s;
|
|
11
|
-
for (const [_, r] of d)
|
|
12
|
-
o[_] = r;
|
|
13
|
-
return o;
|
|
14
|
-
}, ge = { class: "space-y-8" }, Ie = { class: "flex items-center justify-between" }, Ve = { class: "space-y-8" }, Se = { class: "fm-typo-en-body-lg-600" }, Ce = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
17
|
-
}, T = /* @__PURE__ */ K({
|
|
18
|
-
__name: "FormItem",
|
|
19
|
-
props: {
|
|
20
|
-
label: {},
|
|
21
|
-
description: {}
|
|
22
|
-
},
|
|
23
|
-
setup(s) {
|
|
24
|
-
return (d, o) => (v(), A("div", ge, [
|
|
25
|
-
c("div", Ie, [
|
|
26
|
-
c("div", Ve, [
|
|
27
|
-
c("p", Se, $(d.label), 1),
|
|
28
|
-
d.description ? (v(), A("p", Ce, $(d.description), 1)) : M("", !0)
|
|
29
|
-
]),
|
|
30
|
-
j(d.$slots, "append")
|
|
31
|
-
]),
|
|
32
|
-
j(d.$slots, "default")
|
|
33
|
-
]));
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
function H(s, d, o = (_) => _.customAttributes ?? {}) {
|
|
37
|
-
const _ = g(() => s.value.map(o).filter((u) => !!u)), r = g(() => {
|
|
38
|
-
var h;
|
|
39
|
-
const u = /* @__PURE__ */ new Map();
|
|
40
|
-
for (const U of _.value)
|
|
41
|
-
for (const [b, V] of Object.entries(U))
|
|
42
|
-
u.has(b) || u.set(b, /* @__PURE__ */ new Set()), V && ((h = u.get(b)) == null || h.add(V));
|
|
43
|
-
return u;
|
|
44
|
-
}), y = g(() => Array.from(r.value, ([u, h]) => ({
|
|
45
|
-
type: "string",
|
|
46
|
-
key: u,
|
|
47
|
-
// currently custom attributes only support "restaurant" | "item"
|
|
48
|
-
entity: d,
|
|
49
|
-
values: Array.from(h)
|
|
50
|
-
}))), F = R(null), i = R({});
|
|
51
|
-
return x(
|
|
52
|
-
F,
|
|
53
|
-
(u) => {
|
|
54
|
-
i.value = u ? z.build(u) : {};
|
|
55
|
-
},
|
|
56
|
-
{ deep: !0, immediate: !0 }
|
|
57
|
-
), {
|
|
58
|
-
attributes: y,
|
|
59
|
-
filterRule: F,
|
|
60
|
-
mongoQuery: i
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
const Ee = { $and: [] }, E = {
|
|
64
|
-
logic: "AND",
|
|
65
|
-
rules: []
|
|
66
|
-
};
|
|
67
|
-
function J(s) {
|
|
68
|
-
return !s || w.isEqual(s, {}) || w.isEqual(s, Ee);
|
|
69
|
-
}
|
|
70
|
-
function N(s) {
|
|
71
|
-
return !s || w.isEqual(s, E);
|
|
72
|
-
}
|
|
73
|
-
var p = /* @__PURE__ */ ((s) => (s[s.Normal = 0] = "Normal", s[s.Rules = 1] = "Rules", s))(p || {});
|
|
74
|
-
const we = { class: "fm-typo-en-title-md-600 mr-auto" }, Fe = {
|
|
75
|
-
key: 1,
|
|
76
|
-
class: "flex items-center gap-12"
|
|
77
|
-
}, Oe = { class: "flex items-center gap-8" }, Be = { class: "text-neutral-600 fm-typo-body-sm" }, Ne = { class: "grid md:grid-cols-3 gap-16" }, Me = { class: "md:col-span-2 space-y-16" }, $e = { class: "flex justify-end" }, Ue = { class: "flex gap-8 items-center justify-start" }, Le = /* @__PURE__ */ K({
|
|
78
|
-
__name: "LinkProductSideSheet",
|
|
79
|
-
props: {
|
|
80
|
-
initialValue: { default: () => [] },
|
|
81
|
-
linkItemRules: {},
|
|
82
|
-
menuItems: {},
|
|
83
|
-
noScheduler: { type: Boolean },
|
|
84
|
-
isLocalOnly: { type: Boolean, default: !1 },
|
|
85
|
-
categorizedItems: { default: () => [] },
|
|
86
|
-
selectVariant: { type: Boolean, default: !1 },
|
|
87
|
-
showVariant: { type: Boolean, default: !1 },
|
|
88
|
-
showAddon: { type: Boolean, default: !0 },
|
|
89
|
-
title: { default: void 0 },
|
|
90
|
-
useCloseBtn: { type: Boolean }
|
|
91
|
-
},
|
|
92
|
-
emits: ["submit"],
|
|
93
|
-
setup(s, { emit: d }) {
|
|
94
|
-
const o = s, _ = d, { t: r } = ve(), y = R(p.Normal);
|
|
95
|
-
function F(t) {
|
|
96
|
-
y.value = t;
|
|
97
|
-
}
|
|
98
|
-
const i = R(!1), u = (t) => {
|
|
99
|
-
Ae.isBoolean(t) ? i.value = t : i.value = !i.value;
|
|
100
|
-
};
|
|
101
|
-
function h(t) {
|
|
102
|
-
return t.reduce((e, a) => (e[a._id] = [...e[a._id] ?? [], a], e), {});
|
|
103
|
-
}
|
|
104
|
-
const U = o.initialValue, b = R(h(B(U))), V = g(() => Object.values(b.value).flatMap((t) => t)), S = R(
|
|
105
|
-
B(o.linkItemRules)
|
|
106
|
-
), n = R();
|
|
107
|
-
function Q() {
|
|
108
|
-
var t;
|
|
109
|
-
return (t = S.value) == null ? void 0 : t.map((e) => ({
|
|
110
|
-
...e,
|
|
111
|
-
restaurantAttributes: J(e.restaurantAttributes) ? E : G.build(e.restaurantAttributes),
|
|
112
|
-
itemAttributes: J(e.itemAttributes) ? E : G.build(e.itemAttributes)
|
|
113
|
-
}));
|
|
114
|
-
}
|
|
115
|
-
n.value = Q(), x(
|
|
116
|
-
n,
|
|
117
|
-
(t) => {
|
|
118
|
-
S.value = t == null ? void 0 : t.map((e) => ({
|
|
119
|
-
...e,
|
|
120
|
-
restaurantAttributes: N(e.restaurantAttributes) ? null : z.build(e.restaurantAttributes),
|
|
121
|
-
itemAttributes: N(e.itemAttributes) ? null : z.build(e.itemAttributes)
|
|
122
|
-
}));
|
|
123
|
-
},
|
|
124
|
-
{ deep: !0 }
|
|
125
|
-
);
|
|
126
|
-
const W = he(
|
|
127
|
-
() => !w.isEqual(h(o.initialValue), b.value) || !w.isEqual(o.linkItemRules, S.value),
|
|
128
|
-
() => {
|
|
129
|
-
i.value = !1;
|
|
130
|
-
}
|
|
131
|
-
);
|
|
132
|
-
function X() {
|
|
133
|
-
y.value === p.Rules ? _("submit", {
|
|
134
|
-
mode: p.Rules,
|
|
135
|
-
linkItemRules: S.value || []
|
|
136
|
-
}) : _("submit", {
|
|
137
|
-
mode: p.Normal,
|
|
138
|
-
items: V.value
|
|
139
|
-
}), i.value = !1;
|
|
140
|
-
}
|
|
141
|
-
x(
|
|
142
|
-
() => i.value,
|
|
143
|
-
() => {
|
|
144
|
-
b.value = h(B(o.initialValue)), S.value = B(o.linkItemRules), n.value = Q(), y.value = o.noScheduler && o.linkItemRules && o.linkItemRules.length > 0 ? p.Rules : p.Normal;
|
|
145
|
-
}
|
|
146
|
-
);
|
|
147
|
-
const Z = g(() => {
|
|
148
|
-
const t = de();
|
|
149
|
-
return Object.values(t).sort((e, a) => a.sortingIndex - e.sortingIndex).map((e) => ({ label: e.label, value: e.value }));
|
|
150
|
-
}), { attributes: ee } = H(
|
|
151
|
-
be().restaurants,
|
|
152
|
-
"restaurant"
|
|
153
|
-
), te = g(() => o.menuItems || []), { attributes: le } = H(te, "item");
|
|
154
|
-
function se() {
|
|
155
|
-
const t = [
|
|
156
|
-
...n.value || [],
|
|
157
|
-
{
|
|
158
|
-
orderFrom: fe.F_ORDER_FROM.enum.ALL,
|
|
159
|
-
restaurantAttributes: null,
|
|
160
|
-
itemAttributes: null
|
|
161
|
-
}
|
|
162
|
-
];
|
|
163
|
-
n.value = t;
|
|
164
|
-
}
|
|
165
|
-
function ae(t) {
|
|
166
|
-
if (!n.value) return;
|
|
167
|
-
const e = [...n.value];
|
|
168
|
-
e.splice(t, 1), n.value = e.length ? e : [];
|
|
169
|
-
}
|
|
170
|
-
function oe(t, e) {
|
|
171
|
-
if (!n.value) return;
|
|
172
|
-
const a = [...n.value];
|
|
173
|
-
N(e) ? a[t].restaurantAttributes = null : a[t].restaurantAttributes = e, n.value = a;
|
|
174
|
-
}
|
|
175
|
-
function ne(t, e) {
|
|
176
|
-
if (!n.value) return;
|
|
177
|
-
const a = [...n.value];
|
|
178
|
-
N(e) ? a[t].itemAttributes = null : a[t].itemAttributes = e, n.value = a;
|
|
179
|
-
}
|
|
180
|
-
const P = g(() => {
|
|
181
|
-
const t = o.isLocalOnly ? ke() : pe();
|
|
182
|
-
return o.noScheduler && t.currentCatalog;
|
|
183
|
-
});
|
|
184
|
-
return (t, e) => {
|
|
185
|
-
const a = C("fm-button"), ue = C("fm-switch"), re = C("FmSelect"), ie = C("FmCard"), me = C("fm-side-sheet");
|
|
186
|
-
return v(), A(L, null, [
|
|
187
|
-
j(t.$slots, "default", { trigger: u }, void 0, !0),
|
|
188
|
-
m(me, {
|
|
189
|
-
id: "group-form",
|
|
190
|
-
modelValue: i.value,
|
|
191
|
-
"onUpdate:modelValue": e[3] || (e[3] = (f) => i.value = f),
|
|
192
|
-
"close-button": t.useCloseBtn,
|
|
193
|
-
"is-container": l(ye).FmForm,
|
|
194
|
-
"is-container-props": {
|
|
195
|
-
onValidationSuccess: X,
|
|
196
|
-
blameFormChildOnValidationFailed: !0
|
|
197
|
-
},
|
|
198
|
-
"max-width": 760,
|
|
199
|
-
"onOn:clickedAway": l(W)
|
|
200
|
-
}, {
|
|
201
|
-
"side-sheet-header": k(() => [
|
|
202
|
-
t.useCloseBtn ? M("", !0) : (v(), D(a, {
|
|
203
|
-
key: 0,
|
|
204
|
-
variant: l(q).Tertiary,
|
|
205
|
-
class: "cursor-pointer mr-4",
|
|
206
|
-
"prepend-icon": "arrow_back",
|
|
207
|
-
onClick: u
|
|
208
|
-
}, null, 8, ["variant"])),
|
|
209
|
-
c("p", we, $(t.title || l(r)("menu.link_product.title")), 1),
|
|
210
|
-
P.value ? (v(), A("div", Fe, [
|
|
211
|
-
c("div", Oe, [
|
|
212
|
-
m(ue, {
|
|
213
|
-
label: l(r)("menu.link_product.rules.section_title"),
|
|
214
|
-
"model-value": y.value === l(p).Rules,
|
|
215
|
-
"onUpdate:modelValue": e[0] || (e[0] = (f) => F(f ? l(p).Rules : l(p).Normal))
|
|
216
|
-
}, null, 8, ["label", "model-value"])
|
|
217
|
-
])
|
|
218
|
-
])) : M("", !0)
|
|
219
|
-
]),
|
|
220
|
-
"side-sheet-footer": k(() => [
|
|
221
|
-
c("div", Ue, [
|
|
222
|
-
m(a, {
|
|
223
|
-
label: l(r)("menu.common.actions.confirm"),
|
|
224
|
-
size: "lg",
|
|
225
|
-
type: "submit",
|
|
226
|
-
variant: "primary"
|
|
227
|
-
}, null, 8, ["label"]),
|
|
228
|
-
m(a, {
|
|
229
|
-
label: l(r)("menu.common.actions.cancel"),
|
|
230
|
-
size: "lg",
|
|
231
|
-
variant: "tertiary",
|
|
232
|
-
onClick: e[2] || (e[2] = () => i.value = !1)
|
|
233
|
-
}, null, 8, ["label"])
|
|
234
|
-
])
|
|
235
|
-
]),
|
|
236
|
-
default: k(() => [
|
|
237
|
-
(v(), A("div", {
|
|
238
|
-
class: "py-8 px-8 overflow-y-auto space-y-24",
|
|
239
|
-
key: y.value
|
|
240
|
-
}, [
|
|
241
|
-
y.value === l(p).Normal ? (v(), D(l(_e), {
|
|
242
|
-
key: 0,
|
|
243
|
-
"auto-focus-search": !0,
|
|
244
|
-
"categorized-items": t.categorizedItems,
|
|
245
|
-
data: b.value,
|
|
246
|
-
"select-variant": t.selectVariant,
|
|
247
|
-
"selected-items": V.value,
|
|
248
|
-
"show-variant": t.showVariant,
|
|
249
|
-
"show-addon": t.showAddon,
|
|
250
|
-
"onUpdate:data": e[1] || (e[1] = (f) => b.value = f)
|
|
251
|
-
}, null, 8, ["categorized-items", "data", "select-variant", "selected-items", "show-variant", "show-addon"])) : P.value ? (v(), A(L, { key: 1 }, [
|
|
252
|
-
c("p", Be, $(l(r)("menu.link_product.rules.hint")), 1),
|
|
253
|
-
(v(!0), A(L, null, ce(n.value, (f, O) => (v(), D(ie, {
|
|
254
|
-
key: O,
|
|
255
|
-
class: "p-16 space-y-16",
|
|
256
|
-
variant: "outlined"
|
|
257
|
-
}, {
|
|
258
|
-
default: k(() => [
|
|
259
|
-
c("div", Ne, [
|
|
260
|
-
c("div", null, [
|
|
261
|
-
m(T, {
|
|
262
|
-
label: l(r)("menu.link_product.rules.order_from")
|
|
263
|
-
}, {
|
|
264
|
-
default: k(() => [
|
|
265
|
-
m(re, {
|
|
266
|
-
items: Z.value,
|
|
267
|
-
"model-value": f.orderFrom,
|
|
268
|
-
"onUpdate:modelValue": (I) => f.orderFrom = I
|
|
269
|
-
}, null, 8, ["items", "model-value", "onUpdate:modelValue"])
|
|
270
|
-
]),
|
|
271
|
-
_: 2
|
|
272
|
-
}, 1032, ["label"])
|
|
273
|
-
]),
|
|
274
|
-
c("div", Me, [
|
|
275
|
-
m(T, {
|
|
276
|
-
label: l(r)("menu.link_product.rules.restaurant_filter")
|
|
277
|
-
}, {
|
|
278
|
-
default: k(() => [
|
|
279
|
-
m(l(Y), {
|
|
280
|
-
attributes: l(ee),
|
|
281
|
-
"model-value": f.restaurantAttributes || l(E),
|
|
282
|
-
"onUpdate:modelValue": (I) => oe(O, I)
|
|
283
|
-
}, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])
|
|
284
|
-
]),
|
|
285
|
-
_: 2
|
|
286
|
-
}, 1032, ["label"]),
|
|
287
|
-
m(T, {
|
|
288
|
-
label: l(r)("menu.link_product.rules.item_filter")
|
|
289
|
-
}, {
|
|
290
|
-
default: k(() => [
|
|
291
|
-
m(l(Y), {
|
|
292
|
-
attributes: l(le),
|
|
293
|
-
"model-value": f.itemAttributes || l(E),
|
|
294
|
-
"onUpdate:modelValue": (I) => ne(O, I)
|
|
295
|
-
}, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])
|
|
296
|
-
]),
|
|
297
|
-
_: 2
|
|
298
|
-
}, 1032, ["label"])
|
|
299
|
-
])
|
|
300
|
-
]),
|
|
301
|
-
c("div", $e, [
|
|
302
|
-
m(a, {
|
|
303
|
-
variant: l(q).Tertiary,
|
|
304
|
-
"prepend-icon": "delete",
|
|
305
|
-
onClick: (I) => ae(O)
|
|
306
|
-
}, null, 8, ["variant", "onClick"])
|
|
307
|
-
])
|
|
308
|
-
]),
|
|
309
|
-
_: 2
|
|
310
|
-
}, 1024))), 128)),
|
|
311
|
-
c("div", null, [
|
|
312
|
-
m(a, {
|
|
313
|
-
label: l(r)("menu.link_product.rules.add_rule"),
|
|
314
|
-
onClick: se
|
|
315
|
-
}, null, 8, ["label"])
|
|
316
|
-
])
|
|
317
|
-
], 64)) : M("", !0)
|
|
318
|
-
]))
|
|
319
|
-
]),
|
|
320
|
-
_: 1
|
|
321
|
-
}, 8, ["modelValue", "close-button", "is-container", "is-container-props", "onOn:clickedAway"])
|
|
322
|
-
], 64);
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
}), Ge = /* @__PURE__ */ Re(Le, [["__scopeId", "data-v-7d7fe73f"]]);
|
|
326
|
-
export {
|
|
327
|
-
E,
|
|
328
|
-
Ge as L,
|
|
329
|
-
Re as _,
|
|
330
|
-
T as a,
|
|
331
|
-
p as b,
|
|
332
|
-
N as c,
|
|
333
|
-
J as i,
|
|
334
|
-
H as u
|
|
335
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { type ComputedRef, type Ref } from "vue";
|
|
2
|
-
import { type MongoQuery } from "@feedmepos/custom-attributes";
|
|
3
|
-
type CustomAttribute = Record<string, any> | null | undefined;
|
|
4
|
-
export declare function useCustomAttributes(source: Ref<any[]> | ComputedRef<any[]>, entity: "restaurant" | "item" | "group", mapper?: (item: any) => CustomAttribute): {
|
|
5
|
-
attributes: ComputedRef<{
|
|
6
|
-
type: "string";
|
|
7
|
-
key: string;
|
|
8
|
-
entity: any;
|
|
9
|
-
values: string[];
|
|
10
|
-
}[]>;
|
|
11
|
-
filterRule: Ref<{
|
|
12
|
-
value: string | number | boolean | (string | number | boolean)[];
|
|
13
|
-
type: "string" | "number" | "date";
|
|
14
|
-
operator: "$eq" | "$ne" | "$gt" | "$gte" | "$lt" | "$lte" | "$in" | "$nin" | "$regex" | "$contains" | "$startsWith" | "$endsWith" | "$between";
|
|
15
|
-
property: string;
|
|
16
|
-
} | {
|
|
17
|
-
logic: "AND" | "OR";
|
|
18
|
-
rules: (any | {
|
|
19
|
-
value: string | number | boolean | (string | number | boolean)[];
|
|
20
|
-
type: "string" | "number" | "date";
|
|
21
|
-
operator: "$eq" | "$ne" | "$gt" | "$gte" | "$lt" | "$lte" | "$in" | "$nin" | "$regex" | "$contains" | "$startsWith" | "$endsWith" | "$between";
|
|
22
|
-
property: string;
|
|
23
|
-
})[];
|
|
24
|
-
} | null, {
|
|
25
|
-
value: string | number | boolean | (string | number | boolean)[];
|
|
26
|
-
type: "string" | "number" | "date";
|
|
27
|
-
operator: "$eq" | "$ne" | "$gt" | "$gte" | "$lt" | "$lte" | "$in" | "$nin" | "$regex" | "$contains" | "$startsWith" | "$endsWith" | "$between";
|
|
28
|
-
property: string;
|
|
29
|
-
} | import("@feedmepos/custom-attributes").FdoRuleGroup | {
|
|
30
|
-
value: string | number | boolean | (string | number | boolean)[];
|
|
31
|
-
type: "string" | "number" | "date";
|
|
32
|
-
operator: "$eq" | "$ne" | "$gt" | "$gte" | "$lt" | "$lte" | "$in" | "$nin" | "$regex" | "$contains" | "$startsWith" | "$endsWith" | "$between";
|
|
33
|
-
property: string;
|
|
34
|
-
} | {
|
|
35
|
-
logic: "AND" | "OR";
|
|
36
|
-
rules: (any | {
|
|
37
|
-
value: string | number | boolean | (string | number | boolean)[];
|
|
38
|
-
type: "string" | "number" | "date";
|
|
39
|
-
operator: "$eq" | "$ne" | "$gt" | "$gte" | "$lt" | "$lte" | "$in" | "$nin" | "$regex" | "$contains" | "$startsWith" | "$endsWith" | "$between";
|
|
40
|
-
property: string;
|
|
41
|
-
})[];
|
|
42
|
-
} | null>;
|
|
43
|
-
mongoQuery: Ref<{
|
|
44
|
-
[x: string]: any;
|
|
45
|
-
} | {
|
|
46
|
-
[x: string]: any;
|
|
47
|
-
$and: ({
|
|
48
|
-
[x: string]: any;
|
|
49
|
-
} | any | {
|
|
50
|
-
[x: string]: any;
|
|
51
|
-
$or: ({
|
|
52
|
-
[x: string]: any;
|
|
53
|
-
} | any | any)[];
|
|
54
|
-
})[];
|
|
55
|
-
} | {
|
|
56
|
-
[x: string]: any;
|
|
57
|
-
$or: ({
|
|
58
|
-
[x: string]: any;
|
|
59
|
-
} | {
|
|
60
|
-
[x: string]: any;
|
|
61
|
-
$and: ({
|
|
62
|
-
[x: string]: any;
|
|
63
|
-
} | any | any)[];
|
|
64
|
-
} | any)[];
|
|
65
|
-
}, MongoQuery<any> | {
|
|
66
|
-
[x: string]: any;
|
|
67
|
-
$and: ({
|
|
68
|
-
[x: string]: any;
|
|
69
|
-
} | any | {
|
|
70
|
-
[x: string]: any;
|
|
71
|
-
$or: ({
|
|
72
|
-
[x: string]: any;
|
|
73
|
-
} | any | any)[];
|
|
74
|
-
})[];
|
|
75
|
-
} | {
|
|
76
|
-
[x: string]: any;
|
|
77
|
-
$or: ({
|
|
78
|
-
[x: string]: any;
|
|
79
|
-
} | {
|
|
80
|
-
[x: string]: any;
|
|
81
|
-
$and: ({
|
|
82
|
-
[x: string]: any;
|
|
83
|
-
} | any | any)[];
|
|
84
|
-
} | any)[];
|
|
85
|
-
}>;
|
|
86
|
-
};
|
|
87
|
-
export declare const EMPTY_MONGO_QUERY: {
|
|
88
|
-
$and: never[];
|
|
89
|
-
};
|
|
90
|
-
export declare const EMPTY_RULE: {
|
|
91
|
-
logic: string;
|
|
92
|
-
rules: never[];
|
|
93
|
-
};
|
|
94
|
-
export declare function isEmptyMongoQuery(query: MongoQuery<any>): boolean;
|
|
95
|
-
export declare function isEmptyRule(rule: any): boolean;
|
|
96
|
-
export {};
|
|
File without changes
|
|
File without changes
|