@feedmepos/mf-menu-portal 1.0.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.
Files changed (78) hide show
  1. package/dist/{App-CgYpEYgp.js → App-B2xq1U4S.js} +699 -687
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CPh1GBw9.js} +11 -10
  3. package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-CWe5_Sm5.js → BindingTable.vue_vue_type_script_setup_true_lang-DCgMQJE-.js} +50 -46
  4. package/dist/Catalog-BEI73S_k.js +433 -0
  5. package/dist/{CatalogBinding-BjTeOA91.js → CatalogBinding-3rhuTWDD.js} +30 -29
  6. package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-doB3hsWD.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js} +30 -29
  7. package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BpBR-N_x.js → CatalogEditor.vue_vue_type_script_setup_true_lang-Dc72SNpI.js} +314 -304
  8. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-CMyubLvP.js +127 -0
  9. package/dist/{Category-6-ppsSmZ.js → Category-BVCdkA5K.js} +14 -13
  10. package/dist/{Category-CdsbuUqi.js → Category-P5DYjIeF.js} +2 -2
  11. package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-DlNUOgyu.js → CategoryList.vue_vue_type_script_setup_true_lang-DyhW52Df.js} +274 -262
  12. package/dist/{CookingGuide-CRyRlBeV.js → CookingGuide-Y-c1NLP5.js} +144 -140
  13. package/dist/{Group-DVrUlq4i.js → Group-D6wA3jCF.js} +2 -2
  14. package/dist/{Group-DqyBHSFx.js → Group-qqr5SUIc.js} +17 -15
  15. package/dist/GroupList.vue_vue_type_script_setup_true_lang-DNTVfY2d.js +1996 -0
  16. package/dist/{Ingredient-CGLfhbvN.js → Ingredient-CJHkJZ0y.js} +94 -93
  17. package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C0rc1FRO.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js} +1 -1
  18. package/dist/{MenuSetting-Oct3vbHj.js → MenuSetting-YcEGo51l.js} +462 -446
  19. package/dist/{OrderPacing-BDkzflgE.js → OrderPacing-DwQU7c0Y.js} +207 -204
  20. package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-B259anSs.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-2Cdz70u-.js} +1 -2
  21. package/dist/PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js +44 -0
  22. package/dist/PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js +12 -0
  23. package/dist/{Preview-V9cSpevb.js → Preview-DLeXy5V-.js} +2 -2
  24. package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-k5S4mGCN.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-D_OV9Z_4.js} +1 -1
  25. package/dist/{PrintRoute-3UwiMoBU.js → PrintRoute-R38w0-U2.js} +151 -150
  26. package/dist/{Product-LaB-YRTQ.js → Product-sbMCaVhM.js} +8 -7
  27. package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-DoHQeOHy.js +7826 -0
  28. package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D9v88xZs.js +111 -0
  29. package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-BBXGnZtc.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-DsIGLKNS.js} +17 -17
  30. package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-BUC6qUnG.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-CEliG36Z.js} +726 -726
  31. package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CjQRRqBx.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B3bShTjM.js} +127 -124
  32. package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-3yzUcogQ.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BzctosMW.js} +820 -807
  33. package/dist/{ProductInternalTools-DWCgC825.js → ProductInternalTools-jE3Ovo4l.js} +3 -3
  34. package/dist/{ProductInventoryDialog-D0d5RywR.js → ProductInventoryDialog-EDlrXupB.js} +1 -1
  35. package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-CmYKO0ZX.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-LOwSpoiA.js} +1 -1
  36. package/dist/{ProductList.vue_vue_type_script_setup_true_lang-DeX8Exly.js → ProductList.vue_vue_type_script_setup_true_lang-rczFAWVa.js} +1135 -1098
  37. package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BFD6_Sbb.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-C4iK-sAd.js} +1 -1
  38. package/dist/{Products-BLUhwFT-.js → Products-DUE10OyS.js} +51 -49
  39. package/dist/Publish-BlMxKniP.js +1300 -0
  40. package/dist/{Recipe-BGfofjHT.js → Recipe-BhjPAidT.js} +83 -82
  41. package/dist/{Scheduler-BL7t8aS7.js → Scheduler-wKG3_D1f.js} +137 -136
  42. package/dist/{ServingSequence-CDFXMCiN.js → ServingSequence-B26BETQs.js} +63 -61
  43. package/dist/Setting-DBdNl3WL.js +185 -0
  44. package/dist/{Subcategory-CnlrVwCy.js → Subcategory-B06yMcuE.js} +147 -144
  45. package/dist/{Takeaway-D8FzvC2w.js → Takeaway-CFATfy-6.js} +2 -2
  46. package/dist/{Takeaway-BWVzwWnh.js → Takeaway-DFqOtls7.js} +17 -16
  47. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CUHB-g9I.js +616 -0
  48. package/dist/TextChip.vue_vue_type_script_setup_true_lang-YkUjMTXo.js +32 -0
  49. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B8nXazx6.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoS4Btzj.js} +281 -308
  50. package/dist/{Unit-Do7Tt8U8.js → Unit-B5wKBmIT.js} +90 -89
  51. package/dist/{Variant-D1kLupxx.js → Variant-C5ePu0za.js} +167 -174
  52. package/dist/{_id_-DomaBHrh.js → _id_-HRDqt6oD.js} +3 -3
  53. package/dist/{app-C_XNYz8_.js → app-CxJjx2ma.js} +39 -39
  54. package/dist/app.js +1 -1
  55. package/dist/apps/mf-menu/src/app.d.ts +35 -0
  56. package/dist/apps/mf-menu/src/components/GroupList.vue.d.ts +8 -0
  57. package/dist/apps/mf-menu/src/components/Product/OrderFromChip.vue.d.ts +6 -0
  58. package/dist/apps/mf-menu/src/components/Product/ProductThumbnail.vue.d.ts +6 -0
  59. package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +4 -2
  60. package/dist/apps/mf-menu/src/components/PublishList.vue.d.ts +1 -1
  61. package/dist/apps/mf-menu/src/components/layout/MobileXScrollable.vue.d.ts +9 -0
  62. package/dist/apps/mf-menu/src/components/layout/PageLayout.vue.d.ts +7 -0
  63. package/dist/apps/mf-menu/src/components/layout/PhoneFab.vue.d.ts +9 -0
  64. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  65. package/dist/assets/{menu-compute-Did75Kp9.js → menu-compute-CQdeCEBO.js} +19 -19
  66. package/dist/assets/{validate-menu-DVMOLygB.js → validate-menu-BVo4fNWG.js} +14 -14
  67. package/dist/mf-menu-portal.css +1 -1
  68. package/dist/{provide-Bwf3KcOV.js → provide-BGLSDsuJ.js} +99817 -99565
  69. package/dist/{useActionFeedback-CXx7dOVc.js → useActionFeedback-CElXij1W.js} +1 -1
  70. package/package.json +1 -1
  71. package/dist/Catalog-BrHGEI3p.js +0 -374
  72. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-P59vHZEn.js +0 -117
  73. package/dist/GroupList.vue_vue_type_script_setup_true_lang-oGNs8e8f.js +0 -1807
  74. package/dist/PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js +0 -41
  75. package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +0 -7931
  76. package/dist/Publish-Dkjnls7p.js +0 -1337
  77. package/dist/Setting-gYZoZxQG.js +0 -179
  78. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-igS-FXq5.js +0 -554
@@ -0,0 +1,127 @@
1
+ import { defineComponent as A, shallowRef as f, computed as y, ref as N, watch as U, onUnmounted as $, resolveComponent as z, openBlock as g, createElementBlock as D, Fragment as E, createBlock as S, resolveDynamicComponent as O, normalizeClass as w, withCtx as j, unref as C, createCommentVNode as q, createVNode as G } from "vue";
2
+ import { useI18n as H } from "@feedmepos/mf-common";
3
+ import { useBreakpoints as J } from "@feedmepos/ui-library";
4
+ import { _ as K } from "./PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js";
5
+ import { _ as Q } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js";
6
+ import { u as T } from "./useActionFeedback-CElXij1W.js";
7
+ import { b as W, u as X } from "./provide-BGLSDsuJ.js";
8
+ const ae = /* @__PURE__ */ A({
9
+ __name: "CatalogLinkProductAction",
10
+ props: {
11
+ sdk: {},
12
+ presentation: {}
13
+ },
14
+ setup(V) {
15
+ const s = V, { t: b } = H(), h = W(), { run: P } = T(), _ = X(s.sdk.item.list), o = f({
16
+ status: "loading"
17
+ });
18
+ let u = null;
19
+ const l = y(
20
+ () => _.value.status === "ready" ? _.value.value : null
21
+ ), F = y(
22
+ () => o.value.status === "ready" ? o.value.value : null
23
+ ), i = N(!1), { breakpoints: I } = J(), v = y(
24
+ () => s.presentation !== "tree" && I.value.xs
25
+ ), r = f(null), c = f(
26
+ null
27
+ ), d = f({
28
+ status: "loading"
29
+ });
30
+ let p = null;
31
+ function m() {
32
+ var e, t;
33
+ u == null || u(), u = null, o.value = { status: "loading" }, p == null || p(), p = null, (e = r.value) == null || e.dispose(), r.value = null, (t = c.value) == null || t.dispose(), c.value = null, d.value = { status: "loading" };
34
+ }
35
+ function B() {
36
+ var n;
37
+ m();
38
+ const e = s.presentation === "tree" ? s.sdk.linkProduct.documentCatalogue : s.sdk.linkProduct.catalogue;
39
+ o.value = e.get(), u = e.subscribe((a) => {
40
+ o.value = a;
41
+ }), c.value = s.sdk.linkProduct.selection(
42
+ ((n = l.value) == null ? void 0 : n.availableItemIds) ?? [],
43
+ (a) => s.sdk.item.linkProducts(a)
44
+ );
45
+ const t = s.sdk.linkProduct.rules();
46
+ r.value = t, d.value = t.get(), p = t.subscribe((a) => {
47
+ d.value = a;
48
+ }), i.value = !0;
49
+ }
50
+ function M() {
51
+ i.value = !1, m();
52
+ }
53
+ U(i, (e) => {
54
+ e || m();
55
+ }), $(m);
56
+ async function L(e) {
57
+ (await P(
58
+ () => {
59
+ var n;
60
+ return ((n = c.value) == null ? void 0 : n.submit()) ?? Promise.resolve({ kind: "cancelled" });
61
+ },
62
+ {
63
+ successMessage: l.value ? h(l.value.linkSaveMessage) : ""
64
+ }
65
+ )).kind === "success" && M();
66
+ }
67
+ async function x() {
68
+ const e = r.value;
69
+ if (!e) return;
70
+ (await P(() => e.submit(), {
71
+ successMessage: l.value ? h(l.value.linkSaveMessage) : ""
72
+ })).kind === "success" && M();
73
+ }
74
+ return (e, t) => {
75
+ var a;
76
+ const n = z("FmButton");
77
+ return g(), D(E, null, [
78
+ (g(), S(O(v.value ? K : "div"), {
79
+ class: w(e.presentation === "tree" || v.value ? void 0 : "ml-auto")
80
+ }, {
81
+ default: j(() => {
82
+ var k, R;
83
+ return [
84
+ ((k = l.value) == null ? void 0 : k.link.state) === "allowed" ? (g(), S(n, {
85
+ key: 0,
86
+ label: C(b)("menu.products.actions.link"),
87
+ "prepend-icon": "link",
88
+ class: w(
89
+ e.presentation === "tree" ? "!h-32 shrink-0 !gap-4 !px-8 !py-4" : void 0
90
+ ),
91
+ "text-color": e.presentation === "tree" ? "primary" : void 0,
92
+ variant: e.presentation === "tree" ? "plain" : v.value ? "fab" : void 0,
93
+ onClick: B
94
+ }, null, 8, ["label", "class", "text-color", "variant"])) : ((R = l.value) == null ? void 0 : R.applyScheduler.state) === "allowed" ? (g(), S(n, {
95
+ key: 1,
96
+ label: C(b)("menu.products.actions.apply_scheduler"),
97
+ "prepend-icon": e.presentation === "tree" ? "link" : void 0,
98
+ class: w(
99
+ e.presentation === "tree" ? "!h-32 shrink-0 !gap-4 !px-8 !py-4" : void 0
100
+ ),
101
+ "text-color": e.presentation === "tree" ? "primary" : void 0,
102
+ variant: e.presentation === "tree" ? "plain" : v.value ? "fab" : void 0,
103
+ onClick: B
104
+ }, null, 8, ["label", "prepend-icon", "class", "text-color", "variant"])) : q("", !0)
105
+ ];
106
+ }),
107
+ _: 1
108
+ }, 8, ["class"])),
109
+ G(Q, {
110
+ modelValue: i.value,
111
+ "onUpdate:modelValue": t[0] || (t[0] = (k) => i.value = k),
112
+ catalogue: F.value,
113
+ "selected-product-ids": ((a = l.value) == null ? void 0 : a.availableItemIds) ?? [],
114
+ "rules-session": r.value,
115
+ "selection-session": c.value,
116
+ "rules-view": d.value.status === "ready" ? d.value.value : null,
117
+ title: C(b)("menu.link_product.title"),
118
+ onSubmit: L,
119
+ onSubmitRules: x
120
+ }, null, 8, ["modelValue", "catalogue", "selected-product-ids", "rules-session", "selection-session", "rules-view", "title"])
121
+ ], 64);
122
+ };
123
+ }
124
+ });
125
+ export {
126
+ ae as _
127
+ };
@@ -1,23 +1,24 @@
1
1
  import { defineComponent as l, computed as d, resolveComponent as p, openBlock as _, createBlock as f, unref as a, withCtx as e, createVNode as t } from "vue";
2
2
  import { useRoute as g, RouterLink as k } from "vue-router";
3
3
  import { useI18n as h } from "@feedmepos/mf-common";
4
- import { _ as v } from "./CategoryList.vue_vue_type_script_setup_true_lang-DlNUOgyu.js";
5
- import { _ as b } from "./CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-P59vHZEn.js";
6
- import { R as C } from "./app-C_XNYz8_.js";
7
- import { a as R, u as B } from "./provide-Bwf3KcOV.js";
8
- import { _ as w } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-doB3hsWD.js";
4
+ import { _ as v } from "./CategoryList.vue_vue_type_script_setup_true_lang-DyhW52Df.js";
5
+ import { _ as b } from "./CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-CMyubLvP.js";
6
+ import { R as C } from "./app-CxJjx2ma.js";
7
+ import { a as R, u as w } from "./provide-BGLSDsuJ.js";
8
+ import { _ as x } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js";
9
9
  const G = /* @__PURE__ */ l({
10
10
  __name: "Category",
11
- setup(x) {
12
- const o = R(), i = g(), { t: n } = h(), m = B(o.catalog.list), u = d(() => {
11
+ setup(B) {
12
+ const o = R(), s = g(), { t: n } = h(), i = w(o.catalog.list), c = d(() => {
13
13
  var r;
14
- return i.params.id === "main" ? n("menu.common.labels.main") : m.value.status !== "ready" ? "" : ((r = m.value.value.rows.find((s) => s.id === i.params.id)) == null ? void 0 : r.name) ?? "";
14
+ return s.params.id === "main" ? n("menu.common.labels.main") : i.value.status !== "ready" ? "" : ((r = i.value.value.rows.find((m) => m.id === s.params.id)) == null ? void 0 : r.name) ?? "";
15
15
  });
16
- return (r, s) => {
17
- const c = p("FmButton");
16
+ return (r, m) => {
17
+ const u = p("FmButton");
18
18
  return _(), f(v, {
19
+ class: "xs:overflow-hidden",
19
20
  "catalog-page": "",
20
- heading: u.value,
21
+ heading: c.value,
21
22
  sdk: a(o)
22
23
  }, {
23
24
  "prepend-heading": e(() => [
@@ -27,7 +28,7 @@ const G = /* @__PURE__ */ l({
27
28
  title: a(n)("menu.catalog.edit.back")
28
29
  }, {
29
30
  default: e(() => [
30
- t(c, {
31
+ t(u, {
31
32
  "prepend-icon": "arrow_back",
32
33
  variant: "tertiary",
33
34
  "aria-label": a(n)("menu.catalog.edit.back")
@@ -37,7 +38,7 @@ const G = /* @__PURE__ */ l({
37
38
  }, 8, ["to", "title"])
38
39
  ]),
39
40
  navigation: e(() => [
40
- t(w)
41
+ t(x)
41
42
  ]),
42
43
  "append-heading": e(() => [
43
44
  t(b, { sdk: a(o) }, null, 8, ["sdk"])
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as o, openBlock as r, createBlock as n, unref as t } from "vue";
2
- import { _ as s } from "./CategoryList.vue_vue_type_script_setup_true_lang-DlNUOgyu.js";
3
- import { a } from "./provide-Bwf3KcOV.js";
2
+ import { _ as s } from "./CategoryList.vue_vue_type_script_setup_true_lang-DyhW52Df.js";
3
+ import { a } from "./provide-BGLSDsuJ.js";
4
4
  const d = /* @__PURE__ */ o({
5
5
  __name: "Category",
6
6
  setup(_) {