@feedmepos/mf-menu 0.32.39-dev.1 → 0.32.40-dev
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.
- package/dist/{App-DRncp_Ei.js → App-_MLzeklD.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CkxXD8WW.js → ApplyProduct.vue_vue_type_script_setup_true_lang-UstB0HCf.js} +3 -3
- package/dist/{Catalog-DUiSF-WF.js → Catalog-CmM9e7VE.js} +6 -6
- package/dist/{Category-DE197NW1.js → Category-C72bnp32.js} +5 -5
- package/dist/{Category-DVPD4xrP.js → Category-ab7o-IpT.js} +4 -4
- package/dist/{CookingGuide-CHoGojcW.js → CookingGuide-CcW7ludO.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-dLiFrsWf.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CfBX_YEE.js} +1 -1
- package/dist/{Group-BXV1pM34.js → Group-BSoAjpHp.js} +3 -3
- package/dist/{Group-DMegQbpX.js → Group-DD1lzsQY.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-C_fcE1nx.js → Group.vue_vue_type_script_setup_true_lang-BUeaIf4N.js} +116 -116
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-wPIx9YCb.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CFeyZvxS.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CPMD7DRL.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C8nNRSHM.js} +1958 -1942
- package/dist/{Ingredient-Dfibdd-o.js → Ingredient-824DB4pP.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BN4dh1LS.js → InventoryBinding.vue_vue_type_script_setup_true_lang-NpqmWdGE.js} +2 -2
- package/dist/{LinkProductSideSheet-D6Mqf5Hl.js → LinkProductSideSheet-DdyUWMWm.js} +3 -3
- package/dist/{MenuSetting-BESOJBlx.js → MenuSetting-DUX-xalJ.js} +5 -5
- package/dist/{PrintRoute-TPhGObk9.js → PrintRoute-CdTJK7Pp.js} +4 -4
- package/dist/{Product-Dp6HbElI.js → Product-Cbto_NJg.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-PDIUXdAC.js → Product.vue_vue_type_script_setup_true_lang-CP2VvoZ6.js} +13 -13
- package/dist/{ProductInternalTools-LWUFfPxo.js → ProductInternalTools-C_314g2l.js} +5 -5
- package/dist/{Products-Do5CagOW.js → Products-BEKsOtCj.js} +19 -19
- package/dist/{Publish-BD-AclFq.js → Publish-CN9S-t8t.js} +3 -3
- package/dist/{Recipe-Hzo2Izmw.js → Recipe-BCSIDC6j.js} +4 -4
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DhSvT1fH.js → RuleView.vue_vue_type_script_setup_true_lang-DlW4Zx5S.js} +2 -2
- package/dist/{Scheduler-pTJ_CkJq.js → Scheduler-ZG2xvJvE.js} +3 -3
- package/dist/{ServingSequence-CvwLzA7G.js → ServingSequence-D8moUhOq.js} +3 -3
- package/dist/{Setting-BiUPxIvh.js → Setting-BKq7u_IL.js} +5 -5
- package/dist/Subcategory-BgTadpyj.js +349 -0
- package/dist/{Takeaway-CWNo49PD.js → Takeaway-C9bpWn4s.js} +4 -4
- package/dist/{Takeaway-C9dqWzrT.js → Takeaway-DyJrzpN-.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CpUGSiIF.js → Takeaway.vue_vue_type_script_setup_true_lang-aFnWB49Z.js} +6 -6
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-D8oVVt5f.js → Thumbnail.vue_vue_type_script_setup_true_lang-MKl8NdrG.js} +4 -4
- package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-wnFIuSpr.js +194 -0
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Bye20Huu.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B556mEdE.js} +1907 -1899
- package/dist/{Unit-DKV2cfnv.js → Unit-CG_GyiVH.js} +2 -2
- package/dist/{Variant-CBr8tub8.js → Variant-D_ZlWQ43.js} +4 -4
- package/dist/{_id_-Ce6NN5vT.js → _id_-CSInNRCp.js} +9 -9
- package/dist/{app-CImDLyt0.js → app-b4ZmiMK2.js} +26 -26
- package/dist/{app-B7B_bbMc.js → app-vIXTx6c7.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/ProductTranslationDialog.vue.d.ts +4 -0
- package/dist/apps/mf-menu/src/components/TranslationFieldSection.vue.d.ts +7 -3
- package/dist/apps/mf-menu/src/components/TranslationSideSheet.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +3 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +3 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +3 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +7 -0
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +3 -0
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +17 -0
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +3 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +3 -0
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +2 -2
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +7 -0
- package/dist/apps/mf-menu/src/helper/menuSanitizer.d.ts +7 -0
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +7 -0
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +9 -0
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +3 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +7 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +6 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-J1LJXkYU.js +13 -0
- package/dist/assets/{menu-export-C2ctrNOt.js → menu-export-C4zy8Etx.js} +45 -45
- package/dist/assets/override-menu-CwpHJJ36.js +13 -0
- package/dist/assets/validate-menu-WYp7xh5-.js +13 -0
- package/dist/{catalog-RXap_5ft.js → catalog-Ce7o_N7a.js} +1 -1
- package/dist/{catalogSetting-D10sgkdu.js → catalogSetting-CeTOf9lJ.js} +1 -1
- package/dist/{currency-CPC6-Naj.js → currency-hq_koFDw.js} +1 -1
- package/dist/{dayjs.min-BgxdFykA.js → dayjs.min-UytF3izD.js} +1 -1
- package/dist/index-BydcrqXX.js +545 -0
- package/dist/{index-D35XBgVx.js → index-DYh6XlbG.js} +1 -1
- package/dist/{index-BWlfJ1Hv.js → index-WFUD7oh5.js} +58 -54
- package/dist/{index.vue_vue_type_script_setup_true_lang-CbdGF_YP.js → index.vue_vue_type_script_setup_true_lang-DOhr-m71.js} +14226 -14185
- package/dist/{item-Chx3oZ7b.js → item-BBqfgtk1.js} +2968 -2926
- package/dist/{jszip.min-DH0CoV5k.js → jszip.min-C4UMTEuA.js} +2 -2
- package/dist/{menu-DZhJl6lE.js → menu-CGK50Gwb.js} +1 -1
- package/dist/{menuV2-B1fegOdA.js → menuV2-DiyUO2p3.js} +50 -50
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-C-ocPg-3.js → priceTier-eEeeQpw0.js} +1 -1
- package/dist/rules-BDtO9_2x.js +216 -0
- package/dist/{scheduler-J-XrlyVY.js → scheduler-C-UR0pvC.js} +4 -4
- package/dist/{toExcel-C9btsoRs.js → toExcel-Dr3CybYc.js} +2 -2
- package/dist/translation-Cdap0IVg.js +79 -0
- package/dist/{unit-Gtkb_1WB.js → unit-DMQom_GI.js} +2 -2
- package/package.json +3 -3
- package/dist/Subcategory-BpWPnu4s.js +0 -345
- package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-BSfPHkEr.js +0 -185
- package/dist/assets/linked-status-uqBsZwlR.js +0 -13
- package/dist/assets/override-menu-C-S-pdcA.js +0 -13
- package/dist/assets/validate-menu-D4bw2s4G.js +0 -13
- package/dist/index-B6yzhB_O.js +0 -539
- package/dist/rules-BBgzPaJ8.js +0 -212
- package/dist/translation-BeqjfyEb.js +0 -75
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { defineComponent as O, watch as T, ref as M, computed as N, resolveComponent as g, createElementBlock as A, openBlock as F, Fragment as P, createVNode as f, unref as _, withCtx as b, createElementVNode as Y, renderList as I, toDisplayString as h } from "vue";
|
|
2
|
+
import { M as v, A as E, u as q } from "./index.vue_vue_type_script_setup_true_lang-DOhr-m71.js";
|
|
3
|
+
import { useI18n as S } from "@feedmepos/mf-common";
|
|
4
|
+
import { useDialogChild as L } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as k } from "./menuV2-DiyUO2p3.js";
|
|
6
|
+
import { _ as K } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-wnFIuSpr.js";
|
|
7
|
+
import { g as w } from "./translation-Cdap0IVg.js";
|
|
8
|
+
const R = { class: "py-12 px-16 space-y-4" }, D = /* @__PURE__ */ O({
|
|
9
|
+
__name: "AddSubcategoryDialogContentComponent",
|
|
10
|
+
props: {
|
|
11
|
+
initialValue: {}
|
|
12
|
+
},
|
|
13
|
+
setup(t) {
|
|
14
|
+
const r = t, { t: m } = S();
|
|
15
|
+
T(
|
|
16
|
+
() => r.initialValue,
|
|
17
|
+
(l) => {
|
|
18
|
+
n.value = l ?? "";
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
const n = M(r.initialValue), u = M(!1), s = M(void 0), { emitData: V, emitAction: C } = L(), U = N(() => !!n.value), o = N(() => {
|
|
22
|
+
var y;
|
|
23
|
+
const l = [], a = "en-US", x = (y = s.value) == null ? void 0 : y[a];
|
|
24
|
+
return n.value && !x && l.push({
|
|
25
|
+
locale: a,
|
|
26
|
+
name: n.value,
|
|
27
|
+
localeDisplay: w(a)
|
|
28
|
+
}), s.value && Object.entries(s.value).filter(([d, c]) => c && c.trim()).sort(([d], [c]) => d.localeCompare(c)).forEach(([d, c]) => {
|
|
29
|
+
l.push({
|
|
30
|
+
locale: d,
|
|
31
|
+
name: c,
|
|
32
|
+
localeDisplay: w(d)
|
|
33
|
+
});
|
|
34
|
+
}), l;
|
|
35
|
+
});
|
|
36
|
+
function e(l) {
|
|
37
|
+
s.value = l;
|
|
38
|
+
}
|
|
39
|
+
function p(l) {
|
|
40
|
+
n.value = l;
|
|
41
|
+
}
|
|
42
|
+
return T(
|
|
43
|
+
[n, s],
|
|
44
|
+
([l, a]) => {
|
|
45
|
+
V({ name: l, name_locale: a });
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
immediate: !0
|
|
49
|
+
}
|
|
50
|
+
), (l, a) => {
|
|
51
|
+
const x = g("fm-button"), y = g("FmTooltip"), d = g("fm-text-field"), c = g("FmForm");
|
|
52
|
+
return F(), A(P, null, [
|
|
53
|
+
f(c, {
|
|
54
|
+
onValidationSuccess: a[2] || (a[2] = (i) => _(C)("primary"))
|
|
55
|
+
}, {
|
|
56
|
+
default: b(() => [
|
|
57
|
+
f(d, {
|
|
58
|
+
modelValue: n.value,
|
|
59
|
+
"onUpdate:modelValue": a[1] || (a[1] = (i) => n.value = i),
|
|
60
|
+
rules: [(i) => !!i || _(m)("menu.subcategory.dialog.add.name.required")],
|
|
61
|
+
autofocus: "",
|
|
62
|
+
label: _(m)("menu.subcategory.dialog.add.name.label"),
|
|
63
|
+
placeholder: _(m)("menu.subcategory.dialog.add.name.placeholder")
|
|
64
|
+
}, {
|
|
65
|
+
append: b(() => [
|
|
66
|
+
f(y, {
|
|
67
|
+
variant: "plain",
|
|
68
|
+
placement: "top",
|
|
69
|
+
"z-index": 999
|
|
70
|
+
}, {
|
|
71
|
+
content: b(() => [
|
|
72
|
+
Y("div", R, [
|
|
73
|
+
(F(!0), A(P, null, I(o.value, (i) => (F(), A("div", {
|
|
74
|
+
key: i.locale
|
|
75
|
+
}, h(i.name) + " (" + h(i.localeDisplay) + ") ", 1))), 128))
|
|
76
|
+
])
|
|
77
|
+
]),
|
|
78
|
+
default: b(() => [
|
|
79
|
+
f(x, {
|
|
80
|
+
variant: "tertiary",
|
|
81
|
+
icon: "g_translate",
|
|
82
|
+
onClick: a[0] || (a[0] = (i) => u.value = !0),
|
|
83
|
+
disabled: !U.value
|
|
84
|
+
}, null, 8, ["disabled"])
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
})
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 8, ["modelValue", "rules", "label", "placeholder"])
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
}),
|
|
94
|
+
f(K, {
|
|
95
|
+
modelValue: u.value,
|
|
96
|
+
"onUpdate:modelValue": a[3] || (a[3] = (i) => u.value = i),
|
|
97
|
+
title: _(m)("menu.subcategory.title"),
|
|
98
|
+
name: n.value ?? "",
|
|
99
|
+
"name-locale": s.value,
|
|
100
|
+
"onUpdate:name": p,
|
|
101
|
+
"onUpdate:nameLocale": e
|
|
102
|
+
}, null, 8, ["modelValue", "title", "name", "name-locale"])
|
|
103
|
+
], 64);
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
}), Q = ({
|
|
107
|
+
dialog: t,
|
|
108
|
+
menuLoader: r,
|
|
109
|
+
isLocalOnly: m = !1
|
|
110
|
+
}) => {
|
|
111
|
+
const { t: n } = S(), u = k().updateMenu;
|
|
112
|
+
function s() {
|
|
113
|
+
const o = M(!1);
|
|
114
|
+
t.open({
|
|
115
|
+
title: n("menu.subcategory.manager.dialog.add.title"),
|
|
116
|
+
contentComponent: D,
|
|
117
|
+
primaryActions: {
|
|
118
|
+
text: n("menu.subcategory.manager.dialog.add.action"),
|
|
119
|
+
close: !1,
|
|
120
|
+
isLoading: o
|
|
121
|
+
},
|
|
122
|
+
secondaryActions: {
|
|
123
|
+
text: n("menu.common.actions.cancel"),
|
|
124
|
+
close: !0
|
|
125
|
+
}
|
|
126
|
+
}).onPrimary(async (e) => {
|
|
127
|
+
if (e != null && e.name)
|
|
128
|
+
try {
|
|
129
|
+
o.value = !0;
|
|
130
|
+
const p = {
|
|
131
|
+
module: E.F_MENU_MODULE_V4_KEY.enum.subCategory,
|
|
132
|
+
operation: v.F_OPERATION_TYPE.create,
|
|
133
|
+
data: {
|
|
134
|
+
name: e.name,
|
|
135
|
+
name_locale: e.name_locale,
|
|
136
|
+
position: q().subcategories.length
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
m ? await u(p) : await r.updateMenu(p, e.name), t.close();
|
|
140
|
+
} finally {
|
|
141
|
+
o.value = !1;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function V(o) {
|
|
146
|
+
t.open({
|
|
147
|
+
title: n("menu.subcategory.manager.dialog.update.title"),
|
|
148
|
+
contentComponent: D,
|
|
149
|
+
contentComponentProps: {
|
|
150
|
+
initialValue: o.name
|
|
151
|
+
},
|
|
152
|
+
primaryActions: {
|
|
153
|
+
text: n("menu.subcategory.manager.dialog.update.action"),
|
|
154
|
+
close: !1
|
|
155
|
+
},
|
|
156
|
+
secondaryActions: {
|
|
157
|
+
text: n("menu.common.actions.cancel"),
|
|
158
|
+
close: !0
|
|
159
|
+
}
|
|
160
|
+
}).onPrimary(async (e) => {
|
|
161
|
+
if (!(e != null && e.name)) return;
|
|
162
|
+
const p = {
|
|
163
|
+
module: E.F_MENU_MODULE_V4_KEY.enum.subCategory,
|
|
164
|
+
operation: v.F_OPERATION_TYPE.update,
|
|
165
|
+
data: {
|
|
166
|
+
...o,
|
|
167
|
+
name: e.name,
|
|
168
|
+
name_locale: e.name_locale
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
m ? await u(p) : await r.updateMenu(p, e.name), t.close();
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
function C(o) {
|
|
175
|
+
t.open({
|
|
176
|
+
title: n("menu.common.dialog.remove.subcategory.title"),
|
|
177
|
+
message: n("menu.common.dialog.remove.subcategory.message", { name: o.name }),
|
|
178
|
+
primaryActions: {
|
|
179
|
+
text: n("menu.common.actions.remove"),
|
|
180
|
+
close: !1
|
|
181
|
+
},
|
|
182
|
+
secondaryActions: {
|
|
183
|
+
text: n("menu.common.actions.cancel"),
|
|
184
|
+
close: !0
|
|
185
|
+
}
|
|
186
|
+
}).onPrimary(async () => {
|
|
187
|
+
const e = {
|
|
188
|
+
module: E.F_MENU_MODULE_V4_KEY.enum.subCategory,
|
|
189
|
+
operation: v.F_OPERATION_TYPE.delete,
|
|
190
|
+
data: o._id
|
|
191
|
+
};
|
|
192
|
+
m ? await u(e) : await r.updateMenu(e, o.name, !0), t.close();
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
async function U(o) {
|
|
196
|
+
const e = {
|
|
197
|
+
module: E.F_MENU_MODULE_V4_KEY.enum.subCategory,
|
|
198
|
+
operation: v.F_OPERATION_TYPE.rearrange,
|
|
199
|
+
data: o
|
|
200
|
+
};
|
|
201
|
+
m ? await u(e) : await r.updateMenu(e, "Subcategories");
|
|
202
|
+
}
|
|
203
|
+
return {
|
|
204
|
+
create: s,
|
|
205
|
+
update: V,
|
|
206
|
+
deleteSubcategory: C,
|
|
207
|
+
rearrange: U
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
function W(t, r = "This field can't be empty.") {
|
|
211
|
+
return t == null || Array.isArray(t) && t.length === 0 || typeof t == "string" && t.trim() === "" ? r : !0;
|
|
212
|
+
}
|
|
213
|
+
export {
|
|
214
|
+
W as r,
|
|
215
|
+
Q as u
|
|
216
|
+
};
|
|
@@ -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-
|
|
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-DOhr-m71.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-
|
|
6
|
+
import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-DlW4Zx5S.js";
|
|
7
7
|
import { u as ye } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as he } from "./menu-
|
|
9
|
-
import { L as ge } from "./LinkProductSideSheet-
|
|
8
|
+
import { u as he } from "./menu-CGK50Gwb.js";
|
|
9
|
+
import { L as ge } from "./LinkProductSideSheet-DdyUWMWm.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-
|
|
2
|
-
import "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-C8nNRSHM.js";
|
|
2
|
+
import "./index.vue_vue_type_script_setup_true_lang-DOhr-m71.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent as p, createElementBlock as u, openBlock as t, normalizeClass as f, unref as m, toDisplayString as y, resolveComponent as d, createVNode as b, createBlock as s } from "vue";
|
|
2
|
+
const g = /* @__PURE__ */ p({
|
|
3
|
+
__name: "TranslationBadge",
|
|
4
|
+
props: {
|
|
5
|
+
label: {},
|
|
6
|
+
spacing: { default: "md" }
|
|
7
|
+
},
|
|
8
|
+
setup(a) {
|
|
9
|
+
const l = a.spacing === "sm" ? "mb-4" : "mb-8";
|
|
10
|
+
return (e, n) => (t(), u("p", {
|
|
11
|
+
class: f([
|
|
12
|
+
"fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4",
|
|
13
|
+
m(l)
|
|
14
|
+
])
|
|
15
|
+
}, y(e.label), 3));
|
|
16
|
+
}
|
|
17
|
+
}), V = /* @__PURE__ */ p({
|
|
18
|
+
__name: "TranslationFieldSection",
|
|
19
|
+
props: {
|
|
20
|
+
label: {},
|
|
21
|
+
modelValue: {},
|
|
22
|
+
type: { default: "text" },
|
|
23
|
+
spacing: { default: "md" },
|
|
24
|
+
placeholder: {},
|
|
25
|
+
readonly: { type: Boolean, default: !1 }
|
|
26
|
+
},
|
|
27
|
+
emits: ["update:modelValue"],
|
|
28
|
+
setup(a, { emit: o }) {
|
|
29
|
+
const l = o;
|
|
30
|
+
return (e, n) => {
|
|
31
|
+
const c = d("FmTextField"), i = d("fm-textarea");
|
|
32
|
+
return t(), u("div", null, [
|
|
33
|
+
b(g, {
|
|
34
|
+
label: e.label,
|
|
35
|
+
spacing: e.spacing
|
|
36
|
+
}, null, 8, ["label", "spacing"]),
|
|
37
|
+
e.type === "text" ? (t(), s(c, {
|
|
38
|
+
key: 0,
|
|
39
|
+
"model-value": e.modelValue,
|
|
40
|
+
placeholder: e.placeholder,
|
|
41
|
+
readonly: e.readonly,
|
|
42
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => l("update:modelValue", r))
|
|
43
|
+
}, null, 8, ["model-value", "placeholder", "readonly"])) : (t(), s(i, {
|
|
44
|
+
key: 1,
|
|
45
|
+
"model-value": e.modelValue,
|
|
46
|
+
placeholder: e.placeholder,
|
|
47
|
+
readonly: e.readonly,
|
|
48
|
+
"onUpdate:modelValue": n[1] || (n[1] = (r) => l("update:modelValue", r))
|
|
49
|
+
}, null, 8, ["model-value", "placeholder", "readonly"]))
|
|
50
|
+
]);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
function k(a) {
|
|
55
|
+
switch (a) {
|
|
56
|
+
case "en-US":
|
|
57
|
+
return "EN";
|
|
58
|
+
case "zh-CN":
|
|
59
|
+
return "简";
|
|
60
|
+
case "th-TH":
|
|
61
|
+
return "TH";
|
|
62
|
+
case "ja-JP":
|
|
63
|
+
return "JP";
|
|
64
|
+
case "zh-Hant":
|
|
65
|
+
return "繁";
|
|
66
|
+
default:
|
|
67
|
+
return "";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function v(a, o) {
|
|
71
|
+
const l = m(o).find((e) => e.code === a);
|
|
72
|
+
return (l == null ? void 0 : l.name) || a;
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
V as _,
|
|
76
|
+
v as a,
|
|
77
|
+
g as b,
|
|
78
|
+
k as g
|
|
79
|
+
};
|
|
@@ -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 { 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-
|
|
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-DOhr-m71.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-
|
|
9
|
+
import "./menuV2-DiyUO2p3.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.
|
|
3
|
+
"version": "0.32.40-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -22,7 +22,7 @@
|
|
|
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.
|
|
25
|
+
"@feedmepos/menu": "1.9.5",
|
|
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",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"vue3-lottie": "^3.3.0",
|
|
55
55
|
"vuedraggable": "^4.1.0",
|
|
56
56
|
"xlsx": "^0.18.5",
|
|
57
|
-
"@feedmepos/mf-common": "^1.29.
|
|
57
|
+
"@feedmepos/mf-common": "^1.29.20"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@rollup/plugin-commonjs": "^28.0.2",
|