@feedmepos/mf-menu 0.31.13-prod → 0.31.14-beta.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.
- package/dist/{App-DzwIYXCC.js → App-zFX3uush.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DwjRVBt4.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CHUFMaWx.js} +2 -2
- package/dist/{Catalog-BvavQk6R.js → Catalog-D2FTURpx.js} +5 -5
- package/dist/{Category-CKOPnQAc.js → Category-BmYM9mSA.js} +5 -5
- package/dist/{Category-Cj02s0bD.js → Category-Weso_H_Z.js} +4 -4
- package/dist/{CookingGuide-CyEginT_.js → CookingGuide-uJHE_Fb6.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BpFu-GUR.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Dk5FypdM.js} +1 -1
- package/dist/{Group-plIUz6mQ.js → Group-Br4SVdfw.js} +3 -3
- package/dist/{Group-YFFFxGCq.js → Group-DyJJJzzC.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BHYcr3kC.js → Group.vue_vue_type_script_setup_true_lang-0NLKlLn0.js} +48 -48
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DzF0Sycs.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B9qitqLz.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DlY_fspL.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-L3eIj10P.js} +1268 -1268
- package/dist/{Ingredient-C_RIAZ8k.js → Ingredient-C8Gdb9xg.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CLSojPHv.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DhSZIPOD.js} +1052 -1052
- package/dist/{LinkProductSideSheet-B5GODfkw.js → LinkProductSideSheet-NwwdRb-j.js} +1 -1
- package/dist/{MenuSetting-FywYOgmI.js → MenuSetting-CKS0c1Kc.js} +4 -4
- package/dist/{PrintRoute-BO3-UkwS.js → PrintRoute-DLwub8uW.js} +3 -3
- package/dist/{Product-BrlvooGG.js → Product-DowKo0s7.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BNA1nx-k.js → Product.vue_vue_type_script_setup_true_lang-DiK-MIBy.js} +11 -11
- package/dist/{Products-BPwLcwaE.js → Products-Bn7xaGhh.js} +521 -521
- package/dist/{Publish-CqP2L3H8.js → Publish-CpNC0tWj.js} +3 -3
- package/dist/{Recipe-DO4yCnFG.js → Recipe-DH_e8MrT.js} +4 -4
- package/dist/{Scheduler-CkFIeXN3.js → Scheduler-PXidqEyf.js} +3 -3
- package/dist/{ServingSequence-B_-BOp8C.js → ServingSequence-DzWaHfwb.js} +3 -3
- package/dist/{Setting-CY1-d04h.js → Setting-EtztudWO.js} +4 -4
- package/dist/{Subcategory-H3rxT2CG.js → Subcategory-DkkEu6gx.js} +4 -4
- package/dist/{Takeaway-C6Z2ScCk.js → Takeaway-BP96ZCL2.js} +4 -4
- package/dist/{Takeaway-BJVacqXp.js → Takeaway-CArF4v3D.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-vky_OjQ5.js → Takeaway.vue_vue_type_script_setup_true_lang-dOCLq4xp.js} +5 -5
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BEsR-cqN.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DCV9KgmK.js} +1567 -1571
- package/dist/{Unit-CT9vH-Li.js → Unit-SA3YP3kw.js} +2 -2
- package/dist/{Variant-DYxv7P2H.js → Variant-CzNIvE36.js} +3 -3
- package/dist/{_id_-Dl-tTOCU.js → _id_-8uQ9YdPK.js} +9 -9
- package/dist/{app-DXaQ2A8_.js → app-BolRuPEq.js} +1 -1
- package/dist/{app-D349wgRv.js → app-My0NMUdz.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/manager/menu/group.d.ts +2 -2
- package/dist/assets/{linked-status-DV0r63qX.js → linked-status-CEPycTlk.js} +2 -2
- package/dist/assets/{override-menu-B1Il9Mtm.js → override-menu-_OICQSvN.js} +2 -2
- package/dist/assets/{validate-menu-u8H0BvHJ.js → validate-menu-yLFq_6YK.js} +2 -2
- package/dist/{catalog-Co0S8ONG.js → catalog--wILrjkl.js} +1 -1
- package/dist/{catalogSetting-BpL871DP.js → catalogSetting-B_tAzhVc.js} +1 -1
- package/dist/{category-pMoaKhVM.js → category-csE2-2hB.js} +1 -1
- package/dist/{currency-CbR9kSDS.js → currency-BDn4uyqM.js} +1 -1
- package/dist/{dayjs.min-Revise9-.js → dayjs.min-CEFQW6qP.js} +1 -1
- package/dist/{index-CiBy1MJE.js → index-Ctkjk6Ve.js} +3 -3
- package/dist/{index-CcgWvTsC.js → index-DQvyosax.js} +1 -1
- package/dist/{index-wErO3lhN.js → index-gHNvvnIH.js} +2 -2
- package/dist/{item-BZ-coUuR.js → item-DBg87Y2g.js} +945 -944
- package/dist/{menu-DHMpoZLf.js → menu-CcLYdceI.js} +1 -1
- package/dist/{menu-BhmpEsRJ.js → menu-CnPKcWjf.js} +7 -7
- package/dist/{priceTier-DMoWzxYK.js → priceTier-Bofl7Ezb.js} +1 -1
- package/dist/{scheduler-D7gjxSfM.js → scheduler-C7vSQnXy.js} +3 -3
- package/dist/{subcategory-R7C4OaTS.js → subcategory-tMzAqsJC.js} +73 -73
- package/dist/{toExcel-DiGrUwFp.js → toExcel-CwKo0jnF.js} +2 -2
- package/dist/{unit-B_lUkXXv.js → unit-C7iGFlv7.js} +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as H, computed as f, resolveComponent as F, createBlock as U, openBlock as m, withCtx as O, createElementBlock as w, Fragment as T, renderList as ee, createElementVNode as
|
|
2
|
-
import { K as Q, u as te, Q as Te, G as $e, I as g, A as Ye, z as Le, M as ze } from "./menu-
|
|
1
|
+
import { defineComponent as H, computed as f, resolveComponent as F, createBlock as U, openBlock as m, withCtx as O, createElementBlock as w, Fragment as T, renderList as ee, createElementVNode as p, normalizeClass as W, toDisplayString as M, createVNode as i, ref as S, renderSlot as Se, unref as u, createCommentVNode as I, watch as Ee, h as pe, mergeProps as Re, createSlots as Ie, withModifiers as Ue, isRef as de, nextTick as ve } from "vue";
|
|
2
|
+
import { K as Q, u as te, Q as Te, G as $e, I as g, A as Ye, z as Le, M as ze } from "./menu-CnPKcWjf.js";
|
|
3
3
|
import { d as Ke } from "./vuedraggable-CK8z7qA8.js";
|
|
4
|
-
import { _ as je, h as fe, a as Be, b as Qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as je, h as fe, a as Be, b as Qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-Dk5FypdM.js";
|
|
5
5
|
import { useI18n as oe, useCoreStore as qe } from "@feedmepos/mf-common";
|
|
6
6
|
import { useBreakpoints as ye, components as _e, useSnackbar as We, useDialog as He, FmButtonVariant as Je } from "@feedmepos/ui-library";
|
|
7
|
-
import { _ as Xe } from "./app-
|
|
7
|
+
import { _ as Xe } from "./app-My0NMUdz.js";
|
|
8
8
|
import { _ as Ze, a as et } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
9
9
|
import { c as tt } from "./object-DVUNCr7w.js";
|
|
10
10
|
import { u as ot } from "./discardConfirm-BHni0LNu.js";
|
|
11
|
-
import { _ as nt } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { _ as nt } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CHUFMaWx.js";
|
|
12
12
|
import { c as lt } from "./check-C9mY6LiX.js";
|
|
13
13
|
import { _ as at } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
14
|
-
import { M as ge, t as rt, v as ut, A as st, e as it, h as ct, r as mt } from "./item-
|
|
15
|
-
import { u as
|
|
16
|
-
import { C as
|
|
17
|
-
import { c as vt } from "./subcategory-
|
|
14
|
+
import { M as ge, t as rt, v as ut, A as st, e as it, h as ct, r as mt } from "./item-DBg87Y2g.js";
|
|
15
|
+
import { u as pt } from "./search-BAPEUu1R.js";
|
|
16
|
+
import { C as dt } from "./catalog--wILrjkl.js";
|
|
17
|
+
import { c as vt } from "./subcategory-tMzAqsJC.js";
|
|
18
18
|
const ft = /* @__PURE__ */ H({
|
|
19
19
|
__name: "ResponsiveContextMenu",
|
|
20
20
|
props: {
|
|
@@ -23,7 +23,7 @@ const ft = /* @__PURE__ */ H({
|
|
|
23
23
|
setup(L) {
|
|
24
24
|
const R = ye(), r = f(() => R.breakpoints.value.xs);
|
|
25
25
|
return (P, V) => {
|
|
26
|
-
const h = F("FmButton"),
|
|
26
|
+
const h = F("FmButton"), d = F("FmMenuItem"), y = F("FmMenu");
|
|
27
27
|
return r.value ? (m(), U(Ze, { key: 0 }, {
|
|
28
28
|
default: O(() => [
|
|
29
29
|
(m(!0), w(T, null, ee(P.items, ({ icon: k, label: A, disabled: C, itemClass: x, onClick: _ }) => (m(), U(et, {
|
|
@@ -53,7 +53,7 @@ const ft = /* @__PURE__ */ H({
|
|
|
53
53
|
})
|
|
54
54
|
]),
|
|
55
55
|
default: O(() => [
|
|
56
|
-
(m(!0), w(T, null, ee(P.items, ({ icon: k, label: A, disabled: C, itemClass: x, onClick: _ }) => (m(), U(
|
|
56
|
+
(m(!0), w(T, null, ee(P.items, ({ icon: k, label: A, disabled: C, itemClass: x, onClick: _ }) => (m(), U(d, {
|
|
57
57
|
key: A,
|
|
58
58
|
disabled: C,
|
|
59
59
|
onClick: () => {
|
|
@@ -62,7 +62,7 @@ const ft = /* @__PURE__ */ H({
|
|
|
62
62
|
label: A
|
|
63
63
|
}, {
|
|
64
64
|
label: O(() => [
|
|
65
|
-
|
|
65
|
+
p("span", {
|
|
66
66
|
class: W(C ? "text-fm-color-typo-disabled" : x)
|
|
67
67
|
}, M(A), 3)
|
|
68
68
|
]),
|
|
@@ -83,13 +83,13 @@ const ft = /* @__PURE__ */ H({
|
|
|
83
83
|
},
|
|
84
84
|
emits: ["apply:product"],
|
|
85
85
|
setup(L, { emit: R }) {
|
|
86
|
-
const r = L, P = R, { t: V } = oe(), h = r.initialValue.map((x) => ({ _id: x })),
|
|
87
|
-
() => !Q.isEqual(
|
|
86
|
+
const r = L, P = R, { t: V } = oe(), h = r.initialValue.map((x) => ({ _id: x })), d = S(Q.clone(h)), y = ot(
|
|
87
|
+
() => !Q.isEqual(d.value, h),
|
|
88
88
|
() => {
|
|
89
89
|
k.value = !1;
|
|
90
90
|
}
|
|
91
91
|
), k = S(!1), A = (x) => {
|
|
92
|
-
lt.isBoolean(x) ? k.value = x : k.value = !k.value, k.value && (
|
|
92
|
+
lt.isBoolean(x) ? k.value = x : k.value = !k.value, k.value && (d.value = r.initialValue.map((_) => ({ _id: _ })));
|
|
93
93
|
}, C = te();
|
|
94
94
|
return (x, _) => {
|
|
95
95
|
const b = F("fm-button"), ne = F("fm-side-sheet");
|
|
@@ -102,7 +102,7 @@ const ft = /* @__PURE__ */ H({
|
|
|
102
102
|
"is-container": u(_e).FmForm,
|
|
103
103
|
"is-container-props": {
|
|
104
104
|
onValidationSuccess: () => {
|
|
105
|
-
P("apply:product",
|
|
105
|
+
P("apply:product", d.value), A(!1);
|
|
106
106
|
},
|
|
107
107
|
blameFormChildOnValidationFailed: !0
|
|
108
108
|
},
|
|
@@ -110,10 +110,10 @@ const ft = /* @__PURE__ */ H({
|
|
|
110
110
|
"onOn:clickedAway": u(y)
|
|
111
111
|
}, {
|
|
112
112
|
"side-sheet-header": O(() => [
|
|
113
|
-
|
|
113
|
+
p("p", gt, M(x.title), 1)
|
|
114
114
|
]),
|
|
115
115
|
"side-sheet-footer": O(() => [
|
|
116
|
-
|
|
116
|
+
p("div", yt, [
|
|
117
117
|
i(b, {
|
|
118
118
|
label: u(V)("common.save"),
|
|
119
119
|
size: "lg",
|
|
@@ -130,8 +130,8 @@ const ft = /* @__PURE__ */ H({
|
|
|
130
130
|
]),
|
|
131
131
|
default: O(() => [
|
|
132
132
|
i(nt, {
|
|
133
|
-
overrides:
|
|
134
|
-
"onUpdate:overrides": _[0] || (_[0] = (N) =>
|
|
133
|
+
overrides: d.value,
|
|
134
|
+
"onUpdate:overrides": _[0] || (_[0] = (N) => d.value = N),
|
|
135
135
|
"categorized-items": u(C).categorizedItems,
|
|
136
136
|
editable: x.editable,
|
|
137
137
|
"select-variant": !1,
|
|
@@ -155,14 +155,14 @@ const ft = /* @__PURE__ */ H({
|
|
|
155
155
|
},
|
|
156
156
|
setup(L) {
|
|
157
157
|
const R = L, { t: r } = oe(), P = te(), V = f(() => R.group.itemsLinked.map((h) => {
|
|
158
|
-
const
|
|
159
|
-
return (
|
|
158
|
+
const d = P.state.menu.modules.item.find((y) => y._id === h);
|
|
159
|
+
return (d == null ? void 0 : d.name) || h;
|
|
160
160
|
}).filter(Boolean));
|
|
161
|
-
return (h,
|
|
162
|
-
|
|
161
|
+
return (h, d) => (m(), w("div", null, [
|
|
162
|
+
p("div", null, M(u(r)("menu.group.dialogs.delete.message", { name: h.group.name })), 1),
|
|
163
163
|
V.value.length > 0 ? (m(), w("div", bt, [
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
p("div", ht, M(u(r)("menu.group.dialogs.delete.unlink_warning", { count: V.value.length })), 1),
|
|
165
|
+
p("ul", kt, [
|
|
166
166
|
(m(!0), w(T, null, ee(V.value, (y) => (m(), w("li", {
|
|
167
167
|
key: y,
|
|
168
168
|
class: "text-sm"
|
|
@@ -207,10 +207,10 @@ const ft = /* @__PURE__ */ H({
|
|
|
207
207
|
setup(L, {
|
|
208
208
|
emit: R
|
|
209
209
|
}) {
|
|
210
|
-
const r = te(), P = qe(), V = We(), h = Te($e(V)),
|
|
210
|
+
const r = te(), P = qe(), V = We(), h = Te($e(V)), d = He(), y = f(() => r.rules.group), k = f(() => new ge(r, h.updateMenu, d)), A = f(() => k.value.mapGroups(r.groups, !1)), {
|
|
211
211
|
searchKey: C,
|
|
212
212
|
filter: x
|
|
213
|
-
} =
|
|
213
|
+
} = pt(), _ = S(!1), b = S(null), N = S({
|
|
214
214
|
logic: "AND",
|
|
215
215
|
rules: []
|
|
216
216
|
});
|
|
@@ -293,7 +293,7 @@ const ft = /* @__PURE__ */ H({
|
|
|
293
293
|
k.value.sortGroups(t);
|
|
294
294
|
}
|
|
295
295
|
function Ce(t) {
|
|
296
|
-
|
|
296
|
+
d.open({
|
|
297
297
|
title: a("menu.group.actions.duplicate.title"),
|
|
298
298
|
message: a("menu.group.actions.duplicate.message", {
|
|
299
299
|
name: t.name
|
|
@@ -308,7 +308,7 @@ const ft = /* @__PURE__ */ H({
|
|
|
308
308
|
}
|
|
309
309
|
}).onPrimary(() => k.value.duplicateGroup(t));
|
|
310
310
|
}
|
|
311
|
-
const X = f(() => r.currentCatalog), K = f(() => r.currentScheduler), j = f(() => new
|
|
311
|
+
const X = f(() => r.currentCatalog), K = f(() => r.currentScheduler), j = f(() => new dt(X.value, r, h.updateMenu, d)), Z = f(() => new rt(K.value, r, h.updateMenu, d)), Oe = (t) => {
|
|
312
312
|
let e = t;
|
|
313
313
|
function l(n) {
|
|
314
314
|
const D = r.state.menu.modules.group.find((o) => o._id === n._id), v = (n.items ?? []).reduce((o, E) => (o[E._id] = [...o[E._id] || [], E.combinationKey || ""], o), {}), Y = (D.items ?? []).filter((o) => {
|
|
@@ -329,7 +329,7 @@ const ft = /* @__PURE__ */ H({
|
|
|
329
329
|
let n;
|
|
330
330
|
X.value ? K.value ? n = j.value.getCatalogSchedulerGroup(t._id, K.value._id) : n = j.value.getCatalogGroup(t._id) : n = Z.value.getSchedulerGroup(t._id);
|
|
331
331
|
const s = l(n);
|
|
332
|
-
e = new ge(r, h.updateMenu,
|
|
332
|
+
e = new ge(r, h.updateMenu, d).mapGroups([s], !0)[0];
|
|
333
333
|
}
|
|
334
334
|
return {
|
|
335
335
|
group: e,
|
|
@@ -338,7 +338,7 @@ const ft = /* @__PURE__ */ H({
|
|
|
338
338
|
};
|
|
339
339
|
};
|
|
340
340
|
function Ae(t) {
|
|
341
|
-
|
|
341
|
+
d.open({
|
|
342
342
|
title: a("menu.group.dialogs.delete.title"),
|
|
343
343
|
contentComponent: wt,
|
|
344
344
|
contentComponentProps: {
|
|
@@ -358,7 +358,7 @@ const ft = /* @__PURE__ */ H({
|
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
360
|
function ue(t, e) {
|
|
361
|
-
return
|
|
361
|
+
return pe(_t, {
|
|
362
362
|
key: t._id,
|
|
363
363
|
initialValue: t.itemsLinked,
|
|
364
364
|
group: it(t),
|
|
@@ -453,7 +453,7 @@ const ft = /* @__PURE__ */ H({
|
|
|
453
453
|
size: 140,
|
|
454
454
|
cell: (t) => {
|
|
455
455
|
const e = t.row.original;
|
|
456
|
-
return
|
|
456
|
+
return pe(je, {
|
|
457
457
|
// FIXME:FdoCustomAttribute under "@feedmepos/custom-attributes" is not compatible
|
|
458
458
|
// with FdoCustomAttribute from "@feedmepos/core", ! mark should be removed when fixed
|
|
459
459
|
customAttributes: e.customAttributes
|
|
@@ -497,7 +497,7 @@ const ft = /* @__PURE__ */ H({
|
|
|
497
497
|
tagging: ((t = P.groupAttributeSettings) == null ? void 0 : t.value.length) > 0
|
|
498
498
|
};
|
|
499
499
|
}), Fe = async (t) => {
|
|
500
|
-
const e = ct(t), l = e.group, n = mt(l, ae(t)
|
|
500
|
+
const e = ct(t), l = e.group, n = mt(l, ae(t));
|
|
501
501
|
if (c.value)
|
|
502
502
|
X.value ? (K.value ? j.value.overrideCatalogSchedulerGroups([n], K.value._id) : j.value.overrideCatalogGroups([n]), await j.value.update()) : (Z.value.overrideSchedulerGroups([n]), await Z.value.update());
|
|
503
503
|
else {
|
|
@@ -576,14 +576,14 @@ const ft = /* @__PURE__ */ H({
|
|
|
576
576
|
key: 2
|
|
577
577
|
}, [Pe.value ? (m(), w(T, {
|
|
578
578
|
key: 1
|
|
579
|
-
}, [
|
|
579
|
+
}, [p("div", Ft, [i(v, {
|
|
580
580
|
autofocus: "",
|
|
581
581
|
modelValue: u(C),
|
|
582
|
-
"onUpdate:modelValue": e[9] || (e[9] = (o) =>
|
|
582
|
+
"onUpdate:modelValue": e[9] || (e[9] = (o) => de(C) ? C.value = o : null),
|
|
583
583
|
placeholder: u(a)("menu.group.search.placeholder")
|
|
584
|
-
}, null, 8, ["modelValue", "placeholder"])]), e[17] || (e[17] =
|
|
584
|
+
}, null, 8, ["modelValue", "placeholder"])]), e[17] || (e[17] = p("div", {
|
|
585
585
|
class: "bg-fm-color-neutral-gray-100 w-full h-px rounded-md"
|
|
586
|
-
}, null, -1)),
|
|
586
|
+
}, null, -1)), p("div", Mt, [i(me), J.value ? (m(), U(Y, {
|
|
587
587
|
key: 0,
|
|
588
588
|
modelValue: _.value,
|
|
589
589
|
"onUpdate:modelValue": e[14] || (e[14] = (o) => _.value = o)
|
|
@@ -595,16 +595,16 @@ const ft = /* @__PURE__ */ H({
|
|
|
595
595
|
class: "text-fm-color-typo-secondary",
|
|
596
596
|
"right-icon": "keyboard_arrow_down"
|
|
597
597
|
}, null, 8, ["label"])]),
|
|
598
|
-
default: O(() => [
|
|
598
|
+
default: O(() => [p("div", null, [p("div", {
|
|
599
599
|
class: "px-16 py-8",
|
|
600
600
|
onClick: e[10] || (e[10] = (o) => b.value = null)
|
|
601
|
-
}, M(u(a)("menu.group.type.all")), 1),
|
|
601
|
+
}, M(u(a)("menu.group.type.all")), 1), p("div", {
|
|
602
602
|
class: "px-16 py-8",
|
|
603
603
|
onClick: e[11] || (e[11] = (o) => b.value = "NORMAL")
|
|
604
|
-
}, M(u(a)("menu.group.type.normal")), 1),
|
|
604
|
+
}, M(u(a)("menu.group.type.normal")), 1), p("div", {
|
|
605
605
|
class: "px-16 py-8",
|
|
606
606
|
onClick: e[12] || (e[12] = (o) => b.value = "PRODUCT")
|
|
607
|
-
}, M(u(a)("menu.group.type.product")), 1),
|
|
607
|
+
}, M(u(a)("menu.group.type.product")), 1), p("div", {
|
|
608
608
|
class: "px-16 py-8",
|
|
609
609
|
onClick: e[13] || (e[13] = (o) => b.value = "DYNAMIC")
|
|
610
610
|
}, M(u(a)("menu.group.type.dynamic")), 1)])]),
|
|
@@ -628,13 +628,13 @@ const ft = /* @__PURE__ */ H({
|
|
|
628
628
|
}) => [(m(), w("div", {
|
|
629
629
|
key: o._id,
|
|
630
630
|
class: W(["py-12 px-16", "flex space-x-16", "items-center"])
|
|
631
|
-
}, [
|
|
631
|
+
}, [p("div", Pt, [p("div", Vt, [p("p", Nt, M(o.name), 1), p("div", null, [J.value ? (m(), w("p", St, M(u(Q.capitalize)(o.type)) + " type ", 1)) : I("", !0), p("p", Et, M(u(a)("menu.group.list.products_linked", {
|
|
632
632
|
count: o.itemsLinked.length
|
|
633
633
|
})), 1)])]), i(se, {
|
|
634
634
|
group: o
|
|
635
635
|
}, null, 8, ["group"])])]))]),
|
|
636
636
|
_: 1
|
|
637
|
-
}, 8, ["model-value"])], 64)) : (m(), w("div", Ot, [
|
|
637
|
+
}, 8, ["model-value"])], 64)) : (m(), w("div", Ot, [p("div", At, [i(me), J.value ? (m(), U(D, {
|
|
638
638
|
key: 0
|
|
639
639
|
}, {
|
|
640
640
|
"menu-button": O(() => [i(n, {
|
|
@@ -644,7 +644,7 @@ const ft = /* @__PURE__ */ H({
|
|
|
644
644
|
class: "text-fm-color-typo-secondary",
|
|
645
645
|
"right-icon": "keyboard_arrow_down"
|
|
646
646
|
}, null, 8, ["label"])]),
|
|
647
|
-
default: O(() => [
|
|
647
|
+
default: O(() => [p("div", null, [i(s, {
|
|
648
648
|
class: "px-16 py-8",
|
|
649
649
|
label: u(a)("menu.group.type.all"),
|
|
650
650
|
onClick: e[2] || (e[2] = (o) => b.value = null)
|
|
@@ -662,10 +662,10 @@ const ft = /* @__PURE__ */ H({
|
|
|
662
662
|
onClick: e[5] || (e[5] = (o) => b.value = "DYNAMIC")
|
|
663
663
|
}, null, 8, ["label"])])]),
|
|
664
664
|
_: 1
|
|
665
|
-
})) : I("", !0),
|
|
665
|
+
})) : I("", !0), p("div", xt, [i(v, {
|
|
666
666
|
autofocus: "",
|
|
667
667
|
modelValue: u(C),
|
|
668
|
-
"onUpdate:modelValue": e[6] || (e[6] = (o) =>
|
|
668
|
+
"onUpdate:modelValue": e[6] || (e[6] = (o) => de(C) ? C.value = o : null),
|
|
669
669
|
placeholder: u(a)("menu.group.search.placeholder")
|
|
670
670
|
}, null, 8, ["modelValue", "placeholder"])])]), B.value ? (m(), w("div", Dt, [i(u(fe), {
|
|
671
671
|
ref_key: "attributeFilterRef",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as P, useModel as J, computed as V, resolveComponent as m, createBlock as C, openBlock as c, unref as e, ref as I, watch as O, onMounted as j, createElementBlock as S, Fragment as h, renderSlot as H, createVNode as i, withCtx as s, createElementVNode as x, renderList as K, createCommentVNode as w, toDisplayString as F, createTextVNode as Q } from "vue";
|
|
2
2
|
import { useI18n as T } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as R } from "./priceTier-
|
|
3
|
+
import { u as R } from "./priceTier-Bofl7Ezb.js";
|
|
4
4
|
import { useDialog as W, components as X, FmButtonVariant as Y, FmButtonColorThemeVariant as M } from "@feedmepos/ui-library";
|
|
5
|
-
import { L as Z } from "./LinkProductSideSheet-
|
|
5
|
+
import { L as Z } from "./LinkProductSideSheet-NwwdRb-j.js";
|
|
6
6
|
import { c as z } from "./check-C9mY6LiX.js";
|
|
7
|
-
import { u as ee, J as B, ai as le } from "./menu-
|
|
7
|
+
import { u as ee, J as B, ai as le } from "./menu-CnPKcWjf.js";
|
|
8
8
|
import { c as oe } from "./string-DpfFixWH.js";
|
|
9
9
|
const fe = /* @__PURE__ */ P({
|
|
10
10
|
__name: "LinkPriceTier",
|