@feedmepos/mf-menu 0.32.64-dev.1 → 0.32.65

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 (72) hide show
  1. package/dist/{App-CcCpnDUd.js → App-rjcnTQzq.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-uCZ06pwL.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BlX-ygeo.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-YlaEocnO.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-DTEZouRz.js} +3 -3
  4. package/dist/{Catalog-BLpYToaa.js → Catalog-nWzKN1u3.js} +6 -6
  5. package/dist/{Category-huIVx-Pq.js → Category-DoUtDyuB.js} +14 -14
  6. package/dist/{Category-slad1Kl9.js → Category-Q42BO86t.js} +8 -8
  7. package/dist/{CookingGuide-k6g5-DZS.js → CookingGuide-DGVhn_Yb.js} +5 -5
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Be5sbD3J.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Dc_Ec9Pf.js} +1 -1
  9. package/dist/{Group-B8QPt_Mf.js → Group-B9vMDg2m.js} +3 -3
  10. package/dist/{Group-DuclGQ8D.js → Group-D8st1q0o.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-DvBL8b_Z.js → Group.vue_vue_type_script_setup_true_lang-CV_w5c7T.js} +48 -48
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-C9na_pxa.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-36kp3qi8.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C7y1o_cK.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-ZbhwNALE.js} +4830 -4828
  14. package/dist/{Ingredient-Z1niNy7S.js → Ingredient-DWN4vTKf.js} +4 -4
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BtM5R-5S.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DJrz0wWm.js} +2 -2
  16. package/dist/{LinkProductSideSheet-CUx5qi-A.js → LinkProductSideSheet-DXmxJs-1.js} +4 -4
  17. package/dist/{MenuSetting-CQzIlzZp.js → MenuSetting-BSlQXo8m.js} +7 -7
  18. package/dist/{OrderPacing-BiL0cgx1.js → OrderPacing-B8pgEMjf.js} +5 -5
  19. package/dist/{PrintRoute-D1pZkpH_.js → PrintRoute-agfebph4.js} +5 -5
  20. package/dist/{Product-Bg-dwe6e.js → Product-CaA1CdTN.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-BVQVhWAh.js → Product.vue_vue_type_script_setup_true_lang-Bsx6JceZ.js} +108 -108
  22. package/dist/{ProductInternalTools-B0kk7L-u.js → ProductInternalTools-DHQz_Z8o.js} +24 -24
  23. package/dist/{Products-Y7qUSXGq.js → Products-CeVnRRFO.js} +40 -40
  24. package/dist/{Publish-BgBw1yYD.js → Publish-rN34cEkS.js} +4 -4
  25. package/dist/{Recipe-BQWy65kw.js → Recipe-C_qTZ_E1.js} +5 -5
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DN09681x.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-C6lkwlc5.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-C7kaYvTF.js → RuleView.vue_vue_type_script_setup_true_lang-LbagGtcn.js} +3 -3
  28. package/dist/{Scheduler-3c53XS3M.js → Scheduler-DeixLUzk.js} +3 -3
  29. package/dist/{ServingSequence-COJkc08j.js → ServingSequence-CAmQBzaK.js} +3 -3
  30. package/dist/{Setting-DY-P5PAu.js → Setting-C_Dl4MiB.js} +5 -5
  31. package/dist/{Subcategory-1-uYipz9.js → Subcategory-C8DHzzkd.js} +6 -6
  32. package/dist/{Takeaway-C3dwSDye.js → Takeaway-CIRpXPFx.js} +1 -1
  33. package/dist/{Takeaway-DTcdrd4N.js → Takeaway-CxYihXC0.js} +4 -4
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BQ60zhzJ.js → Takeaway.vue_vue_type_script_setup_true_lang-CcSjxPY4.js} +5 -5
  35. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-DOQjcZde.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-D-ojP61R.js} +1 -1
  36. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CoK2Y57Z.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BztGh7n9.js} +2 -2
  37. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BM1nnTTV.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Cv4iVhML.js} +341 -340
  38. package/dist/{Unit-CkJp-MxR.js → Unit-Cd0y2m5k.js} +2 -2
  39. package/dist/{Variant-Ck8V9o_n.js → Variant-B2CKhSOl.js} +3 -3
  40. package/dist/{_id_-DVko2hJ3.js → _id_-DZiXY0H3.js} +10 -10
  41. package/dist/{app-idZd8GBJ.js → app-T7VNSy7v.js} +1 -1
  42. package/dist/{app-CMpNs1Lv.js → app-T8AXgSEa.js} +32 -32
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +18 -0
  45. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/assets/{override-menu-2ehtF8h1.js → linked-status-CCYZRm4Q.js} +3 -3
  47. package/dist/assets/{menu-export-BZTDjkcV.js → menu-export-CAHQqTea.js} +3 -3
  48. package/dist/assets/{linked-status-Oe5zalYU.js → override-menu-CHSXJZzL.js} +3 -3
  49. package/dist/assets/{validate-menu-wNmLgJZW.js → validate-menu-B4fZvuxj.js} +2 -2
  50. package/dist/{catalog-C4zqfdRz.js → catalog-JKO0yOoK.js} +1 -1
  51. package/dist/{catalogSetting-CdrKAkWc.js → catalogSetting-88ecNK3c.js} +1 -1
  52. package/dist/{currency-zP5t_q3e.js → currency-FtZ1Kndg.js} +1 -1
  53. package/dist/{dayjs.min-CVaDPO4u.js → dayjs.min-4vLGgFCE.js} +2 -2
  54. package/dist/{discardConfirm-D5TZC0up.js → discardConfirm-CM6g-V_v.js} +1 -1
  55. package/dist/{index-CY_PF4JI.js → index-BRKz6YXB.js} +5 -5
  56. package/dist/{index-Bdjp_HoJ.js → index-DJLvriHh.js} +6 -6
  57. package/dist/index-wiJWDZ8Q.js +310 -0
  58. package/dist/{index.vue_vue_type_script_setup_true_lang-Cxq1w0By.js → index.vue_vue_type_script_setup_true_lang-qm3HbXBN.js} +6 -6
  59. package/dist/{item-DF4sY8Lz.js → item-DZ7QwbXg.js} +1261 -1337
  60. package/dist/{jszip.min-CfredHU3.js → jszip.min-CMMOVzck.js} +3 -3
  61. package/dist/{linkProducts-_ZMDyksQ.js → linkProducts-H4GRfufL.js} +4 -4
  62. package/dist/{memberPricing-K5VG3VIu.js → memberPricing-DHWy5fqz.js} +1 -1
  63. package/dist/{menu-CZxNlbpe.js → menu-CIm-Royr.js} +1 -1
  64. package/dist/{menuV2-BHwuCExt.js → menuV2-BAdmIxrF.js} +92 -92
  65. package/dist/{order_pacing-Cme5qoFR.js → order_pacing-D58D3fak.js} +5 -5
  66. package/dist/{priceTier-DSYN-IAO.js → priceTier-BQ8NefKy.js} +1 -1
  67. package/dist/{rules-D4rAL20Q.js → rules-CCMx9A-T.js} +3 -3
  68. package/dist/{scheduler-J5Ea4WSr.js → scheduler-CV0r5tCc.js} +5 -5
  69. package/dist/{toExcel-XoL9W3Ev.js → toExcel-D4fh3tgH.js} +2 -2
  70. package/dist/{unit-Bi2EnEOF.js → unit-p_16wmg2.js} +3 -3
  71. package/package.json +1 -1
  72. package/dist/index-CD_omf3p.js +0 -222
@@ -1,5 +1,5 @@
1
- import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-C7y1o_cK.js";
2
- import "./discardConfirm-D5TZC0up.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-ZbhwNALE.js";
2
+ import "./discardConfirm-CM6g-V_v.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,12 +1,12 @@
1
1
  import { defineStore as H } from "pinia";
2
2
  import { defineComponent as M, computed as x, ref as A, watch as S, resolveComponent as V, createBlock as J, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as C, toDisplayString as k, unref as l, Fragment as N, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { D as O, E as te, B as P, d as E, i as $, b as j, m as h, C as ne, g as T, h as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-Cxq1w0By.js";
3
+ import { D as O, E as te, B as P, d as E, i as $, b as j, m as h, C as ne, g as T, h as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-qm3HbXBN.js";
4
4
  import { useI18n as q } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as I, components as ae, useDialog as le, FmButtonVariant as ue } from "@feedmepos/ui-library";
6
- import { u as ie, l as se } from "./discardConfirm-D5TZC0up.js";
6
+ import { u as ie, l as se } from "./discardConfirm-CM6g-V_v.js";
7
7
  import { c as re } from "./check-C9mY6LiX.js";
8
8
  import "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
9
- import "./menuV2-BHwuCExt.js";
9
+ import "./menuV2-BAdmIxrF.js";
10
10
  import "./app-5fxKLAzS.js";
11
11
  /* empty css */
12
12
  import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.32.64-dev.1",
3
+ "version": "0.32.65",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,222 +0,0 @@
1
- import { defineComponent as v, resolveComponent as p, createBlock as m, openBlock as i, Teleport as k, createVNode as y, Transition as A, withCtx as g, createCommentVNode as b, withKeys as I, normalizeStyle as P, normalizeClass as f, createElementVNode as h, renderSlot as S, createElementBlock as x, toDisplayString as $, Fragment as z, renderList as N, computed as d, unref as U, ref as C } from "vue";
2
- import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { useI18n as F } from "@feedmepos/mf-common";
4
- const V = {
5
- class: /* @__PURE__ */ f([
6
- "flex items-center",
7
- "px-24 pt-16 pb-8",
8
- "border-b border-fm-color-neutral-gray-100",
9
- "space-x-4"
10
- ])
11
- }, j = { class: "fm-typo-en-title-sm-600 mr-auto" }, D = {
12
- class: /* @__PURE__ */ f(["flex flex-col", "flex-1 overflow-scroll", "w-full", "px-24"])
13
- }, X = /* @__PURE__ */ v({
14
- __name: "FullScreenForm",
15
- props: {
16
- show: { type: Boolean },
17
- title: {},
18
- primaryAction: {},
19
- secondaryActions: {},
20
- zIndex: { default: 50 }
21
- },
22
- emits: ["onPrimary", "onCancel"],
23
- setup(r, { emit: e }) {
24
- const n = e, l = () => {
25
- n("onPrimary");
26
- }, s = () => {
27
- n("onCancel");
28
- };
29
- return (t, a) => {
30
- const c = p("fm-button"), o = p("fm-form");
31
- return i(), m(k, { to: "body" }, [
32
- y(A, { name: "fade" }, {
33
- default: g(() => [
34
- t.show ? (i(), m(o, {
35
- key: 0,
36
- "blame-form-child-on-validation-failed": "",
37
- class: f(["fixed inset-0", "flex flex-col", "w-screen h-dvh", "bg-fm-color-neutral-white"]),
38
- style: P({ zIndex: t.zIndex }),
39
- tabindex: "-1",
40
- onValidationSuccess: l,
41
- onKeyup: I(s, ["esc"])
42
- }, {
43
- default: g(() => [
44
- h("div", V, [
45
- h("p", j, $(t.title), 1),
46
- S(t.$slots, "append-title", {}, void 0, !0),
47
- (i(!0), x(z, null, N(t.secondaryActions, (u) => (i(), m(c, {
48
- label: u.label,
49
- variant: "tertiary",
50
- onClick: u.click
51
- }, null, 8, ["label", "onClick"]))), 256)),
52
- y(c, {
53
- label: t.primaryAction.label,
54
- type: "submit",
55
- variant: "primary"
56
- }, null, 8, ["label"])
57
- ]),
58
- h("div", D, [
59
- S(t.$slots, "default", {}, void 0, !0)
60
- ])
61
- ]),
62
- _: 3
63
- }, 8, ["style"])) : b("", !0)
64
- ]),
65
- _: 3
66
- })
67
- ]);
68
- };
69
- }
70
- }), ne = /* @__PURE__ */ B(X, [["__scopeId", "data-v-5b5c7179"]]), le = /* @__PURE__ */ v({
71
- __name: "PriceTierNotice",
72
- props: {
73
- menuStore: {}
74
- },
75
- setup(r) {
76
- const e = r, n = d(() => {
77
- var t, a;
78
- return ((t = e.menuStore.currentCatalog) == null ? void 0 : t.priceTierRules) ?? ((a = e.menuStore.currentCatalog) == null ? void 0 : a.usePriceTiers) ?? [];
79
- }), l = d(() => {
80
- var t;
81
- return e.menuStore.isV4 && e.menuStore.currentCatalog && !e.menuStore.currentScheduler && ((t = n.value) == null ? void 0 : t.length) > 0;
82
- }), { t: s } = F();
83
- return (t, a) => {
84
- var o;
85
- const c = p("FmSnackbar");
86
- return l.value ? (i(), m(c, {
87
- key: 0,
88
- "z-index": 0,
89
- class: "!max-w-full",
90
- title: U(s)("menu.price_tier.price_group_description", { group: (o = n.value) == null ? void 0 : o.join(", ") })
91
- }, null, 8, ["title"])) : b("", !0);
92
- };
93
- }
94
- }), K = ["alt", "src", "crossorigin"], se = /* @__PURE__ */ v({
95
- __name: "Thumbnail",
96
- props: {
97
- src: {},
98
- alt: {},
99
- className: {},
100
- size: {},
101
- crossorigin: { type: Boolean, default: !0 }
102
- },
103
- setup(r) {
104
- const e = r, { t: n } = F(), l = C(!1), s = C(!e.src), t = () => {
105
- l.value = !1, s.value = !0;
106
- }, a = () => {
107
- l.value = !0, s.value = !0;
108
- }, c = d(() => e.alt ? n("menu.thumbnail.alt.with_name", { name: e.alt }) : n("menu.thumbnail.alt.default")), o = d(() => typeof e.size == "number" ? {
109
- width: e.size,
110
- height: e.size
111
- } : {
112
- width: e.size.width,
113
- height: e.size.height
114
- }), u = d(() => {
115
- if (!e.src) return null;
116
- if (e.crossorigin) {
117
- const _ = e.src.includes("?") ? "&" : "?";
118
- return `${e.src}${_}_cors=${Date.now()}`;
119
- }
120
- return e.src;
121
- });
122
- return (_, Z) => {
123
- const w = p("fm-icon"), R = p("fm-card");
124
- return i(), x("div", {
125
- class: f([_.className, "flex items-center justify-center"])
126
- }, [
127
- y(R, {
128
- class: f(["flex items-center justify-center", "rounded-md"]),
129
- style: P({ width: `${o.value.width}px`, height: `${o.value.height}px` }),
130
- variant: "outlined"
131
- }, {
132
- default: g(() => [
133
- u.value && !l.value ? (i(), x("img", {
134
- key: u.value,
135
- alt: c.value,
136
- class: f(["w-full h-full", "object-cover", s.value ? "" : "hidden"]),
137
- src: u.value,
138
- crossorigin: e.crossorigin ? "anonymous" : void 0,
139
- onError: a,
140
- onLoad: t
141
- }, null, 42, K)) : (i(), m(w, {
142
- key: 1,
143
- color: "neutral-gray-300",
144
- name: "image",
145
- outline: ""
146
- })),
147
- s.value ? b("", !0) : (i(), m(w, {
148
- key: 2,
149
- class: "animate-spin",
150
- name: "progress_activity",
151
- spin: ""
152
- }))
153
- ]),
154
- _: 1
155
- }, 8, ["style"])
156
- ], 2);
157
- };
158
- }
159
- }), G = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), H = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), M = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), O = /[^\p{L}\d]+/giu, L = "$1\0$2", E = "";
160
- function T(r) {
161
- let e = r.trim();
162
- e = e.replace(G, L).replace(H, L), e = e.replace(O, "\0");
163
- let n = 0, l = e.length;
164
- for (; e.charAt(n) === "\0"; )
165
- n++;
166
- if (n === l)
167
- return [];
168
- for (; e.charAt(l - 1) === "\0"; )
169
- l--;
170
- return e.slice(n, l).split(/\0/g);
171
- }
172
- function W(r) {
173
- const e = T(r);
174
- for (let n = 0; n < e.length; n++) {
175
- const l = e[n], s = M.exec(l);
176
- if (s) {
177
- const t = s.index + (s[1] ?? s[2]).length;
178
- e.splice(n, 1, l.slice(0, t), l.slice(t));
179
- }
180
- }
181
- return e;
182
- }
183
- function ae(r, e) {
184
- const [n, l, s] = Y(r, e), t = q(e == null ? void 0 : e.locale), a = J(e == null ? void 0 : e.locale), c = Q(t, a);
185
- return n + l.map((o, u) => u === 0 ? c(o) : t(o)).join((e == null ? void 0 : e.delimiter) ?? " ") + s;
186
- }
187
- function q(r) {
188
- return r === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(r);
189
- }
190
- function J(r) {
191
- return r === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(r);
192
- }
193
- function Q(r, e) {
194
- return (n) => `${e(n[0])}${r(n.slice(1))}`;
195
- }
196
- function Y(r, e = {}) {
197
- const n = e.split ?? (e.separateNumbers ? W : T), l = e.prefixCharacters ?? E, s = e.suffixCharacters ?? E;
198
- let t = 0, a = r.length;
199
- for (; t < r.length; ) {
200
- const c = r.charAt(t);
201
- if (!l.includes(c))
202
- break;
203
- t++;
204
- }
205
- for (; a > t; ) {
206
- const c = a - 1, o = r.charAt(c);
207
- if (!s.includes(o))
208
- break;
209
- a = c;
210
- }
211
- return [
212
- r.slice(0, t),
213
- n(r.slice(t, a)),
214
- r.slice(a)
215
- ];
216
- }
217
- export {
218
- ne as F,
219
- le as _,
220
- se as a,
221
- ae as s
222
- };