@feedmepos/mf-menu 0.32.64 → 0.32.66-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.
- package/dist/{App-W8bH6kiT.js → App-CI_iNcgK.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DvHmwIP2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CYxG4ihX.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-2nFIpZv4.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-UllnR0h6.js} +3 -3
- package/dist/{Catalog-pywklogh.js → Catalog-Bh2SAffq.js} +6 -6
- package/dist/{Category-UMDcymDA.js → Category-CVKnqszH.js} +14 -14
- package/dist/{Category-CLs58F_F.js → Category-DfTtG9CR.js} +8 -8
- package/dist/{CookingGuide-Cefv83hr.js → CookingGuide-ya45J1Mt.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-C9CvjWEO.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-i6fzPFdp.js} +1 -1
- package/dist/{Group-CfxNpgp7.js → Group-DLo3Tq5F.js} +1 -1
- package/dist/{Group-Ujeo9noG.js → Group-d5ODb1qt.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-C-eZ5PGS.js → Group.vue_vue_type_script_setup_true_lang-mJM1hfDS.js} +48 -48
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-qTEz4XWJ.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Ctw_g4uv.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Kf10i_T2.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-OzkvL_JP.js} +6376 -6365
- package/dist/{Ingredient-CsHbFizZ.js → Ingredient-BT24CVH8.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-NKoRT-LI.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Cd2xFodR.js} +2 -2
- package/dist/{LinkProductSideSheet-B-Trz4a6.js → LinkProductSideSheet-CAjxumsy.js} +4 -4
- package/dist/{MenuSetting-BNWjJAp4.js → MenuSetting-CrKps0Pr.js} +7 -7
- package/dist/{OrderPacing-DhKmymC7.js → OrderPacing-DV8YhW4M.js} +5 -5
- package/dist/{PrintRoute-DaIY94Ts.js → PrintRoute-N_c01sX7.js} +5 -5
- package/dist/{Product-SBeMVZBU.js → Product-i45cWBne.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CDoJwAFZ.js → Product.vue_vue_type_script_setup_true_lang-SBnKF6Dc.js} +108 -108
- package/dist/{ProductInternalTools-BAHMukHo.js → ProductInternalTools-C10beN3h.js} +25 -25
- package/dist/{Products-CvUK4ngP.js → Products-Copz_NxK.js} +68 -68
- package/dist/{Publish-BqI8LP_Y.js → Publish-Dx9g-Iml.js} +4 -4
- package/dist/{Recipe--LCvPofA.js → Recipe-B0dhSxLY.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DaqG3ZEC.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BfTWVSgk.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DsCNLIVd.js → RuleView.vue_vue_type_script_setup_true_lang-CGjp5ObO.js} +595 -595
- package/dist/{Scheduler-BkXNha9_.js → Scheduler-Bdy9DG0p.js} +3 -3
- package/dist/{ServingSequence-DvF8yZTp.js → ServingSequence-onP8TGmt.js} +3 -3
- package/dist/{Setting-dfdQhacG.js → Setting-h1N-6VJG.js} +5 -5
- package/dist/{Subcategory-DoiEnCY-.js → Subcategory-uRvIJSP2.js} +6 -6
- package/dist/{Takeaway-Pyol2JIm.js → Takeaway-1LAZ7cjz.js} +4 -4
- package/dist/{Takeaway-CfTKoZgq.js → Takeaway-BVfssE0J.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-A2Uz3Vx5.js → Takeaway.vue_vue_type_script_setup_true_lang-DQy0jvn3.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-BAMLQtFW.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CFfvrpnY.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-Bx6Dfb9q.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-DY_CAuFa.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Bex1NCnU.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BL_x8Upd.js} +341 -340
- package/dist/{Unit-ODy76xeS.js → Unit-Bdjbice8.js} +2 -2
- package/dist/{Variant-BFUqQyub.js → Variant-D6lnVRhc.js} +3 -3
- package/dist/{_id_-DQO6Zi8b.js → _id_-_IoP91Df.js} +10 -10
- package/dist/{app-BNqI06Lw.js → app-CHa-DBPQ.js} +32 -32
- package/dist/{app-BNF3d7ks.js → app-DuSxtjmC.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +4 -4
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +18 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{override-menu-BCrsilnp.js → linked-status-DBJxrh2U.js} +4 -4
- package/dist/assets/{menu-export-oSHHIKfH.js → menu-export-UgrjUnN2.js} +39 -39
- package/dist/assets/{linked-status-OJYsf1K1.js → override-menu-CIRYGinT.js} +4 -4
- package/dist/assets/{validate-menu-CoDW8e4r.js → validate-menu-D8-_8UwY.js} +2 -2
- package/dist/{catalog-BiUOGVhu.js → catalog-C_rhdKvu.js} +1 -1
- package/dist/{catalogSetting-Dt03eB79.js → catalogSetting-SujM_d4-.js} +1 -1
- package/dist/{currency-I2Plgz6g.js → currency-CBsQulKD.js} +1 -1
- package/dist/{dayjs.min-CVgq1MI5.js → dayjs.min-CBi2aUyP.js} +2 -2
- package/dist/{discardConfirm-CU5H7XLz.js → discardConfirm-BhV1iT_G.js} +1 -1
- package/dist/index-CtMD-H5N.js +310 -0
- package/dist/{index-OUaL4kl7.js → index-D10URGOP.js} +5 -5
- package/dist/{index-D79td5bo.js → index-aXVdUVi9.js} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-BJ5dPd5h.js → index.vue_vue_type_script_setup_true_lang-cI7uKVre.js} +462 -462
- package/dist/{item-BPryyFAB.js → item-B7ovTnkT.js} +1262 -1338
- package/dist/{jszip.min-D3CS7h7J.js → jszip.min-nm6XtoQ3.js} +167 -167
- package/dist/{linkProducts-ClCfYWFx.js → linkProducts-lOTzQqNK.js} +4 -4
- package/dist/{memberPricing-CLr-Y_7e.js → memberPricing-BYT32y4D.js} +1 -1
- package/dist/{menu-gBc-za7C.js → menu-6qHiTu0j.js} +1 -1
- package/dist/{menuV2-D7O1K9Ej.js → menuV2-ILhcIRUD.js} +67 -67
- package/dist/{order_pacing-DVn2Kb9a.js → order_pacing-Bq09k_C7.js} +5 -5
- package/dist/{priceTier-33L1xIZW.js → priceTier-BzuYYCqN.js} +1 -1
- package/dist/{rules-C7ujXDzl.js → rules-BrliKHcG.js} +3 -3
- package/dist/{scheduler-Dzj2Ed1a.js → scheduler-6lSaa1nT.js} +5 -5
- package/dist/{toExcel-CGOr53pl.js → toExcel-C8QPvQuM.js} +2 -2
- package/dist/{unit-CfREeFuX.js → unit-s4XWrNN2.js} +3 -3
- package/package.json +1 -1
- package/dist/index-CD_omf3p.js +0 -222
package/dist/index-CD_omf3p.js
DELETED
|
@@ -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
|
-
};
|