@feedmepos/mf-menu 0.31.33 → 0.31.34-alpha

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 (101) hide show
  1. package/dist/{App-DNDOc3bV.js → App-CaKDbV0S.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BvrfcWHU.js → ApplyProduct.vue_vue_type_script_setup_true_lang-gY18sRMg.js} +20 -20
  3. package/dist/{Catalog-Zhi-3W6T.js → Catalog-B0zMoi7e.js} +80 -80
  4. package/dist/{Category-BU0bkAGd.js → Category-Dyou6Q17.js} +31 -27
  5. package/dist/{Category-CE9ixFkD.js → Category-rMN8037Q.js} +19 -19
  6. package/dist/{CookingGuide-eghVaeEY.js → CookingGuide-DT2XxaWa.js} +4 -4
  7. package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cv9LNAfi.js +113 -0
  8. package/dist/{Group-DWrtP9Au.js → Group-CYSIOe3D.js} +1 -1
  9. package/dist/{Group-DDZPf6LY.js → Group-M4WPAAYz.js} +3 -3
  10. package/dist/Group.vue_vue_type_script_setup_true_lang-B-BH-2WN.js +686 -0
  11. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-TQWka93A.js +367 -0
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Cus0YKUt.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DgSO7SQW.js} +4982 -5081
  13. package/dist/{Ingredient-BJgvOyV9.js → Ingredient-DNvr30pW.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CF99abLi.js → InventoryBinding.vue_vue_type_script_setup_true_lang-G44luws0.js} +1052 -1052
  15. package/dist/LinkProductSideSheet-Cp0HFoP2.js +297 -0
  16. package/dist/LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js +8024 -0
  17. package/dist/{MenuSetting-gkwORUX0.js → MenuSetting-UeQ2NyVm.js} +4 -4
  18. package/dist/{PrintRoute-Cda6sFlL.js → PrintRoute-5uX9ymJY.js} +89 -88
  19. package/dist/{Product-61AAh5L-.js → Product-Dxqf8_iq.js} +1 -1
  20. package/dist/Product.vue_vue_type_script_setup_true_lang-DUtGVRCH.js +1578 -0
  21. package/dist/{ProductInternalTools-o8cVZXCT.js → ProductInternalTools-BCF9q0i_.js} +5 -5
  22. package/dist/Products--adhOQ8n.js +283 -0
  23. package/dist/{Publish-BRgJUzoA.js → Publish-CRaoaFxc.js} +3 -3
  24. package/dist/{Recipe-CV8lvryp.js → Recipe-DPkzZMJi.js} +4 -4
  25. package/dist/{Scheduler-B_ptvb82.js → Scheduler-BuwjNHHj.js} +3 -3
  26. package/dist/{ServingSequence-DABGnLbT.js → ServingSequence-Cdf_Zmat.js} +3 -3
  27. package/dist/Setting-Vr3Thttm.js +259 -0
  28. package/dist/{Subcategory-BiqlAvMs.js → Subcategory-DoXmjcg1.js} +4 -4
  29. package/dist/{Takeaway-BBdkzEiP.js → Takeaway-BRTQu8VT.js} +1 -1
  30. package/dist/{Takeaway-nIjrDu5C.js → Takeaway-t3il54Bd.js} +4 -4
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-D_M2PFO-.js → Takeaway.vue_vue_type_script_setup_true_lang-DtHABSgp.js} +6 -6
  32. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-D_ACNj_Z.js +431 -0
  33. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DAoGiRV-.js +5990 -0
  34. package/dist/{Unit-Di5sUbhV.js → Unit-C_QY3IX_.js} +2 -2
  35. package/dist/{Variant-CiZCtZk9.js → Variant-CR4IEm-Q.js} +3 -3
  36. package/dist/_id_-DOU7ieGB.js +202 -0
  37. package/dist/{app-B63V5b4I.js → app--fRC3N4C.js} +1 -1
  38. package/dist/{app-DuD_IPou.js → app-CrXLAKdw.js} +95 -97
  39. package/dist/app.js +6 -7
  40. package/dist/apps/mf-menu/src/app.d.ts +62 -3
  41. package/dist/apps/mf-menu/src/components/feature/PriceTier/LinkPriceTierSection.vue.d.ts +24 -0
  42. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +30 -0
  43. package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +33 -0
  44. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/catalog.d.ts +2 -0
  45. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +80 -1
  46. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +1276 -0
  47. package/dist/apps/mf-menu/src/helper/import-export.d.ts +77 -0
  48. package/dist/apps/mf-menu/src/helper/menu.d.ts +77 -0
  49. package/dist/apps/mf-menu/src/helper/setting/catalogSetting.d.ts +11 -2
  50. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +77 -0
  51. package/dist/apps/mf-menu/src/router/shared.d.ts +0 -1
  52. package/dist/apps/mf-menu/src/stores/manager/catalog.d.ts +2 -0
  53. package/dist/apps/mf-menu/src/stores/menu.d.ts +79 -0
  54. package/dist/apps/mf-menu/src/types/linkProducts.d.ts +21 -0
  55. package/dist/apps/mf-menu/src/views/PrintRoute/PrintDepartmentDialog.vue.d.ts +5 -3
  56. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +82 -0
  57. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  58. package/dist/assets/linked-status-BTF_dm9R.js +24 -0
  59. package/dist/assets/override-menu-BPu7TVCy.js +24 -0
  60. package/dist/assets/validate-menu-BQpDfHbr.js +24 -0
  61. package/dist/{catalog-DfYSMjLc.js → catalog-BGiDWODL.js} +1 -1
  62. package/dist/catalogSetting-C34kIcYn.js +71 -0
  63. package/dist/{category-mmjX_QdF.js → category-CayMSpUc.js} +1 -1
  64. package/dist/{currency-3ugQtBPt.js → currency-BggoZpJv.js} +1 -1
  65. package/dist/{dayjs.min-CkV4mNm8.js → dayjs.min-BKDTLohL.js} +1 -1
  66. package/dist/{index-Cztb2LVZ.js → index-BPcRbiW0.js} +3 -3
  67. package/dist/{index-BboaHtmY.js → index-CLFhXi0y.js} +3 -3
  68. package/dist/index-D7yR1j9C.js +215 -0
  69. package/dist/{index-BZaKuDcN.js → index-f9kzXNPD.js} +28 -28
  70. package/dist/{item-CVnDeXhJ.js → item-C51o9ejv.js} +547 -545
  71. package/dist/{jszip.min-GxfcHBC5.js → jszip.min-m57vowh9.js} +353 -353
  72. package/dist/{menu-sGVv4bhQ.js → menu-DHfLxvzU.js} +4 -4
  73. package/dist/menu-DK7wG3S5.js +133287 -0
  74. package/dist/menuV2-B-0V65cx.js +707 -0
  75. package/dist/mf-menu.css +1 -1
  76. package/dist/{priceTier-CHTA0ZEb.js → priceTier-DD-24pkj.js} +1 -1
  77. package/dist/{scheduler-CaMxCHZ0.js → scheduler-NjDv_P4c.js} +16 -17
  78. package/dist/subcategory-DLdBwjHV.js +148 -0
  79. package/dist/{toExcel-WorodvP1.js → toExcel-coJ5igRV.js} +15 -15
  80. package/dist/{unit-DtKZZYL6.js → unit-C7XUV0EW.js} +5 -4
  81. package/package.json +5 -5
  82. package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-BiF8rW4M.js +0 -7949
  83. package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
  84. package/dist/Group.vue_vue_type_script_setup_true_lang-DyqGsRAW.js +0 -698
  85. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BmRUg94d.js +0 -206
  86. package/dist/LinkProductSideSheet-CTT4oGUY.js +0 -112
  87. package/dist/Product.vue_vue_type_script_setup_true_lang-Cy4uok1E.js +0 -1560
  88. package/dist/Products-D0rrANT6.js +0 -270
  89. package/dist/Setting-3ISlMXOA.js +0 -258
  90. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DzQ8_6Bi.js +0 -71
  91. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-y0n5hTLk.js +0 -6149
  92. package/dist/_id_-DY8himeL.js +0 -200
  93. package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +0 -70
  94. package/dist/assets/linked-status-CkBKnMXs.js +0 -24
  95. package/dist/assets/override-menu-XZ7XfcfS.js +0 -24
  96. package/dist/assets/validate-menu-Bomogq01.js +0 -24
  97. package/dist/catalogSetting-_4Z0s3_Q.js +0 -65
  98. package/dist/index-Ce4v8o7D.js +0 -106
  99. package/dist/menu-IGORh0Ik.js +0 -108039
  100. package/dist/subcategory-CmVttqlG.js +0 -817
  101. /package/dist/{apps/mf-menu/src/components → packages/shared/src/components/info}/CustomAttributeChip.vue.d.ts +0 -0
@@ -1,206 +0,0 @@
1
- import { defineComponent as P, useModel as G, computed as V, resolveComponent as m, createBlock as C, openBlock as c, unref as e, ref as I, watch as H, onMounted as O, createElementBlock as S, Fragment as h, renderSlot as J, createVNode as i, withCtx as s, createElementVNode as x, renderList as K, createCommentVNode as w, toDisplayString as F, createTextVNode as Q } from "vue";
2
- import { useI18n as T } from "@feedmepos/mf-common";
3
- import { u as R } from "./priceTier-CHTA0ZEb.js";
4
- import { useDialog as W, components as X, FmButtonVariant as Y, FmButtonColorThemeVariant as M } from "@feedmepos/ui-library";
5
- import { L as Z } from "./LinkProductSideSheet-CTT4oGUY.js";
6
- import { c as z } from "./check-C9mY6LiX.js";
7
- import { u as ee, H as B, aj as le } from "./menu-IGORh0Ik.js";
8
- import { c as oe } from "./string-DpfFixWH.js";
9
- const fe = /* @__PURE__ */ P({
10
- __name: "LinkPriceTier",
11
- props: {
12
- modelValue: { required: !0 },
13
- modelModifiers: {}
14
- },
15
- emits: ["update:modelValue"],
16
- setup(b) {
17
- const { t: g } = T(), n = G(b, "modelValue"), _ = R(), a = V(() => _.priceTiers.value.map((d) => ({
18
- label: d.key,
19
- value: d.key
20
- })));
21
- return (d, k) => {
22
- const r = m("FmSelect");
23
- return c(), C(r, {
24
- label: e(g)("menu.price_tier.link_price_group"),
25
- "helper-text": e(g)("menu.price_tier.link_price_group_description"),
26
- items: a.value,
27
- "model-value": n.value ?? [],
28
- multiselect: !0,
29
- keepSelectionOrder: !0,
30
- "onUpdate:modelValue": k[0] || (k[0] = (p) => n.value = p)
31
- }, null, 8, ["label", "helper-text", "items", "model-value"]);
32
- };
33
- }
34
- }), te = { class: "space-y-16" }, ae = { class: "ml-32 mt-16 space-y-8" }, ne = {
35
- key: 0,
36
- class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
37
- }, ve = /* @__PURE__ */ P({
38
- __name: "GroupMarkupPriceDialog",
39
- props: {
40
- modelValue: {},
41
- items: {},
42
- categories: {},
43
- action: {}
44
- },
45
- emits: ["update:model-value"],
46
- setup(b, { emit: g }) {
47
- const n = b, _ = ee();
48
- W();
49
- const { t: a } = T(), d = g, k = V(() => n.action === "add" ? a("menu.markup.dialog.title.add") : a("menu.markup.dialog.title.update")), r = I(!1), p = (o) => {
50
- z.isBoolean(o) ? r.value = o : r.value = !r.value;
51
- }, l = I(
52
- n.modelValue ? B(n.modelValue) : {
53
- percentage: 0,
54
- includeItems: null
55
- }
56
- );
57
- H(
58
- () => r.value,
59
- (o) => {
60
- o && (l.value = n.modelValue ? B(n.modelValue) : {
61
- percentage: 0,
62
- includeItems: null
63
- });
64
- }
65
- ), V(
66
- () => le(_.variants, n.categories, n.items)
67
- );
68
- function L(o) {
69
- l.value = {
70
- ...l.value,
71
- includeItems: o
72
- };
73
- }
74
- const f = I(
75
- 0
76
- /* ALL */
77
- );
78
- function N(o) {
79
- f.value = o, l.value = {
80
- ...l.value,
81
- includeItems: o === 0 ? null : []
82
- };
83
- }
84
- const U = V(() => [
85
- {
86
- label: a("menu.markup.dialog.options.all"),
87
- value: 0
88
- /* ALL */
89
- },
90
- {
91
- label: a("menu.markup.dialog.options.custom"),
92
- value: 1
93
- /* CUSTOM */
94
- }
95
- ]);
96
- async function D() {
97
- d("update:model-value", l.value), p(!1);
98
- }
99
- return O(() => {
100
- f.value = l.value && l.value.includeItems === null ? 0 : 1;
101
- }), (o, u) => {
102
- const $ = m("fm-icon"), q = m("fm-stepper-field"), E = m("fm-radio"), j = m("fm-radio-group"), y = m("fm-button"), A = m("fm-dialog");
103
- return c(), S(h, null, [
104
- J(o.$slots, "default", { trigger: p }),
105
- i(A, {
106
- modelValue: r.value,
107
- "onUpdate:modelValue": u[3] || (u[3] = (v) => r.value = v),
108
- "is-component": e(X).FmForm,
109
- "is-component-props": {
110
- onValidationSuccess: D
111
- }
112
- }, {
113
- "dialog-header": s(() => [
114
- Q(F(k.value), 1)
115
- ]),
116
- "dialog-footer": s(() => [
117
- i(y, {
118
- class: "sm:w-full xs:w-full ml-auto",
119
- label: "Cancel",
120
- variant: "tertiary",
121
- onClick: u[2] || (u[2] = (v) => p(!1))
122
- }),
123
- i(y, {
124
- label: e(oe)(o.action),
125
- class: "sm:w-full xs:w-full",
126
- size: "md",
127
- type: "submit",
128
- variant: "primary"
129
- }, null, 8, ["label"])
130
- ]),
131
- default: s(() => {
132
- var v;
133
- return [
134
- x("div", te, [
135
- i(q, {
136
- modelValue: l.value.percentage,
137
- "onUpdate:modelValue": u[0] || (u[0] = (t) => l.value.percentage = t),
138
- decimal: 0,
139
- max: 100,
140
- min: 0,
141
- rules: [
142
- (t) => e(z).isSet(t) && t >= 0 || e(a)("menu.markup.dialog.fields.percentage.required")
143
- ],
144
- label: e(a)("menu.markup.dialog.fields.percentage.label"),
145
- placeholder: e(a)("menu.markup.dialog.fields.percentage.placeholder")
146
- }, {
147
- prepend: s(() => [
148
- i($, { name: "percent" })
149
- ]),
150
- _: 1
151
- }, 8, ["modelValue", "rules", "label", "placeholder"]),
152
- x("div", null, [
153
- i(j, {
154
- modelValue: f.value,
155
- "onUpdate:modelValue": [
156
- u[1] || (u[1] = (t) => f.value = t),
157
- N
158
- ],
159
- class: "space-y-8"
160
- }, {
161
- default: s(() => [
162
- (c(!0), S(h, null, K(U.value, (t) => (c(), C(E, {
163
- key: t.value,
164
- label: t.label,
165
- value: t.value
166
- }, null, 8, ["label", "value"]))), 128))
167
- ]),
168
- _: 1
169
- }, 8, ["modelValue"]),
170
- x("div", ae, [
171
- i(Z, {
172
- title: "Link products",
173
- "categorized-items": e(_).categorizedItems,
174
- "initial-value": l.value.includeItems || [],
175
- "show-variant": !1,
176
- onSubmit: L
177
- }, {
178
- default: s(({ trigger: t }) => [
179
- f.value === 1 ? (c(), C(y, {
180
- key: 0,
181
- "text-color": e(M).ColorPrimary,
182
- "border-color": e(M).ColorPrimary,
183
- variant: e(Y).Secondary,
184
- label: e(a)("menu.markup.dialog.products.link"),
185
- "prepend-icon": "link",
186
- onClick: t
187
- }, null, 8, ["text-color", "border-color", "variant", "label", "onClick"])) : w("", !0)
188
- ]),
189
- _: 1
190
- }, 8, ["categorized-items", "initial-value"]),
191
- (v = l.value.includeItems) != null && v.length ? (c(), S("p", ne, F(e(a)("menu.markup.dialog.products.count", { count: l.value.includeItems.length })), 1)) : w("", !0)
192
- ])
193
- ])
194
- ])
195
- ];
196
- }),
197
- _: 1
198
- }, 8, ["modelValue", "is-component", "is-component-props"])
199
- ], 64);
200
- };
201
- }
202
- });
203
- export {
204
- ve as _,
205
- fe as a
206
- };
@@ -1,112 +0,0 @@
1
- import { defineComponent as S, ref as V, computed as I, watch as z, resolveComponent as b, createElementBlock as F, openBlock as w, Fragment as O, renderSlot as A, createVNode as r, unref as n, withCtx as f, createElementVNode as y, createBlock as D, createCommentVNode as E, toDisplayString as L } from "vue";
2
- import { H as _, I as N } from "./menu-IGORh0Ik.js";
3
- import { useI18n as j, ItemSelector as P } from "@feedmepos/mf-common";
4
- import { components as U, FmButtonVariant as q } from "@feedmepos/ui-library";
5
- import { u as H } from "./discardConfirm-BHni0LNu.js";
6
- import { c as M } from "./check-C9mY6LiX.js";
7
- /* empty css */
8
- const T = (i, u) => {
9
- const s = i.__vccOpts || i;
10
- for (const [c, t] of u)
11
- s[c] = t;
12
- return s;
13
- }, $ = { class: "fm-typo-en-title-md-600 mr-auto" }, G = { class: "flex gap-8 items-center justify-start" }, J = /* @__PURE__ */ S({
14
- __name: "LinkProductSideSheet",
15
- props: {
16
- initialValue: { default: () => [] },
17
- categorizedItems: { default: () => [] },
18
- selectVariant: { type: Boolean, default: !1 },
19
- showVariant: { type: Boolean, default: !1 },
20
- showAddon: { type: Boolean, default: !0 },
21
- title: { default: void 0 },
22
- useCloseBtn: { type: Boolean }
23
- },
24
- emits: ["submit"],
25
- setup(i, { emit: u }) {
26
- const s = i, c = u, t = V(!1), v = (e) => {
27
- M.isBoolean(e) ? t.value = e : t.value = !t.value;
28
- };
29
- function d(e) {
30
- return e.reduce((o, a) => (o[a._id] = [...o[a._id] ?? [], a], o), {});
31
- }
32
- const k = s.initialValue, l = V(d(_(k))), h = I(() => Object.values(l.value).flatMap((e) => e)), g = H(
33
- () => !N.isEqual(d(s.initialValue), l.value),
34
- () => {
35
- t.value = !1;
36
- }
37
- );
38
- function B() {
39
- c("submit", h.value), t.value = !1;
40
- }
41
- z(
42
- () => t.value,
43
- () => {
44
- l.value = d(_(s.initialValue));
45
- }
46
- );
47
- const { t: m } = j();
48
- return (e, o) => {
49
- const a = b("fm-button"), C = b("fm-side-sheet");
50
- return w(), F(O, null, [
51
- A(e.$slots, "default", { trigger: v }, void 0, !0),
52
- r(C, {
53
- id: "group-form",
54
- modelValue: t.value,
55
- "onUpdate:modelValue": o[2] || (o[2] = (p) => t.value = p),
56
- "close-button": e.useCloseBtn,
57
- "is-container": n(U).FmForm,
58
- "is-container-props": {
59
- onValidationSuccess: B,
60
- blameFormChildOnValidationFailed: !0
61
- },
62
- "max-width": 560,
63
- "onOn:clickedAway": n(g)
64
- }, {
65
- "side-sheet-header": f(() => [
66
- e.useCloseBtn ? E("", !0) : (w(), D(a, {
67
- key: 0,
68
- variant: n(q).Tertiary,
69
- class: "cursor-pointer mr-4",
70
- "prepend-icon": "arrow_back",
71
- onClick: v
72
- }, null, 8, ["variant"])),
73
- y("p", $, L(e.title || n(m)("menu.link_product.title")), 1)
74
- ]),
75
- "side-sheet-footer": f(() => [
76
- y("div", G, [
77
- r(a, {
78
- label: n(m)("menu.common.actions.confirm"),
79
- size: "lg",
80
- type: "submit",
81
- variant: "primary"
82
- }, null, 8, ["label"]),
83
- r(a, {
84
- label: n(m)("menu.common.actions.cancel"),
85
- size: "lg",
86
- variant: "tertiary",
87
- onClick: o[1] || (o[1] = () => t.value = !1)
88
- }, null, 8, ["label"])
89
- ])
90
- ]),
91
- default: f(() => [
92
- r(n(P), {
93
- "auto-focus-search": !0,
94
- "categorized-items": e.categorizedItems,
95
- data: l.value,
96
- "select-variant": e.selectVariant,
97
- "selected-items": h.value,
98
- "show-variant": e.showVariant,
99
- "show-addon": e.showAddon,
100
- "onUpdate:data": o[0] || (o[0] = (p) => l.value = p)
101
- }, null, 8, ["categorized-items", "data", "select-variant", "selected-items", "show-variant", "show-addon"])
102
- ]),
103
- _: 1
104
- }, 8, ["modelValue", "close-button", "is-container", "is-container-props", "onOn:clickedAway"])
105
- ], 64);
106
- };
107
- }
108
- }), x = /* @__PURE__ */ T(J, [["__scopeId", "data-v-25b0fda9"]]);
109
- export {
110
- x as L,
111
- T as _
112
- };