@feedmepos/mf-menu-portal 1.0.4-dev.4 → 1.0.5-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-CrpoLCjA.js → App-B2xq1U4S.js} +699 -687
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CPh1GBw9.js} +11 -10
- package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-D3CmOOPY.js → BindingTable.vue_vue_type_script_setup_true_lang-DCgMQJE-.js} +50 -46
- package/dist/Catalog-BEI73S_k.js +433 -0
- package/dist/{CatalogBinding-BNATtZEY.js → CatalogBinding-3rhuTWDD.js} +30 -29
- package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-BmG-xpW4.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js} +30 -29
- package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BFsRDFpj.js → CatalogEditor.vue_vue_type_script_setup_true_lang-Dc72SNpI.js} +314 -304
- package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-CMyubLvP.js +127 -0
- package/dist/{Category-DMoXTsfG.js → Category-BVCdkA5K.js} +14 -13
- package/dist/{Category-DxjdQ-NN.js → Category-P5DYjIeF.js} +2 -2
- package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-B3Ts1O-9.js → CategoryList.vue_vue_type_script_setup_true_lang-DyhW52Df.js} +274 -262
- package/dist/{CookingGuide-DiZZDYD-.js → CookingGuide-Y-c1NLP5.js} +144 -140
- package/dist/{Group-rzfh_o6r.js → Group-D6wA3jCF.js} +2 -2
- package/dist/{Group-DFR8q-tt.js → Group-qqr5SUIc.js} +17 -15
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-DNTVfY2d.js +1996 -0
- package/dist/{Ingredient-DpjGIuH9.js → Ingredient-CJHkJZ0y.js} +94 -93
- package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CnI80Ojd.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js} +1 -1
- package/dist/{MenuSetting-DR-pDSF_.js → MenuSetting-YcEGo51l.js} +462 -446
- package/dist/{OrderPacing-JcTuweqF.js → OrderPacing-DwQU7c0Y.js} +207 -204
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-HwwJ2mGv.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-2Cdz70u-.js} +1 -2
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js +44 -0
- package/dist/PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js +12 -0
- package/dist/{Preview-BZyun5lZ.js → Preview-DLeXy5V-.js} +2 -2
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-DquqNbE1.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-D_OV9Z_4.js} +1 -1
- package/dist/{PrintRoute-CzEx2dCt.js → PrintRoute-R38w0-U2.js} +151 -150
- package/dist/{Product-CQb0n06E.js → Product-sbMCaVhM.js} +8 -7
- package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-DoHQeOHy.js +7826 -0
- package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D9v88xZs.js +111 -0
- package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-CBlDEjqF.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-DsIGLKNS.js} +17 -17
- package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-D8NQTCLx.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-CEliG36Z.js} +726 -726
- package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-cG47Pu-6.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B3bShTjM.js} +127 -124
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-0UwUcA2L.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BzctosMW.js} +820 -807
- package/dist/{ProductInternalTools-QrBR1nFp.js → ProductInternalTools-jE3Ovo4l.js} +3 -3
- package/dist/{ProductInventoryDialog-fV38GO1a.js → ProductInventoryDialog-EDlrXupB.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Bzb3RrMg.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-LOwSpoiA.js} +1 -1
- package/dist/{ProductList.vue_vue_type_script_setup_true_lang-BwKQESr3.js → ProductList.vue_vue_type_script_setup_true_lang-rczFAWVa.js} +1135 -1098
- package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-CDYcHXo1.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-C4iK-sAd.js} +1 -1
- package/dist/{Products-B8tysOAL.js → Products-DUE10OyS.js} +51 -49
- package/dist/Publish-BlMxKniP.js +1300 -0
- package/dist/{Recipe-Ddx31csF.js → Recipe-BhjPAidT.js} +83 -82
- package/dist/{Scheduler-CST5L_cw.js → Scheduler-wKG3_D1f.js} +137 -136
- package/dist/{ServingSequence-DYyEZI2S.js → ServingSequence-B26BETQs.js} +63 -61
- package/dist/Setting-DBdNl3WL.js +185 -0
- package/dist/{Subcategory-BIgjzVta.js → Subcategory-B06yMcuE.js} +147 -144
- package/dist/{Takeaway-CekhGM-m.js → Takeaway-CFATfy-6.js} +2 -2
- package/dist/{Takeaway-aXsPg4JT.js → Takeaway-DFqOtls7.js} +17 -16
- package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CUHB-g9I.js +616 -0
- package/dist/TextChip.vue_vue_type_script_setup_true_lang-YkUjMTXo.js +32 -0
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CshqYpc9.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoS4Btzj.js} +281 -308
- package/dist/{Unit-BMW8u0Us.js → Unit-B5wKBmIT.js} +90 -89
- package/dist/{Variant-CZsrYRMU.js → Variant-C5ePu0za.js} +167 -174
- package/dist/{_id_-D4swrvNa.js → _id_-HRDqt6oD.js} +3 -3
- package/dist/{app-BWwwHsWi.js → app-CxJjx2ma.js} +39 -39
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +35 -0
- package/dist/apps/mf-menu/src/components/GroupList.vue.d.ts +8 -0
- package/dist/apps/mf-menu/src/components/Product/OrderFromChip.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/Product/ProductThumbnail.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +4 -2
- package/dist/apps/mf-menu/src/components/PublishList.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/layout/MobileXScrollable.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/layout/PageLayout.vue.d.ts +7 -0
- package/dist/apps/mf-menu/src/components/layout/PhoneFab.vue.d.ts +9 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{menu-compute-D7TdiHt4.js → menu-compute-CQdeCEBO.js} +19 -19
- package/dist/assets/{validate-menu-DXppWUVq.js → validate-menu-BVo4fNWG.js} +14 -14
- package/dist/mf-menu-portal.css +1 -1
- package/dist/{provide-CDmXzkhz.js → provide-BGLSDsuJ.js} +99816 -99564
- package/dist/{useActionFeedback-Dm2HDa_2.js → useActionFeedback-CElXij1W.js} +1 -1
- package/package.json +1 -1
- package/dist/Catalog-VU3HhNro.js +0 -374
- package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Bk4FqVmx.js +0 -117
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-DiN-wQXX.js +0 -1807
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js +0 -41
- package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +0 -7931
- package/dist/Publish-DTvOvFNa.js +0 -1337
- package/dist/Setting-Ip0pGjks.js +0 -179
- package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CaRR4_j3.js +0 -554
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { defineComponent as V, computed as u, ref as j, resolveComponent as _, openBlock as t, createBlock as b, withCtx as i, createElementVNode as c, createElementBlock as p, Fragment as x, renderList as h, toDisplayString as r, createTextVNode as E, unref as k, createCommentVNode as f, withKeys as K, withModifiers as w } from "vue";
|
|
2
|
+
import { useI18n as L } from "@feedmepos/mf-common";
|
|
3
|
+
import { useBreakpoints as S } from "@feedmepos/ui-library";
|
|
4
|
+
const $ = { class: "flex flex-wrap gap-8 min-w-0 max-w-full" }, z = { class: "fm-typo-en-body-md-600 truncate" }, D = { class: "py-12 px-16 space-y-12" }, I = { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600" }, M = { class: "flex flex-wrap gap-8" }, P = { class: "fm-typo-en-body-md-600 break-words min-w-0" }, q = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
7
|
+
}, A = { key: 0 }, G = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "inline-block w-8"
|
|
10
|
+
}, Q = /* @__PURE__ */ V({
|
|
11
|
+
__name: "ProductChipSummary",
|
|
12
|
+
props: {
|
|
13
|
+
kind: {},
|
|
14
|
+
chips: {}
|
|
15
|
+
},
|
|
16
|
+
setup(C) {
|
|
17
|
+
const d = C, { t: l } = L(), m = u(
|
|
18
|
+
() => d.kind === "category" ? {
|
|
19
|
+
column: l("menu.product.table.columns.category"),
|
|
20
|
+
all: l("menu.product.table.category.all"),
|
|
21
|
+
expand: (e) => l("menu.product.table.category.expand", { count: e }),
|
|
22
|
+
collapse: l("menu.product.table.category.collapse")
|
|
23
|
+
} : {
|
|
24
|
+
column: l("menu.product.table.columns.tagging"),
|
|
25
|
+
all: l("menu.product.table.tagging.all"),
|
|
26
|
+
expand: (e) => l("menu.product.table.tagging.expand", { count: e }),
|
|
27
|
+
collapse: l("menu.product.table.tagging.collapse")
|
|
28
|
+
}
|
|
29
|
+
), F = (e) => d.kind === "tagging" ? l("menu.common.labels.a11y_labelled_name", {
|
|
30
|
+
label: e.key,
|
|
31
|
+
name: e.label
|
|
32
|
+
}) : e.label, B = S(), v = u(() => B.breakpoints.value.xs), o = j(!0), y = u(() => v.value ? 1 : 2), g = u(() => d.chips.slice(0, y.value)), N = u(() => {
|
|
33
|
+
const e = l("menu.catalog.list_separator");
|
|
34
|
+
if (!o.value)
|
|
35
|
+
return d.chips.map((n) => n.label).join(e);
|
|
36
|
+
const a = g.value.map((n) => n.label).join(e);
|
|
37
|
+
return a.length > 20 ? a.slice(0, 20) + l("menu.common.labels.truncation_suffix") : a;
|
|
38
|
+
});
|
|
39
|
+
return (e, a) => {
|
|
40
|
+
const n = _("FmChip"), T = _("FmTooltip");
|
|
41
|
+
return v.value ? e.chips.length ? (t(), p("p", q, [
|
|
42
|
+
c("span", null, r(k(l)("menu.common.labels.a11y_labelled_name", {
|
|
43
|
+
label: m.value.column,
|
|
44
|
+
name: N.value
|
|
45
|
+
})), 1),
|
|
46
|
+
o.value ? (t(), p("span", G)) : (t(), p("br", A)),
|
|
47
|
+
e.chips.length > y.value ? (t(), p("span", {
|
|
48
|
+
key: 2,
|
|
49
|
+
role: "button",
|
|
50
|
+
tabindex: "0",
|
|
51
|
+
class: "fm-typo-en-body-md-400 text-fm-color-primary cursor-pointer",
|
|
52
|
+
onClick: a[0] || (a[0] = w((s) => o.value = !o.value, ["stop", "prevent"])),
|
|
53
|
+
onKeydown: a[1] || (a[1] = K(w((s) => o.value = !o.value, ["stop", "prevent"]), ["enter"]))
|
|
54
|
+
}, r(o.value ? m.value.expand(e.chips.length - y.value) : m.value.collapse), 33)) : f("", !0)
|
|
55
|
+
])) : f("", !0) : (t(), b(T, {
|
|
56
|
+
key: 0,
|
|
57
|
+
class: "flex min-w-0 max-w-full",
|
|
58
|
+
variant: "rich",
|
|
59
|
+
placement: "top",
|
|
60
|
+
"z-index": 50
|
|
61
|
+
}, {
|
|
62
|
+
content: i(() => [
|
|
63
|
+
c("div", D, [
|
|
64
|
+
c("p", I, r(m.value.all), 1),
|
|
65
|
+
c("div", M, [
|
|
66
|
+
(t(!0), p(x, null, h(e.chips, (s) => (t(), b(n, {
|
|
67
|
+
key: s.key,
|
|
68
|
+
compact: "",
|
|
69
|
+
class: "max-w-full !h-auto min-h-[22px] !px-4 py-2"
|
|
70
|
+
}, {
|
|
71
|
+
default: i(() => [
|
|
72
|
+
c("span", P, r(F(s)), 1)
|
|
73
|
+
]),
|
|
74
|
+
_: 2
|
|
75
|
+
}, 1024))), 128))
|
|
76
|
+
])
|
|
77
|
+
])
|
|
78
|
+
]),
|
|
79
|
+
default: i(() => [
|
|
80
|
+
c("div", $, [
|
|
81
|
+
(t(!0), p(x, null, h(g.value, (s) => (t(), b(n, {
|
|
82
|
+
key: s.key,
|
|
83
|
+
compact: "",
|
|
84
|
+
class: "max-w-full !px-4"
|
|
85
|
+
}, {
|
|
86
|
+
default: i(() => [
|
|
87
|
+
c("span", z, r(s.label), 1)
|
|
88
|
+
]),
|
|
89
|
+
_: 2
|
|
90
|
+
}, 1024))), 128)),
|
|
91
|
+
e.chips.length > y.value ? (t(), b(n, {
|
|
92
|
+
key: 0,
|
|
93
|
+
compact: "",
|
|
94
|
+
class: "fm-typo-en-body-md-600 !px-4",
|
|
95
|
+
"aria-label": m.value.all
|
|
96
|
+
}, {
|
|
97
|
+
default: i(() => [
|
|
98
|
+
E(r(k(l)("menu.common.labels.truncation_suffix")), 1)
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 8, ["aria-label"])) : f("", !0)
|
|
102
|
+
])
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
}));
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
export {
|
|
110
|
+
Q as _
|
|
111
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as C, ref as E, openBlock as r, createElementBlock as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useSnackbar as
|
|
4
|
-
import { _ as
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as C, ref as E, openBlock as r, createElementBlock as g, Fragment as _, createVNode as c, unref as t, withCtx as p, createBlock as v, createCommentVNode as f, createElementVNode as B } from "vue";
|
|
2
|
+
import { useI18n as I } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as N, SnackbarPosition as P } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as $ } from "./ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B3bShTjM.js";
|
|
5
|
+
import { P as O, b as S, _ as T, I as V } from "./ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BzctosMW.js";
|
|
6
|
+
const F = { class: "hidden xs:block sm:block" }, h = /* @__PURE__ */ C({
|
|
7
7
|
__name: "ProductEditorHost",
|
|
8
8
|
props: {
|
|
9
9
|
sdk: {},
|
|
@@ -13,8 +13,8 @@ const A = { class: "hidden xs:block sm:block" }, h = /* @__PURE__ */ C({
|
|
|
13
13
|
validation: {}
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:open", "submit", "select-scope"],
|
|
16
|
-
setup(
|
|
17
|
-
const s = y, { t: n } =
|
|
16
|
+
setup(A, { emit: y }) {
|
|
17
|
+
const s = y, { t: n } = I(), k = N(), m = E(null);
|
|
18
18
|
function w(e) {
|
|
19
19
|
var o;
|
|
20
20
|
(o = m.value) == null || o.open(e);
|
|
@@ -24,17 +24,17 @@ const A = { class: "hidden xs:block sm:block" }, h = /* @__PURE__ */ C({
|
|
|
24
24
|
name: o
|
|
25
25
|
}) {
|
|
26
26
|
const i = e === "category" || e === "subcategory" ? n(V[e].success, { name: o }) : e === "priceGroup" ? n("menu.price_tier.add_price_group_success") : e === "variant" ? n("menu.variant.form.saved", { name: o }) : n("menu.product.manager.action.saved", { name: o });
|
|
27
|
-
k.open({ type: "success", title: i, position:
|
|
27
|
+
k.open({ type: "success", title: i, position: P.BOTTOM });
|
|
28
28
|
}
|
|
29
29
|
return (e, o) => {
|
|
30
|
-
var i,
|
|
31
|
-
return r(), _
|
|
32
|
-
c(
|
|
30
|
+
var i, d, l, u;
|
|
31
|
+
return r(), g(_, null, [
|
|
32
|
+
c($, {
|
|
33
33
|
show: e.open,
|
|
34
34
|
title: ((i = e.view) == null ? void 0 : i.mode) === "update" ? t(n)("menu.product.form.title.update") : t(n)("menu.product.form.title.add"),
|
|
35
35
|
"primary-action": {
|
|
36
|
-
label: ((
|
|
37
|
-
disabled: ((
|
|
36
|
+
label: ((d = e.view) == null ? void 0 : d.mode) === "update" ? t(n)("menu.common.actions.update") : t(n)("menu.common.actions.add"),
|
|
37
|
+
disabled: ((l = e.view) == null ? void 0 : l.submit.state) !== "allowed"
|
|
38
38
|
},
|
|
39
39
|
"secondary-actions": [
|
|
40
40
|
{
|
|
@@ -46,8 +46,8 @@ const A = { class: "hidden xs:block sm:block" }, h = /* @__PURE__ */ C({
|
|
|
46
46
|
onOnCancel: o[2] || (o[2] = (a) => s("update:open", !1))
|
|
47
47
|
}, {
|
|
48
48
|
"append-title": p(() => [
|
|
49
|
-
|
|
50
|
-
e.view ? (r(), v(
|
|
49
|
+
B("div", F, [
|
|
50
|
+
e.view ? (r(), v(S, {
|
|
51
51
|
key: 0,
|
|
52
52
|
summary: e.view.summary,
|
|
53
53
|
variant: "dialog"
|
|
@@ -55,7 +55,7 @@ const A = { class: "hidden xs:block sm:block" }, h = /* @__PURE__ */ C({
|
|
|
55
55
|
])
|
|
56
56
|
]),
|
|
57
57
|
default: p(() => [
|
|
58
|
-
e.view && e.session ? (r(), v(
|
|
58
|
+
e.view && e.session ? (r(), v(O, {
|
|
59
59
|
key: 0,
|
|
60
60
|
sdk: e.sdk,
|
|
61
61
|
view: e.view,
|