@feedmepos/mf-menu 0.32.45-dev → 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-u5AOIdU4.js → App-DnmPW7GQ.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-RTdI8EVk.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BN_pomak.js} +3 -3
- package/dist/{Catalog-DDMz6wD9.js → Catalog-gxj-MZB8.js} +44 -44
- package/dist/{Category-DoIleKPb.js → Category-CqWHFR6I.js} +19 -19
- package/dist/{Category-BE0d0_de.js → Category-JHb56PfQ.js} +24 -24
- package/dist/{CookingGuide-iP5hFtlB.js → CookingGuide-DNMfIDDf.js} +105 -105
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CSaMT7Gr.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BYdToHa3.js} +1 -1
- package/dist/{Group-AXDRjsKC.js → Group-DXEgfQ_e.js} +3 -3
- package/dist/{Group-xjimyqnO.js → Group-bxjyN23A.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DB_X7ws3.js → Group.vue_vue_type_script_setup_true_lang-DPhYCl15.js} +19 -19
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D_IUSYDa.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DAsxXqGu.js} +30 -30
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Suib7m8i.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BuD8TeFi.js} +1991 -1990
- package/dist/{Ingredient-yr2DWIMw.js → Ingredient-BAnjcaO0.js} +20 -20
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BpiU1gRP.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CppjxcTA.js} +2 -2
- package/dist/{LinkProductSideSheet-2MbaATTn.js → LinkProductSideSheet-CvWcioxX.js} +45 -45
- package/dist/{MenuSetting-BhkjzPiN.js → MenuSetting-DCQM7rh6.js} +47 -47
- package/dist/{PrintRoute-ChqpbVo4.js → PrintRoute-Be0WG4oQ.js} +39 -39
- package/dist/{Product-BpnGnMzm.js → Product-DfYmo4vJ.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-COkk299w.js → Product.vue_vue_type_script_setup_true_lang-BsRZ0VVW.js} +93 -93
- package/dist/{ProductInternalTools-BEwLYcEn.js → ProductInternalTools-D2QTAjE7.js} +66 -66
- package/dist/{Products-lONe7x_i.js → Products-BhY4Cwaz.js} +42 -42
- package/dist/{Publish-CXRgBz-S.js → Publish-BfEtLeeh.js} +29 -29
- package/dist/{Recipe-Bbt3hG6N.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-DXisBADc.js → RuleView.vue_vue_type_script_setup_true_lang-CkpwtUSB.js} +2 -2
- package/dist/{Scheduler-DJsgP_Hi.js → Scheduler-CAUHWrZs.js} +11 -11
- package/dist/{ServingSequence-DALjVV2I.js → ServingSequence-D12rqxa8.js} +44 -44
- package/dist/{Setting-B23o5SoS.js → Setting-pJ06C7wS.js} +17 -17
- package/dist/{Subcategory-CS4MEgtM.js → Subcategory-Dfd-qx6m.js} +54 -54
- package/dist/{Takeaway-CI2Y-_LF.js → Takeaway-Bnat0taD.js} +13 -13
- package/dist/{Takeaway-D27iA6M6.js → Takeaway-Cv-kA3M_.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Ca3qK9zO.js → Takeaway.vue_vue_type_script_setup_true_lang-9aZi7wvY.js} +33 -33
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Da2jQE45.js → Thumbnail.vue_vue_type_script_setup_true_lang-C3Sk0LVd.js} +27 -27
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-DUScE-82.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-5RV7_0Wc.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-E3-hgVdd.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BBXAoJje.js} +5 -5
- package/dist/{TranslationViewChip.vue_vue_type_script_setup_true_lang-BlACWsDs.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-5pv3oxSc.js → Unit-DeegDDRz.js} +8 -8
- package/dist/{Variant-CTAI6p6r.js → Variant-D8WwGu3E.js} +14 -14
- package/dist/{_id_-D09xegPQ.js → _id_-BfOGbmqs.js} +28 -28
- package/dist/app-BmAr9vNI.js +2283 -0
- package/dist/{app-8-JCz9b5.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-dENy3aw3.js → linked-status-CxpcEFX9.js} +2 -2
- package/dist/assets/{menu-export-E9V7bg-T.js → menu-export-C09ZbTRq.js} +2 -2
- package/dist/assets/{override-menu-HaI7O9Fu.js → override-menu-0rFjySh6.js} +2 -2
- package/dist/assets/{validate-menu-C8LhbVSM.js → validate-menu-cO19zy8y.js} +2 -2
- package/dist/{catalog-DhXoYsFF.js → catalog-tNpB0Dhn.js} +1 -1
- package/dist/{catalogSetting-DyRqWzdW.js → catalogSetting-BRnA4v49.js} +1 -1
- package/dist/{currency-BkmIftYM.js → currency-CyKauaRc.js} +1 -1
- package/dist/dayjs.min-ipgoM27T.js +7 -0
- package/dist/{index-BQ95VVc6.js → index-BGm2uHNk.js} +31 -31
- package/dist/{index-BXWquw9Z.js → index-CXquA22H.js} +30 -30
- package/dist/{index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js → index.vue_vue_type_script_setup_true_lang-D6HyeIid.js} +6917 -6860
- package/dist/{item-DmTvGVsp.js → item-Cik-YX-L.js} +15 -15
- package/dist/{jszip.min-8Z5To_Pk.js → jszip.min-D22BefT1.js} +388 -387
- package/dist/{menu-Csu9X1_I.js → menu-ag-37Ofg.js} +1 -1
- package/dist/{menuV2-CC-vGiv5.js → menuV2-DZDWxmas.js} +135 -135
- package/dist/{priceTier-Bj9Y6SSr.js → priceTier-BmDl3J-3.js} +1 -1
- package/dist/{rules-Dod2cBHH.js → rules-pJdF9REd.js} +12 -12
- package/dist/{scheduler-B3M-715v.js → scheduler-DRHXK6kX.js} +29 -29
- package/dist/{toExcel-67ufpOxx.js → toExcel-5kDfvPVG.js} +2 -2
- package/dist/{unit-BQrnccs6.js → unit-CIlgFZ50.js} +35 -35
- package/package.json +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DnuNFxC7.js +0 -6130
- package/dist/app-Bk0DN7oZ.js +0 -363
- package/dist/dayjs.min-nQqVHQcC.js +0 -6
- package/dist/index-28XF3UnN.js +0 -246
package/dist/index-28XF3UnN.js
DELETED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { defineComponent as W, ref as A, resolveComponent as v, createElementBlock as E, openBlock as I, Fragment as B, createElementVNode as g, createVNode as c, normalizeClass as T, withCtx as _, toDisplayString as S, unref as i, h as G, watch as O, onMounted as K, nextTick as M, readonly as N, getCurrentInstance as U, getCurrentScope as L, onScopeDispose as $ } from "vue";
|
|
2
|
-
import { useI18n as q, useCustomAttributes as H, useCoreStore as J } from "@feedmepos/mf-common";
|
|
3
|
-
import { components as Q } from "@feedmepos/ui-library";
|
|
4
|
-
import { d as X, _ as k } from "./RuleView.vue_vue_type_script_setup_true_lang-DXisBADc.js";
|
|
5
|
-
const Y = {
|
|
6
|
-
class: /* @__PURE__ */ T(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap", "text-fm-color-neutral-gray-400"])
|
|
7
|
-
}, Z = {
|
|
8
|
-
class: "fm-typo-en-title-sm-600"
|
|
9
|
-
}, ee = {
|
|
10
|
-
class: "max-h-[60vh] flex-1 overflow-y-auto min-h-0"
|
|
11
|
-
}, me = /* @__PURE__ */ W({
|
|
12
|
-
__name: "RestaurantAttributesSelector",
|
|
13
|
-
props: {
|
|
14
|
-
fullWidth: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: !1
|
|
17
|
-
},
|
|
18
|
-
currentRestaurantAttrParams: {}
|
|
19
|
-
},
|
|
20
|
-
emits: ["confirm"],
|
|
21
|
-
setup(e, {
|
|
22
|
-
emit: n
|
|
23
|
-
}) {
|
|
24
|
-
const o = e, {
|
|
25
|
-
t
|
|
26
|
-
} = q(), {
|
|
27
|
-
attributes: r
|
|
28
|
-
} = H({
|
|
29
|
-
valueSource: J().restaurants,
|
|
30
|
-
entity: "restaurant"
|
|
31
|
-
}), {
|
|
32
|
-
restaurantAttributes: a
|
|
33
|
-
} = X(), y = [{
|
|
34
|
-
header: () => t("portalshell.customAttributes.form.key"),
|
|
35
|
-
accessorKey: "key",
|
|
36
|
-
enableSorting: !1
|
|
37
|
-
}, {
|
|
38
|
-
header: () => t("portalshell.customAttributes.form.value"),
|
|
39
|
-
accessorKey: "values",
|
|
40
|
-
enableSorting: !1,
|
|
41
|
-
cell: (f) => {
|
|
42
|
-
const s = f.row.original, u = s.values;
|
|
43
|
-
return G(Q.FmSelect, {
|
|
44
|
-
modelValue: s.value,
|
|
45
|
-
placeholder: t("portalshell.customAttributes.form.valuePlaceholder"),
|
|
46
|
-
items: u.map((l) => ({
|
|
47
|
-
label: l,
|
|
48
|
-
value: l
|
|
49
|
-
})),
|
|
50
|
-
clearable: !0,
|
|
51
|
-
searchable: !0,
|
|
52
|
-
"onUpdate:modelValue": (l) => s.value = l
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
}], m = n;
|
|
56
|
-
function b(f) {
|
|
57
|
-
return f.reduce((s, u) => (u.value != null && (s[u.key] = u.value), s), {});
|
|
58
|
-
}
|
|
59
|
-
const h = () => {
|
|
60
|
-
const f = r.value.filter((l) => l.value != null), s = a.value.filter((l) => l.value != null), u = {
|
|
61
|
-
restaurantCustomAttributes: b(f),
|
|
62
|
-
restaurantAttributes: b(s)
|
|
63
|
-
};
|
|
64
|
-
m("confirm", u), C();
|
|
65
|
-
}, p = A(!1);
|
|
66
|
-
function w() {
|
|
67
|
-
var u, l;
|
|
68
|
-
p.value = !0;
|
|
69
|
-
const f = ((u = o.currentRestaurantAttrParams) == null ? void 0 : u.restaurantCustomAttributes) ?? {};
|
|
70
|
-
r.value.forEach((d) => {
|
|
71
|
-
d.value = f[d.key] ?? void 0;
|
|
72
|
-
});
|
|
73
|
-
const s = ((l = o.currentRestaurantAttrParams) == null ? void 0 : l.restaurantAttributes) ?? {};
|
|
74
|
-
a.value.forEach((d) => {
|
|
75
|
-
d.value = s[d.key] ?? void 0;
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
function C() {
|
|
79
|
-
p.value = !1;
|
|
80
|
-
}
|
|
81
|
-
return (f, s) => {
|
|
82
|
-
const u = v("FmIcon"), l = v("FmChip"), d = v("FmTable"), V = v("FmSpacer"), F = v("fm-button"), j = v("FmDialog");
|
|
83
|
-
return I(), E(B, null, [g("div", {
|
|
84
|
-
class: "cursor-pointer",
|
|
85
|
-
onClick: w
|
|
86
|
-
}, [c(l, {
|
|
87
|
-
class: T([f.fullWidth ? "w-full justify-between" : ""])
|
|
88
|
-
}, {
|
|
89
|
-
default: _(() => [g("div", Y, S(i(t)("menu.catalog.form.restaurant_attributes_title")), 1), c(u, {
|
|
90
|
-
color: "neutral-gray-400",
|
|
91
|
-
name: "launch",
|
|
92
|
-
size: "sm"
|
|
93
|
-
})]),
|
|
94
|
-
_: 1
|
|
95
|
-
}, 8, ["class"])]), c(j, {
|
|
96
|
-
modelValue: p.value,
|
|
97
|
-
"onUpdate:modelValue": s[0] || (s[0] = (R) => p.value = R),
|
|
98
|
-
overlay: !0,
|
|
99
|
-
"min-width": "min(calc(100% - 48px), 560px)"
|
|
100
|
-
}, {
|
|
101
|
-
"dialog-header": _(() => [g("div", Z, S(i(t)("menu.catalog.form.restaurant_attributes_title")), 1)]),
|
|
102
|
-
"dialog-footer": _(() => [c(V), c(F, {
|
|
103
|
-
label: i(t)("menu.common.actions.confirm"),
|
|
104
|
-
size: "lg",
|
|
105
|
-
type: "submit",
|
|
106
|
-
variant: "primary",
|
|
107
|
-
onClick: h
|
|
108
|
-
}, null, 8, ["label"]), c(F, {
|
|
109
|
-
label: i(t)("menu.common.actions.cancel"),
|
|
110
|
-
size: "lg",
|
|
111
|
-
variant: "tertiary",
|
|
112
|
-
onClick: C
|
|
113
|
-
}, null, 8, ["label"])]),
|
|
114
|
-
default: _(() => [g("div", ee, [c(k, {
|
|
115
|
-
title: i(t)("menu.link_product.rules.restaurant_custom_attributes_filter")
|
|
116
|
-
}, {
|
|
117
|
-
default: _(() => [c(d, {
|
|
118
|
-
"column-defs": y,
|
|
119
|
-
"row-data": i(r),
|
|
120
|
-
"shrink-at": !1,
|
|
121
|
-
"page-size": i(r).length,
|
|
122
|
-
"hide-footer": ""
|
|
123
|
-
}, null, 8, ["row-data", "page-size"])]),
|
|
124
|
-
_: 1
|
|
125
|
-
}, 8, ["title"]), c(k, {
|
|
126
|
-
title: i(t)("menu.link_product.rules.restaurant_filter")
|
|
127
|
-
}, {
|
|
128
|
-
default: _(() => [c(d, {
|
|
129
|
-
"column-defs": y,
|
|
130
|
-
"row-data": i(a),
|
|
131
|
-
"shrink-at": !1,
|
|
132
|
-
"page-size": i(a).length,
|
|
133
|
-
"hide-footer": ""
|
|
134
|
-
}, null, 8, ["row-data", "page-size"])]),
|
|
135
|
-
_: 1
|
|
136
|
-
}, 8, ["title"])])]),
|
|
137
|
-
_: 1
|
|
138
|
-
}, 8, ["modelValue"])], 64);
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
function fe(e) {
|
|
143
|
-
return L() ? ($(e), !0) : !1;
|
|
144
|
-
}
|
|
145
|
-
function x(e) {
|
|
146
|
-
return typeof e == "function" ? e() : i(e);
|
|
147
|
-
}
|
|
148
|
-
const pe = typeof window < "u" && typeof document < "u";
|
|
149
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
150
|
-
const te = Object.prototype.toString, de = (e) => te.call(e) === "[object Object]", D = () => {
|
|
151
|
-
};
|
|
152
|
-
function P(e, n) {
|
|
153
|
-
function o(...t) {
|
|
154
|
-
return new Promise((r, a) => {
|
|
155
|
-
Promise.resolve(e(() => n.apply(this, t), { fn: n, thisArg: this, args: t })).then(r).catch(a);
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
return o;
|
|
159
|
-
}
|
|
160
|
-
const z = (e) => e();
|
|
161
|
-
function ne(e, n = {}) {
|
|
162
|
-
let o, t, r = D;
|
|
163
|
-
const a = (m) => {
|
|
164
|
-
clearTimeout(m), r(), r = D;
|
|
165
|
-
};
|
|
166
|
-
return (m) => {
|
|
167
|
-
const b = x(e), h = x(n.maxWait);
|
|
168
|
-
return o && a(o), b <= 0 || h !== void 0 && h <= 0 ? (t && (a(t), t = null), Promise.resolve(m())) : new Promise((p, w) => {
|
|
169
|
-
r = n.rejectOnCancel ? w : p, h && !t && (t = setTimeout(() => {
|
|
170
|
-
o && a(o), t = null, p(m());
|
|
171
|
-
}, h)), o = setTimeout(() => {
|
|
172
|
-
t && a(t), t = null, p(m());
|
|
173
|
-
}, b);
|
|
174
|
-
});
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
function oe(e = z) {
|
|
178
|
-
const n = A(!0);
|
|
179
|
-
function o() {
|
|
180
|
-
n.value = !1;
|
|
181
|
-
}
|
|
182
|
-
function t() {
|
|
183
|
-
n.value = !0;
|
|
184
|
-
}
|
|
185
|
-
const r = (...a) => {
|
|
186
|
-
n.value && e(...a);
|
|
187
|
-
};
|
|
188
|
-
return { isActive: N(n), pause: o, resume: t, eventFilter: r };
|
|
189
|
-
}
|
|
190
|
-
function re(e) {
|
|
191
|
-
return U();
|
|
192
|
-
}
|
|
193
|
-
function ae(e, n = 200, o = {}) {
|
|
194
|
-
return P(
|
|
195
|
-
ne(n, o),
|
|
196
|
-
e
|
|
197
|
-
);
|
|
198
|
-
}
|
|
199
|
-
function be(e, n = 200, o = {}) {
|
|
200
|
-
const t = A(e.value), r = ae(() => {
|
|
201
|
-
t.value = e.value;
|
|
202
|
-
}, n, o);
|
|
203
|
-
return O(e, () => r()), t;
|
|
204
|
-
}
|
|
205
|
-
function se(e, n, o = {}) {
|
|
206
|
-
const {
|
|
207
|
-
eventFilter: t = z,
|
|
208
|
-
...r
|
|
209
|
-
} = o;
|
|
210
|
-
return O(
|
|
211
|
-
e,
|
|
212
|
-
P(
|
|
213
|
-
t,
|
|
214
|
-
n
|
|
215
|
-
),
|
|
216
|
-
r
|
|
217
|
-
);
|
|
218
|
-
}
|
|
219
|
-
function he(e, n, o = {}) {
|
|
220
|
-
const {
|
|
221
|
-
eventFilter: t,
|
|
222
|
-
...r
|
|
223
|
-
} = o, { eventFilter: a, pause: y, resume: m, isActive: b } = oe(t);
|
|
224
|
-
return { stop: se(
|
|
225
|
-
e,
|
|
226
|
-
n,
|
|
227
|
-
{
|
|
228
|
-
...r,
|
|
229
|
-
eventFilter: a
|
|
230
|
-
}
|
|
231
|
-
), pause: y, resume: m, isActive: b };
|
|
232
|
-
}
|
|
233
|
-
function ve(e, n = !0, o) {
|
|
234
|
-
re() ? K(e, o) : n ? e() : M(e);
|
|
235
|
-
}
|
|
236
|
-
export {
|
|
237
|
-
me as _,
|
|
238
|
-
ve as a,
|
|
239
|
-
fe as b,
|
|
240
|
-
de as c,
|
|
241
|
-
pe as i,
|
|
242
|
-
D as n,
|
|
243
|
-
be as r,
|
|
244
|
-
x as t,
|
|
245
|
-
he as w
|
|
246
|
-
};
|