@feedmepos/mf-menu 0.32.37 → 0.32.38-dev.2
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-Dl-BiHwh.js → App-Cfc6q7R4.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Z4PgBxr3.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BXtuSeAK.js} +3 -3
- package/dist/{Catalog-BSZ8BAbX.js → Catalog-BwWG8aVq.js} +6 -6
- package/dist/Category-CTSxrlD3.js +224 -0
- package/dist/{Category-bGvXpr0F.js → Category-lIONtEO5.js} +9 -9
- package/dist/{CookingGuide-DijUR2JM.js → CookingGuide-Ba6fLxDH.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-B30t_PW1.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BDUxrr9V.js} +1 -1
- package/dist/{Group-CrqE40ia.js → Group-Bs1GXOJ6.js} +7 -7
- package/dist/{Group-O4L3iHx0.js → Group-C577jf-a.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CsM72Jnq.js → Group.vue_vue_type_script_setup_true_lang-DwIQSBka.js} +227 -216
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BGR4kFzj.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DC41D4_B.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-wf0Wm51b.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DydOyrWz.js} +1743 -1743
- package/dist/{Ingredient-DvvuwOdH.js → Ingredient-DMdt_R8F.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-anFCPZZD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DExCzIH7.js} +2 -2
- package/dist/{LinkProductSideSheet-ImK8azTA.js → LinkProductSideSheet-C5EJF94w.js} +3 -3
- package/dist/{MenuSetting-BX0ohmwF.js → MenuSetting-DWPluEWH.js} +5 -5
- package/dist/{PrintRoute-CXYZHJsf.js → PrintRoute-BmebtmN5.js} +4 -4
- package/dist/{Product-BnnwL5DZ.js → Product-D2GO3tYo.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DUBnQJZ1.js → Product.vue_vue_type_script_setup_true_lang-r6xF3HkK.js} +348 -337
- package/dist/{ProductInternalTools-DzRnmE1r.js → ProductInternalTools-Dep9C9sT.js} +23 -23
- package/dist/{Products-CtzHONQZ.js → Products-kXzyZ-qw.js} +24 -24
- package/dist/{Publish-DmIbDy8-.js → Publish-DiFxcujy.js} +3 -3
- package/dist/{Recipe-D_0Ezt1C.js → Recipe-Bb0_R7pY.js} +4 -4
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DdeQnyfQ.js → RuleView.vue_vue_type_script_setup_true_lang-BZi9zjue.js} +176 -176
- package/dist/{Scheduler-BgQsbdVM.js → Scheduler-BosF_svj.js} +3 -3
- package/dist/{ServingSequence-DCRzJsrs.js → ServingSequence-Ka7ZszUb.js} +3 -3
- package/dist/{Setting-CgtttPN_.js → Setting-ZZ-N5_ht.js} +5 -5
- package/dist/Subcategory-BGCzSst1.js +345 -0
- package/dist/{Takeaway-BfcHs1we.js → Takeaway-CILmyRDs.js} +1 -1
- package/dist/{Takeaway-CExKsbN5.js → Takeaway-Daa_CJ-H.js} +4 -4
- package/dist/Takeaway.vue_vue_type_script_setup_true_lang-B1jejzX7.js +316 -0
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Br279NC_.js → Thumbnail.vue_vue_type_script_setup_true_lang-CCBa35X7.js} +4 -4
- package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-PbYAxItr.js +185 -0
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-j4xROEG7.js +6122 -0
- package/dist/{Unit-B6P_ykM-.js → Unit-D21SP540.js} +2 -2
- package/dist/Variant-BDf9DDmG.js +247 -0
- package/dist/{_id_-D2ozS9Ck.js → _id_-R8SE-ZmQ.js} +9 -9
- package/dist/app-BASWdzxI.js +363 -0
- package/dist/{app-DqyNXgYz.js → app-CqvEAGdq.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +264 -0
- package/dist/apps/mf-menu/src/components/ProductTranslationDialog.vue.d.ts +41 -0
- package/dist/apps/mf-menu/src/components/TranslationBadge.vue.d.ts +29 -0
- package/dist/apps/mf-menu/src/components/TranslationFieldSection.vue.d.ts +39 -0
- package/dist/apps/mf-menu/src/components/TranslationSideSheet.vue.d.ts +23 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +54 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/Form.vue.d.ts +1 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/ImageDropField.vue.d.ts +1 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +16 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/ProductOverrideTranslation.vue.d.ts +22 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +20 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +20 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/category.d.ts +8 -2
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +24 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +16 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +10 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +16 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +24 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +30 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +10 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +125 -1
- package/dist/apps/mf-menu/src/components/feature/VariantManager/ProductVariantTranslation.vue.d.ts +37 -0
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +20 -0
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +16 -0
- package/dist/apps/mf-menu/src/helper/item.d.ts +1 -0
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +10 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +11 -0
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +125 -1
- package/dist/apps/mf-menu/src/helper/menuSanitizer.d.ts +125 -1
- package/dist/apps/mf-menu/src/manager/menu/category.d.ts +8 -2
- package/dist/apps/mf-menu/src/manager/menu/group.d.ts +1 -0
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +125 -1
- package/dist/apps/mf-menu/src/manager/menu/subcategory.d.ts +6 -0
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +31 -1
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +16 -0
- package/dist/apps/mf-menu/src/stores/manager/takeaway.d.ts +9 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +125 -1
- package/dist/apps/mf-menu/src/utils/translation.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddCategoryDialogContentComponent.vue.d.ts +1 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +20 -0
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +46 -0
- package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +10 -0
- package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +10 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-Cq9TLj-4.js +13 -0
- package/dist/assets/menu-export-Blxjlc7o.js +107 -0
- package/dist/assets/override-menu-Cny8YlWs.js +13 -0
- package/dist/assets/validate-menu-CAWtxE9g.js +13 -0
- package/dist/{catalog-CFKVaXk7.js → catalog-D1ldj55y.js} +1 -1
- package/dist/{catalogSetting-N4nT-nGm.js → catalogSetting-DdCMyQ1n.js} +1 -1
- package/dist/{currency-Bi_GukGE.js → currency-CozWj5-6.js} +1 -1
- package/dist/dayjs.min-DjVUMZe1.js +6 -0
- package/dist/{index-uiJS0BKT.js → index-B3uidhol.js} +1 -1
- package/dist/index-CZ2slj-T.js +539 -0
- package/dist/index-Cw3iqI80.js +335 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-CL6a622s.js → index.vue_vue_type_script_setup_true_lang-BMBAQiGH.js} +19063 -18861
- package/dist/item-ncimpz9a.js +8120 -0
- package/dist/{jszip.min-v__o3BM4.js → jszip.min-DaMSaZr3.js} +383 -383
- package/dist/{menu-LtIuM7Qj.js → menu-Cb5CM_BJ.js} +1 -1
- package/dist/{menuV2-N0hB53Gw.js → menuV2-2B1i4-4v.js} +24 -24
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-DZeAvlXs.js → priceTier-H4TWDspA.js} +1 -1
- package/dist/rules-aP3AB4aS.js +212 -0
- package/dist/{scheduler-FVlscyjB.js → scheduler-CnQo8MiW.js} +4 -4
- package/dist/{toExcel-DBCbupeI.js → toExcel-C99U873x.js} +2 -2
- package/dist/translation-BeqjfyEb.js +75 -0
- package/dist/{unit-DNphv-4C.js → unit-DiCr5V9I.js} +2 -2
- package/package.json +3 -3
- package/dist/Category-DMgNea31.js +0 -392
- package/dist/Subcategory-6SgvwWpX.js +0 -280
- package/dist/Takeaway.vue_vue_type_script_setup_true_lang-GAZ3S2_n.js +0 -305
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BFwMfAlB.js +0 -6024
- package/dist/Variant-DmNuLi96.js +0 -230
- package/dist/app-CE0yoao0.js +0 -363
- package/dist/assets/linked-status-BB6BrSUB.js +0 -13
- package/dist/assets/menu-export-C1TBcoi-.js +0 -107
- package/dist/assets/override-menu-C0RijOOI.js +0 -13
- package/dist/assets/validate-menu-9VpR7oZY.js +0 -13
- package/dist/category-BSGaVgyv.js +0 -156
- package/dist/dayjs.min-DgXlcVSD.js +0 -6
- package/dist/index-BaxQ5Nq0.js +0 -273
- package/dist/index-Bun2EboK.js +0 -239
- package/dist/item-DPivBmJh.js +0 -6950
- package/dist/rules-CIWTZQfh.js +0 -6
- package/dist/subcategory-CIctYwBF.js +0 -148
|
@@ -2,9 +2,9 @@ import { defineComponent as L, computed as d, ref as g, h as k, withModifiers as
|
|
|
2
2
|
import { useI18n as E } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as K, components as R, useBreakpoints as D, FmButtonVariant as G } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as I } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { G as q, u as A,
|
|
5
|
+
import { G as q, u as A, a4 as H } from "./index.vue_vue_type_script_setup_true_lang-BMBAQiGH.js";
|
|
6
6
|
import { _ as J } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { u as O, U as P } from "./unit-
|
|
7
|
+
import { u as O, U as P } from "./unit-DiCr5V9I.js";
|
|
8
8
|
const Q = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "h-[600px]"
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { getCurrentInstance as U, defineComponent as $, computed as x, onMounted as R, h as u, resolveComponent as w, createBlock as L, openBlock as p, unref as t, withCtx as _, createElementBlock as y, Fragment as M, createElementVNode as i, createVNode as c, isRef as z, normalizeClass as N, renderList as G, toDisplayString as S, withModifiers as j, createCommentVNode as Y } from "vue";
|
|
2
|
+
import { useI18n as O } from "@feedmepos/mf-common";
|
|
3
|
+
import { useDialog as Q, useSnackbar as A, FmButtonVariant as B, components as q, useBreakpoints as H } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as J } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
+
import { _ as W } from "./app-BASWdzxI.js";
|
|
6
|
+
import { G as D, u as K, Q as P, M as X, A as Z, a4 as ee } from "./index.vue_vue_type_script_setup_true_lang-BMBAQiGH.js";
|
|
7
|
+
import { V as E } from "./index-CZ2slj-T.js";
|
|
8
|
+
import { _ as ae } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
9
|
+
import { u as oe } from "./search-BAPEUu1R.js";
|
|
10
|
+
import { defineStore as te } from "pinia";
|
|
11
|
+
import { c as ne } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
12
|
+
import { g as F } from "./translation-BeqjfyEb.js";
|
|
13
|
+
const le = te("variant-manager", () => {
|
|
14
|
+
const I = Q(), n = A(), g = D(n), k = P(g);
|
|
15
|
+
K();
|
|
16
|
+
const f = U(), { t: m } = O(), V = (r) => {
|
|
17
|
+
var h, o;
|
|
18
|
+
const { vNode: C } = ne(
|
|
19
|
+
E,
|
|
20
|
+
f,
|
|
21
|
+
r
|
|
22
|
+
);
|
|
23
|
+
(o = (h = C.component) == null ? void 0 : h.exposed) == null || o.trigger();
|
|
24
|
+
};
|
|
25
|
+
async function d(r) {
|
|
26
|
+
V({
|
|
27
|
+
initialValue: r
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async function v(r) {
|
|
31
|
+
I.open({
|
|
32
|
+
title: m("menu.common.dialog.remove.variant.title"),
|
|
33
|
+
message: m("menu.common.dialog.remove.variant.message", { name: r.name }),
|
|
34
|
+
primaryActions: {
|
|
35
|
+
text: m("menu.common.actions.remove"),
|
|
36
|
+
close: !0,
|
|
37
|
+
variant: B.Destructive
|
|
38
|
+
},
|
|
39
|
+
secondaryActions: {
|
|
40
|
+
text: m("menu.common.actions.cancel"),
|
|
41
|
+
close: !0
|
|
42
|
+
}
|
|
43
|
+
}).onPrimary(async () => {
|
|
44
|
+
await k.updateMenu(
|
|
45
|
+
{
|
|
46
|
+
module: Z.F_MENU_MODULE_V4_KEY.enum.variant,
|
|
47
|
+
operation: X.F_OPERATION_TYPE.delete,
|
|
48
|
+
data: r._id
|
|
49
|
+
},
|
|
50
|
+
r.name,
|
|
51
|
+
!0
|
|
52
|
+
);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
deleteVariant: v,
|
|
57
|
+
updateVariant: d
|
|
58
|
+
};
|
|
59
|
+
}), se = {
|
|
60
|
+
key: 0,
|
|
61
|
+
class: "flex-1 flex flex-col overflow-hidden max-h-[calc(100vh-56px)] gap-8"
|
|
62
|
+
}, re = {
|
|
63
|
+
class: "flex justify-end"
|
|
64
|
+
}, ie = {
|
|
65
|
+
class: "w-[320px]"
|
|
66
|
+
}, ce = {
|
|
67
|
+
class: "px-16 py-8"
|
|
68
|
+
}, me = {
|
|
69
|
+
class: /* @__PURE__ */ N(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
|
|
70
|
+
}, de = ["onClick"], ue = {
|
|
71
|
+
class: "flex-1 space-y-4"
|
|
72
|
+
}, pe = {
|
|
73
|
+
class: "fm-typo-en-body-lg-600"
|
|
74
|
+
}, fe = {
|
|
75
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
76
|
+
}, _e = {
|
|
77
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
78
|
+
}, ye = {
|
|
79
|
+
key: 1,
|
|
80
|
+
class: "xs:pt-16"
|
|
81
|
+
}, Be = /* @__PURE__ */ $({
|
|
82
|
+
__name: "Variant",
|
|
83
|
+
setup(I) {
|
|
84
|
+
const {
|
|
85
|
+
t: n
|
|
86
|
+
} = O(), g = K(), k = P(D(A())), f = le(), m = x(() => g.variants.map((o) => ({
|
|
87
|
+
...o,
|
|
88
|
+
usedBy: g.items.filter((e) => {
|
|
89
|
+
var s;
|
|
90
|
+
return (s = e.variant) == null ? void 0 : s.variantGroupIds.includes(o._id);
|
|
91
|
+
}).map(({
|
|
92
|
+
_id: e
|
|
93
|
+
}) => ({
|
|
94
|
+
_id: e
|
|
95
|
+
}))
|
|
96
|
+
}))), {
|
|
97
|
+
filter: V,
|
|
98
|
+
searchKey: d
|
|
99
|
+
} = oe(), v = x(() => m.value.filter((o) => {
|
|
100
|
+
var e;
|
|
101
|
+
return V([o.name, ...((e = o.options) == null ? void 0 : e.map((s) => s.name)) ?? []]);
|
|
102
|
+
}));
|
|
103
|
+
R(() => g.selectCatalog(null));
|
|
104
|
+
const r = x(() => [{
|
|
105
|
+
accessorKey: "name",
|
|
106
|
+
header: () => n("menu.variant.columns.name"),
|
|
107
|
+
size: 360,
|
|
108
|
+
enableSorting: !1,
|
|
109
|
+
cell: (o) => {
|
|
110
|
+
const e = o.row.original, s = o.getValue(), l = Object.keys(e.name_locale ?? {}).map((a) => F(a));
|
|
111
|
+
return u("div", {
|
|
112
|
+
class: "flex items-center gap-8"
|
|
113
|
+
}, [u("span", {
|
|
114
|
+
class: "break-all"
|
|
115
|
+
}, s), ...l.map((a) => u("div", {
|
|
116
|
+
class: "rounded-lg border border-fm-color-primary text-fm-color-primary flex items-center justify-center fm-typo-en-body-sm-600 px-8"
|
|
117
|
+
}, a))]);
|
|
118
|
+
}
|
|
119
|
+
}, {
|
|
120
|
+
accessorKey: "options",
|
|
121
|
+
header: () => n("menu.variant.columns.options"),
|
|
122
|
+
size: 560,
|
|
123
|
+
enableSorting: !1,
|
|
124
|
+
cell: (o) => {
|
|
125
|
+
const e = o.getValue() ?? [], s = e.some((l) => Object.keys(l.name_locale ?? {}).length > 0), b = Array.from(new Set(e.flatMap((l) => Object.keys(l.name_locale ?? {})))).map((l) => F(l));
|
|
126
|
+
return u("div", {
|
|
127
|
+
class: "flex items-center gap-8"
|
|
128
|
+
}, [u("span", {
|
|
129
|
+
class: "break-all"
|
|
130
|
+
}, e == null ? void 0 : e.map((l) => l.name).join(", ")), ...s ? b.map((l) => u("div", {
|
|
131
|
+
class: "rounded-lg border border-fm-color-primary text-fm-color-primary flex items-center justify-center fm-typo-en-body-sm-600 px-8"
|
|
132
|
+
}, l)) : []]);
|
|
133
|
+
}
|
|
134
|
+
}, {
|
|
135
|
+
accessorKey: "usedBy",
|
|
136
|
+
header: () => n("menu.variant.columns.applied_products"),
|
|
137
|
+
enableSorting: !1,
|
|
138
|
+
size: 180,
|
|
139
|
+
cell: (o) => n("menu.common.labels.items_linked", {
|
|
140
|
+
count: o.getValue().length
|
|
141
|
+
})
|
|
142
|
+
}, {
|
|
143
|
+
id: "action",
|
|
144
|
+
size: 52,
|
|
145
|
+
meta: {
|
|
146
|
+
cellClass: "pl-16",
|
|
147
|
+
headerContentClass: "-mx-16"
|
|
148
|
+
},
|
|
149
|
+
cell: (o) => u("div", {
|
|
150
|
+
class: "w-full flex justify-end items-center"
|
|
151
|
+
}, [u(q.FmButton, {
|
|
152
|
+
prependIcon: "delete",
|
|
153
|
+
variant: B.Tertiary,
|
|
154
|
+
textColor: "neutral-gray-400",
|
|
155
|
+
onClick: (e) => {
|
|
156
|
+
e.stopPropagation(), f.deleteVariant(o.row.original);
|
|
157
|
+
}
|
|
158
|
+
})])
|
|
159
|
+
}]), C = H(), h = x(() => C.breakpoints.value.xs);
|
|
160
|
+
return (o, e) => {
|
|
161
|
+
const s = w("fm-search"), b = w("fm-table"), l = w("fm-button");
|
|
162
|
+
return p(), L(ae, {
|
|
163
|
+
heading: t(n)("menu.variant.title")
|
|
164
|
+
}, {
|
|
165
|
+
"append-heading": _(() => [m.value.length ? (p(), L(t(E), {
|
|
166
|
+
key: 0
|
|
167
|
+
}, {
|
|
168
|
+
default: _(({
|
|
169
|
+
trigger: a
|
|
170
|
+
}) => [c(J, {
|
|
171
|
+
class: "ml-auto",
|
|
172
|
+
label: t(n)("menu.variant.add"),
|
|
173
|
+
"prepend-icon": "add",
|
|
174
|
+
onClick: j(a, ["stop"])
|
|
175
|
+
}, null, 8, ["label", "onClick"])]),
|
|
176
|
+
_: 1
|
|
177
|
+
})) : Y("", !0)]),
|
|
178
|
+
default: _(() => [m.value.length ? (p(), y(M, {
|
|
179
|
+
key: 0
|
|
180
|
+
}, [h.value ? (p(), y(M, {
|
|
181
|
+
key: 1
|
|
182
|
+
}, [i("div", ce, [c(s, {
|
|
183
|
+
autofocus: "",
|
|
184
|
+
modelValue: t(d),
|
|
185
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => z(d) ? d.value = a : null),
|
|
186
|
+
placeholder: t(n)("menu.common.labels.search_placeholder", {
|
|
187
|
+
type: "variants"
|
|
188
|
+
})
|
|
189
|
+
}, null, 8, ["modelValue", "placeholder"])]), i("div", me, [(p(!0), y(M, null, G(v.value, (a) => (p(), y("div", {
|
|
190
|
+
key: a._id,
|
|
191
|
+
class: N(["py-12 px-16", "flex space-x-8", "items-center", "cursor-pointer"]),
|
|
192
|
+
onClick: () => t(f).updateVariant(a)
|
|
193
|
+
}, [i("div", ue, [i("p", pe, S(a.name), 1), i("div", null, [i("p", fe, S(t(n)("menu.common.labels.items_linked", {
|
|
194
|
+
count: a.usedBy.length
|
|
195
|
+
})), 1), i("p", _e, S(t(n)("menu.variant.mobile.value", {
|
|
196
|
+
values: a.options.map((T) => T.name).join(", ")
|
|
197
|
+
})), 1)])]), c(l, {
|
|
198
|
+
variant: t(B).Tertiary,
|
|
199
|
+
"prepend-icon": "delete",
|
|
200
|
+
"text-color": "neutral-gray-400",
|
|
201
|
+
onClick: j(() => t(f).deleteVariant(a), ["stop"])
|
|
202
|
+
}, null, 8, ["variant", "onClick"])], 8, de))), 128))])], 64)) : (p(), y("div", se, [i("div", re, [i("div", ie, [c(s, {
|
|
203
|
+
autofocus: "",
|
|
204
|
+
modelValue: t(d),
|
|
205
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => z(d) ? d.value = a : null),
|
|
206
|
+
placeholder: t(n)("menu.common.labels.search_placeholder", {
|
|
207
|
+
type: "variants"
|
|
208
|
+
})
|
|
209
|
+
}, null, 8, ["modelValue", "placeholder"])])]), c(W, null, {
|
|
210
|
+
default: _(() => [c(b, {
|
|
211
|
+
"column-defs": r.value,
|
|
212
|
+
loading: t(k).checkMenuIsLoading(),
|
|
213
|
+
"page-size": v.value.length,
|
|
214
|
+
"row-data": v.value,
|
|
215
|
+
"shrink-at": !1,
|
|
216
|
+
class: "flex-1 overflow-hidden",
|
|
217
|
+
"hide-footer": "",
|
|
218
|
+
"pin-header-row": "",
|
|
219
|
+
onRowClick: e[1] || (e[1] = (a) => {
|
|
220
|
+
t(f).updateVariant(a.original);
|
|
221
|
+
})
|
|
222
|
+
}, null, 8, ["column-defs", "loading", "page-size", "row-data"])]),
|
|
223
|
+
_: 1
|
|
224
|
+
})]))], 64)) : (p(), y("div", ye, [c(ee, {
|
|
225
|
+
subtitle: t(n)("menu.variant.empty.subtitle"),
|
|
226
|
+
title: t(n)("menu.variant.empty.title")
|
|
227
|
+
}, {
|
|
228
|
+
action: _(() => [c(t(E), null, {
|
|
229
|
+
default: _(({
|
|
230
|
+
trigger: a
|
|
231
|
+
}) => [c(l, {
|
|
232
|
+
"prepend-icon": "add",
|
|
233
|
+
label: t(n)("menu.variant.add"),
|
|
234
|
+
onClick: j(a, ["stop"])
|
|
235
|
+
}, null, 8, ["label", "onClick"])]),
|
|
236
|
+
_: 1
|
|
237
|
+
})]),
|
|
238
|
+
_: 1
|
|
239
|
+
}, 8, ["subtitle", "title"])]))]),
|
|
240
|
+
_: 1
|
|
241
|
+
}, 8, ["heading"]);
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
export {
|
|
246
|
+
Be as default
|
|
247
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as F, computed as d, ref as p, watch as A, onMounted as H, resolveComponent as m, createElementBlock as K, openBlock as b, Fragment as Q, createVNode as n, withCtx as u, createElementVNode as i, toDisplayString as M, unref as e, createBlock as D } from "vue";
|
|
2
|
-
import { D as W } from "./dayjs.min-
|
|
2
|
+
import { D as W } from "./dayjs.min-DjVUMZe1.js";
|
|
3
3
|
import { useRoute as j, useRouter as J } from "vue-router";
|
|
4
|
-
import { _ as X, w as Z } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { G as ee, u as te, D as ae, I as oe, Q as ne } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as X, w as Z } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DydOyrWz.js";
|
|
5
|
+
import { G as ee, u as te, D as ae, I as oe, Q as ne } from "./index.vue_vue_type_script_setup_true_lang-BMBAQiGH.js";
|
|
6
6
|
import { useI18n as le } from "@feedmepos/mf-common";
|
|
7
7
|
import { useSnackbar as se } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as R } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
9
|
-
import { L as V } from "./LinkProductSideSheet-
|
|
9
|
+
import { L as V } from "./LinkProductSideSheet-C5EJF94w.js";
|
|
10
10
|
import { _ as ue } from "./index-CisutoS9.js";
|
|
11
11
|
import { _ as re } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
12
|
-
import { u as ie } from "./Thumbnail.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { a as me } from "./menu-
|
|
14
|
-
import { m as ce } from "./toExcel-
|
|
15
|
-
import { _ as de, u as pe, c as _e } from "./scheduler-
|
|
16
|
-
import { R as r } from "./app-
|
|
12
|
+
import { u as ie } from "./Thumbnail.vue_vue_type_script_setup_true_lang-CCBa35X7.js";
|
|
13
|
+
import { a as me } from "./menu-Cb5CM_BJ.js";
|
|
14
|
+
import { m as ce } from "./toExcel-C99U873x.js";
|
|
15
|
+
import { _ as de, u as pe, c as _e } from "./scheduler-CnQo8MiW.js";
|
|
16
|
+
import { R as r } from "./app-BASWdzxI.js";
|
|
17
17
|
const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class: "flex ml-auto space-x-8" }, be = { class: "flex-1 flex flex-col overflow-hidden" }, Ge = /* @__PURE__ */ F({
|
|
18
18
|
__name: "[id]",
|
|
19
19
|
setup(ke) {
|