@feedmepos/mf-menu 0.32.45 → 0.32.46-dev.3

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 (72) hide show
  1. package/dist/{App-CczmyQeJ.js → App-npeQTqd2.js} +7 -7
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BscsJpMV.js → ApplyProduct.vue_vue_type_script_setup_true_lang--prlJD_G.js} +3 -3
  3. package/dist/{Catalog-RU_6keJm.js → Catalog-jPzJ-CrL.js} +44 -44
  4. package/dist/{Category-CwEXbsDv.js → Category-B7pQ08QL.js} +24 -24
  5. package/dist/{Category-7Fg2kD0h.js → Category-BWZpgiNC.js} +19 -19
  6. package/dist/{CookingGuide-DFu5VStf.js → CookingGuide-BFEE1EJc.js} +105 -105
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CeNfLbfq.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-D69zZiPR.js} +1 -1
  8. package/dist/{Group-C6vQeBnj.js → Group-DvZUfjSC.js} +1 -1
  9. package/dist/{Group-l-YpAi6B.js → Group-M4tXSj5P.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-1UdOBdv-.js → Group.vue_vue_type_script_setup_true_lang-DeVE8KLf.js} +19 -19
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-C309DrLU.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-pbZw9da3.js} +30 -30
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C903fhuj.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Byzowjkm.js} +3105 -3104
  13. package/dist/{Ingredient-CHqDo-GY.js → Ingredient-BdHJVta5.js} +20 -20
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CXHHlrI0.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BSwR_wpJ.js} +2 -2
  15. package/dist/{LinkProductSideSheet-DY32g33Q.js → LinkProductSideSheet-B03Oabpv.js} +45 -45
  16. package/dist/{MenuSetting-DhbxlKuU.js → MenuSetting-DTWJOTMd.js} +47 -47
  17. package/dist/{PrintRoute-CToZ0ClG.js → PrintRoute-CPux5kB3.js} +39 -39
  18. package/dist/{Product-Cpg32wpg.js → Product-laMGJ8d-.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-BC2KG1q4.js → Product.vue_vue_type_script_setup_true_lang-41pkSI-X.js} +93 -93
  20. package/dist/{ProductInternalTools-wH9BN1NK.js → ProductInternalTools-zNNMVjtn.js} +66 -66
  21. package/dist/Products-BwKBLOcx.js +307 -0
  22. package/dist/{Publish-CJS_836k.js → Publish-DVWIjGI_.js} +29 -29
  23. package/dist/{Recipe-Cz7hivmM.js → Recipe-DfDGxruI.js} +24 -24
  24. package/dist/RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-Dqec903W.js +144 -0
  25. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CRLzqgQe.js → RuleView.vue_vue_type_script_setup_true_lang-COsEN8g1.js} +176 -176
  26. package/dist/{Scheduler-QuWCnEJw.js → Scheduler-Cai-wMn7.js} +11 -11
  27. package/dist/{ServingSequence-CqK5Sjmq.js → ServingSequence-Do-C3Sn4.js} +44 -44
  28. package/dist/{Setting-C3tKUfsm.js → Setting-DSjLtPBJ.js} +17 -17
  29. package/dist/{Subcategory-DCtTOPUj.js → Subcategory-DSeuxOGy.js} +54 -54
  30. package/dist/{Takeaway-BnB1OFnK.js → Takeaway-C1srIF8q.js} +1 -1
  31. package/dist/{Takeaway-Fi8SAH2t.js → Takeaway-DwSbGolk.js} +13 -13
  32. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cbz7Qt_g.js → Takeaway.vue_vue_type_script_setup_true_lang-Bx8gpmLd.js} +33 -33
  33. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CPM_muXB.js → Thumbnail.vue_vue_type_script_setup_true_lang-DDjpVFJj.js} +27 -27
  34. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-BpL8UrFY.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-Cd4RGHXf.js} +1 -1
  35. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DtkzQeq4.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-Bwo49sg8.js} +5 -5
  36. package/dist/{TranslationViewChip.vue_vue_type_script_setup_true_lang-CHT7Xozn.js → TranslationViewChip.vue_vue_type_script_setup_true_lang-COt8eJR8.js} +1 -1
  37. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BG9vXVnJ.js +5767 -0
  38. package/dist/{Unit-5yE2-y9D.js → Unit-CLIdovqU.js} +8 -8
  39. package/dist/{Variant-C7lIdRID.js → Variant-CbX_HaWr.js} +14 -14
  40. package/dist/{_id_-08ykp97a.js → _id_-CF6hSxMn.js} +28 -28
  41. package/dist/{app-DPovSnb_.js → app-DXWLC6wZ.js} +1 -1
  42. package/dist/app-jYjowude.js +2286 -0
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/src/api/index.d.ts +1 -1
  45. package/dist/apps/mf-menu/src/api/menu.d.ts +14 -5
  46. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/assets/{linked-status-WT6deoPw.js → linked-status-Dz4kVy3U.js} +5 -5
  48. package/dist/assets/{menu-export-DxtFXMED.js → menu-export-Bjrlg38p.js} +2 -2
  49. package/dist/assets/{override-menu-BJGRdWWE.js → override-menu-h6635NTp.js} +5 -5
  50. package/dist/assets/{validate-menu-B_tmkHe7.js → validate-menu-ILBC_n35.js} +2 -2
  51. package/dist/{catalog-D7Jjqj3-.js → catalog-ByziW0k0.js} +1 -1
  52. package/dist/{catalogSetting-Bg_zMUrV.js → catalogSetting-DFtnnh_u.js} +1 -1
  53. package/dist/{currency-DDxFMjAI.js → currency-Dow_7SjH.js} +1 -1
  54. package/dist/dayjs.min-J4d4ye_W.js +7 -0
  55. package/dist/{index-BlLRjkMF.js → index-Bx_mNoGq.js} +31 -31
  56. package/dist/{index-Cq2MVpMv.js → index-Cud1HVR_.js} +30 -30
  57. package/dist/{index.vue_vue_type_script_setup_true_lang-C6IVvAua.js → index.vue_vue_type_script_setup_true_lang-BBIM8-iI.js} +6958 -6901
  58. package/dist/{item-Bq6SCc7D.js → item-CFhsU4ZX.js} +16 -16
  59. package/dist/{jszip.min-1MrCGuHF.js → jszip.min-C6M7_p-M.js} +7 -6
  60. package/dist/{menu-CKA9uouu.js → menu-ByysjB4i.js} +1 -1
  61. package/dist/{menuV2-DBkrmeha.js → menuV2-Clp-zydr.js} +164 -164
  62. package/dist/{priceTier-Cxr9IcVP.js → priceTier-DMPEyXYB.js} +1 -1
  63. package/dist/{rules-DFWR7a3m.js → rules-D7jis1av.js} +12 -12
  64. package/dist/{scheduler-HKff8Ty2.js → scheduler-Cdam4laD.js} +29 -29
  65. package/dist/{toExcel-DopYrxBW.js → toExcel-B2mXomTF.js} +2 -2
  66. package/dist/{unit-5G600HMJ.js → unit-BWhsHi2q.js} +35 -35
  67. package/package.json +1 -1
  68. package/dist/Products-CpINHaH6.js +0 -291
  69. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoIgiwHh.js +0 -6130
  70. package/dist/app-CA4g3v2n.js +0 -363
  71. package/dist/dayjs.min-BVOO8wJG.js +0 -6
  72. package/dist/index-CG7GFWlC.js +0 -246
@@ -1,6 +0,0 @@
1
- import { g as a, am as r } from "./index.vue_vue_type_script_setup_true_lang-C6IVvAua.js";
2
- var s = r();
3
- const t = /* @__PURE__ */ a(s);
4
- export {
5
- t as D
6
- };
@@ -1,246 +0,0 @@
1
- import { defineComponent as W, ref as A, resolveComponent as v, createElementBlock as E, openBlock as I, Fragment as B, createElementVNode as g, createVNode as c, normalizeClass as T, withCtx as _, toDisplayString as S, unref as i, h as G, watch as O, onMounted as K, nextTick as M, readonly as N, getCurrentInstance as U, getCurrentScope as L, onScopeDispose as $ } from "vue";
2
- import { useI18n as q, useCustomAttributes as H, useCoreStore as J } from "@feedmepos/mf-common";
3
- import { components as Q } from "@feedmepos/ui-library";
4
- import { d as X, _ as k } from "./RuleView.vue_vue_type_script_setup_true_lang-CRLzqgQe.js";
5
- const Y = {
6
- class: /* @__PURE__ */ T(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap", "text-fm-color-neutral-gray-400"])
7
- }, Z = {
8
- class: "fm-typo-en-title-sm-600"
9
- }, ee = {
10
- class: "max-h-[60vh] flex-1 overflow-y-auto min-h-0"
11
- }, me = /* @__PURE__ */ W({
12
- __name: "RestaurantAttributesSelector",
13
- props: {
14
- fullWidth: {
15
- type: Boolean,
16
- default: !1
17
- },
18
- currentRestaurantAttrParams: {}
19
- },
20
- emits: ["confirm"],
21
- setup(e, {
22
- emit: n
23
- }) {
24
- const o = e, {
25
- t
26
- } = q(), {
27
- attributes: r
28
- } = H({
29
- valueSource: J().restaurants,
30
- entity: "restaurant"
31
- }), {
32
- restaurantAttributes: a
33
- } = X(), y = [{
34
- header: () => t("portalshell.customAttributes.form.key"),
35
- accessorKey: "key",
36
- enableSorting: !1
37
- }, {
38
- header: () => t("portalshell.customAttributes.form.value"),
39
- accessorKey: "values",
40
- enableSorting: !1,
41
- cell: (f) => {
42
- const s = f.row.original, u = s.values;
43
- return G(Q.FmSelect, {
44
- modelValue: s.value,
45
- placeholder: t("portalshell.customAttributes.form.valuePlaceholder"),
46
- items: u.map((l) => ({
47
- label: l,
48
- value: l
49
- })),
50
- clearable: !0,
51
- searchable: !0,
52
- "onUpdate:modelValue": (l) => s.value = l
53
- });
54
- }
55
- }], m = n;
56
- function b(f) {
57
- return f.reduce((s, u) => (u.value != null && (s[u.key] = u.value), s), {});
58
- }
59
- const h = () => {
60
- const f = r.value.filter((l) => l.value != null), s = a.value.filter((l) => l.value != null), u = {
61
- restaurantCustomAttributes: b(f),
62
- restaurantAttributes: b(s)
63
- };
64
- m("confirm", u), C();
65
- }, p = A(!1);
66
- function w() {
67
- var u, l;
68
- p.value = !0;
69
- const f = ((u = o.currentRestaurantAttrParams) == null ? void 0 : u.restaurantCustomAttributes) ?? {};
70
- r.value.forEach((d) => {
71
- d.value = f[d.key] ?? void 0;
72
- });
73
- const s = ((l = o.currentRestaurantAttrParams) == null ? void 0 : l.restaurantAttributes) ?? {};
74
- a.value.forEach((d) => {
75
- d.value = s[d.key] ?? void 0;
76
- });
77
- }
78
- function C() {
79
- p.value = !1;
80
- }
81
- return (f, s) => {
82
- const u = v("FmIcon"), l = v("FmChip"), d = v("FmTable"), V = v("FmSpacer"), F = v("fm-button"), j = v("FmDialog");
83
- return I(), E(B, null, [g("div", {
84
- class: "cursor-pointer",
85
- onClick: w
86
- }, [c(l, {
87
- class: T([f.fullWidth ? "w-full justify-between" : ""])
88
- }, {
89
- default: _(() => [g("div", Y, S(i(t)("menu.catalog.form.restaurant_attributes_title")), 1), c(u, {
90
- color: "neutral-gray-400",
91
- name: "launch",
92
- size: "sm"
93
- })]),
94
- _: 1
95
- }, 8, ["class"])]), c(j, {
96
- modelValue: p.value,
97
- "onUpdate:modelValue": s[0] || (s[0] = (R) => p.value = R),
98
- overlay: !0,
99
- "min-width": "min(calc(100% - 48px), 560px)"
100
- }, {
101
- "dialog-header": _(() => [g("div", Z, S(i(t)("menu.catalog.form.restaurant_attributes_title")), 1)]),
102
- "dialog-footer": _(() => [c(V), c(F, {
103
- label: i(t)("menu.common.actions.confirm"),
104
- size: "lg",
105
- type: "submit",
106
- variant: "primary",
107
- onClick: h
108
- }, null, 8, ["label"]), c(F, {
109
- label: i(t)("menu.common.actions.cancel"),
110
- size: "lg",
111
- variant: "tertiary",
112
- onClick: C
113
- }, null, 8, ["label"])]),
114
- default: _(() => [g("div", ee, [c(k, {
115
- title: i(t)("menu.link_product.rules.restaurant_custom_attributes_filter")
116
- }, {
117
- default: _(() => [c(d, {
118
- "column-defs": y,
119
- "row-data": i(r),
120
- "shrink-at": !1,
121
- "page-size": i(r).length,
122
- "hide-footer": ""
123
- }, null, 8, ["row-data", "page-size"])]),
124
- _: 1
125
- }, 8, ["title"]), c(k, {
126
- title: i(t)("menu.link_product.rules.restaurant_filter")
127
- }, {
128
- default: _(() => [c(d, {
129
- "column-defs": y,
130
- "row-data": i(a),
131
- "shrink-at": !1,
132
- "page-size": i(a).length,
133
- "hide-footer": ""
134
- }, null, 8, ["row-data", "page-size"])]),
135
- _: 1
136
- }, 8, ["title"])])]),
137
- _: 1
138
- }, 8, ["modelValue"])], 64);
139
- };
140
- }
141
- });
142
- function fe(e) {
143
- return L() ? ($(e), !0) : !1;
144
- }
145
- function x(e) {
146
- return typeof e == "function" ? e() : i(e);
147
- }
148
- const pe = typeof window < "u" && typeof document < "u";
149
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
150
- const te = Object.prototype.toString, de = (e) => te.call(e) === "[object Object]", D = () => {
151
- };
152
- function P(e, n) {
153
- function o(...t) {
154
- return new Promise((r, a) => {
155
- Promise.resolve(e(() => n.apply(this, t), { fn: n, thisArg: this, args: t })).then(r).catch(a);
156
- });
157
- }
158
- return o;
159
- }
160
- const z = (e) => e();
161
- function ne(e, n = {}) {
162
- let o, t, r = D;
163
- const a = (m) => {
164
- clearTimeout(m), r(), r = D;
165
- };
166
- return (m) => {
167
- const b = x(e), h = x(n.maxWait);
168
- return o && a(o), b <= 0 || h !== void 0 && h <= 0 ? (t && (a(t), t = null), Promise.resolve(m())) : new Promise((p, w) => {
169
- r = n.rejectOnCancel ? w : p, h && !t && (t = setTimeout(() => {
170
- o && a(o), t = null, p(m());
171
- }, h)), o = setTimeout(() => {
172
- t && a(t), t = null, p(m());
173
- }, b);
174
- });
175
- };
176
- }
177
- function oe(e = z) {
178
- const n = A(!0);
179
- function o() {
180
- n.value = !1;
181
- }
182
- function t() {
183
- n.value = !0;
184
- }
185
- const r = (...a) => {
186
- n.value && e(...a);
187
- };
188
- return { isActive: N(n), pause: o, resume: t, eventFilter: r };
189
- }
190
- function re(e) {
191
- return U();
192
- }
193
- function ae(e, n = 200, o = {}) {
194
- return P(
195
- ne(n, o),
196
- e
197
- );
198
- }
199
- function be(e, n = 200, o = {}) {
200
- const t = A(e.value), r = ae(() => {
201
- t.value = e.value;
202
- }, n, o);
203
- return O(e, () => r()), t;
204
- }
205
- function se(e, n, o = {}) {
206
- const {
207
- eventFilter: t = z,
208
- ...r
209
- } = o;
210
- return O(
211
- e,
212
- P(
213
- t,
214
- n
215
- ),
216
- r
217
- );
218
- }
219
- function he(e, n, o = {}) {
220
- const {
221
- eventFilter: t,
222
- ...r
223
- } = o, { eventFilter: a, pause: y, resume: m, isActive: b } = oe(t);
224
- return { stop: se(
225
- e,
226
- n,
227
- {
228
- ...r,
229
- eventFilter: a
230
- }
231
- ), pause: y, resume: m, isActive: b };
232
- }
233
- function ve(e, n = !0, o) {
234
- re() ? K(e, o) : n ? e() : M(e);
235
- }
236
- export {
237
- me as _,
238
- ve as a,
239
- fe as b,
240
- de as c,
241
- pe as i,
242
- D as n,
243
- be as r,
244
- x as t,
245
- he as w
246
- };