@feedmepos/mf-menu 0.18.17 → 0.19.0-beta.2

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 (90) hide show
  1. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-DFJJHptK.js +158 -0
  2. package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-BJ0b_uKf.js → ApplyProducts.vue_vue_type_script_setup_true_lang-CXoRwrTi.js} +2 -2
  3. package/dist/Catalog-CXzqtCF8.js +551 -0
  4. package/dist/Category-DKbtLbq8.js +387 -0
  5. package/dist/CookingGuide-BKon8TdH.js +862 -0
  6. package/dist/Group-D1UDksBG.js +46 -0
  7. package/dist/{Group-jEtbECLb.js → Group-izOWb_Bh.js} +1 -1
  8. package/dist/Group.vue_vue_type_script_setup_true_lang-DAlQcgYp.js +558 -0
  9. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Q7es2wmt.js +237 -0
  10. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Bw4uxqAp.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Db0uYw5O.js} +11723 -11723
  11. package/dist/Ingredient-BIJu9P_9.js +484 -0
  12. package/dist/LinkProductSideSheet-BNdFZThd.js +104 -0
  13. package/dist/PrintRoute--fYPFcy7.js +417 -0
  14. package/dist/{Product-Bnr9oFr2.js → Product-vLtISbkD.js} +1 -1
  15. package/dist/Product.vue_vue_type_script_setup_true_lang-BHCihe6o.js +826 -0
  16. package/dist/Products-JaCNtcHS.js +236 -0
  17. package/dist/Publish-jpmiyB-b.js +525 -0
  18. package/dist/Recipe-B6y-oLPG.js +320 -0
  19. package/dist/Scheduler-Dj1rlr-U.js +222 -0
  20. package/dist/SchedulerSelector.vue_vue_type_script_setup_true_lang-BVAkohGJ.js +48 -0
  21. package/dist/ServingSequence-BhIfCyXl.js +4 -0
  22. package/dist/{Setting-DN8TQdIR.js → Setting-B5R1JfaL.js} +1 -1
  23. package/dist/Setting.vue_vue_type_script_setup_true_lang-xXtg0JOn.js +253 -0
  24. package/dist/Takeaway-BSFSz_JL.js +63 -0
  25. package/dist/{Takeaway-y0Nk0JAb.js → Takeaway-DjFTtbw6.js} +1 -1
  26. package/dist/Takeaway.vue_vue_type_script_setup_true_lang-BUGL0wfZ.js +302 -0
  27. package/dist/TaxSetting-D9Q8XNgJ.js +25 -0
  28. package/dist/Unit-Cr_8O3zB.js +142 -0
  29. package/dist/Variant-loUMfNRB.js +222 -0
  30. package/dist/_id_-0w7KjYyQ.js +189 -0
  31. package/dist/{app-D7e31gIv.js → app-t9ONnc0s.js} +31701 -26207
  32. package/dist/app.js +7 -6
  33. package/dist/apps/mf-menu/src/app.d.ts +2784 -0
  34. package/dist/apps/mf-menu/src/components/feature/Fields/OrderFrom.vue.d.ts +2 -2
  35. package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +2 -2
  36. package/dist/apps/mf-menu/src/manager/menu/catalog.d.ts +1 -0
  37. package/dist/apps/mf-menu/src/stores/manager/item.d.ts +1 -1
  38. package/dist/apps/mf-menu/src/stores/menu.d.ts +16 -16
  39. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +12 -12
  40. package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +4 -4
  41. package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +4 -4
  42. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/assets/{linked-status-D5tq3eE2.js → linked-status-DLL4aRiX.js} +8 -8
  44. package/dist/assets/{validate-menu-AcCpPyQZ.js → validate-menu-CoXc16jh.js} +8 -8
  45. package/dist/{catalog-Ck7lLTN2.js → catalog-4OmC0JA3.js} +66 -62
  46. package/dist/category-BE33DRqp.js +155 -0
  47. package/dist/{currency-CclA5a-2.js → currency-JHgYNbTQ.js} +1 -1
  48. package/dist/{index-DDd9B_ur.js → index-CE3zjhyh.js} +732 -740
  49. package/dist/index-pSg9p-28.js +238 -0
  50. package/dist/item-CEPx51U1.js +6371 -0
  51. package/dist/{lodash-BIQx_fko.js → lodash-VivR_BQ2.js} +1 -1
  52. package/dist/{menu-CYzbNubv.js → menu-ETQrtbbU.js} +1 -1
  53. package/dist/{object-DUtbNpoS.js → object-DEM5FMTB.js} +4 -4
  54. package/dist/scheduler-SRT_5Nio.js +491 -0
  55. package/dist/string-DpfFixWH.js +4 -0
  56. package/dist/style.css +1 -1
  57. package/dist/takeaway-RcvqKigG.js +267 -0
  58. package/dist/{toExcel-BXPcj8Gp.js → toExcel-BcgskY3F.js} +2 -2
  59. package/dist/unit-DLL7xIF1.js +350 -0
  60. package/package.json +4 -2
  61. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-D9QsJ4vO.js +0 -155
  62. package/dist/Catalog-CZW54QJU.js +0 -570
  63. package/dist/Category-DvsP_L7d.js +0 -405
  64. package/dist/CookingGuide-DC3uXetk.js +0 -848
  65. package/dist/Group-DK5xqeYX.js +0 -44
  66. package/dist/Group.vue_vue_type_script_setup_true_lang-DGZ9hnPg.js +0 -538
  67. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BQXqlXw4.js +0 -234
  68. package/dist/Ingredient-354LLwdX.js +0 -498
  69. package/dist/LinkProductSideSheet-anxSsu0z.js +0 -102
  70. package/dist/PrintRoute-DrSvtNLX.js +0 -425
  71. package/dist/Product.vue_vue_type_script_setup_true_lang-bBY54Q_1.js +0 -815
  72. package/dist/Products-CZyueqSO.js +0 -234
  73. package/dist/Publish-kRM1UuPk.js +0 -518
  74. package/dist/Recipe-nKpLIJs8.js +0 -345
  75. package/dist/Scheduler-DmZ8atXG.js +0 -233
  76. package/dist/SchedulerSelector.vue_vue_type_script_setup_true_lang-CdsxA-p0.js +0 -48
  77. package/dist/ServingSequence-j00_ko5R.js +0 -4
  78. package/dist/Setting.vue_vue_type_script_setup_true_lang-Cx06MCJs.js +0 -247
  79. package/dist/Takeaway-BXZXCAaM.js +0 -61
  80. package/dist/Takeaway.vue_vue_type_script_setup_true_lang-9WVkdLZF.js +0 -316
  81. package/dist/TaxSetting-DdHx7ACN.js +0 -21
  82. package/dist/Unit-biPvleyL.js +0 -161
  83. package/dist/Variant-BP1IRNQx.js +0 -231
  84. package/dist/_id_-BiaNDI2N.js +0 -188
  85. package/dist/category-KiA5-36F.js +0 -154
  86. package/dist/index-BFeZlU8X.js +0 -232
  87. package/dist/item-Bcg7SiYv.js +0 -6325
  88. package/dist/scheduler-D1tgE0_9.js +0 -480
  89. package/dist/takeaway-BKsoD4EL.js +0 -264
  90. package/dist/unit-CswFvAyc.js +0 -346
@@ -1,234 +0,0 @@
1
- import { b as g, d, u as $, H as q, S as G, g as b } from "./app-D7e31gIv.js";
2
- import { defineComponent as H, computed as y, ref as F, watch as j, onMounted as J, resolveComponent as s, openBlock as v, createElementBlock as V, Fragment as C, renderSlot as K, createVNode as r, unref as u, withCtx as m, createTextVNode as Q, toDisplayString as S, createElementVNode as O, renderList as W, createBlock as I, createCommentVNode as L } from "vue";
3
- import { useDialog as X, components as Y, FmButtonColorThemeVariant as R, FmButtonVariant as Z } from "@feedmepos/ui-library";
4
- import { L as ee } from "./LinkProductSideSheet-anxSsu0z.js";
5
- var te = /* @__PURE__ */ ((c) => (c.AUTO = "auto", c.MANUAL = "manual", c))(te || {});
6
- class M {
7
- static fromCatalog(e, o) {
8
- const _ = o ? g.F_ORDER_FROM.enum.ALL : g.F_ORDER_FROM.enum.NONE;
9
- return {
10
- ...d(e),
11
- taxSetting: this.transformTax(e.inclusiveTaxes),
12
- orderFrom: e.defaultOrderFrom || _,
13
- markupOptions: e.markupOptions || null
14
- };
15
- }
16
- static fromMainCatalog(e) {
17
- return {
18
- _id: "",
19
- name: "Main",
20
- taxSetting: M.transformTax(e == null ? void 0 : e.inclusiveTaxes),
21
- orderFrom: g.F_ORDER_FROM.enum.ALL,
22
- markupOptions: null
23
- };
24
- }
25
- static toCatalog(e) {
26
- return {
27
- _id: e._id,
28
- name: e.name,
29
- inclusiveTaxes: e.taxSetting.mode === "auto" ? null : d(e.taxSetting.inclusive),
30
- markupOptions: e.markupOptions,
31
- defaultOrderFrom: e.orderFrom
32
- };
33
- }
34
- static initCatalogSetting() {
35
- return {
36
- _id: "",
37
- name: "",
38
- orderFrom: g.F_ORDER_FROM.enum.ALL,
39
- taxSetting: this.autoTax(),
40
- markupOptions: null
41
- };
42
- }
43
- static transformTax(e) {
44
- return e ? {
45
- mode: "manual",
46
- inclusive: d(e)
47
- } : {
48
- mode: "auto"
49
- /* AUTO */
50
- };
51
- }
52
- static autoTax() {
53
- return {
54
- mode: "auto"
55
- /* AUTO */
56
- };
57
- }
58
- static manualTax(e) {
59
- return { mode: "manual", inclusive: d(e) };
60
- }
61
- }
62
- const ae = { class: "space-y-16" }, le = { class: "ml-32 mt-16 space-y-8" }, oe = {
63
- key: 0,
64
- class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
65
- }, se = /* @__PURE__ */ H({
66
- __name: "GroupMarkupPriceDialog",
67
- props: {
68
- modelValue: {},
69
- items: {},
70
- categories: {},
71
- action: {}
72
- },
73
- emits: ["update:model-value"],
74
- setup(c, { emit: e }) {
75
- const o = c, _ = $();
76
- X();
77
- const T = e, h = y(() => o.action === "add" ? "Add markup configuration" : "Update markup configuration"), i = F(!1), k = (a) => {
78
- b.isBoolean(a) ? i.value = a : i.value = !i.value;
79
- }, t = F(
80
- o.modelValue ? d(o.modelValue) : {
81
- percentage: 0,
82
- includeItems: null
83
- }
84
- );
85
- j(
86
- () => i.value,
87
- (a) => {
88
- a && (t.value = o.modelValue ? d(o.modelValue) : {
89
- percentage: 0,
90
- includeItems: null
91
- });
92
- }
93
- ), y(
94
- () => q(_.variants, o.categories, o.items)
95
- );
96
- function A(a) {
97
- t.value = {
98
- ...t.value,
99
- includeItems: a
100
- };
101
- }
102
- const p = F(
103
- 0
104
- /* ALL */
105
- );
106
- function w(a) {
107
- p.value = a, t.value = {
108
- ...t.value,
109
- includeItems: a === 0 ? null : []
110
- };
111
- }
112
- const z = y(() => [
113
- {
114
- label: "Apply for all products",
115
- value: 0
116
- /* ALL */
117
- },
118
- {
119
- label: "Custom products",
120
- value: 1
121
- /* CUSTOM */
122
- }
123
- ]);
124
- async function D() {
125
- T("update:model-value", t.value), k(!1);
126
- }
127
- return J(() => {
128
- p.value = t.value && t.value.includeItems === null ? 0 : 1;
129
- }), (a, n) => {
130
- const E = s("fm-icon"), N = s("fm-stepper-field"), B = s("fm-radio"), U = s("fm-radio-group"), x = s("fm-button"), P = s("fm-dialog");
131
- return v(), V(C, null, [
132
- K(a.$slots, "default", { trigger: k }),
133
- r(P, {
134
- modelValue: i.value,
135
- "onUpdate:modelValue": n[3] || (n[3] = (f) => i.value = f),
136
- "is-component": u(Y).FmForm,
137
- "is-component-props": {
138
- onValidationSuccess: D
139
- },
140
- "z-index": 101
141
- }, {
142
- "dialog-header": m(() => [
143
- Q(S(h.value), 1)
144
- ]),
145
- "dialog-footer": m(() => [
146
- r(x, {
147
- class: "sm:w-full xs:w-full ml-auto",
148
- label: "Cancel",
149
- variant: "tertiary",
150
- onClick: n[2] || (n[2] = (f) => k(!1))
151
- }),
152
- r(x, {
153
- label: u(G)(a.action),
154
- class: "sm:w-full xs:w-full",
155
- size: "md",
156
- type: "submit",
157
- variant: "primary"
158
- }, null, 8, ["label"])
159
- ]),
160
- default: m(() => {
161
- var f;
162
- return [
163
- O("div", ae, [
164
- r(N, {
165
- modelValue: t.value.percentage,
166
- "onUpdate:modelValue": n[0] || (n[0] = (l) => t.value.percentage = l),
167
- decimal: 0,
168
- max: 100,
169
- min: 0,
170
- rules: [(l) => u(b).isSet(l) && l >= 0 || "Markup percentage is required"],
171
- label: "Markup percentage",
172
- placeholder: "0"
173
- }, {
174
- prepend: m(() => [
175
- r(E, { name: "percent" })
176
- ]),
177
- _: 1
178
- }, 8, ["modelValue", "rules"]),
179
- O("div", null, [
180
- r(U, {
181
- modelValue: p.value,
182
- "onUpdate:modelValue": [
183
- n[1] || (n[1] = (l) => p.value = l),
184
- w
185
- ],
186
- class: "space-y-8"
187
- }, {
188
- default: m(() => [
189
- (v(!0), V(C, null, W(z.value, (l) => (v(), I(B, {
190
- key: l.value,
191
- label: l.label,
192
- value: l.value
193
- }, null, 8, ["label", "value"]))), 128))
194
- ]),
195
- _: 1
196
- }, 8, ["modelValue"]),
197
- O("div", le, [
198
- r(ee, {
199
- title: "Link products",
200
- "categorized-items": u(_).categorizedItems,
201
- "initial-value": t.value.includeItems || [],
202
- "show-variant": !1,
203
- onSubmit: A
204
- }, {
205
- default: m(({ trigger: l }) => [
206
- p.value === 1 ? (v(), I(x, {
207
- key: 0,
208
- "text-color": u(R).ColorPrimary,
209
- "border-color": u(R).ColorPrimary,
210
- variant: u(Z).Secondary,
211
- label: "Link product",
212
- "prepend-icon": "link",
213
- onClick: l
214
- }, null, 8, ["text-color", "border-color", "variant", "onClick"])) : L("", !0)
215
- ]),
216
- _: 1
217
- }, 8, ["categorized-items", "initial-value"]),
218
- (f = t.value.includeItems) != null && f.length ? (v(), V("p", oe, S(t.value.includeItems.length) + " product(s) linked ", 1)) : L("", !0)
219
- ])
220
- ])
221
- ])
222
- ];
223
- }),
224
- _: 1
225
- }, 8, ["modelValue", "is-component", "is-component-props"])
226
- ], 64);
227
- };
228
- }
229
- });
230
- export {
231
- M as C,
232
- se as _,
233
- te as a
234
- };