@feedmepos/mf-menu 0.32.62 → 0.32.63-dev.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 (98) hide show
  1. package/dist/{App-CE4fZP2_.js → App-DhfTGlgM.js} +467 -462
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-PpYjjdOP.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-C_JKiJRD.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js} +8 -8
  4. package/dist/{Catalog-C2MyXkps.js → Catalog-WuZJfM6l.js} +78 -78
  5. package/dist/{Category-B7Uxbyug.js → Category-BeIo7XWY.js} +20 -20
  6. package/dist/{Category-BoV0MYQp.js → Category-D-cQQCPS.js} +19 -19
  7. package/dist/{CookingGuide-Bdyj8XMv.js → CookingGuide-B-yvD9ZA.js} +88 -88
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-EDbgLHTU.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js} +1 -1
  9. package/dist/{Group-BuFbi0Z-.js → Group-13i5igrS.js} +5 -5
  10. package/dist/{Group-DYpxc5ui.js → Group-CY8lUzQG.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-B5Uw2Rzm.js → Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js} +95 -94
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-COYg8e7h.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js} +13 -13
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-YY25YW4B.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js} +219 -220
  14. package/dist/{Ingredient-Ddw06I0B.js → Ingredient-vrUOW6gk.js} +49 -49
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CsWdL5Lz.js → InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js} +2 -2
  16. package/dist/{LinkProductSideSheet-COAMZqOM.js → LinkProductSideSheet-DMbJG6wf.js} +8 -8
  17. package/dist/{MenuSetting--G1_lGoV.js → MenuSetting-Di2xwm00.js} +10 -10
  18. package/dist/{OrderPacing-DnvLJh5M.js → OrderPacing-CCe-IcGO.js} +28 -28
  19. package/dist/{PrintRoute-CP-3JGP3.js → PrintRoute-CcfObcHY.js} +27 -27
  20. package/dist/{Product-D-q15-Qw.js → Product-ChUVnMgG.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-BaOg60Q6.js → Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js} +153 -152
  22. package/dist/{ProductInternalTools-wYn0bzml.js → ProductInternalTools-D9HXhgo5.js} +80 -79
  23. package/dist/{Products-CxEsB-7l.js → Products-Bly2ktEC.js} +75 -74
  24. package/dist/{Publish-BCljLztW.js → Publish-C8ubb8Qf.js} +113 -113
  25. package/dist/{Recipe-DgfobgnQ.js → Recipe-BpMRLsyO.js} +32 -32
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BgDVFKRI.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DCbrAMxd.js → RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js} +474 -473
  28. package/dist/{Scheduler-C-LJs7Gl.js → Scheduler-CiB4b2Fn.js} +9 -9
  29. package/dist/{ServingSequence-BoaDRfsc.js → ServingSequence-BlcyW-dv.js} +18 -18
  30. package/dist/{Setting-BfFqBD9u.js → Setting-DqkL6YYU.js} +31 -31
  31. package/dist/{Subcategory-BsnC9ZSS.js → Subcategory-B4Jg_wtT.js} +43 -43
  32. package/dist/{Takeaway-PilRifJP.js → Takeaway-5G3f7jWT.js} +1 -1
  33. package/dist/{Takeaway-dSEAc70g.js → Takeaway-5rFPYYNA.js} +16 -16
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CgioM0sV.js → Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js} +23 -23
  35. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CHf3g1ia.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js} +1 -1
  36. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-A43XxqyC.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js} +8 -9
  37. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js +5836 -0
  38. package/dist/{Unit-DW1dFJas.js → Unit-CAkdmQLg.js} +2 -2
  39. package/dist/{Variant-CzLzrt2N.js → Variant-BbLQqbAK.js} +13 -13
  40. package/dist/{_id_-qfASfKMD.js → _id_-Dzacr40I.js} +13 -13
  41. package/dist/{app-BB33yKM6.js → app-4yWs09Fr.js} +495 -495
  42. package/dist/{app-CJnEQz-U.js → app-Deov1985.js} +3 -3
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/src/api/media.d.ts +161 -0
  45. package/dist/apps/mf-menu/src/app.d.ts +340 -0
  46. package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
  47. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +150 -0
  48. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/CustomDimensionDialog.vue.d.ts +17 -0
  49. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadDialog.vue.d.ts +16 -1
  50. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ManageImageDrawer.vue.d.ts +42 -0
  51. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ProductImageField.vue.d.ts +75 -0
  52. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/RegenerateImageDialog.vue.d.ts +17 -0
  53. package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +3 -6
  54. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
  55. package/dist/apps/mf-menu/src/composable/remyImageTarget.d.ts +5 -0
  56. package/dist/apps/mf-menu/src/helper/menu.d.ts +14 -1
  57. package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
  58. package/dist/apps/mf-menu/src/types/rule.d.ts +2 -0
  59. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +3 -2
  60. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +8 -8
  61. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  62. package/dist/assets/{linked-status-VaVE9Pyh.js → linked-status-B2WLhKkV.js} +3 -3
  63. package/dist/assets/{menu-export-DD9Zt6XH.js → menu-export-Dcw5a_dN.js} +3 -3
  64. package/dist/assets/{override-menu-DZCgrhuF.js → override-menu-cBe2aMY6.js} +3 -3
  65. package/dist/assets/{validate-menu-BFsQlikL.js → validate-menu-BM-5GK85.js} +2 -2
  66. package/dist/{catalog-Cvn1ZMGp.js → catalog-DKygS2Cs.js} +6 -6
  67. package/dist/{catalogSetting-D2bOCGW7.js → catalogSetting-Bn2TplvM.js} +1 -1
  68. package/dist/currency-DXgNHtK8.js +7 -0
  69. package/dist/dayjs.min-DpX65tgj.js +7 -0
  70. package/dist/discardConfirm-DZwzKO-Q.js +3704 -0
  71. package/dist/{index-B2fxLO4K.js → index-B48KLyqg.js} +61 -61
  72. package/dist/{index-CizrxT_e.js → index-BEocaqRK.js} +30 -30
  73. package/dist/index-K-MBqJJo.js +222 -0
  74. package/dist/{index.vue_vue_type_script_setup_true_lang-gaRM4vfS.js → index.vue_vue_type_script_setup_true_lang-Nl505vPi.js} +44918 -51563
  75. package/dist/item-Da3ArD-G.js +13213 -0
  76. package/dist/{jszip.min-BXLegUsz.js → jszip.min-Cc2eR4Cq.js} +119 -119
  77. package/dist/linkProducts-GNuUxFEE.js +331 -0
  78. package/dist/{memberPricing-CizI1rUM.js → memberPricing-T-jr7tn1.js} +1 -1
  79. package/dist/{menu-BCed1YCE.js → menu-DSDRAil-.js} +1 -1
  80. package/dist/{menuV2-Bo9AHrdr.js → menuV2-fTlJdjxi.js} +162 -160
  81. package/dist/mf-menu.css +1 -1
  82. package/dist/{order_pacing-BkfQeNeC.js → order_pacing-Dgo1fySS.js} +17 -17
  83. package/dist/packages/shared/src/helpers/agentCode.d.ts +9 -0
  84. package/dist/{priceTier-rjuK-b6U.js → priceTier-aT_gIfrN.js} +3 -3
  85. package/dist/{rules-DHX_hK6G.js → rules-Cx2hkV20.js} +8 -8
  86. package/dist/{scheduler-BsfPbtM2.js → scheduler-Bd-q7yF8.js} +62 -62
  87. package/dist/{toExcel-DJHljg_L.js → toExcel-qfjR83qT.js} +2 -2
  88. package/dist/{unit-BxTWR1dZ.js → unit-n1T9grbM.js} +64 -64
  89. package/package.json +3 -3
  90. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DGqao47l.js +0 -399
  91. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DY1umres.js +0 -6058
  92. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/thumbnailUpload.d.ts +0 -6
  93. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadForm.vue.d.ts +0 -38
  94. package/dist/currency-DQDsuXB5.js +0 -7
  95. package/dist/dayjs.min-CzUkrXIR.js +0 -7
  96. package/dist/discardConfirm-BHni0LNu.js +0 -28
  97. package/dist/index-CisutoS9.js +0 -156
  98. package/dist/item-DOHVD6CN.js +0 -9098
@@ -1,6 +0,0 @@
1
- export interface ThumbnailUploadResult {
2
- itemId: string;
3
- thumbnail: string | null;
4
- }
5
- export declare function waitForPendingThumbnailUploads(): Promise<void>;
6
- export declare function uploadItemThumbnail(itemId: string, file: File): Promise<ThumbnailUploadResult>;
@@ -1,38 +0,0 @@
1
- import { type ThumbnailUploadResult } from "@/components/feature/TreeEditor/composable/thumbnailUpload";
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
- itemId: string;
4
- disabled: boolean;
5
- modelValue: string | null;
6
- }>, {
7
- disabled: boolean;
8
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
- "thumbnail-uploaded": (result: ThumbnailUploadResult) => void;
10
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
- itemId: string;
12
- disabled: boolean;
13
- modelValue: string | null;
14
- }>, {
15
- disabled: boolean;
16
- }>>> & Readonly<{
17
- "onThumbnail-uploaded"?: ((result: ThumbnailUploadResult) => any) | undefined;
18
- }>, {
19
- disabled: boolean;
20
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
- export default _default;
22
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
- type __VLS_TypePropsToRuntimeProps<T> = {
24
- [K in keyof T]-?: {} extends Pick<T, K> ? {
25
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
- } : {
27
- type: import('vue').PropType<T[K]>;
28
- required: true;
29
- };
30
- };
31
- type __VLS_WithDefaults<P, D> = {
32
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
- default: D[K];
34
- }> : P[K];
35
- };
36
- type __VLS_Prettify<T> = {
37
- [K in keyof T]: T[K];
38
- } & {};
@@ -1,7 +0,0 @@
1
- import { z as e } from "./index.vue_vue_type_script_setup_true_lang-gaRM4vfS.js";
2
- function n(r, o = !0) {
3
- return e.Dinero.fromFdoDinero(r).toFormat(o).replaceAll(" ", "");
4
- }
5
- export {
6
- n as f
7
- };
@@ -1,7 +0,0 @@
1
- import { g as r } from "./app-BB33yKM6.js";
2
- import { at as a } from "./index.vue_vue_type_script_setup_true_lang-gaRM4vfS.js";
3
- var o = a();
4
- const m = /* @__PURE__ */ r(o);
5
- export {
6
- m as D
7
- };
@@ -1,28 +0,0 @@
1
- import { useI18n as e } from "@feedmepos/mf-common";
2
- import { useDialog as m } from "@feedmepos/ui-library";
3
- function c(i, t) {
4
- const r = m(), { t: o } = e();
5
- function s() {
6
- i() ? r.open({
7
- title: o("portalCommon.dismiss.title"),
8
- message: o("portalCommon.dismiss.message"),
9
- zIndex: 200,
10
- primaryActions: {
11
- text: o("portalCommon.dismiss.primaryActions"),
12
- variant: "primary",
13
- close: !0
14
- },
15
- secondaryActions: {
16
- text: o("common.cancel"),
17
- variant: "tertiary",
18
- close: !0
19
- }
20
- }).onPrimary(() => {
21
- t();
22
- }) : t();
23
- }
24
- return s;
25
- }
26
- export {
27
- c as u
28
- };
@@ -1,156 +0,0 @@
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 "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { useI18n as U } from "@feedmepos/mf-common";
4
- const N = {
5
- class: /* @__PURE__ */ d([
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
- }, $ = { class: "fm-typo-en-title-sm-600 mr-auto" }, z = {
12
- class: /* @__PURE__ */ d(["flex flex-col", "flex-1 overflow-scroll", "w-full", "px-24"])
13
- }, V = /* @__PURE__ */ y({
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(t, { emit: e }) {
24
- const n = e, l = () => {
25
- n("onPrimary");
26
- }, c = () => {
27
- n("onCancel");
28
- };
29
- return (r, o) => {
30
- const a = p("fm-button"), s = p("fm-form");
31
- return i(), f(E, { to: "body" }, [
32
- _(g, { name: "fade" }, {
33
- default: h(() => [
34
- r.show ? (i(), f(s, {
35
- key: 0,
36
- "blame-form-child-on-validation-failed": "",
37
- class: d(["fixed inset-0", "flex flex-col", "w-screen h-dvh", "bg-fm-color-neutral-white"]),
38
- style: F({ zIndex: r.zIndex }),
39
- tabindex: "-1",
40
- onValidationSuccess: l,
41
- onKeyup: w(c, ["esc"])
42
- }, {
43
- default: h(() => [
44
- m("div", N, [
45
- m("p", $, R(r.title), 1),
46
- x(r.$slots, "append-title", {}, void 0, !0),
47
- (i(!0), T(A, null, v(r.secondaryActions, (u) => (i(), f(a, {
48
- label: u.label,
49
- variant: "tertiary",
50
- onClick: u.click
51
- }, null, 8, ["label", "onClick"]))), 256)),
52
- _(a, {
53
- label: r.primaryAction.label,
54
- type: "submit",
55
- variant: "primary"
56
- }, null, 8, ["label"])
57
- ]),
58
- m("div", z, [
59
- x(r.$slots, "default", {}, void 0, !0)
60
- ])
61
- ]),
62
- _: 3
63
- }, 8, ["style"])) : L("", !0)
64
- ]),
65
- _: 3
66
- })
67
- ]);
68
- };
69
- }
70
- }), Q = /* @__PURE__ */ k(V, [["__scopeId", "data-v-5b5c7179"]]), Y = /* @__PURE__ */ y({
71
- __name: "PriceTierNotice",
72
- props: {
73
- menuStore: {}
74
- },
75
- setup(t) {
76
- const e = t, n = C(() => {
77
- var r, o;
78
- return ((r = e.menuStore.currentCatalog) == null ? void 0 : r.priceTierRules) ?? ((o = e.menuStore.currentCatalog) == null ? void 0 : o.usePriceTiers) ?? [];
79
- }), l = C(() => {
80
- var r;
81
- return e.menuStore.isV4 && e.menuStore.currentCatalog && !e.menuStore.currentScheduler && ((r = n.value) == null ? void 0 : r.length) > 0;
82
- }), { t: c } = U();
83
- return (r, o) => {
84
- var s;
85
- const a = p("FmSnackbar");
86
- return l.value ? (i(), f(a, {
87
- key: 0,
88
- "z-index": 0,
89
- class: "!max-w-full",
90
- title: I(c)("menu.price_tier.price_group_description", { group: (s = n.value) == null ? void 0 : s.join(", ") })
91
- }, null, 8, ["title"])) : L("", !0);
92
- };
93
- }
94
- }), B = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), D = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), X = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), j = /[^\p{L}\d]+/giu, S = "$1\0$2", b = "";
95
- function P(t) {
96
- let e = t.trim();
97
- e = e.replace(B, S).replace(D, S), e = e.replace(j, "\0");
98
- let n = 0, l = e.length;
99
- for (; e.charAt(n) === "\0"; )
100
- n++;
101
- if (n === l)
102
- return [];
103
- for (; e.charAt(l - 1) === "\0"; )
104
- l--;
105
- return e.slice(n, l).split(/\0/g);
106
- }
107
- function K(t) {
108
- const e = P(t);
109
- for (let n = 0; n < e.length; n++) {
110
- const l = e[n], c = X.exec(l);
111
- if (c) {
112
- const r = c.index + (c[1] ?? c[2]).length;
113
- e.splice(n, 1, l.slice(0, r), l.slice(r));
114
- }
115
- }
116
- return e;
117
- }
118
- function Z(t, e) {
119
- const [n, l, c] = O(t, e), r = G(e == null ? void 0 : e.locale), o = H(e == null ? void 0 : e.locale), a = M(r, o);
120
- return n + l.map((s, u) => u === 0 ? a(s) : r(s)).join((e == null ? void 0 : e.delimiter) ?? " ") + c;
121
- }
122
- function G(t) {
123
- return t === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(t);
124
- }
125
- function H(t) {
126
- return t === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(t);
127
- }
128
- function M(t, e) {
129
- return (n) => `${e(n[0])}${t(n.slice(1))}`;
130
- }
131
- function O(t, e = {}) {
132
- const n = e.split ?? (e.separateNumbers ? K : P), l = e.prefixCharacters ?? b, c = e.suffixCharacters ?? b;
133
- let r = 0, o = t.length;
134
- for (; r < t.length; ) {
135
- const a = t.charAt(r);
136
- if (!l.includes(a))
137
- break;
138
- r++;
139
- }
140
- for (; o > r; ) {
141
- const a = o - 1, s = t.charAt(a);
142
- if (!c.includes(s))
143
- break;
144
- o = a;
145
- }
146
- return [
147
- t.slice(0, r),
148
- n(t.slice(r, o)),
149
- t.slice(o)
150
- ];
151
- }
152
- export {
153
- Q as F,
154
- Y as _,
155
- Z as s
156
- };