@feedmepos/mf-menu 0.32.39 → 0.32.40
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-Dg5GweBn.js → App-DqpxV0zp.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DliryTNe.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BQM40AWC.js} +3 -3
- package/dist/{Catalog-Cb66nkUU.js → Catalog-RdpK3RmL.js} +6 -6
- package/dist/{Category-CPFnvBBy.js → Category-DbvCHZU4.js} +5 -5
- package/dist/{Category-Cfd8CPSx.js → Category-ar15UpWV.js} +4 -4
- package/dist/{CookingGuide-DSHWh9Gt.js → CookingGuide-x2w_WTnE.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DaCFX7KY.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-pRoVDEEM.js} +1 -1
- package/dist/{Group-DMmXyHKE.js → Group-D30WEl2L.js} +1 -1
- package/dist/{Group-CULwhVe7.js → Group-DevhimQn.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BPXbprJG.js → Group.vue_vue_type_script_setup_true_lang-BY3nr67e.js} +116 -116
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-7y3GRcrl.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CPvumpiM.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BrMdia8X.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-hEPchEwW.js} +1958 -1942
- package/dist/{Ingredient-BTeAgBic.js → Ingredient-CiJSeTgO.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-B373qMOc.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Cnq9QAeQ.js} +2 -2
- package/dist/{LinkProductSideSheet-BQC5B7VR.js → LinkProductSideSheet-CJxffg6I.js} +3 -3
- package/dist/{MenuSetting-QrTjKewy.js → MenuSetting-BMuUIgLN.js} +5 -5
- package/dist/{PrintRoute-Cw_fjZuS.js → PrintRoute-Uu2n0dAY.js} +4 -4
- package/dist/{Product-TfZZCFxL.js → Product-e81DLAaw.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-Cf02oa8B.js → Product.vue_vue_type_script_setup_true_lang-1axfwskP.js} +13 -13
- package/dist/{ProductInternalTools--2ISZa9C.js → ProductInternalTools-BiK5b7KA.js} +5 -5
- package/dist/{Products-CU17YbjY.js → Products-DOIcfgzd.js} +65 -65
- package/dist/{Publish-C92_8tJc.js → Publish-d_T1ROxG.js} +3 -3
- package/dist/{Recipe-rN_AUIzI.js → Recipe-QIACzb3h.js} +4 -4
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-Be33vMlU.js → RuleView.vue_vue_type_script_setup_true_lang-01qpukRE.js} +2 -2
- package/dist/{Scheduler-udXY9Nxw.js → Scheduler-VxoCoh9o.js} +3 -3
- package/dist/{ServingSequence-lqstj5IH.js → ServingSequence-C7aNpyh4.js} +3 -3
- package/dist/{Setting-C8hhG68F.js → Setting-BzoqHU2T.js} +5 -5
- package/dist/Subcategory-dyK9h6SV.js +349 -0
- package/dist/{Takeaway-_ZUqMNYd.js → Takeaway-C3UnFVOa.js} +1 -1
- package/dist/{Takeaway-BNXBkxY3.js → Takeaway-DxLGfrmv.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DpIu-F5W.js → Takeaway.vue_vue_type_script_setup_true_lang-zsgXKNRt.js} +6 -6
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-D7Rx1dQ0.js → Thumbnail.vue_vue_type_script_setup_true_lang-Ba0ZuCdS.js} +4 -4
- package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-Xfmvx9wx.js +194 -0
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-blAi_T2i.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang--vNq7F0Z.js} +1907 -1899
- package/dist/{Unit-Cb5D0Twk.js → Unit-Clc8AYHy.js} +2 -2
- package/dist/{Variant-CFwv2HLG.js → Variant-DOGe2aJK.js} +4 -4
- package/dist/{_id_-DfRWmsAf.js → _id_-Bbc2mu9G.js} +9 -9
- package/dist/{app-H7J5uHZg.js → app-BSpY6Pgy.js} +26 -26
- package/dist/{app-CEN10-4D.js → app-DQD4sPc8.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-DojmxFzq.js +13 -0
- package/dist/assets/{menu-export-B_zRmLzS.js → menu-export-rmsdV9dK.js} +45 -45
- package/dist/assets/override-menu-CVjWw9he.js +13 -0
- package/dist/assets/{validate-menu-D4jvSNmz.js → validate-menu-BB1XuZ9d.js} +6 -6
- package/dist/{catalog-CTuBk61t.js → catalog-ku3nqGmL.js} +1 -1
- package/dist/{catalogSetting-DKVNY3JC.js → catalogSetting-CpgLgy9o.js} +1 -1
- package/dist/{currency--QAX2jgM.js → currency-B58wqs-1.js} +1 -1
- package/dist/{dayjs.min-Dyhv-966.js → dayjs.min-Dj2ONTtr.js} +1 -1
- package/dist/index-BGm9S8Ih.js +545 -0
- package/dist/{index-CCM6nQtW.js → index-ByMVMoTu.js} +1 -1
- package/dist/{index-IWdfpOvK.js → index-CPY_DjD2.js} +58 -54
- package/dist/{index.vue_vue_type_script_setup_true_lang-90aRfAsI.js → index.vue_vue_type_script_setup_true_lang-IHmRgZTC.js} +13190 -13149
- package/dist/{item-CKij6BhH.js → item-DotiWZRv.js} +2967 -2925
- package/dist/{jszip.min-C-AOVv_w.js → jszip.min-OZZMb1gD.js} +2 -2
- package/dist/{menu-CX5qZa4q.js → menu-v_Cm5BNh.js} +1 -1
- package/dist/{menuV2-CgfWTiZp.js → menuV2-DsvYmLeh.js} +139 -139
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-CKw6yKzC.js → priceTier-BQeJLJUu.js} +1 -1
- package/dist/rules-D3qosTfl.js +216 -0
- package/dist/{scheduler-CbytS4GA.js → scheduler-B32ag1lR.js} +4 -4
- package/dist/{toExcel-1Ir0pgiS.js → toExcel-CIrCsrWL.js} +2 -2
- package/dist/translation-Cdap0IVg.js +79 -0
- package/dist/{unit-DQOMjCVi.js → unit-y1on6-W3.js} +2 -2
- package/package.json +3 -3
- package/dist/Subcategory-BSAn0r8r.js +0 -345
- package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-C9byidEd.js +0 -185
- package/dist/assets/linked-status-D22Wz7QM.js +0 -13
- package/dist/assets/override-menu-96YpbKTz.js +0 -13
- package/dist/index-ulGt0shB.js +0 -539
- package/dist/rules-CoyaaNMj.js +0 -212
- package/dist/translation-BeqjfyEb.js +0 -75
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { defineComponent as K, ref as y, watch as E, computed as F, unref as a, resolveComponent as _, createBlock as T, openBlock as i, withCtx as v, createElementVNode as t, toDisplayString as m, createElementBlock as p, createCommentVNode as B, Fragment as x, renderList as C, createVNode as r } from "vue";
|
|
2
|
+
import { J as D } from "./index.vue_vue_type_script_setup_true_lang-IHmRgZTC.js";
|
|
3
|
+
import { useI18n as P, useLocale as Q } from "@feedmepos/mf-common";
|
|
4
|
+
import { u as R } from "./discardConfirm-BHni0LNu.js";
|
|
5
|
+
import { g as V, a as I, _ as W, b as X } from "./translation-Cdap0IVg.js";
|
|
6
|
+
const Y = { class: "fm-typo-en-title-md-600" }, Z = { class: "pt-8 space-y-24" }, ee = { class: "flex flex-col gap-8" }, oe = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, le = { class: "flex items-center gap-8 flex-wrap" }, te = { class: "w-24 h-24 rounded-full bg-fm-color-primary-oats text-fm-color-primary flex items-center justify-center fm-typo-en-body-sm-600" }, ae = { class: "fm-typo-en-body-md-600" }, ne = ["onClick"], se = { class: "flex items-center gap-8" }, ce = { class: "w-24 h-24 rounded-full bg-fm-color-opacity-sm flex items-center justify-center fm-typo-en-body-sm-600" }, me = { class: "fm-typo-en-body-md-400" }, ie = { class: "flex flex-col gap-16 border p-16 rounded-lg" }, de = { class: "flex items-center gap-16" }, re = { class: "fm-typo-en-body-lg-600" }, ue = { class: "flex flex-col gap-32 pl-32" }, pe = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "space-y-8"
|
|
9
|
+
}, fe = { class: "flex w-[100px] items-center gap-8" }, _e = { class: "w-24 h-24 rounded-full bg-fm-color-opacity-sm flex items-center justify-center fm-typo-en-body-sm-600" }, ve = { class: "fm-typo-en-body-md-400" }, he = { class: "flex-1" }, ye = { class: "flex gap-8 items-center justify-start" }, ke = /* @__PURE__ */ K({
|
|
10
|
+
__name: "TranslationSideSheet",
|
|
11
|
+
props: {
|
|
12
|
+
modelValue: { type: Boolean },
|
|
13
|
+
title: {},
|
|
14
|
+
name: {},
|
|
15
|
+
nameLocale: {}
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:modelValue", "update:name", "update:nameLocale"],
|
|
18
|
+
setup(O, { emit: S }) {
|
|
19
|
+
const s = O, f = S, { t: d } = P(), { localeList: h } = Q(), c = y([]), k = y([]), u = y(s.name), L = y(s.name);
|
|
20
|
+
E(
|
|
21
|
+
() => s.name,
|
|
22
|
+
(e) => {
|
|
23
|
+
u.value = e;
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
function U() {
|
|
27
|
+
return !s.nameLocale || Object.keys(s.nameLocale).length === 0 ? [] : Object.entries(s.nameLocale).map(([e, o]) => ({
|
|
28
|
+
localeCode: e,
|
|
29
|
+
value: o
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
E(
|
|
33
|
+
() => [s.modelValue, s.nameLocale],
|
|
34
|
+
([e]) => {
|
|
35
|
+
e && (c.value = U(), k.value = D.clone(c.value), u.value = s.name, L.value = s.name);
|
|
36
|
+
},
|
|
37
|
+
{ immediate: !0 }
|
|
38
|
+
);
|
|
39
|
+
const w = F(() => {
|
|
40
|
+
const e = new Set(c.value.map((n) => n.localeCode));
|
|
41
|
+
return a(h).filter((n) => !e.has(n.code)).map((n) => ({
|
|
42
|
+
code: n.code,
|
|
43
|
+
name: n.name,
|
|
44
|
+
icon: V(n.code)
|
|
45
|
+
}));
|
|
46
|
+
});
|
|
47
|
+
function $(e) {
|
|
48
|
+
const o = a(h).find((n) => n.code === e);
|
|
49
|
+
o && c.value.push({
|
|
50
|
+
localeCode: o.code,
|
|
51
|
+
value: ""
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function z(e) {
|
|
55
|
+
c.value = c.value.filter((o) => o.localeCode !== e);
|
|
56
|
+
}
|
|
57
|
+
function A() {
|
|
58
|
+
const e = u.value !== L.value, o = !D.isEqual(c.value, k.value);
|
|
59
|
+
return e || o;
|
|
60
|
+
}
|
|
61
|
+
function M() {
|
|
62
|
+
u.value !== s.name && f("update:name", u.value);
|
|
63
|
+
const e = c.value.filter((o) => o.value.trim());
|
|
64
|
+
if (e.length === 0)
|
|
65
|
+
f("update:nameLocale", void 0);
|
|
66
|
+
else {
|
|
67
|
+
const o = {};
|
|
68
|
+
e.forEach((n) => {
|
|
69
|
+
o[n.localeCode] = n.value.trim();
|
|
70
|
+
}), f("update:nameLocale", o);
|
|
71
|
+
}
|
|
72
|
+
f("update:modelValue", !1);
|
|
73
|
+
}
|
|
74
|
+
function q() {
|
|
75
|
+
f("update:modelValue", !1);
|
|
76
|
+
}
|
|
77
|
+
const N = R(A, q), j = F({
|
|
78
|
+
get: () => s.modelValue,
|
|
79
|
+
set: (e) => f("update:modelValue", e)
|
|
80
|
+
});
|
|
81
|
+
return (e, o) => {
|
|
82
|
+
const n = _("FmIcon"), g = _("fm-button"), J = _("FmMenu"), G = _("fm-text-field"), H = _("fm-side-sheet");
|
|
83
|
+
return i(), T(H, {
|
|
84
|
+
modelValue: j.value,
|
|
85
|
+
"onUpdate:modelValue": o[1] || (o[1] = (l) => j.value = l),
|
|
86
|
+
"max-width": 720,
|
|
87
|
+
"onOn:clickedAway": a(N)
|
|
88
|
+
}, {
|
|
89
|
+
"side-sheet-header": v(() => [
|
|
90
|
+
t("p", Y, m(e.title) + " " + m(a(d)("menu.common.translation.title_suffix")), 1)
|
|
91
|
+
]),
|
|
92
|
+
"side-sheet-footer": v(() => [
|
|
93
|
+
t("div", ye, [
|
|
94
|
+
r(g, {
|
|
95
|
+
label: a(d)("common.save"),
|
|
96
|
+
size: "lg",
|
|
97
|
+
variant: "primary",
|
|
98
|
+
onClick: M
|
|
99
|
+
}, null, 8, ["label"]),
|
|
100
|
+
r(g, {
|
|
101
|
+
label: a(d)("common.cancel"),
|
|
102
|
+
size: "lg",
|
|
103
|
+
variant: "tertiary",
|
|
104
|
+
onClick: a(N)
|
|
105
|
+
}, null, 8, ["label", "onClick"])
|
|
106
|
+
])
|
|
107
|
+
]),
|
|
108
|
+
default: v(() => [
|
|
109
|
+
t("div", Z, [
|
|
110
|
+
t("div", ee, [
|
|
111
|
+
t("p", oe, m(a(d)("menu.common.translation.language")), 1),
|
|
112
|
+
t("div", le, [
|
|
113
|
+
(i(!0), p(x, null, C(c.value, (l) => (i(), p("div", {
|
|
114
|
+
key: l.localeCode,
|
|
115
|
+
class: "flex items-center gap-8 p-8 border border-fm-color-primary text-fm-color-primary rounded-full"
|
|
116
|
+
}, [
|
|
117
|
+
t("div", te, m(a(V)(l.localeCode)), 1),
|
|
118
|
+
t("span", ae, m(a(I)(l.localeCode, a(h))), 1),
|
|
119
|
+
r(n, {
|
|
120
|
+
name: "close",
|
|
121
|
+
class: "cursor-pointer",
|
|
122
|
+
variant: "secondary",
|
|
123
|
+
onClick: (b) => z(l.localeCode)
|
|
124
|
+
}, null, 8, ["onClick"])
|
|
125
|
+
]))), 128)),
|
|
126
|
+
w.value.length > 0 ? (i(), T(J, { key: 0 }, {
|
|
127
|
+
"menu-button": v(() => [
|
|
128
|
+
r(g, {
|
|
129
|
+
variant: "secondary",
|
|
130
|
+
"border-color": "neutral-gray-300",
|
|
131
|
+
"text-color": "neutral-gray-400",
|
|
132
|
+
icon: "add"
|
|
133
|
+
})
|
|
134
|
+
]),
|
|
135
|
+
default: v(() => [
|
|
136
|
+
(i(!0), p(x, null, C(w.value, (l) => (i(), p("div", {
|
|
137
|
+
class: "p-12 cursor-pointer hover:bg-fm-color-opacity-md rounded-sm",
|
|
138
|
+
key: l.code,
|
|
139
|
+
onClick: (b) => $(l.code)
|
|
140
|
+
}, [
|
|
141
|
+
t("div", se, [
|
|
142
|
+
t("div", ce, m(l.icon), 1),
|
|
143
|
+
t("span", me, m(l.name), 1)
|
|
144
|
+
])
|
|
145
|
+
], 8, ne))), 128))
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
})) : B("", !0)
|
|
149
|
+
])
|
|
150
|
+
]),
|
|
151
|
+
t("div", ie, [
|
|
152
|
+
t("div", de, [
|
|
153
|
+
r(n, { name: "keyboard_arrow_down" }),
|
|
154
|
+
t("p", re, m(a(d)("menu.common.translation.name_section", { entity: e.title })), 1)
|
|
155
|
+
]),
|
|
156
|
+
t("div", ue, [
|
|
157
|
+
r(W, {
|
|
158
|
+
label: a(d)("menu.common.translation.default"),
|
|
159
|
+
modelValue: u.value,
|
|
160
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => u.value = l)
|
|
161
|
+
}, null, 8, ["label", "modelValue"]),
|
|
162
|
+
c.value.length > 0 ? (i(), p("div", pe, [
|
|
163
|
+
r(X, {
|
|
164
|
+
label: a(d)("menu.common.translation.translation_label")
|
|
165
|
+
}, null, 8, ["label"]),
|
|
166
|
+
(i(!0), p(x, null, C(c.value, (l) => (i(), p("div", {
|
|
167
|
+
key: l.localeCode,
|
|
168
|
+
class: "flex items-center gap-16"
|
|
169
|
+
}, [
|
|
170
|
+
t("div", fe, [
|
|
171
|
+
t("div", _e, m(a(V)(l.localeCode)), 1),
|
|
172
|
+
t("span", ve, m(a(I)(l.localeCode, a(h))), 1)
|
|
173
|
+
]),
|
|
174
|
+
t("div", he, [
|
|
175
|
+
r(G, {
|
|
176
|
+
modelValue: l.value,
|
|
177
|
+
"onUpdate:modelValue": (b) => l.value = b,
|
|
178
|
+
placeholder: a(d)("menu.group.translation.placeholder")
|
|
179
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
180
|
+
])
|
|
181
|
+
]))), 128))
|
|
182
|
+
])) : B("", !0)
|
|
183
|
+
])
|
|
184
|
+
])
|
|
185
|
+
])
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}, 8, ["modelValue", "onOn:clickedAway"]);
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
export {
|
|
193
|
+
ke as _
|
|
194
|
+
};
|