@feedmepos/mf-menu 0.32.37-dev.1 → 0.32.38-dev.1

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 (129) hide show
  1. package/dist/{App-Bb-3_ZSx.js → App-DGdS9nht.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BARmH5Kv.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CBy3XScH.js} +3 -3
  3. package/dist/{Catalog-yRIPAnDC.js → Catalog-BuI0IVpf.js} +6 -6
  4. package/dist/{Category-Ca9K5MhL.js → Category-DSTt-Sl6.js} +9 -9
  5. package/dist/Category-DbL3CS-5.js +224 -0
  6. package/dist/{CookingGuide-B8BEcGEe.js → CookingGuide-Baw7iMDl.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DIpsCALu.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BDZDojOt.js} +1 -1
  8. package/dist/{Group-BT99kxFT.js → Group-BnzmEllK.js} +1 -1
  9. package/dist/{Group-th2sIKMq.js → Group-D158_Fr0.js} +7 -7
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-BBucri8m.js → Group.vue_vue_type_script_setup_true_lang-C3H6xvlY.js} +227 -216
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-RBYXZiHI.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D2G40Yc6.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DrPwZuUE.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-D-JOSWUn.js} +6 -6
  13. package/dist/{Ingredient-BEcfdvoj.js → Ingredient-C-gP75uQ.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CXWw_gWA.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BpuYVaKl.js} +2 -2
  15. package/dist/{LinkProductSideSheet-5r07FaSs.js → LinkProductSideSheet-DN5fbJVw.js} +3 -3
  16. package/dist/{MenuSetting-HhVipfSP.js → MenuSetting-CjQ6_Ti_.js} +5 -5
  17. package/dist/{PrintRoute-xkZf95vB.js → PrintRoute-DK25vS8X.js} +4 -4
  18. package/dist/{Product-Bn_h8_wa.js → Product-DCEMAuw3.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-3mmMzUVq.js → Product.vue_vue_type_script_setup_true_lang-DCutU0Ny.js} +348 -337
  20. package/dist/{ProductInternalTools-BRsD97bC.js → ProductInternalTools-CiDa1V3D.js} +22 -22
  21. package/dist/{Products-CpDyGrq_.js → Products-DUxtMLiy.js} +50 -50
  22. package/dist/{Publish-Ce67sfIi.js → Publish-Bs5zVwDw.js} +3 -3
  23. package/dist/{Recipe-6pn-8XJc.js → Recipe-_WCpFOU6.js} +4 -4
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-o8JUN34b.js → RuleView.vue_vue_type_script_setup_true_lang-3AVOVYpW.js} +2 -2
  25. package/dist/{Scheduler-DVIqTWNo.js → Scheduler-BqFwfRlm.js} +3 -3
  26. package/dist/{ServingSequence-yaPOAqwr.js → ServingSequence-ByNsE8ha.js} +3 -3
  27. package/dist/{Setting-DCpmd6aM.js → Setting-widqJGfT.js} +5 -5
  28. package/dist/Subcategory-DXaz2g4-.js +345 -0
  29. package/dist/{Takeaway-B8yW3jnm.js → Takeaway-Ce_y1_UW.js} +1 -1
  30. package/dist/{Takeaway-fjsxTI9x.js → Takeaway-DVBJn6re.js} +4 -4
  31. package/dist/Takeaway.vue_vue_type_script_setup_true_lang-DK2Cp2Dg.js +316 -0
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-c0N8J2_E.js → Thumbnail.vue_vue_type_script_setup_true_lang-CAiNaQMP.js} +4 -4
  33. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-BPs9D7Pq.js +185 -0
  34. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-nFLEeipN.js +6120 -0
  35. package/dist/{Unit-CB7huz6v.js → Unit-XJLHLSYf.js} +2 -2
  36. package/dist/Variant-BA1AQl9-.js +247 -0
  37. package/dist/{_id_-C6pbjMX7.js → _id_-CA2rV7Eb.js} +9 -9
  38. package/dist/app-C9zsFCoJ.js +363 -0
  39. package/dist/{app-C2AxZIV0.js → app-D2Sxejos.js} +1 -1
  40. package/dist/app.js +1 -1
  41. package/dist/apps/mf-menu/src/app.d.ts +264 -0
  42. package/dist/apps/mf-menu/src/components/ProductTranslationDialog.vue.d.ts +41 -0
  43. package/dist/apps/mf-menu/src/components/TranslationBadge.vue.d.ts +29 -0
  44. package/dist/apps/mf-menu/src/components/TranslationFieldSection.vue.d.ts +39 -0
  45. package/dist/apps/mf-menu/src/components/TranslationSideSheet.vue.d.ts +23 -0
  46. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +12 -0
  47. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +6 -0
  48. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +54 -0
  49. package/dist/apps/mf-menu/src/components/feature/CategoryManager/Form.vue.d.ts +1 -0
  50. package/dist/apps/mf-menu/src/components/feature/Fields/ImageDropField.vue.d.ts +1 -0
  51. package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +16 -0
  52. package/dist/apps/mf-menu/src/components/feature/GroupManager/ProductOverrideTranslation.vue.d.ts +22 -0
  53. package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +6 -0
  54. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +20 -0
  55. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +20 -0
  56. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/category.d.ts +8 -2
  57. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +24 -1
  58. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +16 -0
  59. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +10 -0
  60. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +16 -0
  61. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +6 -0
  62. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +24 -0
  63. package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +30 -0
  64. package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +10 -0
  65. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +125 -1
  66. package/dist/apps/mf-menu/src/components/feature/VariantManager/ProductVariantTranslation.vue.d.ts +37 -0
  67. package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +20 -0
  68. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +16 -0
  69. package/dist/apps/mf-menu/src/helper/item.d.ts +1 -0
  70. package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +10 -0
  71. package/dist/apps/mf-menu/src/helper/menu.d.ts +11 -0
  72. package/dist/apps/mf-menu/src/helper/menuImport.d.ts +125 -1
  73. package/dist/apps/mf-menu/src/helper/menuSanitizer.d.ts +125 -1
  74. package/dist/apps/mf-menu/src/manager/menu/category.d.ts +8 -2
  75. package/dist/apps/mf-menu/src/manager/menu/group.d.ts +1 -0
  76. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +125 -1
  77. package/dist/apps/mf-menu/src/manager/menu/subcategory.d.ts +6 -0
  78. package/dist/apps/mf-menu/src/stores/manager/item.d.ts +31 -1
  79. package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +16 -0
  80. package/dist/apps/mf-menu/src/stores/manager/takeaway.d.ts +9 -0
  81. package/dist/apps/mf-menu/src/stores/menu.d.ts +125 -1
  82. package/dist/apps/mf-menu/src/utils/translation.d.ts +2 -0
  83. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddCategoryDialogContentComponent.vue.d.ts +1 -0
  84. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +20 -0
  85. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +46 -0
  86. package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +10 -0
  87. package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +10 -0
  88. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  89. package/dist/assets/linked-status-BrleJSCp.js +13 -0
  90. package/dist/assets/menu-export-Da3-wtnw.js +107 -0
  91. package/dist/assets/override-menu-ChjeVe4O.js +13 -0
  92. package/dist/assets/validate-menu-YVTxOfeq.js +13 -0
  93. package/dist/{catalog-CExooVeT.js → catalog-YvUT-JIh.js} +1 -1
  94. package/dist/{catalogSetting-DdEejp3Q.js → catalogSetting-CXOYJZO3.js} +1 -1
  95. package/dist/{currency-Prr2X-1u.js → currency-np4zdWW1.js} +1 -1
  96. package/dist/dayjs.min-CSuLNurY.js +6 -0
  97. package/dist/{index-D3Vh13iX.js → index-3wQe-6lg.js} +1 -1
  98. package/dist/index-CFbB7bM3.js +335 -0
  99. package/dist/index-Cek4Z9eM.js +539 -0
  100. package/dist/{index.vue_vue_type_script_setup_true_lang-BF1UnZ5l.js → index.vue_vue_type_script_setup_true_lang-HZXySVXs.js} +18035 -17833
  101. package/dist/item-DR9qrNf6.js +8117 -0
  102. package/dist/{jszip.min-BQ_xBh4o.js → jszip.min-Bz8ZTO2s.js} +2 -2
  103. package/dist/{menu-B0qJanmj.js → menu-BWsDRctK.js} +1 -1
  104. package/dist/{menuV2-DdCaRGqL.js → menuV2-CfsbyMis.js} +74 -74
  105. package/dist/mf-menu.css +1 -1
  106. package/dist/{priceTier-B-XJVQDe.js → priceTier-BNCJtFVM.js} +1 -1
  107. package/dist/rules-DU-MRKWH.js +212 -0
  108. package/dist/{scheduler-DyVdWsn7.js → scheduler-BizSj8q8.js} +4 -4
  109. package/dist/{toExcel-D0rRKbjh.js → toExcel-DhRigI9c.js} +2 -2
  110. package/dist/translation-BeqjfyEb.js +75 -0
  111. package/dist/{unit-DcHsbLOz.js → unit-CaOym7HP.js} +2 -2
  112. package/package.json +3 -3
  113. package/dist/Category-DJriqKNV.js +0 -392
  114. package/dist/Subcategory-Dsf5NLIa.js +0 -280
  115. package/dist/Takeaway.vue_vue_type_script_setup_true_lang-Bk2edy2M.js +0 -305
  116. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CgF9dq-t.js +0 -6024
  117. package/dist/Variant-DSOF9uPl.js +0 -230
  118. package/dist/app-DPNctjt-.js +0 -363
  119. package/dist/assets/linked-status-DVG3fmWg.js +0 -13
  120. package/dist/assets/menu-export-CVc1O3S8.js +0 -107
  121. package/dist/assets/override-menu-ClMYkz3D.js +0 -13
  122. package/dist/assets/validate-menu-CWDyO0w0.js +0 -13
  123. package/dist/category-3SQRILcp.js +0 -156
  124. package/dist/dayjs.min-BOYFHQRS.js +0 -6
  125. package/dist/index-DBRFZboy.js +0 -273
  126. package/dist/index-TgR8MNiA.js +0 -239
  127. package/dist/item-C2wRl41j.js +0 -6950
  128. package/dist/rules-CIWTZQfh.js +0 -6
  129. package/dist/subcategory-DMfXewrZ.js +0 -148
@@ -0,0 +1,212 @@
1
+ import { defineComponent as h, watch as T, ref as v, computed as U, resolveComponent as y, createElementBlock as A, openBlock as F, Fragment as N, createVNode as d, unref as f, withCtx as g, createElementVNode as O, renderList as Y, toDisplayString as P } from "vue";
2
+ import { M as b, A as E, u as I } from "./index.vue_vue_type_script_setup_true_lang-HZXySVXs.js";
3
+ import { useI18n as S } from "@feedmepos/mf-common";
4
+ import { useDialogChild as q } from "@feedmepos/ui-library";
5
+ import { u as L } from "./menuV2-CfsbyMis.js";
6
+ import { _ as k } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-BPs9D7Pq.js";
7
+ import { g as w } from "./translation-BeqjfyEb.js";
8
+ const K = { class: "py-12 px-16 space-y-4" }, D = /* @__PURE__ */ h({
9
+ __name: "AddSubcategoryDialogContentComponent",
10
+ props: {
11
+ initialValue: {}
12
+ },
13
+ setup(o) {
14
+ const r = o, { t: m } = S();
15
+ T(
16
+ () => r.initialValue,
17
+ (n) => {
18
+ t.value = n ?? "";
19
+ }
20
+ );
21
+ const t = v(r.initialValue), u = v(!1), s = v(void 0), { emitData: M, emitAction: V } = q(), C = U(() => !!t.value), a = U(() => {
22
+ var _;
23
+ const n = [], l = "en-US", x = (_ = s.value) == null ? void 0 : _[l];
24
+ return t.value && !x && n.push({
25
+ locale: l,
26
+ name: t.value,
27
+ localeDisplay: w(l)
28
+ }), s.value && Object.entries(s.value).filter(([p, c]) => c && c.trim()).sort(([p], [c]) => p.localeCompare(c)).forEach(([p, c]) => {
29
+ n.push({
30
+ locale: p,
31
+ name: c,
32
+ localeDisplay: w(p)
33
+ });
34
+ }), n;
35
+ });
36
+ function e(n) {
37
+ s.value = n;
38
+ }
39
+ return T(
40
+ [t, s],
41
+ ([n, l]) => {
42
+ M({ name: n, name_locale: l });
43
+ },
44
+ {
45
+ immediate: !0
46
+ }
47
+ ), (n, l) => {
48
+ const x = y("fm-button"), _ = y("FmTooltip"), p = y("fm-text-field"), c = y("FmForm");
49
+ return F(), A(N, null, [
50
+ d(c, {
51
+ onValidationSuccess: l[2] || (l[2] = (i) => f(V)("primary"))
52
+ }, {
53
+ default: g(() => [
54
+ d(p, {
55
+ modelValue: t.value,
56
+ "onUpdate:modelValue": l[1] || (l[1] = (i) => t.value = i),
57
+ rules: [(i) => !!i || f(m)("menu.subcategory.dialog.add.name.required")],
58
+ autofocus: "",
59
+ label: f(m)("menu.subcategory.dialog.add.name.label"),
60
+ placeholder: f(m)("menu.subcategory.dialog.add.name.placeholder")
61
+ }, {
62
+ append: g(() => [
63
+ d(_, {
64
+ variant: "plain",
65
+ placement: "top",
66
+ "z-index": 999
67
+ }, {
68
+ content: g(() => [
69
+ O("div", K, [
70
+ (F(!0), A(N, null, Y(a.value, (i) => (F(), A("div", {
71
+ key: i.locale
72
+ }, P(i.name) + " (" + P(i.localeDisplay) + ") ", 1))), 128))
73
+ ])
74
+ ]),
75
+ default: g(() => [
76
+ d(x, {
77
+ variant: "tertiary",
78
+ icon: "g_translate",
79
+ onClick: l[0] || (l[0] = (i) => u.value = !0),
80
+ disabled: !C.value
81
+ }, null, 8, ["disabled"])
82
+ ]),
83
+ _: 1
84
+ })
85
+ ]),
86
+ _: 1
87
+ }, 8, ["modelValue", "rules", "label", "placeholder"])
88
+ ]),
89
+ _: 1
90
+ }),
91
+ d(k, {
92
+ modelValue: u.value,
93
+ "onUpdate:modelValue": l[3] || (l[3] = (i) => u.value = i),
94
+ title: f(m)("menu.subcategory.title"),
95
+ name: t.value ?? "",
96
+ "name-locale": s.value,
97
+ "onUpdate:nameLocale": e
98
+ }, null, 8, ["modelValue", "title", "name", "name-locale"])
99
+ ], 64);
100
+ };
101
+ }
102
+ }), J = ({
103
+ dialog: o,
104
+ menuLoader: r,
105
+ isLocalOnly: m = !1
106
+ }) => {
107
+ const { t } = S(), u = L().updateMenu;
108
+ function s() {
109
+ const a = v(!1);
110
+ o.open({
111
+ title: t("menu.subcategory.manager.dialog.add.title"),
112
+ contentComponent: D,
113
+ primaryActions: {
114
+ text: t("menu.subcategory.manager.dialog.add.action"),
115
+ close: !1,
116
+ isLoading: a
117
+ },
118
+ secondaryActions: {
119
+ text: t("menu.common.actions.cancel"),
120
+ close: !0
121
+ }
122
+ }).onPrimary(async (e) => {
123
+ if (e != null && e.name)
124
+ try {
125
+ a.value = !0;
126
+ const n = {
127
+ module: E.F_MENU_MODULE_V4_KEY.enum.subCategory,
128
+ operation: b.F_OPERATION_TYPE.create,
129
+ data: {
130
+ name: e.name,
131
+ name_locale: e.name_locale,
132
+ position: I().subcategories.length
133
+ }
134
+ };
135
+ m ? await u(n) : await r.updateMenu(n, e.name), o.close();
136
+ } finally {
137
+ a.value = !1;
138
+ }
139
+ });
140
+ }
141
+ function M(a) {
142
+ o.open({
143
+ title: t("menu.subcategory.manager.dialog.update.title"),
144
+ contentComponent: D,
145
+ contentComponentProps: {
146
+ initialValue: a.name
147
+ },
148
+ primaryActions: {
149
+ text: t("menu.subcategory.manager.dialog.update.action"),
150
+ close: !1
151
+ },
152
+ secondaryActions: {
153
+ text: t("menu.common.actions.cancel"),
154
+ close: !0
155
+ }
156
+ }).onPrimary(async (e) => {
157
+ if (!(e != null && e.name)) return;
158
+ const n = {
159
+ module: E.F_MENU_MODULE_V4_KEY.enum.subCategory,
160
+ operation: b.F_OPERATION_TYPE.update,
161
+ data: {
162
+ ...a,
163
+ name: e.name,
164
+ name_locale: e.name_locale
165
+ }
166
+ };
167
+ m ? await u(n) : await r.updateMenu(n, e.name), o.close();
168
+ });
169
+ }
170
+ function V(a) {
171
+ o.open({
172
+ title: t("menu.common.dialog.remove.subcategory.title"),
173
+ message: t("menu.common.dialog.remove.subcategory.message", { name: a.name }),
174
+ primaryActions: {
175
+ text: t("menu.common.actions.remove"),
176
+ close: !1
177
+ },
178
+ secondaryActions: {
179
+ text: t("menu.common.actions.cancel"),
180
+ close: !0
181
+ }
182
+ }).onPrimary(async () => {
183
+ const e = {
184
+ module: E.F_MENU_MODULE_V4_KEY.enum.subCategory,
185
+ operation: b.F_OPERATION_TYPE.delete,
186
+ data: a._id
187
+ };
188
+ m ? await u(e) : await r.updateMenu(e, a.name, !0), o.close();
189
+ });
190
+ }
191
+ async function C(a) {
192
+ const e = {
193
+ module: E.F_MENU_MODULE_V4_KEY.enum.subCategory,
194
+ operation: b.F_OPERATION_TYPE.rearrange,
195
+ data: a
196
+ };
197
+ m ? await u(e) : await r.updateMenu(e, "Subcategories");
198
+ }
199
+ return {
200
+ create: s,
201
+ update: M,
202
+ deleteSubcategory: V,
203
+ rearrange: C
204
+ };
205
+ };
206
+ function Q(o, r = "This field can't be empty.") {
207
+ return o == null || Array.isArray(o) && o.length === 0 || typeof o == "string" && o.trim() === "" ? r : !0;
208
+ }
209
+ export {
210
+ Q as r,
211
+ J as u
212
+ };
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as L, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
2
- import { I as S, A as r, u as pe, J as ve, M as ue } from "./index.vue_vue_type_script_setup_true_lang-BF1UnZ5l.js";
2
+ import { I as S, A as r, u as pe, J as ve, M as ue } from "./index.vue_vue_type_script_setup_true_lang-HZXySVXs.js";
3
3
  import { useI18n as de } from "@feedmepos/mf-common";
4
4
  import { components as _e } from "@feedmepos/ui-library";
5
5
  import { _ as fe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
- import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-o8JUN34b.js";
6
+ import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-3AVOVYpW.js";
7
7
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
8
- import { u as he } from "./menu-B0qJanmj.js";
9
- import { L as ge } from "./LinkProductSideSheet-5r07FaSs.js";
8
+ import { u as he } from "./menu-BWsDRctK.js";
9
+ import { L as ge } from "./LinkProductSideSheet-DN5fbJVw.js";
10
10
  const Ve = { class: "space-y-8" }, Fe = {
11
11
  key: 0,
12
12
  class: "space-y-16"
@@ -1,5 +1,5 @@
1
- import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DrPwZuUE.js";
2
- import "./index.vue_vue_type_script_setup_true_lang-BF1UnZ5l.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-D-JOSWUn.js";
2
+ import "./index.vue_vue_type_script_setup_true_lang-HZXySVXs.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -0,0 +1,75 @@
1
+ import { defineComponent as c, createElementBlock as p, openBlock as o, normalizeClass as u, unref as d, toDisplayString as m, resolveComponent as t, createVNode as i, createBlock as s } from "vue";
2
+ const f = /* @__PURE__ */ c({
3
+ __name: "TranslationBadge",
4
+ props: {
5
+ label: {},
6
+ spacing: { default: "md" }
7
+ },
8
+ setup(l) {
9
+ const a = l.spacing === "sm" ? "mb-4" : "mb-8";
10
+ return (n, r) => (o(), p("p", {
11
+ class: u([
12
+ "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4",
13
+ d(a)
14
+ ])
15
+ }, m(n.label), 3));
16
+ }
17
+ }), h = /* @__PURE__ */ c({
18
+ __name: "TranslationFieldSection",
19
+ props: {
20
+ label: {},
21
+ modelValue: {},
22
+ type: { default: "text" },
23
+ readonly: { type: Boolean, default: !0 },
24
+ spacing: { default: "md" },
25
+ placeholder: {}
26
+ },
27
+ setup(l) {
28
+ return (e, a) => {
29
+ const n = t("FmTextField"), r = t("fm-textarea");
30
+ return o(), p("div", null, [
31
+ i(f, {
32
+ label: e.label,
33
+ spacing: e.spacing
34
+ }, null, 8, ["label", "spacing"]),
35
+ e.type === "text" ? (o(), s(n, {
36
+ key: 0,
37
+ "model-value": e.modelValue,
38
+ readonly: e.readonly,
39
+ placeholder: e.placeholder
40
+ }, null, 8, ["model-value", "readonly", "placeholder"])) : (o(), s(r, {
41
+ key: 1,
42
+ "model-value": e.modelValue,
43
+ readonly: e.readonly,
44
+ placeholder: e.placeholder
45
+ }, null, 8, ["model-value", "readonly", "placeholder"]))
46
+ ]);
47
+ };
48
+ }
49
+ });
50
+ function b(l) {
51
+ switch (l) {
52
+ case "en-US":
53
+ return "EN";
54
+ case "zh-CN":
55
+ return "简";
56
+ case "th-TH":
57
+ return "TH";
58
+ case "ja-JP":
59
+ return "JP";
60
+ case "zh-Hant":
61
+ return "繁";
62
+ default:
63
+ return "";
64
+ }
65
+ }
66
+ function g(l, e) {
67
+ const a = d(e).find((n) => n.code === l);
68
+ return (a == null ? void 0 : a.name) || l;
69
+ }
70
+ export {
71
+ h as _,
72
+ g as a,
73
+ f as b,
74
+ b as g
75
+ };
@@ -1,12 +1,12 @@
1
1
  import { defineStore as Q } from "pinia";
2
2
  import { defineComponent as T, computed as U, ref as h, watch as L, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as H, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { a8 as P, a9 as te, a6 as B, I as k, Q as $, G as I, D as E, a7 as ne, M as C, A as D, J as oe, u as ae } from "./index.vue_vue_type_script_setup_true_lang-BF1UnZ5l.js";
3
+ import { a7 as P, a8 as te, a5 as B, I as k, Q as $, G as I, D as E, a6 as ne, M as C, A as D, J as oe, u as ae } from "./index.vue_vue_type_script_setup_true_lang-HZXySVXs.js";
4
4
  import { useI18n as N } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
6
6
  import { u as se } from "./discardConfirm-BHni0LNu.js";
7
7
  import { c as re } from "./check-C9mY6LiX.js";
8
8
  import "./vuedraggable-CK8z7qA8.js";
9
- import "./menuV2-DdCaRGqL.js";
9
+ import "./menuV2-CfsbyMis.js";
10
10
  import "./app-5fxKLAzS.js";
11
11
  /* empty css */
12
12
  import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.32.37-dev.1",
3
+ "version": "0.32.38-dev.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -17,12 +17,12 @@
17
17
  "dependencies": {
18
18
  "@feedmepos/feature-flag": "^0.0.15",
19
19
  "@feedmepos/auth": "^1.1.14",
20
- "@feedmepos/core": "2.15.18",
20
+ "@feedmepos/core": "2.15.20",
21
21
  "@feedmepos/core-dart": "^0.2.6",
22
22
  "@feedmepos/core-legacy": "file:../../core-legacy-1.5.tar.gz",
23
23
  "@feedmepos/custom-attributes": "0.0.1-rc.4",
24
24
  "@feedmepos/inventory-core": "^0.2.6",
25
- "@feedmepos/menu": "1.9.2",
25
+ "@feedmepos/menu": "1.9.4",
26
26
  "@feedmepos/mf-inventory-portal": "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz",
27
27
  "@feedmepos/mf-remy-panel": "^0.3.5",
28
28
  "@feedmepos/ui-library": "1.8.8",