@feedmepos/mf-menu 0.31.33-beta.1 → 0.31.33-beta.6

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 (89) hide show
  1. package/dist/{App-B4rnpCXN.js → App-Dt6RQiUh.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-LtwWMoPW.js → ApplyProduct.vue_vue_type_script_setup_true_lang-B_SQpWg7.js} +2 -2
  3. package/dist/{Catalog-Cd7J8de0.js → Catalog-CFx7t_Nu.js} +79 -79
  4. package/dist/{Category-p8UUDEiv.js → Category-CPMx86rY.js} +23 -19
  5. package/dist/{Category-D3WDm9Fe.js → Category-OjK-v--G.js} +5 -5
  6. package/dist/{CookingGuide-hFtxmtGj.js → CookingGuide-ANnXKBjc.js} +3 -3
  7. package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-D-1OzZ-i.js +113 -0
  8. package/dist/{Group-Bv0dyi8v.js → Group--DJjkGab.js} +1 -1
  9. package/dist/{Group-BTrqZgFd.js → Group-K4925_bP.js} +3 -3
  10. package/dist/Group.vue_vue_type_script_setup_true_lang-36O78xv0.js +684 -0
  11. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BIX-gPUO.js +372 -0
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CxPaVLVu.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C-z1m3jh.js} +13987 -13378
  13. package/dist/{Ingredient-BCostN4Y.js → Ingredient-G4Txx6_0.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-MAqpI7ZD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-HgHBlflo.js} +2 -2
  15. package/dist/{LinkProductSideSheet-abzVzmo3.js → LinkProductSideSheet-CWNarCEs.js} +1 -1
  16. package/dist/{MenuSetting-TfAo82-E.js → MenuSetting-Cx-EHG-6.js} +4 -4
  17. package/dist/{PrintRoute-B43rP5A9.js → PrintRoute-IxHGvGzF.js} +3 -3
  18. package/dist/{Product-C7cYyDHH.js → Product-D1gqn5J6.js} +1 -1
  19. package/dist/Product.vue_vue_type_script_setup_true_lang-BCQd-ks4.js +1641 -0
  20. package/dist/{ProductInternalTools-CkswVuAF.js → ProductInternalTools-GJ2OE5gU.js} +5 -5
  21. package/dist/Products-DJqgSe-Y.js +270 -0
  22. package/dist/{Publish-DIKqaH2f.js → Publish-C86rd413.js} +3 -3
  23. package/dist/{Recipe-_ApT00c_.js → Recipe-BbQKou9p.js} +4 -4
  24. package/dist/{Scheduler-DWY1kKHO.js → Scheduler-DUeTkyGQ.js} +3 -3
  25. package/dist/{ServingSequence-Z1S9zOTO.js → ServingSequence-BROo5rC_.js} +3 -3
  26. package/dist/Setting-D-ueTlwO.js +259 -0
  27. package/dist/{Subcategory-Lqq6XHz2.js → Subcategory-DVewA8HX.js} +4 -4
  28. package/dist/{Takeaway-DiGzrarg.js → Takeaway-B4lDGQDh.js} +4 -4
  29. package/dist/{Takeaway-DGvM9SBP.js → Takeaway-DyPjHuCl.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BfWy217t.js → Takeaway.vue_vue_type_script_setup_true_lang-BTDlzYuX.js} +6 -6
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B2wC_Mf0.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B5BAKDRP.js} +642 -642
  32. package/dist/{Unit-D11rRFAf.js → Unit-CVF0dom4.js} +2 -2
  33. package/dist/{Variant-LaKYPxDe.js → Variant-DmccAgFU.js} +3 -3
  34. package/dist/_id_-CWtK62Fy.js +178 -0
  35. package/dist/{app-C5UXrJGj.js → app-CV_q8OdE.js} +75 -75
  36. package/dist/{app-Br9mC24D.js → app-ClinzawZ.js} +1 -1
  37. package/dist/app-DvG3mOom.js +8024 -0
  38. package/dist/app.js +1 -1
  39. package/dist/apps/mf-menu/src/app.d.ts +60 -1
  40. package/dist/apps/mf-menu/src/components/feature/AttributesSelector.vue.d.ts +2 -0
  41. package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductUnifiedSideSheet.vue.d.ts +12 -0
  42. package/dist/apps/mf-menu/src/components/feature/PriceTier/LinkPriceTierSection.vue.d.ts +24 -0
  43. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +30 -0
  44. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +77 -0
  45. package/dist/apps/mf-menu/src/composable/customAttributes.d.ts +88 -0
  46. package/dist/apps/mf-menu/src/helper/{menuImport.d.ts → import-export.d.ts} +204 -3
  47. package/dist/apps/mf-menu/src/helper/menu.d.ts +77 -0
  48. package/dist/apps/mf-menu/src/helper/setting/catalogSetting.d.ts +11 -2
  49. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +77 -0
  50. package/dist/apps/mf-menu/src/stores/manager/catalog.d.ts +2 -0
  51. package/dist/apps/mf-menu/src/stores/menu.d.ts +79 -0
  52. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +82 -0
  53. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  54. package/dist/assets/linked-status-fZD691Js.js +24 -0
  55. package/dist/assets/override-menu-Cjy1BJuz.js +24 -0
  56. package/dist/assets/validate-menu-uwysUwDP.js +24 -0
  57. package/dist/{catalog-BDyG_i9q.js → catalog-Wx88K6iI.js} +1 -1
  58. package/dist/catalogSetting-DTEHDSAd.js +71 -0
  59. package/dist/{category-Bi6gpIYU.js → category-BRTw76Vf.js} +1 -1
  60. package/dist/{currency-DDseyYg1.js → currency-562bPc2l.js} +1 -1
  61. package/dist/customAttributes-CXzd5ud1.js +33 -0
  62. package/dist/{dayjs.min-DoQgN0KD.js → dayjs.min-Cnfm8bQm.js} +1 -1
  63. package/dist/{index-DxrEwDTr.js → index-4hf9vONw.js} +2 -2
  64. package/dist/{index-C-zLHAG1.js → index-Crs_eZ0i.js} +28 -28
  65. package/dist/{index-DTUmry92.js → index-DJXrJdeQ.js} +3 -3
  66. package/dist/{item-DqXzPUy9.js → item-CuIxc9FT.js} +377 -377
  67. package/dist/{jszip.min-iAC5WNVU.js → jszip.min-C9xLIvo4.js} +245 -245
  68. package/dist/menu-ILWxqJQe.js +133263 -0
  69. package/dist/{menu-D6df9rcz.js → menu-Mkzv9c8C.js} +4 -4
  70. package/dist/{priceTier-C56BYecC.js → priceTier-D4joq_kN.js} +1 -1
  71. package/dist/{scheduler-DCSpt65t.js → scheduler-DuxWoNVb.js} +3 -3
  72. package/dist/{subcategory-CydaPy_X.js → subcategory-CLLMagXY.js} +43 -43
  73. package/dist/{toExcel-Bil8CwJs.js → toExcel-hGfpS_Uo.js} +2 -2
  74. package/dist/{unit-8DyuBx-X.js → unit-9fycj1fu.js} +1 -1
  75. package/package.json +4 -4
  76. package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cf17Iy5i.js +0 -7949
  77. package/dist/Group.vue_vue_type_script_setup_true_lang-vk1J9IxK.js +0 -698
  78. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B1wrLnf6.js +0 -206
  79. package/dist/Product.vue_vue_type_script_setup_true_lang-BOq8wMzq.js +0 -1560
  80. package/dist/Products-C7BtAjhB.js +0 -659
  81. package/dist/Setting-Bfuf26Gc.js +0 -258
  82. package/dist/_id_-Q_Tyhr4U.js +0 -200
  83. package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +0 -123
  84. package/dist/apps/mf-menu/src/helper/menuExport.d.ts +0 -32
  85. package/dist/assets/linked-status-BhGrXd73.js +0 -24
  86. package/dist/assets/override-menu-CUNDHOWA.js +0 -24
  87. package/dist/assets/validate-menu-BqOizHsX.js +0 -24
  88. package/dist/catalogSetting-C33p_dck.js +0 -65
  89. package/dist/menu-Cir-22ei.js +0 -108039
@@ -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-C56BYecC.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-abzVzmo3.js";
6
- import { c as z } from "./check-C9mY6LiX.js";
7
- import { u as ee, H as B, aj as le } from "./menu-Cir-22ei.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
- };