@feedmepos/mf-menu 0.31.41-prod → 0.31.42-beta.1
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-5Lzy8zHZ.js → App-MvPYtVsp.js} +9 -9
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BnKXsQH-.js → ApplyProduct.vue_vue_type_script_setup_true_lang-vgbLCl1C.js} +3 -3
- package/dist/{Catalog-s5b8V8nw.js → Catalog-COgnJbIi.js} +6 -6
- package/dist/{Category-DZ-xqIMI.js → Category-C368SxNw.js} +6 -6
- package/dist/{Category-BJzScJEY.js → Category-CaTIfBUD.js} +4 -4
- package/dist/{CookingGuide-Bkd6GPww.js → CookingGuide-SO_QQO52.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-B8tIjKOW.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CuyxFn2S.js} +1 -1
- package/dist/{Group-0b2Qiov3.js → Group-BWC3npea.js} +1 -1
- package/dist/{Group-BOaCcKiI.js → Group-BxTAQbtR.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DUlUfMAs.js → Group.vue_vue_type_script_setup_true_lang-DLbPvenM.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CouimeC4.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-z2Y6ItDw.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DOvQmbrZ.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-WUCBkpVu.js} +7 -7
- package/dist/{Ingredient-ChcYUvOg.js → Ingredient-CuPXOIX3.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DE1HkipX.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BFH_fpRO.js} +2 -2
- package/dist/{LinkProductSideSheet-BdzBGYxG.js → LinkProductSideSheet-Cxk_2rnh.js} +3 -3
- package/dist/{MenuSetting-zAAttaoA.js → MenuSetting-B_1VeBa9.js} +5 -5
- package/dist/{PrintRoute-T-vuO5N8.js → PrintRoute-CMaQII7S.js} +4 -4
- package/dist/{Product-B5q291VF.js → Product-BenbW5Z0.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DLRlT10W.js → Product.vue_vue_type_script_setup_true_lang-DPyTwkJQ.js} +13 -13
- package/dist/{ProductInternalTools-BOlc0VUR.js → ProductInternalTools-PEmqehDz.js} +6 -6
- package/dist/{Products-Cd4Mqhm3.js → Products-BHOUI25b.js} +11 -11
- package/dist/{Publish-SuRzt-_D.js → Publish-Djy7EeWW.js} +3 -3
- package/dist/{Recipe-BKrjNs5g.js → Recipe-C6AduV1r.js} +4 -4
- package/dist/{Scheduler-DnDgImLC.js → Scheduler-Dy4Wu0Y_.js} +3 -3
- package/dist/{ServingSequence-D602bVnm.js → ServingSequence-CZ_9SHbt.js} +3 -3
- package/dist/{Setting-FMT4oBYH.js → Setting-BXi6s1tJ.js} +5 -5
- package/dist/{Subcategory-CpYmjAvA.js → Subcategory-B1MoNfVq.js} +4 -4
- package/dist/{Takeaway-BXh3iuME.js → Takeaway-CEpx7qTF.js} +1 -1
- package/dist/{Takeaway-D4hjN5z5.js → Takeaway-DlhbFTK-.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-By1f-FCO.js → Takeaway.vue_vue_type_script_setup_true_lang-Dpj3Z571.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CZUwa5C_.js → Thumbnail.vue_vue_type_script_setup_true_lang-BIzJdMvK.js} +55 -59
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DfjtfcCh.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-FrnyUqAP.js} +15 -15
- package/dist/{Unit-CsjHkV-h.js → Unit-BNMNbV2J.js} +2 -2
- package/dist/{Variant-Djra14ZX.js → Variant-DxgWsRhC.js} +3 -3
- package/dist/{_id_-BXkqoCzB.js → _id_-jqJ8RGIS.js} +10 -10
- package/dist/{app-CVqWWV4x.js → app-Cns8uf2V.js} +25 -25
- package/dist/{app-PhBJNss_.js → app-e3enRkS7.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-WlVAcpRn.js → linked-status-LmpAmr6u.js} +2 -2
- package/dist/assets/{override-menu-__h4D7ac.js → override-menu-CbK_UbEy.js} +2 -2
- package/dist/assets/{validate-menu-DyPuzLRg.js → validate-menu-YNxAmeAH.js} +2 -2
- package/dist/{catalog-C_TuQLxq.js → catalog-DHUtN-ov.js} +1 -1
- package/dist/{catalogSetting-BUlJu6hG.js → catalogSetting-DnbPBXJL.js} +1 -1
- package/dist/{category-CmVw1Kj-.js → category-DnkR4Kxb.js} +1 -1
- package/dist/{currency-OhOTnAqk.js → currency-y91C94RL.js} +1 -1
- package/dist/{customAttributes-fpOfmGnw.js → customAttributes-BlQiasmR.js} +1 -1
- package/dist/{dayjs.min-CDhP-7L5.js → dayjs.min-BoKU-_PN.js} +1 -1
- package/dist/{index-BJZEWB5C.js → index-B6RaFYi5.js} +4 -4
- package/dist/{index-N3cGc8ex.js → index-BvgQj-Db.js} +1 -1
- package/dist/{index-DHAYGEPp.js → index-HDlVyrao.js} +3 -3
- package/dist/{index-DtwHmS38.js → index-f3712SSa.js} +1 -1
- package/dist/{item-BELLphR0.js → item-U7TO70ts.js} +386 -386
- package/dist/{jszip.min-CZtcGb7A.js → jszip.min-Bu5n6Yjn.js} +2 -2
- package/dist/{menu-DS_ERmBf.js → menu-WXpWsbdF.js} +7 -7
- package/dist/{menu-Csyr6W9A.js → menu-yKG20TgQ.js} +1 -1
- package/dist/{menuV2-DKzAZ4Ss.js → menuV2-BpxuW1sz.js} +51 -51
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +121 -0
- package/dist/{priceTier-CYWS5lDS.js → priceTier-JPMJLhms.js} +1 -1
- package/dist/{scheduler-DI5dXC7Y.js → scheduler-DLuoxxo3.js} +4 -4
- package/dist/{subcategory-D_ao-IV9.js → subcategory-DJCFfkdW.js} +2 -2
- package/dist/{toExcel-Cml-rkJQ.js → toExcel-BzOLr8yM.js} +2 -2
- package/dist/{unit-BWDp2LkV.js → unit-DSl4hpLy.js} +2 -2
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ao as
|
|
1
|
+
import { ao as z, H as k, D as I, A as J, ap as q, J as U, I as Y, a9 as w, c as N, X as E, aj as B, aq as Me, ar as Ee, B as ke, ab as Ie, as as Re, at as Te, a8 as Fe } from "./menu-WXpWsbdF.js";
|
|
2
2
|
import { defineStore as Ae } from "pinia";
|
|
3
|
-
import { shallowRef as X, ref as D, computed as h, shallowReactive as
|
|
4
|
-
import { useCoreStore as
|
|
5
|
-
import { useSnackbar as
|
|
6
|
-
const Ne = "/assets/linked-status-
|
|
3
|
+
import { shallowRef as X, ref as D, computed as h, shallowReactive as Ke, effectScope as Pe, watch as Oe } from "vue";
|
|
4
|
+
import { useCoreStore as L } from "@feedmepos/mf-common";
|
|
5
|
+
import { useSnackbar as Ve } from "@feedmepos/ui-library";
|
|
6
|
+
const Ne = "/assets/linked-status-LmpAmr6u.js", xe = "/assets/override-menu-CbK_UbEy.js";
|
|
7
7
|
function $e(e) {
|
|
8
8
|
var a;
|
|
9
|
-
const n =
|
|
9
|
+
const n = k(e), o = (a = n.variant) == null ? void 0 : a.variantCombinations;
|
|
10
10
|
return delete n.variant, delete n.thumbnail, [n, ...o || []];
|
|
11
11
|
}
|
|
12
12
|
function Ue(e, n, o, a) {
|
|
13
|
-
const r =
|
|
13
|
+
const r = k(n), l = o ? r.modules.catalog.find((_) => _._id === o) : null, d = a ? r.modules.scheduler.find((_) => _._id === a) : null, i = l ? k(l) : void 0, c = o ? r.modules.catalog.filter((_) => _._id !== o) : [], m = d ? k(d) : void 0, f = e.reduce((_, y) => (_[y._id] = $e(y), _), {});
|
|
14
14
|
function v(_ = []) {
|
|
15
15
|
const y = e.map((C) => C._id);
|
|
16
16
|
return [
|
|
@@ -59,7 +59,7 @@ function T(e, n, o) {
|
|
|
59
59
|
return i ? c = ((f = d.items) == null ? void 0 : f.map((_) => {
|
|
60
60
|
var C;
|
|
61
61
|
const y = (C = i.items) == null ? void 0 : C.find(
|
|
62
|
-
(
|
|
62
|
+
(R) => R._id === _._id && R.combinationKey === _.combinationKey
|
|
63
63
|
);
|
|
64
64
|
return T(y || _, n, o + 1);
|
|
65
65
|
})) ?? [] : c = ((v = d.items) == null ? void 0 : v.map((_) => T(_, n, o + 1))) ?? [], {
|
|
@@ -85,7 +85,7 @@ function De(e, n) {
|
|
|
85
85
|
if (m)
|
|
86
86
|
return T(m, n, 1);
|
|
87
87
|
const f = {
|
|
88
|
-
...
|
|
88
|
+
...I.generator.initMenuV4ItemOverrider(),
|
|
89
89
|
_id: c._id,
|
|
90
90
|
combinationKey: c.combinationKey
|
|
91
91
|
};
|
|
@@ -93,7 +93,7 @@ function De(e, n) {
|
|
|
93
93
|
});
|
|
94
94
|
return { ...l, items: i };
|
|
95
95
|
}), a = e.variant ? e.variant.variantCombinations.map((l) => T(l, n, 1)) : [], r = {
|
|
96
|
-
...
|
|
96
|
+
...I.generator.initMenuV4ItemOverrider(),
|
|
97
97
|
_id: e._id,
|
|
98
98
|
name: e.name,
|
|
99
99
|
code: e.code,
|
|
@@ -150,10 +150,10 @@ function He(e, n) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
async function et(e, n, o, a, r, l = !0) {
|
|
153
|
-
const d =
|
|
153
|
+
const d = k(o), i = l ? Ue(n, d, a, r) : d, c = n.reduce((v, _) => (v[_._id] = i.modules.item.find((y) => y._id === _._id), v), {}), m = n.reduce((v, _) => {
|
|
154
154
|
const y = _._id;
|
|
155
155
|
return v[y] = De(c[y], e), v;
|
|
156
|
-
}, {}), f =
|
|
156
|
+
}, {}), f = I.getFallbackPrices({
|
|
157
157
|
rawMenu: i,
|
|
158
158
|
items: m,
|
|
159
159
|
catalogId: a || void 0,
|
|
@@ -185,7 +185,7 @@ async function nt(e, n) {
|
|
|
185
185
|
const o = `${e._id}-${e.updatedAt}-${n}`;
|
|
186
186
|
if (x.has(o))
|
|
187
187
|
return x.get(o);
|
|
188
|
-
const a = await
|
|
188
|
+
const a = await z(
|
|
189
189
|
Ne,
|
|
190
190
|
JSON.stringify({
|
|
191
191
|
menu: e,
|
|
@@ -195,7 +195,7 @@ async function nt(e, n) {
|
|
|
195
195
|
return x.set(o, a), a;
|
|
196
196
|
}
|
|
197
197
|
async function Q(e, n, o) {
|
|
198
|
-
return await
|
|
198
|
+
return await z(xe, {
|
|
199
199
|
menu: e,
|
|
200
200
|
catalogId: n,
|
|
201
201
|
schedulerId: o
|
|
@@ -232,7 +232,7 @@ function ot(e, n, o) {
|
|
|
232
232
|
return r(n, o);
|
|
233
233
|
}
|
|
234
234
|
const $ = /* @__PURE__ */ new Map();
|
|
235
|
-
async function
|
|
235
|
+
async function Ge(e, n, o) {
|
|
236
236
|
const a = `${e._id}-${e.updatedAt}-${n || "null"}-${o || "null"}`;
|
|
237
237
|
if ($.has(a))
|
|
238
238
|
return $.get(a);
|
|
@@ -241,8 +241,8 @@ async function We(e, n, o) {
|
|
|
241
241
|
}
|
|
242
242
|
async function st(e, n, o) {
|
|
243
243
|
var d, i;
|
|
244
|
-
const a = await
|
|
245
|
-
const f =
|
|
244
|
+
const a = await Ge(e, n, null), r = [], l = (c, m) => {
|
|
245
|
+
const f = k(c);
|
|
246
246
|
for (const v in m)
|
|
247
247
|
m[v] && (f[v] = m[v]);
|
|
248
248
|
return f;
|
|
@@ -253,9 +253,9 @@ async function st(e, n, o) {
|
|
|
253
253
|
const v = (i = c.items) == null ? void 0 : i.filter((y) => y._id === o && y.combinationKey), _ = [m, ...v].map((y) => {
|
|
254
254
|
var F, A;
|
|
255
255
|
const C = y.combinationKey ? (A = (F = f == null ? void 0 : f.variant) == null ? void 0 : F.variantCombinations) == null ? void 0 : A.find(
|
|
256
|
-
(
|
|
257
|
-
) : f,
|
|
258
|
-
return l(
|
|
256
|
+
(K) => K.combinationKey === y.combinationKey
|
|
257
|
+
) : f, R = C && f ? l(f, C) : y;
|
|
258
|
+
return l(R, y);
|
|
259
259
|
});
|
|
260
260
|
r.push({
|
|
261
261
|
group: c,
|
|
@@ -265,7 +265,7 @@ async function st(e, n, o) {
|
|
|
265
265
|
}
|
|
266
266
|
return r;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function We({
|
|
269
269
|
maxHistorySize: e = 50
|
|
270
270
|
}) {
|
|
271
271
|
const n = X([]), o = D(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
|
|
@@ -345,7 +345,7 @@ function qe() {
|
|
|
345
345
|
const at = Ae(
|
|
346
346
|
"mf-menu-store-v2",
|
|
347
347
|
() => {
|
|
348
|
-
const e =
|
|
348
|
+
const e = Ke(qe()), n = L(), o = Ve(), a = h(() => e.menu.modules.serveSequence ? w(e.menu.modules.serveSequence, {
|
|
349
349
|
selector: "position"
|
|
350
350
|
}) : []), r = h(() => {
|
|
351
351
|
var t;
|
|
@@ -358,7 +358,7 @@ const at = Ae(
|
|
|
358
358
|
let t = e.menu.modules.catalog.find(
|
|
359
359
|
(u) => u._id === e.currentCatalogId
|
|
360
360
|
);
|
|
361
|
-
return t && ((s = t.linkItemRules) != null && s.length) && (t =
|
|
361
|
+
return t && ((s = t.linkItemRules) != null && s.length) && (t = I.populateCatalog({
|
|
362
362
|
catalog: t,
|
|
363
363
|
ruleGroupSettings: e.menu.ruleGroupSettings,
|
|
364
364
|
items: e.menu.modules.item,
|
|
@@ -376,7 +376,7 @@ const at = Ae(
|
|
|
376
376
|
_.value = !0;
|
|
377
377
|
let t = e.menu.modules.catalog;
|
|
378
378
|
if (i.value && ((u = i.value.linkItemRules) != null && u.length)) {
|
|
379
|
-
const p =
|
|
379
|
+
const p = I.populateCatalog({
|
|
380
380
|
catalog: i.value,
|
|
381
381
|
ruleGroupSettings: e.menu.ruleGroupSettings,
|
|
382
382
|
items: e.menu.modules.item,
|
|
@@ -406,15 +406,15 @@ const at = Ae(
|
|
|
406
406
|
return v.value = s, _.value = !1, y.value = y.value + 1, s;
|
|
407
407
|
}
|
|
408
408
|
const F = Y.debounce(C, 200);
|
|
409
|
-
|
|
410
|
-
|
|
409
|
+
Pe(!0).run(() => {
|
|
410
|
+
Oe(
|
|
411
411
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
412
412
|
() => {
|
|
413
413
|
_.value || F();
|
|
414
414
|
}
|
|
415
415
|
);
|
|
416
416
|
});
|
|
417
|
-
const
|
|
417
|
+
const K = h(() => [
|
|
418
418
|
{
|
|
419
419
|
label: "Main",
|
|
420
420
|
value: null
|
|
@@ -423,10 +423,10 @@ const at = Ae(
|
|
|
423
423
|
label: t.name,
|
|
424
424
|
value: t._id
|
|
425
425
|
}))
|
|
426
|
-
]),
|
|
426
|
+
]), G = h(() => {
|
|
427
427
|
const t = v.value.modules.category;
|
|
428
428
|
return [
|
|
429
|
-
...
|
|
429
|
+
...O.value.item.addon ? [
|
|
430
430
|
{
|
|
431
431
|
_id: e.currentCatalogId ? "" : null,
|
|
432
432
|
name: "Addon",
|
|
@@ -438,7 +438,7 @@ const at = Ae(
|
|
|
438
438
|
}), ee = h(() => {
|
|
439
439
|
const t = v.value.modules.subCategory || [];
|
|
440
440
|
return E(t, (s) => s.name);
|
|
441
|
-
}),
|
|
441
|
+
}), W = h(() => {
|
|
442
442
|
var s;
|
|
443
443
|
let t = v.value.modules.item;
|
|
444
444
|
if (i.value) {
|
|
@@ -461,8 +461,8 @@ const at = Ae(
|
|
|
461
461
|
u,
|
|
462
462
|
(p) => p.code || p.name
|
|
463
463
|
).reduce((p, g, S) => (p[g._id] = S + s[g.category || ""], p), {});
|
|
464
|
-
}), ne = h(() => B(
|
|
465
|
-
const t =
|
|
464
|
+
}), ne = h(() => B(P.value, G.value, W.value)), re = h(() => {
|
|
465
|
+
const t = O.value.item.addon ? [
|
|
466
466
|
{
|
|
467
467
|
_id: e.currentCatalogId ? "" : null,
|
|
468
468
|
name: "Addon",
|
|
@@ -475,13 +475,13 @@ const at = Ae(
|
|
|
475
475
|
t,
|
|
476
476
|
e.menu.modules.item
|
|
477
477
|
);
|
|
478
|
-
}),
|
|
478
|
+
}), P = h(() => {
|
|
479
479
|
const t = v.value.modules.variant;
|
|
480
480
|
return w(t, { selector: "name" });
|
|
481
481
|
});
|
|
482
482
|
function oe(t = []) {
|
|
483
|
-
const s = t.map((p) =>
|
|
484
|
-
return
|
|
483
|
+
const s = t.map((p) => P.value.find((g) => g._id === p)).filter((p) => !!p);
|
|
484
|
+
return I.fullVariantCombination(s).reduce((p, g) => (p[g.combinationKey] = g.selectionName.join(" / "), p), {});
|
|
485
485
|
}
|
|
486
486
|
const se = h(() => E(v.value.modules.group, (t) => t.name)), ae = h(() => w(v.value.modules.takeaway, { selector: "name" })), ue = h(() => w(e.menu.modules.printDepartment || [], {
|
|
487
487
|
selector: "name"
|
|
@@ -490,7 +490,7 @@ const at = Ae(
|
|
|
490
490
|
})), le = h(() => e.menu.modules.cookingGuide), de = h(() => {
|
|
491
491
|
const t = Ee(e.menu.modules.sku);
|
|
492
492
|
return w(t, { selector: "code" });
|
|
493
|
-
}),
|
|
493
|
+
}), O = h(() => {
|
|
494
494
|
const t = !e.currentCatalogId, s = r.value === N.F_MENU_VERSION.v4, u = !e.currentSchedulerId, p = {
|
|
495
495
|
create: t && u,
|
|
496
496
|
edit: t && u,
|
|
@@ -559,7 +559,7 @@ const at = Ae(
|
|
|
559
559
|
}
|
|
560
560
|
};
|
|
561
561
|
});
|
|
562
|
-
function
|
|
562
|
+
function V(t) {
|
|
563
563
|
return `${t.systemCode}/${t.taxCode}`;
|
|
564
564
|
}
|
|
565
565
|
function me(t) {
|
|
@@ -567,15 +567,15 @@ const at = Ae(
|
|
|
567
567
|
return { systemCode: s, taxCode: u };
|
|
568
568
|
}
|
|
569
569
|
function fe(t, s, u) {
|
|
570
|
-
return (t ?? s ?? []).map((p) =>
|
|
570
|
+
return (t ?? s ?? []).map((p) => V(p)).find((p) => u.some((g) => g.value === p));
|
|
571
571
|
}
|
|
572
572
|
const pe = h(() => {
|
|
573
573
|
var p;
|
|
574
|
-
const t = ["SV5", "SV10"], s =
|
|
575
|
-
|
|
574
|
+
const t = ["SV5", "SV10"], s = ke.Country.getCountryFlattenTaxes(
|
|
575
|
+
L().currentCountry.value
|
|
576
576
|
), u = s.filter((g) => l.value || !t.includes(g.taxCode)).map((g) => ({
|
|
577
|
-
label: `${g.name} (${
|
|
578
|
-
value:
|
|
577
|
+
label: `${g.name} (${Ie(g.rate)}%)`,
|
|
578
|
+
value: V(g),
|
|
579
579
|
meta: {
|
|
580
580
|
rate: g.rate
|
|
581
581
|
}
|
|
@@ -614,7 +614,7 @@ const at = Ae(
|
|
|
614
614
|
if (s || p.some(
|
|
615
615
|
(S) => [U.F_OPERATION_TYPE.delete, U.F_OPERATION_TYPE.deleteMany].includes(S.operation)
|
|
616
616
|
)) {
|
|
617
|
-
const S = await
|
|
617
|
+
const S = await Re(p, e.menu.modules);
|
|
618
618
|
if (S !== !0) throw new Error(S);
|
|
619
619
|
}
|
|
620
620
|
const g = await je.updateMenuModule(e.menu, p);
|
|
@@ -634,7 +634,7 @@ const at = Ae(
|
|
|
634
634
|
priceTierSettings: t.priceTierSettings
|
|
635
635
|
};
|
|
636
636
|
return f(s), s;
|
|
637
|
-
}, M =
|
|
637
|
+
}, M = We({ maxHistorySize: 50 }), be = h(() => M.canUndo.value), we = h(() => M.canRedo.value);
|
|
638
638
|
return {
|
|
639
639
|
state: e,
|
|
640
640
|
// loading state
|
|
@@ -650,14 +650,14 @@ const at = Ae(
|
|
|
650
650
|
currentCatalog: i,
|
|
651
651
|
schedulers: c,
|
|
652
652
|
currentScheduler: m,
|
|
653
|
-
catalogOptions:
|
|
654
|
-
categories:
|
|
653
|
+
catalogOptions: K,
|
|
654
|
+
categories: G,
|
|
655
655
|
subcategories: ee,
|
|
656
|
-
items:
|
|
656
|
+
items: W,
|
|
657
657
|
sortedItems: te,
|
|
658
658
|
categorizedItems: ne,
|
|
659
659
|
categorizedRawMenuItems: re,
|
|
660
|
-
variants:
|
|
660
|
+
variants: P,
|
|
661
661
|
groups: se,
|
|
662
662
|
takeaways: ae,
|
|
663
663
|
printDepartments: ue,
|
|
@@ -665,7 +665,7 @@ const at = Ae(
|
|
|
665
665
|
recipes: ce,
|
|
666
666
|
cookingGuide: le,
|
|
667
667
|
skus: de,
|
|
668
|
-
rules:
|
|
668
|
+
rules: O,
|
|
669
669
|
taxSetting: pe,
|
|
670
670
|
// Action
|
|
671
671
|
setMenu: f,
|
|
@@ -679,7 +679,7 @@ const at = Ae(
|
|
|
679
679
|
updateMenuSetting: Ce,
|
|
680
680
|
computeMergedMenu: C,
|
|
681
681
|
// helper
|
|
682
|
-
encodeTax:
|
|
682
|
+
encodeTax: V,
|
|
683
683
|
decodeTax: me,
|
|
684
684
|
getSelectedTax: fe,
|
|
685
685
|
mapVariant: oe,
|
|
@@ -707,6 +707,6 @@ export {
|
|
|
707
707
|
st as f,
|
|
708
708
|
tt as g,
|
|
709
709
|
et as m,
|
|
710
|
-
|
|
710
|
+
Ge as o,
|
|
711
711
|
at as u
|
|
712
712
|
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export interface BaseOption {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export interface SelectFilterOption {
|
|
5
|
+
label: string;
|
|
6
|
+
value: any;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
export interface Props {
|
|
10
|
+
/** Items to show in the menu (must contain label & value) */
|
|
11
|
+
items: SelectFilterOption[];
|
|
12
|
+
/** v-model value (single or multiple depending on `multiple`) */
|
|
13
|
+
modelValue?: any | any[] | null;
|
|
14
|
+
/** Enable multi-select */
|
|
15
|
+
multiple?: boolean;
|
|
16
|
+
/** Placeholder text when nothing selected */
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/** Search input placeholder */
|
|
19
|
+
searchPlaceholder?: string;
|
|
20
|
+
/** Disable the whole control */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** Visual variant */
|
|
23
|
+
variant?: "default" | "dark";
|
|
24
|
+
/** Allow clearing selection with clear button (single only currently) */
|
|
25
|
+
clearable?: boolean;
|
|
26
|
+
/** Show search box */
|
|
27
|
+
searchable?: boolean;
|
|
28
|
+
/** Auto select first option when available */
|
|
29
|
+
autoSelectFirst?: boolean;
|
|
30
|
+
/** Custom icon for chip */
|
|
31
|
+
chipIcon?: string;
|
|
32
|
+
/** If true and multiple, show an All toggle entry */
|
|
33
|
+
showSelectAll?: boolean;
|
|
34
|
+
/** Max height for options scroll area */
|
|
35
|
+
maxHeight?: string | number;
|
|
36
|
+
/** When user selected some items, we should display like "selectedPrefix: <count>" */
|
|
37
|
+
selectedPrefix?: string;
|
|
38
|
+
}
|
|
39
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
40
|
+
items: () => never[];
|
|
41
|
+
multiple: boolean;
|
|
42
|
+
placeholder: string;
|
|
43
|
+
searchPlaceholder: string;
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
variant: string;
|
|
46
|
+
clearable: boolean;
|
|
47
|
+
searchable: boolean;
|
|
48
|
+
autoSelectFirst: boolean;
|
|
49
|
+
chipIcon: string;
|
|
50
|
+
showSelectAll: boolean;
|
|
51
|
+
maxHeight: number;
|
|
52
|
+
selectedPrefix: string;
|
|
53
|
+
}>>, {
|
|
54
|
+
open: () => void | undefined;
|
|
55
|
+
close: () => void | undefined;
|
|
56
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
57
|
+
"update:modelValue": (value: any) => void;
|
|
58
|
+
change: (value: any) => void;
|
|
59
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
60
|
+
items: () => never[];
|
|
61
|
+
multiple: boolean;
|
|
62
|
+
placeholder: string;
|
|
63
|
+
searchPlaceholder: string;
|
|
64
|
+
disabled: boolean;
|
|
65
|
+
variant: string;
|
|
66
|
+
clearable: boolean;
|
|
67
|
+
searchable: boolean;
|
|
68
|
+
autoSelectFirst: boolean;
|
|
69
|
+
chipIcon: string;
|
|
70
|
+
showSelectAll: boolean;
|
|
71
|
+
maxHeight: number;
|
|
72
|
+
selectedPrefix: string;
|
|
73
|
+
}>>> & Readonly<{
|
|
74
|
+
onChange?: ((value: any) => any) | undefined;
|
|
75
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
76
|
+
}>, {
|
|
77
|
+
disabled: boolean;
|
|
78
|
+
variant: "default" | "dark";
|
|
79
|
+
items: SelectFilterOption[];
|
|
80
|
+
placeholder: string;
|
|
81
|
+
maxHeight: string | number;
|
|
82
|
+
searchable: boolean;
|
|
83
|
+
clearable: boolean;
|
|
84
|
+
multiple: boolean;
|
|
85
|
+
searchPlaceholder: string;
|
|
86
|
+
autoSelectFirst: boolean;
|
|
87
|
+
chipIcon: string;
|
|
88
|
+
showSelectAll: boolean;
|
|
89
|
+
selectedPrefix: string;
|
|
90
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
91
|
+
"menu-button"?(_: {}): any;
|
|
92
|
+
option?(_: {
|
|
93
|
+
option: SelectFilterOption;
|
|
94
|
+
selected: boolean;
|
|
95
|
+
toggle: () => void;
|
|
96
|
+
}): any;
|
|
97
|
+
"append-right"?(_: {}): any;
|
|
98
|
+
}>;
|
|
99
|
+
export default _default;
|
|
100
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
101
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
102
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
103
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
104
|
+
} : {
|
|
105
|
+
type: import('vue').PropType<T[K]>;
|
|
106
|
+
required: true;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
type __VLS_WithDefaults<P, D> = {
|
|
110
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
111
|
+
default: D[K];
|
|
112
|
+
}> : P[K];
|
|
113
|
+
};
|
|
114
|
+
type __VLS_Prettify<T> = {
|
|
115
|
+
[K in keyof T]: T[K];
|
|
116
|
+
} & {};
|
|
117
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
118
|
+
new (): {
|
|
119
|
+
$slots: S;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
|
|
2
2
|
import { useI18n as m } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as k, G as M } from "./menu-
|
|
4
|
+
import { u as k, G as M } from "./menu-WXpWsbdF.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as L, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
|
|
2
|
-
import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-
|
|
2
|
+
import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-WXpWsbdF.js";
|
|
3
3
|
import { useI18n as de } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as _e } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ne, a as fe } from "./customAttributes-
|
|
5
|
+
import { _ as ne, a as fe } from "./customAttributes-BlQiasmR.js";
|
|
6
6
|
import { u as ye } from "./discardConfirm-BHni0LNu.js";
|
|
7
|
-
import { u as he } from "./menu-
|
|
8
|
-
import { L as ge } from "./LinkProductSideSheet-
|
|
7
|
+
import { u as he } from "./menu-yKG20TgQ.js";
|
|
8
|
+
import { L as ge } from "./LinkProductSideSheet-Cxk_2rnh.js";
|
|
9
9
|
const Ve = { class: "space-y-8" }, Fe = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "space-y-16"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as A, unref as c, withCtx as C, createVNode as V } from "vue";
|
|
2
|
-
import { J as l, A as d, u as F } from "./menu-
|
|
2
|
+
import { J as l, A as d, u as F } from "./menu-WXpWsbdF.js";
|
|
3
3
|
import { useI18n as b } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as P } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as v } from "./menuV2-
|
|
5
|
+
import { u as v } from "./menuV2-BpxuW1sz.js";
|
|
6
6
|
const y = /* @__PURE__ */ M({
|
|
7
7
|
__name: "AddSubcategoryDialogContentComponent",
|
|
8
8
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-WUCBkpVu.js";
|
|
2
|
+
import "./menu-WXpWsbdF.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineStore as J } from "pinia";
|
|
2
2
|
import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
-
import { a6 as P, a7 as te, a4 as B, H as k, O as $, G as I, D as E, a5 as ne, J as C, A as D, I as oe, u as ae } from "./menu-
|
|
3
|
+
import { a6 as P, a7 as te, a4 as B, H as k, O as $, G as I, D as E, a5 as ne, J as C, A as D, I as oe, u as ae } from "./menu-WXpWsbdF.js";
|
|
4
4
|
import { useI18n as L } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as se } from "./discardConfirm-BHni0LNu.js";
|
|
7
7
|
import { c as re } from "./check-C9mY6LiX.js";
|
|
8
8
|
import "./vuedraggable-CK8z7qA8.js";
|
|
9
9
|
import "./app-CiBqmBzO.js";
|
|
10
|
-
import "./menuV2-
|
|
10
|
+
import "./menuV2-BpxuW1sz.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|