@feedmepos/mf-menu 0.32.13 → 0.32.15
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-D70-FH5L.js → App-BFUyUrdi.js} +16 -9
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BJdja2N0.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BbjRIN7Z.js} +20 -20
- package/dist/{Catalog-WMpN3a0p.js → Catalog-B6VFmr6e.js} +20 -20
- package/dist/{Category-C_VsQIHU.js → Category-B-bTjNFI.js} +24 -24
- package/dist/{Category-BwHhFTZ-.js → Category-C8uGxpST.js} +84 -84
- package/dist/{CookingGuide-D9RNkYDL.js → CookingGuide-BL3uetlO.js} +65 -65
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DtmrxDZm.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-8yIVwc8E.js} +1 -1
- package/dist/{Group-DexONgr2.js → Group-BvO-gQZe.js} +1 -1
- package/dist/{Group-qRZlg5ST.js → Group-DT9UkkOx.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DtPY9uUt.js → Group.vue_vue_type_script_setup_true_lang-DZhM1Tpb.js} +56 -56
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B5Qpmj2f.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D48u_DHq.js} +5 -5
- package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-C_X-lTnN.js +72979 -0
- package/dist/{Ingredient-BuOS_Wvm.js → Ingredient-7qWDD9e6.js} +26 -26
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DFvXklj9.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CwjW0wfz.js} +2 -2
- package/dist/{LinkProductSideSheet-DJj8Nn4X.js → LinkProductSideSheet-BXW6eNgZ.js} +3 -3
- package/dist/{MenuSetting-D6B0gCGV.js → MenuSetting-BSF7O2NL.js} +5 -5
- package/dist/{PrintRoute-B7G8f1iC.js → PrintRoute-b1ii5Uz9.js} +20 -20
- package/dist/{Product-DpS5EepJ.js → Product-Ce0GJb3c.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CdIukLqA.js → Product.vue_vue_type_script_setup_true_lang-BZVvTAOX.js} +49 -49
- package/dist/{ProductInternalTools-CBCyWHOS.js → ProductInternalTools-igbOLRap.js} +20 -20
- package/dist/Products-GAyUdhnN.js +292 -0
- package/dist/Publish-g60odzhM.js +1300 -0
- package/dist/{Recipe-D14rkATU.js → Recipe-B6aye_iC.js} +9 -9
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CdH2ius3.js → RuleView.vue_vue_type_script_setup_true_lang-By8kwuMB.js} +134 -134
- package/dist/{Scheduler-DWZqa-jf.js → Scheduler-CyaG6Y5v.js} +7 -7
- package/dist/{ServingSequence-Mx7ovvJ1.js → ServingSequence-BXeypgrN.js} +27 -27
- package/dist/{Setting-DmHuVXVn.js → Setting-D7GcaNTk.js} +17 -17
- package/dist/{Subcategory-DixZPdnT.js → Subcategory-DNUp9ojI.js} +37 -37
- package/dist/{Takeaway-BVIymFV_.js → Takeaway-Baqvq5nP.js} +9 -9
- package/dist/{Takeaway-DDKeDEbV.js → Takeaway-BjXPeYRv.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CTaCQgRv.js → Takeaway.vue_vue_type_script_setup_true_lang-CgXT2UVL.js} +54 -54
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DveI9xvU.js → Thumbnail.vue_vue_type_script_setup_true_lang-CX8cSbDe.js} +12 -12
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-2nBbq_Yk.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DcjGVQEO.js} +756 -763
- package/dist/{Unit-utuaNZBw.js → Unit-mI7lLzCf.js} +2 -2
- package/dist/{Variant-CzuJNwen.js → Variant-CVwnODRz.js} +14 -14
- package/dist/{_id_-DMDhPQCr.js → _id_-fpn0nBru.js} +14 -14
- package/dist/{app-BQUkvrAS.js → app-CCKI85Te.js} +26 -26
- package/dist/{app-Bqj3cAPJ.js → app-U5MEN4U1.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/Entry.vue.d.ts +1 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/ImageDropField.vue.d.ts +0 -2
- package/dist/apps/mf-menu/src/composable/useClientEvent.d.ts +14 -0
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +22 -22
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +59 -33
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-ILQVL8r9.js → linked-status-6Jt70XBp.js} +2 -2
- package/dist/assets/menu-export-CR0a98CA.js +107 -0
- package/dist/assets/{override-menu-DVkGhbA9.js → override-menu-Chsc0CSI.js} +2 -2
- package/dist/assets/{validate-menu-y_NQUL02.js → validate-menu-pb0aN4gj.js} +2 -2
- package/dist/{catalog-BYzITAmC.js → catalog-BgQmytEA.js} +1 -1
- package/dist/{catalogSetting-DAo5tN3P.js → catalogSetting-BS5IaQKq.js} +1 -1
- package/dist/{category-D4x8r_lY.js → category-DJMVbmzx.js} +1 -1
- package/dist/{currency-CvoBdMM2.js → currency-FHrLDvzy.js} +1 -1
- package/dist/dayjs.min-DJGdQr-B.js +6 -0
- package/dist/{index-LuH6PJzW.js → index-BywPDIFW.js} +4 -4
- package/dist/{index-BLUIaanj.js → index-DYxLHjeC.js} +1 -1
- package/dist/{index-6lju0f3r.js → index-XVWDnyu-.js} +17 -17
- package/dist/{index.vue_vue_type_script_setup_true_lang-DxF14kn9.js → index.vue_vue_type_script_setup_true_lang-kj6HkxwD.js} +2306 -2306
- package/dist/{item-lXMLaKOb.js → item-cmnP2N-a.js} +1089 -1091
- package/dist/{jszip.min-CdZ-wY5m.js → jszip.min-psVCZNVl.js} +545 -545
- package/dist/{menu-PJc2dQHQ.js → menu-CgQPOu3W.js} +1 -1
- package/dist/{menuV2-DinFmdTL.js → menuV2-DHO9OmzU.js} +159 -159
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-CzKIo11g.js → priceTier-CLm9vzaK.js} +1 -1
- package/dist/{scheduler-DQjxnoCk.js → scheduler-BMdZdtpj.js} +4 -4
- package/dist/{subcategory-CLkDImEU.js → subcategory-Dj_DOvFt.js} +2 -2
- package/dist/{toExcel-DPh8DaM0.js → toExcel-XwFFiTiA.js} +2 -2
- package/dist/{unit-QYkVoC6_.js → unit-CsuAQsy7.js} +12 -12
- package/package.json +3 -3
- package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-BqhNkaw_.js +0 -96043
- package/dist/Products-CcyGNlUl.js +0 -794
- package/dist/Publish-rZLHFaJ5.js +0 -1264
- package/dist/dayjs.min-C6xioui7.js +0 -6
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { ref as F, computed as h, defineComponent as N, resolveComponent as O, createBlock as I, openBlock as m, withCtx as T, createElementVNode as g, createVNode as d, unref as a, createElementBlock as k, Fragment as pe, renderList as we, createCommentVNode as M, normalizeClass as ve, toDisplayString as K, withModifiers as fe, mergeModels as Ze, useModel as Xe, renderSlot as _e, watch as de, createTextVNode as et, watchEffect as tt, nextTick as Ae, resolveDynamicComponent as lt, onMounted as at, h as
|
|
2
|
-
import { u as Fe,
|
|
1
|
+
import { ref as F, computed as h, defineComponent as N, resolveComponent as O, createBlock as I, openBlock as m, withCtx as T, createElementVNode as g, createVNode as d, unref as a, createElementBlock as k, Fragment as pe, renderList as we, createCommentVNode as M, normalizeClass as ve, toDisplayString as K, withModifiers as fe, mergeModels as Ze, useModel as Xe, renderSlot as _e, watch as de, createTextVNode as et, watchEffect as tt, nextTick as Ae, resolveDynamicComponent as lt, onMounted as at, h as W, isRef as je, normalizeStyle as ft } from "vue";
|
|
2
|
+
import { u as Fe, T as Ce, B as me, I as Re, J as ge, W as gt, ae as bt, af as _t, ag as Pe, ah as yt, R as ht, a4 as be, ai as Ee } from "./index.vue_vue_type_script_setup_true_lang-kj6HkxwD.js";
|
|
3
3
|
import { useI18n as Ie, useCoreStore as ze, useCustomAttributes as xt } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as Se } from "./menu-
|
|
5
|
-
import { L as Ge } from "./LinkProductSideSheet-
|
|
6
|
-
import { r as Ct, _ as Le } from "./index-
|
|
7
|
-
import { _ as Me, a as
|
|
8
|
-
import { _ as Ue, u as kt } from "./Thumbnail.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { f as wt, o as St, a as Vt, m as Ft } from "./menuV2-
|
|
10
|
-
import { u as ot, C as It } from "./item-
|
|
11
|
-
import { b as
|
|
12
|
-
import { useBreakpoints as rt, components as te, useDialog as Tt, FmButtonColorThemeVariant as
|
|
4
|
+
import { u as Se } from "./menu-CgQPOu3W.js";
|
|
5
|
+
import { L as Ge } from "./LinkProductSideSheet-BXW6eNgZ.js";
|
|
6
|
+
import { r as Ct, _ as Le } from "./index-DYxLHjeC.js";
|
|
7
|
+
import { _ as Me, a as We } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-8yIVwc8E.js";
|
|
8
|
+
import { _ as Ue, u as kt } from "./Thumbnail.vue_vue_type_script_setup_true_lang-CX8cSbDe.js";
|
|
9
|
+
import { f as wt, o as St, a as Vt, m as Ft } from "./menuV2-DHO9OmzU.js";
|
|
10
|
+
import { u as ot, C as It } from "./item-cmnP2N-a.js";
|
|
11
|
+
import { b as qe, H as $t } from "./app-5fxKLAzS.js";
|
|
12
|
+
import { useBreakpoints as rt, components as te, useDialog as Tt, FmButtonColorThemeVariant as q, FmButtonVariant as ee } from "@feedmepos/ui-library";
|
|
13
13
|
import { F as Pt } from "./index-CisutoS9.js";
|
|
14
|
-
import { _ as De, a as At } from "./app-
|
|
14
|
+
import { _ as De, a as At } from "./app-CCKI85Te.js";
|
|
15
15
|
import { _ as ke } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
16
|
-
import { _ as Rt } from "./index-
|
|
17
|
-
import { r as Mt, _ as Ut } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
16
|
+
import { _ as Rt } from "./index-BywPDIFW.js";
|
|
17
|
+
import { r as Mt, _ as Ut } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-C_X-lTnN.js";
|
|
18
18
|
import { c as zt } from "./check-C9mY6LiX.js";
|
|
19
|
-
import { f as Dt } from "./currency-
|
|
19
|
+
import { f as Dt } from "./currency-FHrLDvzy.js";
|
|
20
20
|
import { w as Ot } from "./tooltip-B5BiPMx9.js";
|
|
21
21
|
function Bt(C, e, i = C) {
|
|
22
22
|
const n = F(!0), t = h(() => {
|
|
@@ -142,7 +142,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
142
142
|
});
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
}), Gt = { class: "flex flex-wrap gap-8" }, Lt = { class: "py-12 px-16 space-y-12" },
|
|
145
|
+
}), Gt = { class: "flex flex-wrap gap-8" }, Lt = { class: "py-12 px-16 space-y-12" }, Wt = { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600" }, qt = { class: "flex flex-wrap gap-8" }, Ht = {
|
|
146
146
|
key: 0,
|
|
147
147
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
148
148
|
}, Qt = { key: 0 }, Yt = {
|
|
@@ -186,8 +186,8 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
186
186
|
}, {
|
|
187
187
|
content: T(() => [
|
|
188
188
|
g("div", Lt, [
|
|
189
|
-
g("p",
|
|
190
|
-
g("div",
|
|
189
|
+
g("p", Wt, K(a(i)("menu.product.table.category.all")), 1),
|
|
190
|
+
g("div", qt, [
|
|
191
191
|
(m(!0), k(pe, null, we(e.categories, (w) => (m(), I(ke, {
|
|
192
192
|
key: w,
|
|
193
193
|
label: w,
|
|
@@ -817,9 +817,9 @@ const Ye = /* @__PURE__ */ N({
|
|
|
817
817
|
class: "min-w-0 flex flex-1 items-center justify-start space-x-16"
|
|
818
818
|
}, Ll = {
|
|
819
819
|
class: "flex-1 min-w-0"
|
|
820
|
-
}, ql = {
|
|
821
|
-
class: "flex justify-between items-center gap-8 pb-4"
|
|
822
820
|
}, Wl = {
|
|
821
|
+
class: "flex justify-between items-center gap-8 pb-4"
|
|
822
|
+
}, ql = {
|
|
823
823
|
class: "flex-1 min-w-0 fm-typo-en-body-lg-600 line-clamp-2"
|
|
824
824
|
}, Hl = {
|
|
825
825
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
@@ -908,7 +908,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
908
908
|
},
|
|
909
909
|
cell: (o) => {
|
|
910
910
|
var r, c;
|
|
911
|
-
return
|
|
911
|
+
return W(Ue, {
|
|
912
912
|
src: o.getValue(),
|
|
913
913
|
alt: (c = (r = o == null ? void 0 : o.row) == null ? void 0 : r.original) == null ? void 0 : c.name,
|
|
914
914
|
className: "my-8 mx-12",
|
|
@@ -928,7 +928,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
928
928
|
class: "break-all"
|
|
929
929
|
}, [c]);
|
|
930
930
|
const p = Te(r._id);
|
|
931
|
-
return
|
|
931
|
+
return W(te.FmTextField, {
|
|
932
932
|
disabled: !y.value.code,
|
|
933
933
|
modelValue: P(r._id, "code") ?? (p == null ? void 0 : p.code),
|
|
934
934
|
placeholder: n.modelValue[r._id].fallbackCode,
|
|
@@ -944,7 +944,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
944
944
|
size: 200,
|
|
945
945
|
cell: (o) => {
|
|
946
946
|
const r = o.row.original, c = o.getValue();
|
|
947
|
-
return S.value ?
|
|
947
|
+
return S.value ? W(te.FmTextField, {
|
|
948
948
|
disabled: !y.value.name,
|
|
949
949
|
modelValue: P(r._id, "name") ?? r.name,
|
|
950
950
|
"onUpdate:modelValue": (p) => {
|
|
@@ -972,7 +972,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
972
972
|
const r = o.getValue();
|
|
973
973
|
if (!S.value) return me.Dinero.fromFdoDinero(r).toFormat();
|
|
974
974
|
const c = n.modelValue[o.row.original._id], p = c.fallbackPrice;
|
|
975
|
-
return
|
|
975
|
+
return W(Rt, {
|
|
976
976
|
min: 0,
|
|
977
977
|
disabled: !c.editPrice,
|
|
978
978
|
// @ts-ignore
|
|
@@ -998,7 +998,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
998
998
|
if (!S.value)
|
|
999
999
|
return `${V != null && V.meta.rate ? _t(V.meta.rate) : 0}%`;
|
|
1000
1000
|
const _ = l.getSelectedTax(P(c._id, "taxes") ?? r, c.fallbackTaxes, l.taxSetting.countryTaxOptions);
|
|
1001
|
-
return
|
|
1001
|
+
return W(te.FmSelect, {
|
|
1002
1002
|
disabled: !y.value.tax,
|
|
1003
1003
|
items: l.taxSetting.countryTaxOptions,
|
|
1004
1004
|
modelValue: _,
|
|
@@ -1016,11 +1016,11 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1016
1016
|
cell: (o) => {
|
|
1017
1017
|
const r = o.row.original;
|
|
1018
1018
|
if (!S.value)
|
|
1019
|
-
return
|
|
1019
|
+
return W(Qe, {
|
|
1020
1020
|
categories: Pe(se.value, r)
|
|
1021
1021
|
});
|
|
1022
1022
|
const c = yt(n.originalValue, n.modelValue, r._id) ?? ht(r), p = (c == null ? void 0 : c.map((V) => V._id)) ?? [], x = c == null ? void 0 : c.reduce((V, _) => (V[_._id] = _, V), {});
|
|
1023
|
-
return
|
|
1023
|
+
return W(It, {
|
|
1024
1024
|
shouldShowChips: !1,
|
|
1025
1025
|
shouldShowSelectedItemsWithinPlaceholder: !0,
|
|
1026
1026
|
modelValue: p.length > 0 ? p : [null],
|
|
@@ -1049,7 +1049,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1049
1049
|
size: 140,
|
|
1050
1050
|
cell: (o) => {
|
|
1051
1051
|
const r = o.row.original;
|
|
1052
|
-
return
|
|
1052
|
+
return W(Me, {
|
|
1053
1053
|
customAttributes: r.customAttributes
|
|
1054
1054
|
});
|
|
1055
1055
|
}
|
|
@@ -1064,14 +1064,14 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1064
1064
|
size: 140,
|
|
1065
1065
|
cell: (o) => {
|
|
1066
1066
|
const r = o.getValue(), c = o.row.original;
|
|
1067
|
-
return S.value ?
|
|
1067
|
+
return S.value ? W(te.FmSelect, {
|
|
1068
1068
|
disabled: !y.value.orderFrom,
|
|
1069
1069
|
items: Object.values(Ce()),
|
|
1070
1070
|
modelValue: P(c._id, "orderFrom") ?? r,
|
|
1071
1071
|
"onUpdate:modelValue": async (p) => {
|
|
1072
1072
|
$(c._id, "orderFrom", p);
|
|
1073
1073
|
}
|
|
1074
|
-
}) :
|
|
1074
|
+
}) : W(Ve, {
|
|
1075
1075
|
orderFrom: r
|
|
1076
1076
|
});
|
|
1077
1077
|
}
|
|
@@ -1083,11 +1083,11 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1083
1083
|
headerClass: "py-4",
|
|
1084
1084
|
textAlign: "right"
|
|
1085
1085
|
},
|
|
1086
|
-
header: () =>
|
|
1086
|
+
header: () => W("div", {
|
|
1087
1087
|
class: "w-full px-4 flex justify-end"
|
|
1088
|
-
}, [Ot(
|
|
1088
|
+
}, [Ot(W(te.FmButton, {
|
|
1089
1089
|
variant: ee.Tertiary,
|
|
1090
|
-
textColor:
|
|
1090
|
+
textColor: q.NeutralGray400,
|
|
1091
1091
|
prependIcon: "edit",
|
|
1092
1092
|
class: "flex justify-end",
|
|
1093
1093
|
onClick: oe,
|
|
@@ -1103,7 +1103,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1103
1103
|
}) => d(te.FmButton, {
|
|
1104
1104
|
icon: "overview",
|
|
1105
1105
|
variant: "tertiary",
|
|
1106
|
-
textColor:
|
|
1106
|
+
textColor: q.NeutralGray400,
|
|
1107
1107
|
onClick: fe(() => {
|
|
1108
1108
|
c(r._id);
|
|
1109
1109
|
}, ["stop", "prevent"])
|
|
@@ -1111,7 +1111,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1111
1111
|
}), d(te.FmButton, {
|
|
1112
1112
|
icon: "delete",
|
|
1113
1113
|
variant: "tertiary",
|
|
1114
|
-
textColor:
|
|
1114
|
+
textColor: q.NeutralGray400,
|
|
1115
1115
|
onClick: fe(async () => {
|
|
1116
1116
|
await f.deleteItem([{
|
|
1117
1117
|
_id: r._id,
|
|
@@ -1230,7 +1230,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1230
1230
|
placeholder: a(t)("menu.product.table.search.placeholder")
|
|
1231
1231
|
}, null, 8, ["model-value", "placeholder"])]), r[8] || (r[8] = g("div", {
|
|
1232
1232
|
class: "w-full h-[1px] bg-fm-color-neutral-gray-100"
|
|
1233
|
-
}, null, -1)), g("div", Kl, [_e(o.$slots, "filter")]), J.value ? (m(), k("div", Nl, [d(a(
|
|
1233
|
+
}, null, -1)), g("div", Kl, [_e(o.$slots, "filter")]), J.value ? (m(), k("div", Nl, [d(a(qe), {
|
|
1234
1234
|
ref_key: "attributeFilterRef",
|
|
1235
1235
|
ref: re,
|
|
1236
1236
|
attributes: a(B),
|
|
@@ -1246,14 +1246,14 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1246
1246
|
alt: _.name,
|
|
1247
1247
|
size: 72,
|
|
1248
1248
|
src: _.thumbnail
|
|
1249
|
-
}, null, 8, ["alt", "src"]), g("div", Ll, [g("div",
|
|
1249
|
+
}, null, 8, ["alt", "src"]), g("div", Ll, [g("div", Wl, [g("p", ql, K(_.name), 1), d(Ve, {
|
|
1250
1250
|
"order-from": _.orderFrom
|
|
1251
1251
|
}, null, 8, ["order-from"])]), g("p", Hl, K(Be(_)), 1), g("p", Ql, K(a(t)("menu.product.table.columns.code")) + ": " + K(((ae = Te(_._id)) == null ? void 0 : ae.code) || "--"), 1), g("p", Yl, [d(Qe, {
|
|
1252
1252
|
categories: a(Pe)(a(se), _)
|
|
1253
1253
|
}, null, 8, ["categories"])]), d(Me, {
|
|
1254
1254
|
"custom-attributes": _.customAttributes
|
|
1255
1255
|
}, null, 8, ["custom-attributes"])])]), d(p, {
|
|
1256
|
-
"text-color": a(
|
|
1256
|
+
"text-color": a(q).NeutralGray400,
|
|
1257
1257
|
variant: a(ee).Tertiary,
|
|
1258
1258
|
"prepend-icon": "delete",
|
|
1259
1259
|
onClick: fe(() => a(f).deleteItem([{
|
|
@@ -1275,8 +1275,8 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1275
1275
|
default: T(({
|
|
1276
1276
|
trigger: _
|
|
1277
1277
|
}) => [d(p, {
|
|
1278
|
-
"bg-color": a(
|
|
1279
|
-
"text-color": a(
|
|
1278
|
+
"bg-color": a(q).NeutralGray100,
|
|
1279
|
+
"text-color": a(q).NeutralGray400,
|
|
1280
1280
|
variant: a(ee).Primary,
|
|
1281
1281
|
label: a(t)("menu.product.table.empty.actions.import"),
|
|
1282
1282
|
"prepend-icon": "download",
|
|
@@ -1296,7 +1296,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1296
1296
|
"onUpdate:modelValue": r[0] || (r[0] = (_) => Z.value = _),
|
|
1297
1297
|
autofocus: "",
|
|
1298
1298
|
placeholder: a(t)("menu.product.table.search.placeholder")
|
|
1299
|
-
}, null, 8, ["model-value", "placeholder"])])]), J.value ? (m(), k("div", Tl, [d(a(
|
|
1299
|
+
}, null, 8, ["model-value", "placeholder"])])]), J.value ? (m(), k("div", Tl, [d(a(qe), {
|
|
1300
1300
|
ref_key: "attributeFilterRef",
|
|
1301
1301
|
ref: re,
|
|
1302
1302
|
attributes: a(B),
|
|
@@ -1310,8 +1310,8 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1310
1310
|
variant: "plain",
|
|
1311
1311
|
onClick: ye
|
|
1312
1312
|
}, null, 8, ["label"]), d(p, {
|
|
1313
|
-
"border-color": a(
|
|
1314
|
-
"text-color": a(
|
|
1313
|
+
"border-color": a(q).SystemError300,
|
|
1314
|
+
"text-color": a(q).SystemError300,
|
|
1315
1315
|
class: "ml-auto",
|
|
1316
1316
|
label: a(t)("menu.product.table.selection.actions.remove"),
|
|
1317
1317
|
"prepend-icon": "delete",
|
|
@@ -1326,8 +1326,8 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1326
1326
|
label: a(t)("menu.common.actions.cancel"),
|
|
1327
1327
|
onClick: $e
|
|
1328
1328
|
}, null, 8, ["variant", "label"]), d(p, {
|
|
1329
|
-
borderColor: a(
|
|
1330
|
-
textColor: a(
|
|
1329
|
+
borderColor: a(q).ColorPrimary,
|
|
1330
|
+
textColor: a(q).ColorPrimary,
|
|
1331
1331
|
variant: a(ee).Secondary,
|
|
1332
1332
|
label: a(t)("menu.product.table.bulk_edit.actions.save"),
|
|
1333
1333
|
type: "submit"
|
|
@@ -1387,8 +1387,8 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1387
1387
|
default: T(({
|
|
1388
1388
|
trigger: _
|
|
1389
1389
|
}) => [d(p, {
|
|
1390
|
-
"bg-color": a(
|
|
1391
|
-
"text-color": a(
|
|
1390
|
+
"bg-color": a(q).NeutralGray100,
|
|
1391
|
+
"text-color": a(q).NeutralGray400,
|
|
1392
1392
|
variant: a(ee).Primary,
|
|
1393
1393
|
label: a(t)("menu.product.table.empty.actions.import"),
|
|
1394
1394
|
"prepend-icon": "download",
|
|
@@ -1496,7 +1496,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1496
1496
|
}, {
|
|
1497
1497
|
filter: T(() => [
|
|
1498
1498
|
d(He, { onToggleAttributeFilter: oe }),
|
|
1499
|
-
u.value.multiScheduler ? (m(), I(
|
|
1499
|
+
u.value.multiScheduler ? (m(), I(We, { key: 0 })) : M("", !0),
|
|
1500
1500
|
B.value ? (m(), I(Le, {
|
|
1501
1501
|
key: 1,
|
|
1502
1502
|
"current-restaurant-attr-params": a(e).state.currentRestaurantAttrParams,
|
|
@@ -1510,7 +1510,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1510
1510
|
])) : (m(), k("div", aa, [
|
|
1511
1511
|
g("div", oa, [
|
|
1512
1512
|
d(He),
|
|
1513
|
-
u.value.multiScheduler ? (m(), I(
|
|
1513
|
+
u.value.multiScheduler ? (m(), I(We, { key: 0 })) : M("", !0),
|
|
1514
1514
|
B.value ? (m(), I(Le, {
|
|
1515
1515
|
key: 1,
|
|
1516
1516
|
"current-restaurant-attr-params": a(e).state.currentRestaurantAttrParams,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as v, computed as $, resolveComponent as G, createElementBlock as c, openBlock as r, createElementVNode as s, createVNode as I, unref as h, createCommentVNode as T, normalizeClass as E, toDisplayString as U, createStaticVNode as B, Fragment as P, renderList as O, createBlock as oe, withCtx as R } from "vue";
|
|
2
|
-
import { J as A, F as ne } from "./jszip.min-
|
|
3
|
-
import { G as le, u as ie, J as D,
|
|
2
|
+
import { J as A, F as ne } from "./jszip.min-psVCZNVl.js";
|
|
3
|
+
import { G as le, u as ie, J as D, a1 as re, N as ce, O as de, P as me } from "./index.vue_vue_type_script_setup_true_lang-kj6HkxwD.js";
|
|
4
4
|
import { useI18n as ue } from "@feedmepos/mf-common";
|
|
5
|
-
import { FmButtonVariant as z, useSnackbar as V, useDialog as ge, FmButtonColorThemeVariant as
|
|
5
|
+
import { FmButtonVariant as z, useSnackbar as V, useDialog as ge, FmButtonColorThemeVariant as M } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as pe } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { u as fe, a as he } from "./menu-
|
|
8
|
-
import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import {
|
|
7
|
+
import { u as fe, a as he } from "./menu-CgQPOu3W.js";
|
|
8
|
+
import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-BZVvTAOX.js";
|
|
9
|
+
import { t as be, v as ve, w as _e } from "./item-cmnP2N-a.js";
|
|
10
10
|
const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center justify-between p-16 border-b border-gray-200" }, Ie = { class: "flex gap-8" }, ke = { class: "border-b border-gray-200" }, Ce = { class: "flex" }, Ue = { class: "flex-1 overflow-hidden" }, je = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "h-full flex flex-col"
|
|
13
13
|
}, Fe = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "flex-1 flex items-center justify-center"
|
|
16
|
-
},
|
|
16
|
+
}, Se = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "flex-1 overflow-y-auto p-16"
|
|
19
|
-
},
|
|
19
|
+
}, Me = { class: "space-y-12" }, $e = { class: "fm-typo-en-body-sm font-medium" }, ze = { class: "flex" }, Pe = { class: "w-64 h-64 bg-gray-100 rounded-8 overflow-hidden flex items-center justify-center" }, Le = ["src", "alt"], Ne = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "text-gray-400 text-xs"
|
|
22
22
|
}, Te = { class: "flex" }, Ee = { class: "w-64 h-64 bg-gray-100 rounded-8 overflow-hidden" }, Be = ["src", "alt"], Oe = {
|
|
@@ -40,7 +40,7 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
40
40
|
function _() {
|
|
41
41
|
F("cancel");
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function S() {
|
|
44
44
|
F("update", u.matchedImages);
|
|
45
45
|
}
|
|
46
46
|
return (w, l) => {
|
|
@@ -58,7 +58,7 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
58
58
|
variant: h(z).Primary,
|
|
59
59
|
label: "Update",
|
|
60
60
|
disabled: b.value === 0,
|
|
61
|
-
onClick:
|
|
61
|
+
onClick: S
|
|
62
62
|
}, null, 8, ["variant", "disabled"])
|
|
63
63
|
])
|
|
64
64
|
]),
|
|
@@ -85,13 +85,13 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
85
85
|
y.value === "matched" ? (r(), c("div", je, [
|
|
86
86
|
b.value === 0 ? (r(), c("div", Fe, l[3] || (l[3] = [
|
|
87
87
|
B('<div class="text-center text-gray-500"><svg class="mx-auto h-48 w-48 text-gray-400 mb-16" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg><p class="fm-typo-en-body-lg text-gray-500">No matched images found</p><p class="fm-typo-en-body-sm text-gray-400 mt-4"> Make sure your image filenames match product names </p></div>', 1)
|
|
88
|
-
]))) : (r(), c("div",
|
|
88
|
+
]))) : (r(), c("div", Se, [
|
|
89
89
|
l[4] || (l[4] = s("div", { class: "grid grid-cols-3 gap-16 pb-12 border-b border-gray-200 mb-16" }, [
|
|
90
90
|
s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "Product Name"),
|
|
91
91
|
s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "Current Image"),
|
|
92
92
|
s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "New Image")
|
|
93
93
|
], -1)),
|
|
94
|
-
s("div",
|
|
94
|
+
s("div", Me, [
|
|
95
95
|
(r(!0), c(P, null, O(u.matchedImages, (m, C) => (r(), c("div", {
|
|
96
96
|
key: C,
|
|
97
97
|
class: "grid grid-cols-3 gap-16 py-12 border-b border-gray-100 items-center"
|
|
@@ -151,14 +151,14 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
|
-
var qe = { firebase: { storageBucket: "image.
|
|
154
|
+
var qe = { firebase: { storageBucket: "image.feedmedev.cc" } };
|
|
155
155
|
const He = {
|
|
156
156
|
key: 0,
|
|
157
157
|
class: "h-screen"
|
|
158
158
|
}, Xe = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ke = { class: "flex items-center" }, Qe = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ye = { class: "fm-typo-en-body-md-600 font-semibold" }, et = { class: "flex gap-8" }, dt = /* @__PURE__ */ Z({
|
|
159
159
|
__name: "ProductInternalTools",
|
|
160
160
|
setup(L) {
|
|
161
|
-
const { t: j } = ue(), u = le(V()), F = V(), y = ge(), b = ie(), { selectedCategories: k } = fe(), _ = v(!1),
|
|
161
|
+
const { t: j } = ue(), u = le(V()), F = V(), y = ge(), b = ie(), { selectedCategories: k } = fe(), _ = v(!1), S = v(), w = v([]), l = v([]), x = $(() => {
|
|
162
162
|
const e = D.flatten(k.value.map((a) => a.items));
|
|
163
163
|
return D.uniqBy(e, (a) => a._id);
|
|
164
164
|
}), m = $(() => x.value.length);
|
|
@@ -343,7 +343,7 @@ const He = {
|
|
|
343
343
|
}
|
|
344
344
|
function ae() {
|
|
345
345
|
var e;
|
|
346
|
-
(e =
|
|
346
|
+
(e = S.value) == null || e.click();
|
|
347
347
|
}
|
|
348
348
|
function se(e) {
|
|
349
349
|
const a = e.target;
|
|
@@ -379,15 +379,15 @@ const He = {
|
|
|
379
379
|
]),
|
|
380
380
|
s("div", et, [
|
|
381
381
|
I(o, {
|
|
382
|
-
"bg-color": h(
|
|
383
|
-
"text-color": h(
|
|
382
|
+
"bg-color": h(M).NeutralGray100,
|
|
383
|
+
"text-color": h(M).TypoSecondary,
|
|
384
384
|
variant: h(z).Primary,
|
|
385
385
|
label: "Download Images",
|
|
386
386
|
onClick: W
|
|
387
387
|
}, null, 8, ["bg-color", "text-color", "variant"]),
|
|
388
388
|
I(o, {
|
|
389
|
-
"bg-color": h(
|
|
390
|
-
"text-color": h(
|
|
389
|
+
"bg-color": h(M).NeutralGray100,
|
|
390
|
+
"text-color": h(M).TypoSecondary,
|
|
391
391
|
variant: h(z).Primary,
|
|
392
392
|
label: "Update Images",
|
|
393
393
|
onClick: ae
|
|
@@ -399,7 +399,7 @@ const He = {
|
|
|
399
399
|
}, 8, ["heading"])),
|
|
400
400
|
s("input", {
|
|
401
401
|
ref_key: "fileInput",
|
|
402
|
-
ref:
|
|
402
|
+
ref: S,
|
|
403
403
|
type: "file",
|
|
404
404
|
multiple: "",
|
|
405
405
|
accept: "image/*,.zip",
|