@feedmepos/mf-menu 0.31.40-prod → 0.31.41-prod

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/{App-aWEH-ZEk.js → App-5Lzy8zHZ.js} +8 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-jJyinQZl.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BnKXsQH-.js} +3 -3
  3. package/dist/{Catalog-BoFfFdn8.js → Catalog-s5b8V8nw.js} +8 -9
  4. package/dist/{Category-CWYbb3Jn.js → Category-BJzScJEY.js} +4 -4
  5. package/dist/{Category-DZ45uikR.js → Category-DZ-xqIMI.js} +6 -6
  6. package/dist/{CookingGuide-BU0PRWIQ.js → CookingGuide-Bkd6GPww.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Z5xsKDIE.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-B8tIjKOW.js} +1 -1
  8. package/dist/{Group-BMQDeqiS.js → Group-0b2Qiov3.js} +1 -1
  9. package/dist/{Group-C0T_uknK.js → Group-BOaCcKiI.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-DyfmY6F1.js → Group.vue_vue_type_script_setup_true_lang-DUlUfMAs.js} +8 -8
  11. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CouimeC4.js +399 -0
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dl-Wvt3D.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DOvQmbrZ.js} +13 -14
  13. package/dist/{Ingredient-3lwDUQx_.js → Ingredient-ChcYUvOg.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-VLrrTkSC.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DE1HkipX.js} +2 -2
  15. package/dist/LinkProductSideSheet-BdzBGYxG.js +361 -0
  16. package/dist/MenuSetting-zAAttaoA.js +618 -0
  17. package/dist/{PrintRoute-DfJ-vUAb.js → PrintRoute-T-vuO5N8.js} +4 -4
  18. package/dist/{Product-F4PoLm9v.js → Product-B5q291VF.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DT5gffpA.js → Product.vue_vue_type_script_setup_true_lang-DLRlT10W.js} +468 -465
  20. package/dist/{ProductInternalTools-DSGU-OqU.js → ProductInternalTools-BOlc0VUR.js} +5 -5
  21. package/dist/{Products-COzW2Z4g.js → Products-Cd4Mqhm3.js} +88 -85
  22. package/dist/{Publish-CDXVWCk2.js → Publish-SuRzt-_D.js} +3 -3
  23. package/dist/{Recipe-BZx4wrcP.js → Recipe-BKrjNs5g.js} +4 -4
  24. package/dist/{Scheduler-wHCWSeU2.js → Scheduler-DnDgImLC.js} +3 -3
  25. package/dist/{ServingSequence-BbYEhDYh.js → ServingSequence-D602bVnm.js} +3 -3
  26. package/dist/{Setting-C9Tlw1Iy.js → Setting-FMT4oBYH.js} +44 -45
  27. package/dist/{Subcategory-C8AwfrKb.js → Subcategory-CpYmjAvA.js} +4 -4
  28. package/dist/{Takeaway-t1053wg2.js → Takeaway-BXh3iuME.js} +1 -1
  29. package/dist/{Takeaway-DaEUn-yM.js → Takeaway-D4hjN5z5.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-7XycP5fU.js → Takeaway.vue_vue_type_script_setup_true_lang-By1f-FCO.js} +5 -5
  31. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-CZUwa5C_.js +440 -0
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ci6iqOry.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DfjtfcCh.js} +604 -600
  33. package/dist/{Unit-CnqptGCz.js → Unit-CsjHkV-h.js} +2 -2
  34. package/dist/{Variant-DiOYOwJs.js → Variant-Djra14ZX.js} +3 -3
  35. package/dist/{_id_-BSfU16VO.js → _id_-BXkqoCzB.js} +78 -75
  36. package/dist/{app-Ddb81PNo.js → app-CVqWWV4x.js} +278 -278
  37. package/dist/{LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js → app-CiBqmBzO.js} +2120 -2084
  38. package/dist/{app-Cou6qPF2.js → app-PhBJNss_.js} +1 -1
  39. package/dist/app.js +1 -1
  40. package/dist/apps/mf-menu/src/api/menu.d.ts +2 -1
  41. package/dist/apps/mf-menu/src/app.d.ts +144 -0
  42. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +36 -0
  43. package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +9 -3
  44. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +294 -4
  45. package/dist/apps/mf-menu/src/composable/attributes.d.ts +26 -0
  46. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +40 -0
  47. package/dist/apps/mf-menu/src/helper/import-export.d.ts +285 -0
  48. package/dist/apps/mf-menu/src/helper/menu.d.ts +285 -0
  49. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +285 -0
  50. package/dist/apps/mf-menu/src/stores/menu.d.ts +293 -3
  51. package/dist/apps/mf-menu/src/utils/array.d.ts +1 -0
  52. package/dist/apps/mf-menu/src/utils/customAttributes.d.ts +12 -0
  53. package/dist/apps/mf-menu/src/views/MenuSetting/LinkProductRuleGroups.vue.d.ts +2 -0
  54. package/dist/apps/mf-menu/src/views/MenuSetting/RuleGroupSideSheet.vue.d.ts +176 -0
  55. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +166 -0
  56. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  57. package/dist/assets/linked-status-WlVAcpRn.js +13 -0
  58. package/dist/assets/override-menu-__h4D7ac.js +13 -0
  59. package/dist/assets/validate-menu-DyPuzLRg.js +13 -0
  60. package/dist/{catalog-DSuJhsUb.js → catalog-C_TuQLxq.js} +1 -1
  61. package/dist/{catalogSetting-C3gEw9ov.js → catalogSetting-BUlJu6hG.js} +1 -1
  62. package/dist/{category-CwWq3KCE.js → category-CmVw1Kj-.js} +1 -1
  63. package/dist/{currency-g45Sh-t6.js → currency-OhOTnAqk.js} +1 -1
  64. package/dist/customAttributes-fpOfmGnw.js +180 -0
  65. package/dist/{dayjs.min-g3eN5z-V.js → dayjs.min-CDhP-7L5.js} +1 -1
  66. package/dist/{index-QsLFbxyG.js → index-BJZEWB5C.js} +4 -4
  67. package/dist/{index-BLQCYEc6.js → index-DHAYGEPp.js} +7 -8
  68. package/dist/{index-0yRUi7LL.js → index-DtwHmS38.js} +1 -1
  69. package/dist/index-N3cGc8ex.js +245 -0
  70. package/dist/{item-BvvQ9urP.js → item-BELLphR0.js} +16 -16
  71. package/dist/{jszip.min-DzdUiaR4.js → jszip.min-CZtcGb7A.js} +353 -353
  72. package/dist/{menu-QrVg2Ph7.js → menu-Csyr6W9A.js} +7 -7
  73. package/dist/{menu-DFNvhoNQ.js → menu-DS_ERmBf.js} +23355 -23206
  74. package/dist/{menuV2-Ezf_jW40.js → menuV2-DKzAZ4Ss.js} +151 -146
  75. package/dist/mf-menu.css +1 -1
  76. package/dist/{priceTier-zENsn3P_.js → priceTier-CYWS5lDS.js} +1 -1
  77. package/dist/{scheduler-BuwGSv6A.js → scheduler-DI5dXC7Y.js} +8 -8
  78. package/dist/{subcategory-O3L_zCJA.js → subcategory-D_ao-IV9.js} +2 -2
  79. package/dist/{toExcel-CpRy_4nG.js → toExcel-Cml-rkJQ.js} +2 -2
  80. package/dist/{unit-Ct_7Hfa2.js → unit-BWDp2LkV.js} +42 -41
  81. package/package.json +3 -3
  82. package/dist/FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js +0 -50
  83. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D6qro5w_.js +0 -367
  84. package/dist/LinkProductSideSheet-LDZjKX95.js +0 -297
  85. package/dist/MenuSetting-AhutsCVy.js +0 -185
  86. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-B7oLH9cP.js +0 -431
  87. package/dist/assets/linked-status-B_crHhZH.js +0 -24
  88. package/dist/assets/override-menu-BmlCEpHH.js +0 -24
  89. package/dist/assets/validate-menu-CF-psoB-.js +0 -24
  90. package/dist/index-0Q5T9VZV.js +0 -214
@@ -1,214 +0,0 @@
1
- import { defineComponent as z, computed as P, ref as w, resolveComponent as d, createElementBlock as I, openBlock as R, Fragment as B, createElementVNode as g, createVNode as f, normalizeClass as A, withCtx as _, toDisplayString as C, unref as h, h as E, watch as D, onMounted as G, nextTick as K, readonly as M, getCurrentInstance as N, getCurrentScope as U, onScopeDispose as L } 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
- const X = {
5
- class: /* @__PURE__ */ A(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap", "text-fm-color-neutral-gray-400"])
6
- }, Y = {
7
- class: "fm-typo-en-title-sm-600"
8
- }, Z = {
9
- class: "max-h-[60vh] flex-1 overflow-y-auto min-h-0"
10
- }, ie = /* @__PURE__ */ z({
11
- __name: "RestaurantAttributesSelector",
12
- props: {
13
- fullWidth: {
14
- type: Boolean,
15
- default: !1
16
- },
17
- currentRestaurantCustomAttributes: {}
18
- },
19
- emits: ["confirm"],
20
- setup(e, {
21
- emit: n
22
- }) {
23
- const o = e, {
24
- t
25
- } = q(), {
26
- attributes: l
27
- } = H({
28
- valueSource: J().restaurants,
29
- entity: "restaurant"
30
- }), r = P(() => l.value), v = [{
31
- header: () => t("portalshell.customAttributes.form.key"),
32
- accessorKey: "key",
33
- enableSorting: !1
34
- }, {
35
- header: () => t("portalshell.customAttributes.form.value"),
36
- accessorKey: "values",
37
- enableSorting: !1,
38
- cell: (c) => {
39
- const a = c.row.original, m = a.values;
40
- return E(Q.FmSelect, {
41
- modelValue: a.value,
42
- placeholder: t("portalshell.customAttributes.form.valuePlaceholder"),
43
- items: m.map((u) => ({
44
- label: u,
45
- value: u
46
- })),
47
- clearable: !0,
48
- "onUpdate:modelValue": (u) => a.value = u
49
- });
50
- }
51
- }], i = n, p = () => {
52
- const c = l.value.filter((m) => m.value != null), a = c.length ? c.reduce((m, u) => (m[u.key] = u.value, m), {}) : {};
53
- i("confirm", a), y();
54
- }, s = w(!1);
55
- function b() {
56
- s.value = !0;
57
- const c = o.currentRestaurantCustomAttributes ?? {};
58
- r.value.forEach((a) => {
59
- a.value = c[a.key] ?? void 0;
60
- });
61
- }
62
- function y() {
63
- s.value = !1;
64
- }
65
- return (c, a) => {
66
- const m = d("FmIcon"), u = d("FmChip"), O = d("FmTable"), V = d("FmSpacer"), F = d("fm-button"), j = d("FmDialog");
67
- return R(), I(B, null, [g("div", {
68
- class: "cursor-pointer",
69
- onClick: b
70
- }, [f(u, {
71
- class: A([c.fullWidth ? "w-full justify-between" : ""])
72
- }, {
73
- default: _(() => [g("div", X, C(h(t)("menu.catalog.form.restaurant_attributes_title")), 1), f(m, {
74
- color: "neutral-gray-400",
75
- name: "launch",
76
- size: "sm"
77
- })]),
78
- _: 1
79
- }, 8, ["class"])]), f(j, {
80
- modelValue: s.value,
81
- "onUpdate:modelValue": a[0] || (a[0] = (W) => s.value = W),
82
- overlay: !0,
83
- "min-width": "min(calc(100% - 48px), 560px)"
84
- }, {
85
- "dialog-header": _(() => [g("div", Y, C(h(t)("menu.catalog.form.restaurant_attributes_title")), 1)]),
86
- "dialog-footer": _(() => [f(V), f(F, {
87
- label: h(t)("menu.common.actions.confirm"),
88
- size: "lg",
89
- type: "submit",
90
- variant: "primary",
91
- onClick: p
92
- }, null, 8, ["label"]), f(F, {
93
- label: h(t)("menu.common.actions.cancel"),
94
- size: "lg",
95
- variant: "tertiary",
96
- onClick: y
97
- }, null, 8, ["label"])]),
98
- default: _(() => [g("div", Z, [f(O, {
99
- "column-defs": v,
100
- "row-data": r.value,
101
- "shrink-at": !1,
102
- "page-size": r.value.length,
103
- "hide-footer": ""
104
- }, null, 8, ["row-data", "page-size"])])]),
105
- _: 1
106
- }, 8, ["modelValue"])], 64);
107
- };
108
- }
109
- });
110
- function ue(e) {
111
- return U() ? (L(e), !0) : !1;
112
- }
113
- function S(e) {
114
- return typeof e == "function" ? e() : h(e);
115
- }
116
- const ce = typeof window < "u" && typeof document < "u";
117
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
118
- const $ = Object.prototype.toString, me = (e) => $.call(e) === "[object Object]", x = () => {
119
- };
120
- function k(e, n) {
121
- function o(...t) {
122
- return new Promise((l, r) => {
123
- Promise.resolve(e(() => n.apply(this, t), { fn: n, thisArg: this, args: t })).then(l).catch(r);
124
- });
125
- }
126
- return o;
127
- }
128
- const T = (e) => e();
129
- function ee(e, n = {}) {
130
- let o, t, l = x;
131
- const r = (i) => {
132
- clearTimeout(i), l(), l = x;
133
- };
134
- return (i) => {
135
- const p = S(e), s = S(n.maxWait);
136
- return o && r(o), p <= 0 || s !== void 0 && s <= 0 ? (t && (r(t), t = null), Promise.resolve(i())) : new Promise((b, y) => {
137
- l = n.rejectOnCancel ? y : b, s && !t && (t = setTimeout(() => {
138
- o && r(o), t = null, b(i());
139
- }, s)), o = setTimeout(() => {
140
- t && r(t), t = null, b(i());
141
- }, p);
142
- });
143
- };
144
- }
145
- function te(e = T) {
146
- const n = w(!0);
147
- function o() {
148
- n.value = !1;
149
- }
150
- function t() {
151
- n.value = !0;
152
- }
153
- const l = (...r) => {
154
- n.value && e(...r);
155
- };
156
- return { isActive: M(n), pause: o, resume: t, eventFilter: l };
157
- }
158
- function ne(e) {
159
- return N();
160
- }
161
- function oe(e, n = 200, o = {}) {
162
- return k(
163
- ee(n, o),
164
- e
165
- );
166
- }
167
- function fe(e, n = 200, o = {}) {
168
- const t = w(e.value), l = oe(() => {
169
- t.value = e.value;
170
- }, n, o);
171
- return D(e, () => l()), t;
172
- }
173
- function le(e, n, o = {}) {
174
- const {
175
- eventFilter: t = T,
176
- ...l
177
- } = o;
178
- return D(
179
- e,
180
- k(
181
- t,
182
- n
183
- ),
184
- l
185
- );
186
- }
187
- function pe(e, n, o = {}) {
188
- const {
189
- eventFilter: t,
190
- ...l
191
- } = o, { eventFilter: r, pause: v, resume: i, isActive: p } = te(t);
192
- return { stop: le(
193
- e,
194
- n,
195
- {
196
- ...l,
197
- eventFilter: r
198
- }
199
- ), pause: v, resume: i, isActive: p };
200
- }
201
- function de(e, n = !0, o) {
202
- ne() ? G(e, o) : n ? e() : K(e);
203
- }
204
- export {
205
- ie as _,
206
- de as a,
207
- ue as b,
208
- me as c,
209
- ce as i,
210
- x as n,
211
- fe as r,
212
- S as t,
213
- pe as w
214
- };