@feedmepos/mf-menu 0.32.17 → 0.32.18-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 (82) hide show
  1. package/dist/App-Cfl37TTw.js +152661 -0
  2. package/dist/{Catalog-ChlP8Cid.js → Catalog-Yxsb-D33.js} +47 -52
  3. package/dist/{Category-CHs96ibF.js → Category-0vJH8Ct0.js} +86 -92
  4. package/dist/{Category-B1tAJpNd.js → Category-qp0wI14I.js} +25 -26
  5. package/dist/{CookingGuide-mEvca-0v.js → CookingGuide-EpAr5F5U.js} +139 -143
  6. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bk26jQI7.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CkyD0sdI.js} +14 -16
  7. package/dist/{Group-Ye2IIY52.js → Group-B3W9iSbO.js} +5 -5
  8. package/dist/{Group-Co2Vf4Lw.js → Group-DLCh0fDU.js} +1 -1
  9. package/dist/{Group.vue_vue_type_script_setup_true_lang-BcxSbvJS.js → Group.vue_vue_type_script_setup_true_lang-Bzy_hXDv.js} +176 -186
  10. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D1f8VG-n.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BFaAXp7r.js} +81 -88
  11. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Jv6iJlg9.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CxP8lDD0.js} +2502 -2508
  12. package/dist/{Ingredient-BgnW8sWo.js → Ingredient-CVLMr_YB.js} +102 -105
  13. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-8ziHcUiK.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CdTC5ykI.js} +1058 -1059
  14. package/dist/{MenuSetting-GEngjeC8.js → MenuSetting-Blpi1vSd.js} +58 -61
  15. package/dist/{PrintRoute-BSlUQT7g.js → PrintRoute-BS7PPPkE.js} +49 -52
  16. package/dist/{Product-DNg_BUuV.js → Product-DDeNKQ7u.js} +1 -1
  17. package/dist/{Product.vue_vue_type_script_setup_true_lang-Cehy2oy-.js → Product.vue_vue_type_script_setup_true_lang-rmv8m4_D.js} +286 -298
  18. package/dist/{ProductInternalTools-B5A67yxH.js → ProductInternalTools-CVuothk9.js} +45 -46
  19. package/dist/{Products-DCsxmTPB.js → Products-BIvsHKEt.js} +111 -116
  20. package/dist/{Publish-Cst0Ll6T.js → Publish-CDADU3Pp.js} +154 -159
  21. package/dist/{Recipe-DupS3SQT.js → Recipe-CMhW7e_z.js} +40 -43
  22. package/dist/{Scheduler-BcThU1M6.js → Scheduler-BpxunKBV.js} +7 -7
  23. package/dist/{ServingSequence-CT3THBH6.js → ServingSequence-BQVuYyAB.js} +54 -58
  24. package/dist/{Setting-Dxh8E3no.js → Setting-Dj0yyP37.js} +63 -66
  25. package/dist/{Subcategory-DhJEzofz.js → Subcategory-BH4DDZM4.js} +72 -76
  26. package/dist/{Takeaway-DSC7U4Jk.js → Takeaway-CGJBZ_sJ.js} +1 -1
  27. package/dist/{Takeaway-B8BSSKNj.js → Takeaway-DifOudVE.js} +20 -21
  28. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BLpiJlk2.js → Takeaway.vue_vue_type_script_setup_true_lang-D-R5_S5G.js} +59 -64
  29. package/dist/{Unit-joU7vZZu.js → Unit-DXDox2Ut.js} +8 -8
  30. package/dist/{Variant-D8YjRJ6N.js → Variant-DbJVwgm5.js} +75 -78
  31. package/dist/{_id_-Bd9uo1WW.js → _id_-RFYwWjbM.js} +34 -38
  32. package/dist/{app-BNrAos5Z.js → app-Z0KWH9-d.js} +74 -335
  33. package/dist/app.js +4 -5
  34. package/dist/apps/mf-menu/src/app.d.ts +1 -2
  35. package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +1 -0
  36. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  37. package/dist/assets/{linked-status-DbjzbFTw.js → linked-status-CkmoJAm-.js} +2 -2
  38. package/dist/assets/{menu-export-D_oNY_wi.js → menu-export-DcINiK28.js} +3 -3
  39. package/dist/assets/{override-menu-CIU7U1_4.js → override-menu-PUKiu-df.js} +2 -2
  40. package/dist/assets/{validate-menu-kuOxuwG9.js → validate-menu-CcqiRhNT.js} +2 -2
  41. package/dist/{catalogSetting-BHgsBDTl.js → catalogSetting-Bf66H-j7.js} +1 -1
  42. package/dist/dayjs.min-DNPTnUFp.js +6 -0
  43. package/dist/{jszip.min-7SsHzD5O.js → jszip.min-CO2_Gf69.js} +545 -545
  44. package/dist/{menu-Cd4NbFVq.js → menu-Brxar171.js} +1 -1
  45. package/dist/mf-menu.css +1 -1
  46. package/dist/{scheduler-B6OokVIA.js → scheduler-CqdIiE8G.js} +56 -60
  47. package/dist/{toExcel-BZkbXlHv.js → toExcel-CRJIU0NC.js} +2 -2
  48. package/dist/{unit-D6QOkMoM.js → unit-wYPYkm33.js} +98 -105
  49. package/package.json +1 -1
  50. package/dist/App-BiSEuDkd.js +0 -13484
  51. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-C_SjdLpO.js +0 -161
  52. package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
  53. package/dist/LinkProductSideSheet-DFDYEUBh.js +0 -687
  54. package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +0 -69
  55. package/dist/RuleView.vue_vue_type_script_setup_true_lang-BeesK2ym.js +0 -3285
  56. package/dist/TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js +0 -20
  57. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-C3qXnZlz.js +0 -399
  58. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CMe76XvZ.js +0 -6011
  59. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  60. package/dist/app-5fxKLAzS.js +0 -8163
  61. package/dist/app-nTzkERJW.js +0 -68
  62. package/dist/catalog-BO2nXwe5.js +0 -199
  63. package/dist/category-CuG3DsGL.js +0 -156
  64. package/dist/check-C9mY6LiX.js +0 -9
  65. package/dist/createComponentProgrammatically-Bt2rn1IQ.js +0 -11
  66. package/dist/currency-DxC5zyZB.js +0 -7
  67. package/dist/dayjs.min-BvFUSPWD.js +0 -6
  68. package/dist/discardConfirm-BHni0LNu.js +0 -28
  69. package/dist/index-B0nhvuxR.js +0 -273
  70. package/dist/index-C2zPvt64.js +0 -239
  71. package/dist/index-C36JQix-.js +0 -246
  72. package/dist/index-CisutoS9.js +0 -156
  73. package/dist/index.vue_vue_type_script_setup_true_lang-DCBYExNb.js +0 -109064
  74. package/dist/item-K01xd1Z0.js +0 -6868
  75. package/dist/menuV2-DKE-xanq.js +0 -1052
  76. package/dist/object-DVUNCr7w.js +0 -16
  77. package/dist/priceTier-Beavb91W.js +0 -87
  78. package/dist/search-BAPEUu1R.js +0 -15
  79. package/dist/string-DpfFixWH.js +0 -4
  80. package/dist/subcategory-DnslmmRD.js +0 -148
  81. package/dist/tooltip-B5BiPMx9.js +0 -32
  82. package/dist/vuedraggable-CK8z7qA8.js +0 -1728
@@ -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 "./RuleView.vue_vue_type_script_setup_true_lang-BeesK2ym.js";
5
- import { L as $ } from "./LinkProductSideSheet-DFDYEUBh.js";
6
- import { u as q } from "./search-BAPEUu1R.js";
7
- import { u as J, ao as Q } from "./index.vue_vue_type_script_setup_true_lang-DCBYExNb.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,26 +0,0 @@
1
- import { defineComponent as r, createElementBlock as s, openBlock as t, createElementVNode as o, renderSlot as n, createCommentVNode as p, toDisplayString as c } from "vue";
2
- const d = { class: "space-y-8" }, i = { class: "flex items-center justify-between" }, l = { class: "space-y-8" }, a = { class: "fm-typo-en-body-lg-600" }, m = {
3
- key: 0,
4
- class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
5
- }, h = /* @__PURE__ */ r({
6
- __name: "FormItem",
7
- props: {
8
- label: {},
9
- description: {}
10
- },
11
- setup(_) {
12
- return (e, y) => (t(), s("div", d, [
13
- o("div", i, [
14
- o("div", l, [
15
- o("p", a, c(e.label), 1),
16
- e.description ? (t(), s("p", m, c(e.description), 1)) : p("", !0)
17
- ]),
18
- n(e.$slots, "append")
19
- ]),
20
- n(e.$slots, "default")
21
- ]));
22
- }
23
- });
24
- export {
25
- h as _
26
- };