@feedmepos/mf-menu 0.31.74 → 0.31.75-prod

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 (88) hide show
  1. package/dist/{App-B6Hn5Wwr.js → App-Cw2D3IXT.js} +528 -585
  2. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-CFtcqy58.js +161 -0
  3. package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.js +74 -0
  4. package/dist/{Catalog-D-2hDU2I.js → Catalog-B5kAKdVW.js} +9 -9
  5. package/dist/{Category-hSOIgBkH.js → Category-CAd9BTRX.js} +8 -8
  6. package/dist/{Category-DjTbuAvE.js → Category-DKjU47aW.js} +5 -5
  7. package/dist/{CookingGuide-D7ruB7eP.js → CookingGuide-BN739JkB.js} +7 -7
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-mxVSGXAz.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-gii2CTYD.js} +3 -3
  9. package/dist/{Group-evJZbgZn.js → Group-DmII5Nwf.js} +4 -4
  10. package/dist/{Group-CjlhbhDV.js → Group-DnpVxZkN.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-DiKraPiw.js → Group.vue_vue_type_script_setup_true_lang-BEeCwmKt.js} +163 -163
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BYku8MAc.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DB5B3PLx.js} +90 -90
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DScxctPb.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BEISm7uc.js} +3046 -3046
  14. package/dist/{Ingredient-jNDx1pUw.js → Ingredient-CpuyDF4n.js} +30 -30
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CuM_k-C3.js → InventoryBinding.vue_vue_type_script_setup_true_lang-GHiwD8VV.js} +1112 -1112
  16. package/dist/{LinkProductSideSheet-CAPIdf6P.js → LinkProductSideSheet-DrSKOBLg.js} +129 -129
  17. package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-Bm_hSelC.js +69 -0
  18. package/dist/{MenuSetting-C2MDgy57.js → MenuSetting-BNuIUnjz.js} +138 -138
  19. package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js → PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js} +8 -8
  20. package/dist/{PrintRoute-SmWbKr9Y.js → PrintRoute-Dl0oWYju.js} +6 -6
  21. package/dist/{Product-BCm49V9T.js → Product-IQBP1vvY.js} +1 -1
  22. package/dist/{Product.vue_vue_type_script_setup_true_lang-CTOjLqbF.js → Product.vue_vue_type_script_setup_true_lang-Bdss6VRj.js} +607 -607
  23. package/dist/{ProductInternalTools-DGsvvnIs.js → ProductInternalTools-Dkhbg1WE.js} +11 -11
  24. package/dist/{Products-D4qeSEfO.js → Products-Dcafs3Lk.js} +59 -59
  25. package/dist/{Publish-3A3EEQ9x.js → Publish-BTuO4AlR.js} +6 -6
  26. package/dist/{Recipe-CS7TZGA6.js → Recipe-Dx2ZkHsk.js} +6 -6
  27. package/dist/{Scheduler-BIwTUJMJ.js → Scheduler-Dh_0J2g9.js} +5 -5
  28. package/dist/{ServingSequence-C0N8wJfr.js → ServingSequence-DXhx9dcu.js} +5 -5
  29. package/dist/{Setting-fA6tvQK2.js → Setting-4x_w46t_.js} +5 -5
  30. package/dist/{Subcategory-BAFAmflQ.js → Subcategory-vztBpQnB.js} +6 -6
  31. package/dist/{Takeaway-D4aO8zzN.js → Takeaway-CDgIyUrN.js} +5 -5
  32. package/dist/{Takeaway-CLZouw1j.js → Takeaway-Dz5PxJk_.js} +1 -1
  33. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-1oN-i9bo.js → Takeaway.vue_vue_type_script_setup_true_lang-BMMXiDFL.js} +6 -6
  34. package/dist/{TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js → TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js} +5 -5
  35. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Dwol_Lkd.js → Thumbnail.vue_vue_type_script_setup_true_lang-DJ8JMV28.js} +74 -74
  36. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-cTzWxjM4.js +5996 -0
  37. package/dist/{Unit-ByqUb4Po.js → Unit-z7OVmlSq.js} +4 -4
  38. package/dist/{Variant-BmqrUfen.js → Variant-CFRgvlXf.js} +5 -5
  39. package/dist/{_id_-RUWzOB0B.js → _id_-B9q3j4_m.js} +11 -11
  40. package/dist/{app-B1N2F0j8.js → app-CdsS_tMb.js} +1 -1
  41. package/dist/app-CkCBPor3.js +363 -0
  42. package/dist/{app-5fxKLAzS.js → app-CzXxFrl1.js} +447 -447
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/src/app.d.ts +0 -1
  45. package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
  46. package/dist/apps/mf-menu/src/components/feature/MenuSelector.vue.d.ts +1 -1
  47. package/dist/apps/mf-menu/src/components/feature/SubcategoryManager/SubcategorySelector.vue.d.ts +1 -1
  48. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  49. package/dist/assets/linked-status-B8qYyYR6.js +13 -0
  50. package/dist/assets/override-menu-nmSTTTn7.js +13 -0
  51. package/dist/assets/validate-menu-CF1XZECU.js +13 -0
  52. package/dist/{catalog-CarmtheV.js → catalog-DBBEUpMo.js} +1 -1
  53. package/dist/{catalogSetting-BqrTpBP8.js → catalogSetting-DKvBjleU.js} +1 -1
  54. package/dist/{category-5R83ypNS.js → category-DILExwHL.js} +1 -1
  55. package/dist/{currency-CUl4r9rT.js → currency-B7Xm1xZJ.js} +1 -1
  56. package/dist/customAttributes-DrA0YC82.js +180 -0
  57. package/dist/{index-Ttqt4iFV.js → index-2lrKSO_O.js} +20 -20
  58. package/dist/{index-DlwLw-BQ.js → index-BoVEGKz7.js} +91 -91
  59. package/dist/{index-DAWSNP3G.js → index-Bu5LuO1j.js} +4 -4
  60. package/dist/{index-DUfYYdZ-.js → index-SNNvjtFa.js} +56 -56
  61. package/dist/{index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js → index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js} +16 -16
  62. package/dist/{item-B0UPYxsB.js → item-BnOnvN8x.js} +3091 -3174
  63. package/dist/{iteration-CfmAZiOO.js → iteration-Csz_aSxy.js} +3 -3
  64. package/dist/{jszip.min-zROpry0S.js → jszip.min-B0T3I-lE.js} +329 -329
  65. package/dist/{menu-DAac726D.js → menu-3XEn1C9F.js} +6402 -6332
  66. package/dist/{menu-DpYo8dYR.js → menu-DzbYSPGP.js} +1 -1
  67. package/dist/{menuV2-DZj_FPqR.js → menuV2-cXg54GYW.js} +93 -93
  68. package/dist/mf-menu.css +1 -1
  69. package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
  70. package/dist/{priceTier-BvDLl8v2.js → priceTier-DVd27LFd.js} +1 -1
  71. package/dist/{scheduler-pNUXG6En.js → scheduler-D8IgBrUX.js} +6 -6
  72. package/dist/{subcategory-DCDCQnAX.js → subcategory-BOpm3s8K.js} +2 -2
  73. package/dist/{toExcel-DqMa1Hn8.js → toExcel-BJM3fOB2.js} +2 -2
  74. package/dist/{unit-CuCXoWPG.js → unit-DF9d3piP.js} +151 -151
  75. package/dist/{vuedraggable-CK8z7qA8.js → vuedraggable-DnBIRDMr.js} +2 -2
  76. package/package.json +5 -5
  77. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-CqGU3bJQ.js +0 -161
  78. package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js +0 -74
  79. package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +0 -69
  80. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CabQS55D.js +0 -6012
  81. package/dist/app-CHpw_EM1.js +0 -2101
  82. package/dist/apps/mf-menu/src/components/feature/RemyButton.vue.d.ts +0 -15
  83. package/dist/apps/mf-menu/src/components/feature/RemyDialog.vue.d.ts +0 -15
  84. package/dist/apps/mf-menu/src/helper/remy.d.ts +0 -5
  85. package/dist/assets/linked-status-CFdi7K3K.js +0 -13
  86. package/dist/assets/override-menu-CXOY8i3w.js +0 -13
  87. package/dist/assets/validate-menu-DLlrsx2f.js +0 -13
  88. package/dist/customAttributes-BkqKM_KW.js +0 -180
@@ -1,161 +0,0 @@
1
- import { defineComponent as K, computed as i, h as u, ref as U, resolveComponent as b, createElementBlock as p, openBlock as d, createVNode as f, withCtx as g, createElementVNode as V, createCommentVNode as C, toDisplayString as j, unref as n, isRef as A, createBlock as D, Fragment as G, renderList as H } from "vue";
2
- import { useI18n as M } from "@feedmepos/mf-common";
3
- import { components as B, FmButtonColorThemeVariant as h, FmButtonVariant as I } from "@feedmepos/ui-library";
4
- import { _ as O } from "./customAttributes-BkqKM_KW.js";
5
- import { L as $ } from "./LinkProductSideSheet-CAPIdf6P.js";
6
- import { u as q } from "./search-BAPEUu1R.js";
7
- import { u as J, am as Q } from "./menu-DAac726D.js";
8
- const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }, Y = {
9
- key: 0,
10
- class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
11
- }, le = /* @__PURE__ */ K({
12
- __name: "ApplyProduct",
13
- props: {
14
- title: {},
15
- linkButtonLabel: {},
16
- overrides: {},
17
- selectVariant: { type: Boolean },
18
- showVariant: { type: Boolean },
19
- editable: { type: Boolean },
20
- categorizedItems: {},
21
- items: {},
22
- variants: {}
23
- },
24
- emits: ["update:overrides", "row-click"],
25
- setup(z, { emit: F }) {
26
- const s = z, _ = F, L = J(), { searchKey: m, filter: w } = q(), y = i(() => s.categorizedItems || L.categorizedItems), k = i(() => Q(y.value, s.overrides)), P = i(() => k.value.reduce((t, e) => {
27
- if (w([e.name]))
28
- return t.push(e), t;
29
- const r = e.items.filter((a) => w([a.label]));
30
- return r.length && t.push({ ...e, items: r }), t;
31
- }, [])), R = i(() => s.showVariant || s.selectVariant);
32
- function S(t, e) {
33
- var a, l;
34
- const r = e ? (a = s.overrides) == null ? void 0 : a.filter((o) => !(o._id === t && o.combinationKey === e)) : (l = s.overrides) == null ? void 0 : l.filter((o) => o._id !== t);
35
- _("update:overrides", r ?? []);
36
- }
37
- const { t: c } = M(), E = i(
38
- () => (t) => [
39
- {
40
- accessorKey: "label",
41
- enableSorting: !1,
42
- header: c("menu.apply_product.table.category_count", {
43
- name: t.name,
44
- count: t.items.length
45
- }),
46
- cell: (e) => {
47
- var l;
48
- const r = e.getValue();
49
- return ((l = e.row.original.variant) == null ? void 0 : l.length) ? u(
50
- "p",
51
- {
52
- class: "flex items-center space-x-8"
53
- },
54
- [
55
- u("p", {}, [r]),
56
- u(B.FmIcon, {
57
- name: "keyboard_arrow_up",
58
- onClick: e.row.getToggleExpandedHandler(),
59
- class: [
60
- "cursor-pointer",
61
- "transition-transform",
62
- e.row.getIsExpanded() ? "transform rotate-180" : ""
63
- ]
64
- })
65
- ]
66
- ) : r;
67
- }
68
- },
69
- {
70
- id: "action",
71
- enableSorting: !1,
72
- cell: (e) => {
73
- const r = e.row.original, a = e.row.depth;
74
- return s.editable ? u(
75
- "div",
76
- {
77
- class: "flex items-center justify-end"
78
- },
79
- u(B.FmButton, {
80
- prependIcon: "delete",
81
- variant: I.Tertiary,
82
- textColor: h.NeutralGray400,
83
- onClick: () => {
84
- var o;
85
- if (a > 0) {
86
- const v = (o = e.row.getParentRow()) == null ? void 0 : o.original;
87
- S(v.value, r.value);
88
- } else
89
- S(r.value);
90
- }
91
- })
92
- ) : null;
93
- }
94
- }
95
- ]
96
- ), x = U({}), N = (t) => t.variant, T = i(() => k.value.reduce((t, e) => t + e.items.length, 0));
97
- return (t, e) => {
98
- const r = b("fm-button"), a = b("fm-search"), l = b("fm-table");
99
- return d(), p("div", W, [
100
- f(O, { title: t.title }, {
101
- "append-title": g(() => [
102
- V("div", null, [
103
- t.editable ? (d(), D($, {
104
- key: 0,
105
- "categorized-items": y.value,
106
- "initial-value": t.overrides,
107
- "select-variant": t.selectVariant,
108
- "show-variant": R.value,
109
- title: n(c)("menu.apply_product.link.title"),
110
- onSubmit: e[0] || (e[0] = ({ items: o }) => _("update:overrides", o))
111
- }, {
112
- default: g(({ trigger: o }) => [
113
- f(r, {
114
- "text-color": n(h).ColorPrimary,
115
- "border-color": n(h).ColorPrimary,
116
- variant: n(I).Secondary,
117
- label: t.linkButtonLabel || n(c)("menu.common.actions.link_product"),
118
- "prepend-icon": "link",
119
- onClick: o
120
- }, null, 8, ["text-color", "border-color", "variant", "label", "onClick"])
121
- ]),
122
- _: 1
123
- }, 8, ["categorized-items", "initial-value", "select-variant", "show-variant", "title"])) : C("", !0)
124
- ])
125
- ]),
126
- default: g(() => [
127
- V("div", X, [
128
- t.editable ? (d(), p("p", Y, j(n(c)("menu.common.labels.product_count", { count: T.value })), 1)) : C("", !0),
129
- f(a, {
130
- modelValue: n(m),
131
- "onUpdate:modelValue": e[1] || (e[1] = (o) => A(m) ? m.value = o : null),
132
- placeholder: n(c)("menu.common.labels.search_product"),
133
- class: "flex-1"
134
- }, null, 8, ["modelValue", "placeholder"])
135
- ])
136
- ]),
137
- _: 1
138
- }, 8, ["title"]),
139
- (d(!0), p(G, null, H(P.value, (o) => (d(), p("div", {
140
- key: o.id || "",
141
- class: "xs:overflow-x-scroll"
142
- }, [
143
- f(l, {
144
- "column-defs": E.value(o),
145
- "expanded-state": x.value,
146
- "get-sub-row": N,
147
- "page-size": 9999,
148
- "row-data": o.items,
149
- "search-value": n(m),
150
- "shrink-at": !1,
151
- "hide-footer": "",
152
- "onUpdate:expandedState": e[2] || (e[2] = (v) => x.value = v)
153
- }, null, 8, ["column-defs", "expanded-state", "row-data", "search-value"])
154
- ]))), 128))
155
- ]);
156
- };
157
- }
158
- });
159
- export {
160
- le as _
161
- };
@@ -1,74 +0,0 @@
1
- import { defineComponent as p, ref as v, resolveComponent as l, createBlock as a, openBlock as n, withCtx as c, createElementVNode as _, renderSlot as r, createCommentVNode as i, withModifiers as y, nextTick as B, createElementBlock as u, normalizeClass as C, createTextVNode as h, toDisplayString as k } from "vue";
2
- const F = /* @__PURE__ */ p({
3
- __name: "BottomSheetMenu",
4
- setup(m) {
5
- const e = v(!1);
6
- async function t() {
7
- await B(), e.value = !e.value;
8
- }
9
- return (s, o) => {
10
- const f = l("FmButton"), b = l("FmBottomSheet");
11
- return n(), a(b, {
12
- modelValue: e.value,
13
- "onUpdate:modelValue": o[1] || (o[1] = (d) => e.value = d),
14
- "dismiss-away": "",
15
- "no-header": "",
16
- "z-index": 110
17
- }, {
18
- "bottom-sheet-button": c(() => [
19
- s.$slots.button ? i("", !0) : (n(), a(f, {
20
- key: 0,
21
- icon: "more_vert",
22
- variant: "tertiary",
23
- onClick: y(t, ["stop"])
24
- })),
25
- r(s.$slots, "button")
26
- ]),
27
- default: c(() => [
28
- _("div", {
29
- onClick: o[0] || (o[0] = (d) => e.value = !1)
30
- }, [
31
- r(s.$slots, "default")
32
- ])
33
- ]),
34
- _: 3
35
- }, 8, ["modelValue"]);
36
- };
37
- }
38
- }), $ = { class: "py-8 px-12 hover:bg-fm-color-neutral-gray-100" }, S = /* @__PURE__ */ p({
39
- __name: "BottomSheetMenuItem",
40
- props: {
41
- label: {},
42
- icon: {},
43
- disabled: { type: Boolean },
44
- itemClass: {}
45
- },
46
- setup(m) {
47
- const e = m;
48
- return (t, s) => {
49
- const o = l("FmIcon");
50
- return n(), u("div", $, [
51
- t.$slots.content ? i("", !0) : (n(), u("div", {
52
- key: 0,
53
- class: C(["flex items-center", {
54
- "text-fm-color-typo-disabled": e.disabled,
55
- "cursor-pointer": !e.disabled,
56
- "cursor-not-allowed": e.disabled,
57
- [e.itemClass || ""]: e.itemClass && !e.disabled
58
- }])
59
- }, [
60
- t.icon ? (n(), a(o, {
61
- key: 0,
62
- name: t.icon
63
- }, null, 8, ["name"])) : i("", !0),
64
- h(" " + k(t.label), 1)
65
- ], 2)),
66
- r(t.$slots, "content")
67
- ]);
68
- };
69
- }
70
- });
71
- export {
72
- F as _,
73
- S as a
74
- };
@@ -1,69 +0,0 @@
1
- import { defineComponent as k, computed as d, ref as I, resolveComponent as l, createBlock as i, openBlock as m, withCtx as c, createElementVNode as a, createVNode as r, createElementBlock as L, Fragment as M, renderList as S, renderSlot as g, toDisplayString as x } from "vue";
2
- import { useI18n as B } from "@feedmepos/mf-common";
3
- const E = { class: "w-full flex items-center justify-between" }, N = { class: "p-4" }, P = { class: "flex-1 overflow-y-auto min-h-0" }, K = /* @__PURE__ */ k({
4
- __name: "MenuSelector",
5
- props: {
6
- modelValue: {},
7
- items: {},
8
- placeholder: { default: "" },
9
- searchPlaceholder: { default: "" },
10
- title: { default: "" },
11
- customLabel: {}
12
- },
13
- emits: ["update:modelValue"],
14
- setup(p, { emit: f }) {
15
- const t = p, _ = f, { t: $ } = B(), u = d(() => {
16
- const e = t.items.find((o) => o.value === t.modelValue);
17
- return e ? e.label : t.placeholder;
18
- }), h = d(() => t.items.filter(
19
- (e) => e.label.toLowerCase().includes(s.value.toLowerCase())
20
- )), s = I("");
21
- function v(e) {
22
- _("update:modelValue", e);
23
- }
24
- return (e, o) => {
25
- const b = l("FmIcon"), F = l("FmChip"), C = l("FmSearch"), V = l("FmMenuItem"), w = l("FmMenu");
26
- return m(), i(w, { width: 220 }, {
27
- "menu-button": c(() => [
28
- r(F, {
29
- label: u.value,
30
- class: "w-full fm-typo-en-body-md-600 text-fm-color-neutral-gray-400"
31
- }, {
32
- default: c(() => [
33
- a("div", E, [
34
- a("p", null, x(e.customLabel || e.title || u.value), 1),
35
- r(b, {
36
- name: "expand_more",
37
- size: "sm"
38
- }),
39
- g(e.$slots, "append")
40
- ])
41
- ]),
42
- _: 3
43
- }, 8, ["label"])
44
- ]),
45
- default: c(() => [
46
- a("div", N, [
47
- r(C, {
48
- autofocus: "",
49
- modelValue: s.value,
50
- "onUpdate:modelValue": o[0] || (o[0] = (n) => s.value = n),
51
- placeholder: e.searchPlaceholder
52
- }, null, 8, ["modelValue", "placeholder"])
53
- ]),
54
- a("div", P, [
55
- (m(!0), L(M, null, S(h.value, (n, y) => (m(), i(V, {
56
- key: y,
57
- label: n.label,
58
- onClick: (j) => v(n.value)
59
- }, null, 8, ["label", "onClick"]))), 128))
60
- ])
61
- ]),
62
- _: 3
63
- });
64
- };
65
- }
66
- });
67
- export {
68
- K as _
69
- };