@feedmepos/mf-menu 0.31.33-beta.6 → 0.31.33-beta.8

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 (85) hide show
  1. package/dist/{App-Dt6RQiUh.js → App-BAMi-a9P.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-B_SQpWg7.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BWgnvXjy.js} +20 -20
  3. package/dist/{Catalog-CFx7t_Nu.js → Catalog-DiPY42vz.js} +6 -6
  4. package/dist/{Category-CPMx86rY.js → Category-B9jnFDvG.js} +14 -14
  5. package/dist/{Category-OjK-v--G.js → Category-ClrACB2e.js} +19 -19
  6. package/dist/{CookingGuide-ANnXKBjc.js → CookingGuide-1553FWRH.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-D-1OzZ-i.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DWNx15iJ.js} +1 -1
  8. package/dist/{Group-K4925_bP.js → Group-DLahX8qi.js} +3 -3
  9. package/dist/{Group--DJjkGab.js → Group-l_-qZSyF.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-36O78xv0.js → Group.vue_vue_type_script_setup_true_lang-PNpEgEGB.js} +9 -9
  11. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DoVyIdTN.js +364 -0
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C-z1m3jh.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DSspLK4i.js} +12597 -12946
  13. package/dist/{Ingredient-G4Txx6_0.js → Ingredient-SsBtwYjB.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-HgHBlflo.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DqnVkfjW.js} +2 -2
  15. package/dist/LinkProductSideSheet-CncbzDh3.js +335 -0
  16. package/dist/{MenuSetting-Cx-EHG-6.js → MenuSetting-D28a3uD4.js} +4 -4
  17. package/dist/{PrintRoute-IxHGvGzF.js → PrintRoute-BdlT0DDr.js} +89 -88
  18. package/dist/{Product-D1gqn5J6.js → Product-s5Q4wV8i.js} +1 -1
  19. package/dist/Product.vue_vue_type_script_setup_true_lang-C6iDgQEU.js +1575 -0
  20. package/dist/{ProductInternalTools-GJ2OE5gU.js → ProductInternalTools-DjSkvzw2.js} +5 -5
  21. package/dist/Products-B3tF_gCa.js +283 -0
  22. package/dist/{Publish-C86rd413.js → Publish-G4bwUpme.js} +3 -3
  23. package/dist/{Recipe-BbQKou9p.js → Recipe-BxgHUzb5.js} +4 -4
  24. package/dist/{Scheduler-DUeTkyGQ.js → Scheduler-DJSKWS-9.js} +3 -3
  25. package/dist/{ServingSequence-BROo5rC_.js → ServingSequence-_cmuGKlV.js} +3 -3
  26. package/dist/{Setting-D-ueTlwO.js → Setting-Dx7ycxAn.js} +5 -5
  27. package/dist/{Subcategory-DVewA8HX.js → Subcategory-25AzJQYt.js} +4 -4
  28. package/dist/{Takeaway-DyPjHuCl.js → Takeaway-Bmm9d5PO.js} +1 -1
  29. package/dist/{Takeaway-B4lDGQDh.js → Takeaway-CcFK-Y2z.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BTDlzYuX.js → Takeaway.vue_vue_type_script_setup_true_lang-Bl5OAG3c.js} +5 -5
  31. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-B3-ypwE7.js +431 -0
  32. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D2gzS8Q_.js +5990 -0
  33. package/dist/{Unit-CVF0dom4.js → Unit-Cs1EOuyg.js} +2 -2
  34. package/dist/{Variant-DmccAgFU.js → Variant-BTCkw4RC.js} +3 -3
  35. package/dist/_id_-C9b2WHzy.js +202 -0
  36. package/dist/{app-ClinzawZ.js → app-BhI1mPRh.js} +1 -1
  37. package/dist/{app-CV_q8OdE.js → app-CU2frfPB.js} +24 -24
  38. package/dist/app.js +1 -1
  39. package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +33 -0
  40. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/catalog.d.ts +2 -0
  41. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +3 -1
  42. package/dist/apps/mf-menu/src/composable/customAttributes.d.ts +8 -0
  43. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +1276 -0
  44. package/dist/apps/mf-menu/src/types/linkProducts.d.ts +21 -0
  45. package/dist/apps/mf-menu/src/views/PrintRoute/PrintDepartmentDialog.vue.d.ts +5 -3
  46. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/assets/{linked-status-fZD691Js.js → linked-status-r8YcmOs7.js} +12 -12
  48. package/dist/assets/{override-menu-Cjy1BJuz.js → override-menu-CDLCS1zK.js} +12 -12
  49. package/dist/assets/{validate-menu-uwysUwDP.js → validate-menu-B-FxrVmM.js} +12 -12
  50. package/dist/{catalog-Wx88K6iI.js → catalog-BudDGPc1.js} +1 -1
  51. package/dist/{catalogSetting-DTEHDSAd.js → catalogSetting-Bk1QEBg5.js} +1 -1
  52. package/dist/{category-BRTw76Vf.js → category-UDpJb7Yh.js} +1 -1
  53. package/dist/{currency-562bPc2l.js → currency-BQIQArxm.js} +1 -1
  54. package/dist/{dayjs.min-Cnfm8bQm.js → dayjs.min-D0EjAkx4.js} +1 -1
  55. package/dist/{index-Crs_eZ0i.js → index-B_V5s58T.js} +1 -1
  56. package/dist/{index-DJXrJdeQ.js → index-CirrSmpA.js} +3 -3
  57. package/dist/index-DRuDRGm-.js +213 -0
  58. package/dist/{index-4hf9vONw.js → index-Dy-u7imh.js} +3 -3
  59. package/dist/{item-CuIxc9FT.js → item-C45Oe5Un.js} +196 -194
  60. package/dist/{jszip.min-C9xLIvo4.js → jszip.min-BR_8QNuk.js} +545 -545
  61. package/dist/{menu-Mkzv9c8C.js → menu-D52oU1sw.js} +1 -1
  62. package/dist/{menu-ILWxqJQe.js → menu-DTlhFcnq.js} +6882 -6858
  63. package/dist/menuV2-DQtEtGVV.js +707 -0
  64. package/dist/mf-menu.css +1 -1
  65. package/dist/{priceTier-D4joq_kN.js → priceTier-CDyccedV.js} +1 -1
  66. package/dist/{scheduler-DuxWoNVb.js → scheduler-DHjrtU8G.js} +16 -17
  67. package/dist/subcategory-0ajMWsb2.js +148 -0
  68. package/dist/{toExcel-hGfpS_Uo.js → toExcel-BNKDwOzQ.js} +2 -2
  69. package/dist/{unit-9fycj1fu.js → unit-CBe6cpyB.js} +5 -4
  70. package/package.json +3 -3
  71. package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
  72. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BIX-gPUO.js +0 -372
  73. package/dist/LinkProductSideSheet-CWNarCEs.js +0 -112
  74. package/dist/Product.vue_vue_type_script_setup_true_lang-BCQd-ks4.js +0 -1641
  75. package/dist/Products-DJqgSe-Y.js +0 -270
  76. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DzQ8_6Bi.js +0 -71
  77. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B5BAKDRP.js +0 -6149
  78. package/dist/_id_-CWtK62Fy.js +0 -178
  79. package/dist/apps/mf-menu/src/components/feature/AttributesSelector.vue.d.ts +0 -2
  80. package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +0 -70
  81. package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductUnifiedSideSheet.vue.d.ts +0 -12
  82. package/dist/customAttributes-CXzd5ud1.js +0 -33
  83. package/dist/index-Ce4v8o7D.js +0 -106
  84. package/dist/subcategory-CLLMagXY.js +0 -817
  85. /package/dist/{app-DvG3mOom.js → LinkProductSideSheet.vue_vue_type_style_index_0_scoped_7d7fe73f_lang-DvG3mOom.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { u as h, G as l, J as d, V as _ } from "./menu-ILWxqJQe.js";
1
+ import { u as h, G as l, J as d, ah as _ } from "./menu-DTlhFcnq.js";
2
2
  import "@feedmepos/ui-library";
3
3
  class u {
4
4
  constructor(t, e, a, r) {
@@ -1,4 +1,4 @@
1
- import { G as u, H as i } from "./menu-ILWxqJQe.js";
1
+ import { G as u, H as i } from "./menu-DTlhFcnq.js";
2
2
  var a = /* @__PURE__ */ ((e) => (e.AUTO = "auto", e.MANUAL = "manual", e))(a || {}), m = /* @__PURE__ */ ((e) => (e[e.Normal = 0] = "Normal", e[e.Rules = 1] = "Rules", e))(m || {});
3
3
  class s {
4
4
  static fromCatalog(r, n) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as M, watch as _, ref as f, resolveComponent as g, createBlock as x, openBlock as C, unref as l, withCtx as V, createVNode as A } from "vue";
2
- import { J as s, G as u, u as F } from "./menu-ILWxqJQe.js";
2
+ import { J as s, G as u, u as F } from "./menu-DTlhFcnq.js";
3
3
  import { useI18n as E } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as O } from "@feedmepos/ui-library";
5
5
  const y = /* @__PURE__ */ M({
@@ -1,4 +1,4 @@
1
- import { A as e } from "./menu-ILWxqJQe.js";
1
+ import { A as e } from "./menu-DTlhFcnq.js";
2
2
  function n(r, o = !0) {
3
3
  return e.Dinero.fromFdoDinero(r).toFormat(o).replaceAll(" ", "");
4
4
  }
@@ -1,4 +1,4 @@
1
- import { g as a, ai as r } from "./menu-ILWxqJQe.js";
1
+ import { g as a, ai as r } from "./menu-DTlhFcnq.js";
2
2
  var s = r();
3
3
  const t = /* @__PURE__ */ a(s);
4
4
  export {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, resolveComponent as p, createBlock as f, openBlock as i, Teleport as E, createVNode as _, Transition as g, withCtx as h, createCommentVNode as L, withKeys as w, normalizeStyle as F, normalizeClass as d, createElementVNode as m, renderSlot as x, createElementBlock as T, toDisplayString as R, Fragment as A, renderList as v, computed as C, unref as I } from "vue";
2
- import { _ as k } from "./LinkProductSideSheet-CWNarCEs.js";
2
+ import { _ as k } from "./LinkProductSideSheet-CncbzDh3.js";
3
3
  import { useI18n as U } from "@feedmepos/mf-common";
4
4
  const N = {
5
5
  class: /* @__PURE__ */ d([
@@ -1,12 +1,12 @@
1
- import { A as S, G as A, u as K, H as O, B as q, I as R } from "./menu-ILWxqJQe.js";
1
+ import { A as S, G as A, u as K, H as O, B as q, I as R } from "./menu-DTlhFcnq.js";
2
2
  import { defineComponent as T, ref as f, computed as B, watch as L, onMounted as z, onBeforeUnmount as H, resolveComponent as F, createBlock as N, openBlock as M, withModifiers as C, withCtx as g, renderSlot as U, createElementBlock as P, Fragment as W, createVNode as c, unref as i, createElementVNode as D, createCommentVNode as j, toDisplayString as G } from "vue";
3
3
  import { useI18n as I } from "@feedmepos/mf-common";
4
4
  import { components as Y } from "@feedmepos/ui-library";
5
5
  import { _ as Z } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
6
6
  import { u as J } from "./discardConfirm-BHni0LNu.js";
7
- import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-B_SQpWg7.js";
7
+ import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BWgnvXjy.js";
8
8
  import { c as X } from "./check-C9mY6LiX.js";
9
- import { f as ee } from "./currency-562bPc2l.js";
9
+ import { f as ee } from "./currency-BQIQArxm.js";
10
10
  import { c as ae } from "./string-DpfFixWH.js";
11
11
  const te = /* @__PURE__ */ T({
12
12
  __name: "CurrencyInput",
@@ -0,0 +1,213 @@
1
+ import { defineComponent as z, computed as P, ref as w, resolveComponent as d, createElementBlock as I, openBlock as R, Fragment as B, createElementVNode as g, createVNode as f, normalizeClass as A, withCtx as _, toDisplayString as C, unref as h, h as E, watch as D, onMounted as G, nextTick as K, readonly as M, getCurrentInstance as N, getCurrentScope as U, onScopeDispose as L } from "vue";
2
+ import { useI18n as q, useCoreStore as H } from "@feedmepos/mf-common";
3
+ import { components as J } from "@feedmepos/ui-library";
4
+ import { u as Q } from "./LinkProductSideSheet-CncbzDh3.js";
5
+ const X = {
6
+ class: /* @__PURE__ */ A(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap", "text-fm-color-neutral-gray-400"])
7
+ }, Y = {
8
+ class: "fm-typo-en-title-sm-600"
9
+ }, Z = {
10
+ class: "max-h-[60vh] flex-1 overflow-y-auto min-h-0"
11
+ }, ue = /* @__PURE__ */ z({
12
+ __name: "RestaurantAttributesSelector",
13
+ props: {
14
+ fullWidth: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ currentRestaurantCustomAttributes: {}
19
+ },
20
+ emits: ["confirm"],
21
+ setup(e, {
22
+ emit: n
23
+ }) {
24
+ const o = e, {
25
+ t
26
+ } = q(), {
27
+ attributes: l
28
+ } = Q(H().restaurants, "restaurant"), r = P(() => l.value), v = [{
29
+ header: () => t("portalshell.customAttributes.form.key"),
30
+ accessorKey: "key",
31
+ enableSorting: !1
32
+ }, {
33
+ header: () => t("portalshell.customAttributes.form.value"),
34
+ accessorKey: "values",
35
+ enableSorting: !1,
36
+ cell: (c) => {
37
+ const a = c.row.original, m = a.values;
38
+ return E(J.FmSelect, {
39
+ modelValue: a.value,
40
+ placeholder: t("portalshell.customAttributes.form.valuePlaceholder"),
41
+ items: m.map((u) => ({
42
+ label: u,
43
+ value: u
44
+ })),
45
+ clearable: !0,
46
+ "onUpdate:modelValue": (u) => a.value = u
47
+ });
48
+ }
49
+ }], i = n, p = () => {
50
+ const c = l.value.filter((m) => m.value != null), a = c.length ? c.reduce((m, u) => (m[u.key] = u.value, m), {}) : {};
51
+ i("confirm", a), y();
52
+ }, s = w(!1);
53
+ function b() {
54
+ s.value = !0;
55
+ const c = o.currentRestaurantCustomAttributes ?? {};
56
+ r.value.forEach((a) => {
57
+ a.value = c[a.key] ?? void 0;
58
+ });
59
+ }
60
+ function y() {
61
+ s.value = !1;
62
+ }
63
+ return (c, a) => {
64
+ const m = d("FmIcon"), u = d("FmChip"), O = d("FmTable"), V = d("FmSpacer"), F = d("fm-button"), j = d("FmDialog");
65
+ return R(), I(B, null, [g("div", {
66
+ class: "cursor-pointer",
67
+ onClick: b
68
+ }, [f(u, {
69
+ class: A([c.fullWidth ? "w-full justify-between" : ""])
70
+ }, {
71
+ default: _(() => [g("div", X, C(h(t)("menu.catalog.form.restaurant_attributes_title")), 1), f(m, {
72
+ color: "neutral-gray-400",
73
+ name: "launch",
74
+ size: "sm"
75
+ })]),
76
+ _: 1
77
+ }, 8, ["class"])]), f(j, {
78
+ modelValue: s.value,
79
+ "onUpdate:modelValue": a[0] || (a[0] = (W) => s.value = W),
80
+ overlay: !0,
81
+ "min-width": "min(calc(100% - 48px), 560px)"
82
+ }, {
83
+ "dialog-header": _(() => [g("div", Y, C(h(t)("menu.catalog.form.restaurant_attributes_title")), 1)]),
84
+ "dialog-footer": _(() => [f(V), f(F, {
85
+ label: h(t)("menu.common.actions.confirm"),
86
+ size: "lg",
87
+ type: "submit",
88
+ variant: "primary",
89
+ onClick: p
90
+ }, null, 8, ["label"]), f(F, {
91
+ label: h(t)("menu.common.actions.cancel"),
92
+ size: "lg",
93
+ variant: "tertiary",
94
+ onClick: y
95
+ }, null, 8, ["label"])]),
96
+ default: _(() => [g("div", Z, [f(O, {
97
+ "column-defs": v,
98
+ "row-data": r.value,
99
+ "shrink-at": !1,
100
+ "page-size": r.value.length,
101
+ "hide-footer": ""
102
+ }, null, 8, ["row-data", "page-size"])])]),
103
+ _: 1
104
+ }, 8, ["modelValue"])], 64);
105
+ };
106
+ }
107
+ });
108
+ function ce(e) {
109
+ return U() ? (L(e), !0) : !1;
110
+ }
111
+ function S(e) {
112
+ return typeof e == "function" ? e() : h(e);
113
+ }
114
+ const me = typeof window < "u" && typeof document < "u";
115
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
116
+ const $ = Object.prototype.toString, fe = (e) => $.call(e) === "[object Object]", x = () => {
117
+ };
118
+ function k(e, n) {
119
+ function o(...t) {
120
+ return new Promise((l, r) => {
121
+ Promise.resolve(e(() => n.apply(this, t), { fn: n, thisArg: this, args: t })).then(l).catch(r);
122
+ });
123
+ }
124
+ return o;
125
+ }
126
+ const T = (e) => e();
127
+ function ee(e, n = {}) {
128
+ let o, t, l = x;
129
+ const r = (i) => {
130
+ clearTimeout(i), l(), l = x;
131
+ };
132
+ return (i) => {
133
+ const p = S(e), s = S(n.maxWait);
134
+ return o && r(o), p <= 0 || s !== void 0 && s <= 0 ? (t && (r(t), t = null), Promise.resolve(i())) : new Promise((b, y) => {
135
+ l = n.rejectOnCancel ? y : b, s && !t && (t = setTimeout(() => {
136
+ o && r(o), t = null, b(i());
137
+ }, s)), o = setTimeout(() => {
138
+ t && r(t), t = null, b(i());
139
+ }, p);
140
+ });
141
+ };
142
+ }
143
+ function te(e = T) {
144
+ const n = w(!0);
145
+ function o() {
146
+ n.value = !1;
147
+ }
148
+ function t() {
149
+ n.value = !0;
150
+ }
151
+ const l = (...r) => {
152
+ n.value && e(...r);
153
+ };
154
+ return { isActive: M(n), pause: o, resume: t, eventFilter: l };
155
+ }
156
+ function ne(e) {
157
+ return N();
158
+ }
159
+ function oe(e, n = 200, o = {}) {
160
+ return k(
161
+ ee(n, o),
162
+ e
163
+ );
164
+ }
165
+ function pe(e, n = 200, o = {}) {
166
+ const t = w(e.value), l = oe(() => {
167
+ t.value = e.value;
168
+ }, n, o);
169
+ return D(e, () => l()), t;
170
+ }
171
+ function le(e, n, o = {}) {
172
+ const {
173
+ eventFilter: t = T,
174
+ ...l
175
+ } = o;
176
+ return D(
177
+ e,
178
+ k(
179
+ t,
180
+ n
181
+ ),
182
+ l
183
+ );
184
+ }
185
+ function de(e, n, o = {}) {
186
+ const {
187
+ eventFilter: t,
188
+ ...l
189
+ } = o, { eventFilter: r, pause: v, resume: i, isActive: p } = te(t);
190
+ return { stop: le(
191
+ e,
192
+ n,
193
+ {
194
+ ...l,
195
+ eventFilter: r
196
+ }
197
+ ), pause: v, resume: i, isActive: p };
198
+ }
199
+ function be(e, n = !0, o) {
200
+ ne() ? G(e, o) : n ? e() : K(e);
201
+ }
202
+ export {
203
+ ue as _,
204
+ be as a,
205
+ ce as b,
206
+ fe as c,
207
+ me as i,
208
+ x as n,
209
+ pe as r,
210
+ S as t,
211
+ oe as u,
212
+ de as w
213
+ };
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as R, computed as w, ref as E, watch as C, resolveComponent as g, createElementBlock as F, openBlock as V, Fragment as K, renderSlot as j, createVNode as s, unref as n, withCtx as m, createElementVNode as d, createBlock as M, createCommentVNode as U, normalizeClass as H, createSlots as J, toDisplayString as Q } from "vue";
2
- import { O as W, D as X, I as Z, H as f, B, J as D, G as I } from "./menu-ILWxqJQe.js";
2
+ import { O as W, D as X, I as Z, H as f, B, J as D, G as I } from "./menu-DTlhFcnq.js";
3
3
  import { d as ee } from "./vuedraggable-CK8z7qA8.js";
4
4
  import { useI18n as te } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as ae, components as ne } from "@feedmepos/ui-library";
6
- import { _ as oe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
+ import { a as oe } from "./LinkProductSideSheet-CncbzDh3.js";
7
7
  import { _ as le } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
8
8
  import { u as ie } from "./discardConfirm-BHni0LNu.js";
9
- import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-B_SQpWg7.js";
9
+ import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BWgnvXjy.js";
10
10
  import { c as re } from "./check-C9mY6LiX.js";
11
11
  const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32" }, de = ["data-not-allow-sort"], ce = {
12
12
  key: 1,