@feedmepos/mf-menu 0.31.41-beta.1 → 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.
Files changed (64) hide show
  1. package/dist/{App-VsIyQHXt.js → App-MvPYtVsp.js} +8 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CNGpNpet.js → ApplyProduct.vue_vue_type_script_setup_true_lang-vgbLCl1C.js} +3 -3
  3. package/dist/{Catalog-BE6kyZQ-.js → Catalog-COgnJbIi.js} +6 -6
  4. package/dist/{Category-CF3O0gMm.js → Category-C368SxNw.js} +6 -6
  5. package/dist/{Category-DxM4Tdca.js → Category-CaTIfBUD.js} +4 -4
  6. package/dist/{CookingGuide-BmWWW6tm.js → CookingGuide-SO_QQO52.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DWsHMnOM.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CuyxFn2S.js} +1 -1
  8. package/dist/{Group-DUCKmiji.js → Group-BWC3npea.js} +1 -1
  9. package/dist/{Group-BnC7jWVP.js → Group-BxTAQbtR.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-D3tXW_2y.js → Group.vue_vue_type_script_setup_true_lang-DLbPvenM.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-o911MWQf.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-z2Y6ItDw.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C4rc779s.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-WUCBkpVu.js} +7 -7
  13. package/dist/{Ingredient-DAyIe9Q1.js → Ingredient-CuPXOIX3.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-eS-s0QgZ.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BFH_fpRO.js} +2 -2
  15. package/dist/{LinkProductSideSheet-COcDiMw7.js → LinkProductSideSheet-Cxk_2rnh.js} +3 -3
  16. package/dist/{MenuSetting-CT9tX-2N.js → MenuSetting-B_1VeBa9.js} +5 -5
  17. package/dist/{PrintRoute-C7O0sEs_.js → PrintRoute-CMaQII7S.js} +4 -4
  18. package/dist/{Product-BNWXYnVV.js → Product-BenbW5Z0.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DhZRfiL4.js → Product.vue_vue_type_script_setup_true_lang-DPyTwkJQ.js} +13 -13
  20. package/dist/{ProductInternalTools-CjRPYRec.js → ProductInternalTools-PEmqehDz.js} +5 -5
  21. package/dist/{Products-BFeTZAoi.js → Products-BHOUI25b.js} +11 -11
  22. package/dist/{Publish-BFMGa2E4.js → Publish-Djy7EeWW.js} +3 -3
  23. package/dist/{Recipe-Dq4yitjf.js → Recipe-C6AduV1r.js} +4 -4
  24. package/dist/{Scheduler-kiXI87-F.js → Scheduler-Dy4Wu0Y_.js} +3 -3
  25. package/dist/{ServingSequence-D0gDdQAg.js → ServingSequence-CZ_9SHbt.js} +3 -3
  26. package/dist/{Setting-Cw7rM_Jr.js → Setting-BXi6s1tJ.js} +5 -5
  27. package/dist/{Subcategory-C_-BeqcX.js → Subcategory-B1MoNfVq.js} +4 -4
  28. package/dist/{Takeaway-D_fTseq7.js → Takeaway-CEpx7qTF.js} +1 -1
  29. package/dist/{Takeaway-Cav990d7.js → Takeaway-DlhbFTK-.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BnKljAAs.js → Takeaway.vue_vue_type_script_setup_true_lang-Dpj3Z571.js} +5 -5
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-BUHVSTUU.js → Thumbnail.vue_vue_type_script_setup_true_lang-BIzJdMvK.js} +55 -59
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DE7PZDc2.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-FrnyUqAP.js} +14 -14
  33. package/dist/{Unit-CIRNJWtP.js → Unit-BNMNbV2J.js} +2 -2
  34. package/dist/{Variant-I_e3I1XV.js → Variant-DxgWsRhC.js} +3 -3
  35. package/dist/{_id_-Cd-WJWQr.js → _id_-jqJ8RGIS.js} +10 -10
  36. package/dist/{app-D3ttvc-R.js → app-Cns8uf2V.js} +25 -25
  37. package/dist/{app-pKROfc2R.js → app-e3enRkS7.js} +1 -1
  38. package/dist/app.js +1 -1
  39. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/assets/{linked-status-Cy2fKPGe.js → linked-status-LmpAmr6u.js} +2 -2
  41. package/dist/assets/{override-menu-DXoRWnyk.js → override-menu-CbK_UbEy.js} +2 -2
  42. package/dist/assets/{validate-menu-BRvuKAH8.js → validate-menu-YNxAmeAH.js} +2 -2
  43. package/dist/{catalog-DIySflG6.js → catalog-DHUtN-ov.js} +1 -1
  44. package/dist/{catalogSetting-C-cosivV.js → catalogSetting-DnbPBXJL.js} +1 -1
  45. package/dist/{category-Dvd6Jqau.js → category-DnkR4Kxb.js} +1 -1
  46. package/dist/{currency-Dz4Y4r5t.js → currency-y91C94RL.js} +1 -1
  47. package/dist/{customAttributes-Bbb_cWrY.js → customAttributes-BlQiasmR.js} +1 -1
  48. package/dist/{dayjs.min-S18K9oD-.js → dayjs.min-BoKU-_PN.js} +1 -1
  49. package/dist/{index-C3-VvJZq.js → index-B6RaFYi5.js} +4 -4
  50. package/dist/{index-4DNMqDUx.js → index-BvgQj-Db.js} +1 -1
  51. package/dist/{index-x5UhSMtR.js → index-HDlVyrao.js} +3 -3
  52. package/dist/{index-CL_4wAig.js → index-f3712SSa.js} +1 -1
  53. package/dist/{item-BfZbksTv.js → item-U7TO70ts.js} +16 -16
  54. package/dist/{jszip.min-dJFvcOTj.js → jszip.min-Bu5n6Yjn.js} +2 -2
  55. package/dist/{menu-o5HPa3sO.js → menu-WXpWsbdF.js} +5 -5
  56. package/dist/{menu-gQpdDQ9v.js → menu-yKG20TgQ.js} +1 -1
  57. package/dist/{menuV2-xpV98zVy.js → menuV2-BpxuW1sz.js} +47 -47
  58. package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +121 -0
  59. package/dist/{priceTier-ClE-eIg9.js → priceTier-JPMJLhms.js} +1 -1
  60. package/dist/{scheduler-C_qZ2TtL.js → scheduler-DLuoxxo3.js} +4 -4
  61. package/dist/{subcategory-DX-sci7k.js → subcategory-DJCFfkdW.js} +2 -2
  62. package/dist/{toExcel-Dl_G_bgh.js → toExcel-BzOLr8yM.js} +2 -2
  63. package/dist/{unit-CBhjaNXg.js → unit-DSl4hpLy.js} +2 -2
  64. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
- import { ao as L, H as E, D as R, A as J, ap as q, J as U, I as X, a9 as w, c as N, X as k, aj as B, aq as Me, ar as ke, B as Ee, ab as Re, as as Ie, at as Te, a8 as Fe } from "./menu-o5HPa3sO.js";
2
- import { defineStore as Pe } from "pinia";
3
- import { shallowRef as Y, ref as D, computed as h, shallowReactive as Ae, effectScope as Ke, watch as Oe } from "vue";
4
- import { useCoreStore as z } from "@feedmepos/mf-common";
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
+ import { defineStore as Ae } from "pinia";
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
5
  import { useSnackbar as Ve } from "@feedmepos/ui-library";
6
- const Ne = "/assets/linked-status-Cy2fKPGe.js", xe = "/assets/override-menu-DXoRWnyk.js";
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 = E(e), o = (a = n.variant) == null ? void 0 : a.variantCombinations;
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 = E(n), l = o ? r.modules.catalog.find((_) => _._id === o) : null, d = a ? r.modules.scheduler.find((_) => _._id === a) : null, i = l ? E(l) : void 0, c = o ? r.modules.catalog.filter((_) => _._id !== o) : [], m = d ? E(d) : void 0, f = e.reduce((_, y) => (_[y._id] = $e(y), _), {});
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
- (I) => I._id === _._id && I.combinationKey === _.combinationKey
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
- ...R.generator.initMenuV4ItemOverrider(),
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
- ...R.generator.initMenuV4ItemOverrider(),
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 = E(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, _) => {
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 = R.getFallbackPrices({
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 L(
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 L(xe, {
198
+ return await z(xe, {
199
199
  menu: e,
200
200
  catalogId: n,
201
201
  schedulerId: o
@@ -242,7 +242,7 @@ async function Ge(e, n, o) {
242
242
  async function st(e, n, o) {
243
243
  var d, i;
244
244
  const a = await Ge(e, n, null), r = [], l = (c, m) => {
245
- const f = E(c);
245
+ const f = k(c);
246
246
  for (const v in m)
247
247
  m[v] && (f[v] = m[v]);
248
248
  return f;
@@ -251,11 +251,11 @@ async function st(e, n, o) {
251
251
  const m = (d = c.items) == null ? void 0 : d.find((v) => v._id === o && !v.combinationKey), f = e.modules.item.find((v) => v._id === o);
252
252
  if (m) {
253
253
  const v = (i = c.items) == null ? void 0 : i.filter((y) => y._id === o && y.combinationKey), _ = [m, ...v].map((y) => {
254
- var F, P;
255
- const C = y.combinationKey ? (P = (F = f == null ? void 0 : f.variant) == null ? void 0 : F.variantCombinations) == null ? void 0 : P.find(
256
- (A) => A.combinationKey === y.combinationKey
257
- ) : f, I = C && f ? l(f, C) : y;
258
- return l(I, y);
254
+ var F, A;
255
+ const C = y.combinationKey ? (A = (F = f == null ? void 0 : f.variant) == null ? void 0 : F.variantCombinations) == null ? void 0 : A.find(
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,
@@ -268,7 +268,7 @@ async function st(e, n, o) {
268
268
  function We({
269
269
  maxHistorySize: e = 50
270
270
  }) {
271
- const n = Y([]), o = D(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
271
+ const n = X([]), o = D(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
272
272
  function l(m) {
273
273
  n.value.push(m), o.value++, n.value.length > e && (n.value.shift(), o.value--);
274
274
  }
@@ -303,7 +303,7 @@ const je = {
303
303
  modules: o.result || e.modules,
304
304
  _rev: o.id ?? ""
305
305
  };
306
- return X.cloneDeep({ menu: a, updateId: o.id ?? null });
306
+ return Y.cloneDeep({ menu: a, updateId: o.id ?? null });
307
307
  }
308
308
  };
309
309
  function Z() {
@@ -342,10 +342,10 @@ function qe() {
342
342
  }
343
343
  };
344
344
  }
345
- const at = Pe(
345
+ const at = Ae(
346
346
  "mf-menu-store-v2",
347
347
  () => {
348
- const e = Ae(qe()), n = z(), o = Ve(), a = h(() => e.menu.modules.serveSequence ? w(e.menu.modules.serveSequence, {
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 = Pe(
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 = R.populateCatalog({
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,
@@ -370,13 +370,13 @@ const at = Pe(
370
370
  function f(t, s = !0) {
371
371
  e.menu = { ...t, _rev: e.menu._rev }, s && M.push(e.menu);
372
372
  }
373
- const v = Y(Z()), _ = D(!1), y = D(1);
373
+ const v = X(Z()), _ = D(!1), y = D(1);
374
374
  async function C() {
375
375
  var u;
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 = R.populateCatalog({
379
+ const p = I.populateCatalog({
380
380
  catalog: i.value,
381
381
  ruleGroupSettings: e.menu.ruleGroupSettings,
382
382
  items: e.menu.modules.item,
@@ -405,8 +405,8 @@ const at = Pe(
405
405
  }
406
406
  return v.value = s, _.value = !1, y.value = y.value + 1, s;
407
407
  }
408
- const F = X.debounce(C, 200);
409
- Ke(!0).run(() => {
408
+ const F = Y.debounce(C, 200);
409
+ Pe(!0).run(() => {
410
410
  Oe(
411
411
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
412
412
  () => {
@@ -414,7 +414,7 @@ const at = Pe(
414
414
  }
415
415
  );
416
416
  });
417
- const A = h(() => [
417
+ const K = h(() => [
418
418
  {
419
419
  label: "Main",
420
420
  value: null
@@ -433,11 +433,11 @@ const at = Pe(
433
433
  position: 0
434
434
  }
435
435
  ] : [],
436
- ...k(t, (s) => s.name)
436
+ ...E(t, (s) => s.name)
437
437
  ];
438
438
  }), ee = h(() => {
439
439
  const t = v.value.modules.subCategory || [];
440
- return k(t, (s) => s.name);
440
+ return E(t, (s) => s.name);
441
441
  }), W = h(() => {
442
442
  var s;
443
443
  let t = v.value.modules.item;
@@ -451,17 +451,17 @@ const at = Pe(
451
451
  return (g == null ? void 0 : g.orderFrom) !== J.F_ORDER_FROM.enum.NONE;
452
452
  });
453
453
  }
454
- return k(t, (u) => u.code || u.name);
454
+ return E(t, (u) => u.code || u.name);
455
455
  }), te = h(() => {
456
- const t = e.menu.modules.category, s = k(t, (p) => p.name).reduce(
456
+ const t = e.menu.modules.category, s = E(t, (p) => p.name).reduce(
457
457
  (p, g, S) => (p[g._id] = S, p),
458
458
  { "": 0 }
459
459
  ), u = e.menu.modules.item;
460
- return k(
460
+ return E(
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(K.value, G.value, W.value)), re = h(() => {
464
+ }), ne = h(() => B(P.value, G.value, W.value)), re = h(() => {
465
465
  const t = O.value.item.addon ? [
466
466
  {
467
467
  _id: e.currentCatalogId ? "" : null,
@@ -475,20 +475,20 @@ const at = Pe(
475
475
  t,
476
476
  e.menu.modules.item
477
477
  );
478
- }), K = h(() => {
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) => K.value.find((g) => g._id === p)).filter((p) => !!p);
484
- return R.fullVariantCombination(s).reduce((p, g) => (p[g.combinationKey] = g.selectionName.join(" / "), p), {});
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
- const se = h(() => k(v.value.modules.group, (t) => t.name)), ae = h(() => w(v.value.modules.takeaway, { selector: "name" })), ue = h(() => w(e.menu.modules.printDepartment || [], {
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"
488
488
  })), ie = h(() => w(e.menu.modules.unit, { selector: "name" })), ce = h(() => w(Me(e.menu.modules.recipe, e.menu.modules.sku), {
489
489
  selector: "name"
490
490
  })), le = h(() => e.menu.modules.cookingGuide), de = h(() => {
491
- const t = ke(e.menu.modules.sku);
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 = {
@@ -571,10 +571,10 @@ const at = Pe(
571
571
  }
572
572
  const pe = h(() => {
573
573
  var p;
574
- const t = ["SV5", "SV10"], s = Ee.Country.getCountryFlattenTaxes(
575
- z().currentCountry.value
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} (${Re(g.rate)}%)`,
577
+ label: `${g.name} (${Ie(g.rate)}%)`,
578
578
  value: V(g),
579
579
  meta: {
580
580
  rate: g.rate
@@ -614,7 +614,7 @@ const at = Pe(
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 Ie(p, e.menu.modules);
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);
@@ -650,14 +650,14 @@ const at = Pe(
650
650
  currentCatalog: i,
651
651
  schedulers: c,
652
652
  currentScheduler: m,
653
- catalogOptions: A,
653
+ catalogOptions: K,
654
654
  categories: G,
655
655
  subcategories: ee,
656
656
  items: W,
657
657
  sortedItems: te,
658
658
  categorizedItems: ne,
659
659
  categorizedRawMenuItems: re,
660
- variants: K,
660
+ variants: P,
661
661
  groups: se,
662
662
  takeaways: ae,
663
663
  printDepartments: ue,
@@ -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-o5HPa3sO.js";
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-o5HPa3sO.js";
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-Bbb_cWrY.js";
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-gQpdDQ9v.js";
8
- import { L as ge } from "./LinkProductSideSheet-COcDiMw7.js";
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-o5HPa3sO.js";
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-xpV98zVy.js";
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-C4rc779s.js";
2
- import "./menu-o5HPa3sO.js";
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-o5HPa3sO.js";
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-xpV98zVy.js";
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({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.31.41-beta.1",
3
+ "version": "0.31.42-beta.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],