@feedmepos/mf-menu 0.31.33-beta.7 → 0.31.33-beta.9
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-CZEABsQj.js → App-WQChaTIO.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-D_ak48OL.js → ApplyProduct.vue_vue_type_script_setup_true_lang-t1K3plXk.js} +20 -20
- package/dist/{Catalog-DS7IAwCI.js → Catalog-BX_1g0ru.js} +6 -6
- package/dist/{Category-Bi3vbTgq.js → Category-C6BSLYTZ.js} +19 -19
- package/dist/{Category-DKes4JxR.js → Category-COTd0h8i.js} +14 -14
- package/dist/{CookingGuide-Cl-JvfNC.js → CookingGuide-DTTGVOtZ.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-C01PGALf.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-UQQSF2Fv.js} +1 -1
- package/dist/{Group-CDmNdtn6.js → Group-BKhYr_XK.js} +3 -3
- package/dist/{Group-CPd33rHj.js → Group-tv4NRLFA.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DLhPMn7r.js → Group.vue_vue_type_script_setup_true_lang-Cql0J4TN.js} +38 -36
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DIUX09XZ.js +367 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DZgnCsAY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-azTd9oJY.js} +12597 -12946
- package/dist/{Ingredient-C5iKMG5S.js → Ingredient-EhrV45jG.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CYb8p8df.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DNLOCn6Z.js} +2 -2
- package/dist/LinkProductSideSheet-CLUkYMJx.js +297 -0
- package/dist/{MenuSetting-DeLFW5Q0.js → MenuSetting-DMYnqQqF.js} +4 -4
- package/dist/{PrintRoute-BptA-_Yt.js → PrintRoute-Ct0vYBI0.js} +89 -88
- package/dist/{Product-D5WYsf9P.js → Product-CVOGBfGP.js} +1 -1
- package/dist/Product.vue_vue_type_script_setup_true_lang-3qo4KHwM.js +1578 -0
- package/dist/{ProductInternalTools-_ml77R5u.js → ProductInternalTools-BD4pbpTq.js} +5 -5
- package/dist/Products-DiqJJi0G.js +283 -0
- package/dist/{Publish-BB_8J3PJ.js → Publish-DNW7kAyt.js} +3 -3
- package/dist/{Recipe-Dc7mD-Mu.js → Recipe-DB59Oilo.js} +4 -4
- package/dist/{Scheduler-H2mx0WJm.js → Scheduler-CdvXOmD9.js} +3 -3
- package/dist/{ServingSequence-GYdFh7RK.js → ServingSequence-BJidBanx.js} +3 -3
- package/dist/{Setting-B_-Bv8NR.js → Setting-CT0-ErCV.js} +5 -5
- package/dist/{Subcategory-CHcCMqcS.js → Subcategory-Qss-q16J.js} +4 -4
- package/dist/{Takeaway-BeDox-sK.js → Takeaway-Cco68UWM.js} +1 -1
- package/dist/{Takeaway-BaDz1y8l.js → Takeaway-DJZrAOhK.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CwWyzrey.js → Takeaway.vue_vue_type_script_setup_true_lang-_UIxFm40.js} +5 -5
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DQ8A_b8N.js +431 -0
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C-GQNgOs.js +5990 -0
- package/dist/{Unit-D4uSc8lg.js → Unit-jNMtjCqg.js} +2 -2
- package/dist/{Variant-MVe8LhBc.js → Variant-vgkCtn6k.js} +3 -3
- package/dist/_id_-VWD7FuB8.js +202 -0
- package/dist/{app-BbIBgy7D.js → app-DCfZrw5q.js} +1 -1
- package/dist/{app-B0ogzdm0.js → app-FT-17pdN.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +33 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/catalog.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +3 -1
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +1276 -0
- package/dist/apps/mf-menu/src/types/linkProducts.d.ts +21 -0
- package/dist/apps/mf-menu/src/views/PrintRoute/PrintDepartmentDialog.vue.d.ts +5 -3
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DepVvcGX.js → linked-status-CgdauMC-.js} +8 -8
- package/dist/assets/{override-menu-Cb7cvOj9.js → override-menu-BjjuzKpf.js} +8 -8
- package/dist/assets/{validate-menu-Hc7m9hHC.js → validate-menu-C0NftO2y.js} +8 -8
- package/dist/{catalog-_R7Bi_aW.js → catalog-Cu3xX3Ij.js} +1 -1
- package/dist/{catalogSetting-Bnr55VnE.js → catalogSetting-MeAAWjBX.js} +1 -1
- package/dist/{category-C0kozMAs.js → category-D5yCmLTw.js} +1 -1
- package/dist/{currency-DFA-7C9k.js → currency-DQtVpVAB.js} +1 -1
- package/dist/{dayjs.min-BzOsbxFW.js → dayjs.min-B17nF95f.js} +1 -1
- package/dist/{index-asthzgeW.js → index-1CsXkVcJ.js} +1 -1
- package/dist/{index-y3TkmTDS.js → index-B6mBc4vZ.js} +3 -3
- package/dist/{index-LrL2OIsF.js → index-CAsg0n3_.js} +3 -3
- package/dist/index-D7yR1j9C.js +215 -0
- package/dist/{item-BHFMgTjL.js → item-BXuPBp61.js} +196 -194
- package/dist/{jszip.min-BYCWga7V.js → jszip.min-Dzj1bdkj.js} +245 -245
- package/dist/{menu-UNNs3oeu.js → menu-CpOCeOvo.js} +1201 -1192
- package/dist/{menu-7YBc_V0y.js → menu-CzQXSBCu.js} +1 -1
- package/dist/menuV2-Cw9jPRug.js +707 -0
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-I7O5kuz-.js → priceTier-DmDrpMES.js} +1 -1
- package/dist/{scheduler-c0cSXqeD.js → scheduler-f8MIyGun.js} +16 -17
- package/dist/subcategory-C3sMuoGj.js +148 -0
- package/dist/{toExcel-C8d-m0RH.js → toExcel-BoLqUKHC.js} +2 -2
- package/dist/{unit-B0Bl56gY.js → unit-CAKmah7M.js} +5 -4
- package/package.json +3 -3
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DW1ET8Ys.js +0 -372
- package/dist/LinkProductSideSheet-QUllj_xC.js +0 -112
- package/dist/Product.vue_vue_type_script_setup_true_lang-TwmxZaik.js +0 -1644
- package/dist/Products-BA-G2Yya.js +0 -270
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DzQ8_6Bi.js +0 -71
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dp2eaieu.js +0 -6149
- package/dist/_id_-CoMVzmjC.js +0 -178
- package/dist/apps/mf-menu/src/components/feature/AttributesSelector.vue.d.ts +0 -2
- package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +0 -70
- package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductUnifiedSideSheet.vue.d.ts +0 -12
- package/dist/apps/mf-menu/src/composable/customAttributes.d.ts +0 -88
- package/dist/customAttributes-C1FljtXt.js +0 -33
- package/dist/index-Ce4v8o7D.js +0 -106
- package/dist/subcategory-YHkkwrLj.js +0 -817
- /package/dist/{app-DvG3mOom.js → LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js} +0 -0
- /package/dist/{apps/mf-menu/src/components → packages/shared/src/components/info}/CustomAttributeChip.vue.d.ts +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as S, computed as k, ref as C, resolveComponent as w, createElementBlock as _, openBlock as u, createElementVNode as i, createVNode as g, unref as n, withCtx as K, Fragment as P, renderList as U, toDisplayString as E, createBlock as V } from "vue";
|
|
2
2
|
import { useI18n as L } from "@feedmepos/mf-common";
|
|
3
|
-
import { useSnackbar as M, useBreakpoints as
|
|
4
|
-
import { D as F, u as
|
|
5
|
-
import { _ as J } from "./app-
|
|
6
|
-
import { u as O } from "./menu-
|
|
3
|
+
import { useSnackbar as M, useBreakpoints as $, useDialog as I } from "@feedmepos/ui-library";
|
|
4
|
+
import { D as F, u as Y, X as j, O as D, J as A, G } from "./menu-CpOCeOvo.js";
|
|
5
|
+
import { _ as J } from "./app-FT-17pdN.js";
|
|
6
|
+
import { u as O } from "./menu-CzQXSBCu.js";
|
|
7
7
|
import { _ as R } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
8
|
-
import { u as
|
|
9
|
-
const
|
|
8
|
+
import { u as X } from "./category-D5yCmLTw.js";
|
|
9
|
+
const q = {
|
|
10
10
|
key: 0
|
|
11
|
-
},
|
|
11
|
+
}, H = {
|
|
12
12
|
class: "flex justify-end items-center"
|
|
13
|
-
},
|
|
13
|
+
}, Q = {
|
|
14
14
|
class: "w-[320px]"
|
|
15
|
-
},
|
|
15
|
+
}, W = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "flex-1 flex flex-col min-h-0"
|
|
18
18
|
}, Z = {
|
|
@@ -28,7 +28,7 @@ const H = {
|
|
|
28
28
|
}, ne = /* @__PURE__ */ S({
|
|
29
29
|
__name: "CategoryTable",
|
|
30
30
|
setup(T) {
|
|
31
|
-
const f = M(), y = F(f), h = D(y), p =
|
|
31
|
+
const f = M(), y = F(f), h = D(y), p = Y(), {
|
|
32
32
|
categories: v
|
|
33
33
|
} = O(), b = k(() => {
|
|
34
34
|
var r, t;
|
|
@@ -87,10 +87,10 @@ const H = {
|
|
|
87
87
|
}
|
|
88
88
|
}, "Category");
|
|
89
89
|
}
|
|
90
|
-
const N =
|
|
90
|
+
const N = $(), z = k(() => N.breakpoints.value.xs);
|
|
91
91
|
return (l, o) => {
|
|
92
92
|
const r = w("FmSearch"), t = w("FmTable");
|
|
93
|
-
return z.value ? (u(), _("div",
|
|
93
|
+
return z.value ? (u(), _("div", W, [i("div", Z, [g(r, {
|
|
94
94
|
autofocus: "",
|
|
95
95
|
modelValue: a.value,
|
|
96
96
|
"onUpdate:modelValue": o[1] || (o[1] = (e) => a.value = e),
|
|
@@ -103,7 +103,7 @@ const H = {
|
|
|
103
103
|
class: "flex flex-row py-12 px-16"
|
|
104
104
|
}, [i("div", oe, [i("p", te, E(e.name), 1), i("p", ae, E(n(s)(e.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
|
|
105
105
|
count: e.items.length
|
|
106
|
-
})), 1)])]))), 128))])])) : (u(), _("div",
|
|
106
|
+
})), 1)])]))), 128))])])) : (u(), _("div", q, [i("div", H, [i("div", Q, [g(r, {
|
|
107
107
|
modelValue: a.value,
|
|
108
108
|
"onUpdate:modelValue": o[0] || (o[0] = (e) => a.value = e),
|
|
109
109
|
autofocus: "",
|
|
@@ -130,7 +130,7 @@ const H = {
|
|
|
130
130
|
}), pe = /* @__PURE__ */ S({
|
|
131
131
|
__name: "Category",
|
|
132
132
|
setup(T) {
|
|
133
|
-
const f =
|
|
133
|
+
const f = I(), y = M(), h = F(y), p = D(h), v = X({ dialog: f, menuLoader: p }), { categories: b } = O(), { t: a } = L();
|
|
134
134
|
function d() {
|
|
135
135
|
v.create();
|
|
136
136
|
}
|
|
@@ -2,12 +2,12 @@ import { defineComponent as ae, ref as w, computed as V, resolveComponent as x,
|
|
|
2
2
|
import { useI18n as se } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as ue, useSnackbar as be, useDialog as ye } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ke } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as he } from "./app-
|
|
6
|
-
import { H as ee, I as me, J as re, G as oe, u as xe, O as Ce, D as we } from "./menu-
|
|
5
|
+
import { _ as he } from "./app-FT-17pdN.js";
|
|
6
|
+
import { H as ee, I as me, J as re, G as oe, u as xe, O as Ce, D as we } from "./menu-CpOCeOvo.js";
|
|
7
7
|
import { d as Fe } from "./vuedraggable-CK8z7qA8.js";
|
|
8
8
|
import { _ as Z } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
9
9
|
import { u as pe } from "./discardConfirm-BHni0LNu.js";
|
|
10
|
-
import { L as Ve } from "./LinkProductSideSheet-
|
|
10
|
+
import { L as Ve } from "./LinkProductSideSheet-CLUkYMJx.js";
|
|
11
11
|
import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
12
12
|
import { _ as Ie } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
13
13
|
const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = { class: "space-y-32" }, Ke = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, De = { class: "px-16 py-8 w-[40%]" }, Le = { class: "px-16 py-8 grow" }, Ne = { class: "px-16 py-8 w-[40%]" }, Ge = { class: "px-16 py-8 grow" }, Ue = { class: "space-y-16" }, Te = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Be = { class: "flex gap-8 items-center justify-start" }, Me = /* @__PURE__ */ ae({
|
|
@@ -381,7 +381,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
|
|
|
381
381
|
(r) => r.productId === e && r.combinationKey == o
|
|
382
382
|
);
|
|
383
383
|
}
|
|
384
|
-
function n(e) {
|
|
384
|
+
function n({ items: e }) {
|
|
385
385
|
const o = e.reduce((r, c) => (r[c._id] = r[c._id] ?? [], c.combinationKey && (r[c._id] = [...r[c._id], c.combinationKey]), r), {}), b = Object.entries(o).reduce(
|
|
386
386
|
(r, [c, Q]) => {
|
|
387
387
|
var te;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as S, computed as o, createBlock as v, openBlock as t, unref as c, withCtx as g, renderSlot as B, ref as A, resolveComponent as I, createElementBlock as a, createElementVNode as m, createCommentVNode as b, Fragment as f, renderList as C, toDisplayString as d, withModifiers as F } from "vue";
|
|
2
2
|
import { useI18n as V } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as M } from "./MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js";
|
|
4
|
-
import { u as D } from "./menu-
|
|
4
|
+
import { u as D } from "./menu-CpOCeOvo.js";
|
|
5
5
|
import { useBreakpoints as E } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as y } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
7
7
|
const X = /* @__PURE__ */ S({
|
|
@@ -2,9 +2,9 @@ import { defineComponent as m, ref as p, createBlock as i, openBlock as d, unref
|
|
|
2
2
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as f } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
4
4
|
import { _ as g } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
5
|
-
import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { A as b } from "./item-
|
|
7
|
-
import { a as h } from "./menu-
|
|
5
|
+
import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-Cql0J4TN.js";
|
|
6
|
+
import { A as b } from "./item-BXuPBp61.js";
|
|
7
|
+
import { a as h } from "./menu-CzQXSBCu.js";
|
|
8
8
|
const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "flex items-center" }, k = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, C = { class: "fm-typo-en-body-md-600 font-semibold" }, j = /* @__PURE__ */ m({
|
|
9
9
|
__name: "Group",
|
|
10
10
|
setup(N) {
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { defineComponent as X, computed as g, resolveComponent as M, createBlock as U, openBlock as m, withCtx as x, createElementBlock as C, Fragment as T, renderList as oe, createElementVNode as p, normalizeClass as W, toDisplayString as G, createVNode as s, ref as E, renderSlot as Ne, unref as r, createCommentVNode as I, watch as Re, h as de, mergeProps as Ee, createSlots as Se, withModifiers as Ie, isRef as Q, nextTick as fe } from "vue";
|
|
2
|
-
import { I as H, u as ne, O as Ue, D as Te, G as v, B as $e, A as Ye, J as Le } from "./menu-
|
|
2
|
+
import { I as H, u as ne, O as Ue, D as Te, G as v, B as $e, A as Ye, J as Le } from "./menu-CpOCeOvo.js";
|
|
3
3
|
import { d as ze } from "./vuedraggable-CK8z7qA8.js";
|
|
4
|
-
import { b as ve, H as je } from "./
|
|
5
|
-
import { useI18n as le, useCoreStore as Be } from "@feedmepos/mf-common";
|
|
6
|
-
import { useBreakpoints as ye, components as _e, useSnackbar as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { c as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { M as ge, x as
|
|
16
|
-
import { u as mt } from "./customAttributes-C1FljtXt.js";
|
|
4
|
+
import { b as ve, H as je } from "./LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js";
|
|
5
|
+
import { useI18n as le, useCoreStore as Be, useCustomAttributes as Ke } from "@feedmepos/mf-common";
|
|
6
|
+
import { useBreakpoints as ye, components as _e, useSnackbar as He, useDialog as qe, FmButtonVariant as Je } from "@feedmepos/ui-library";
|
|
7
|
+
import { _ as Qe, a as We } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-UQQSF2Fv.js";
|
|
8
|
+
import { _ as Xe } from "./app-FT-17pdN.js";
|
|
9
|
+
import { _ as Ze, a as et } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
10
|
+
import { c as tt } from "./object-DVUNCr7w.js";
|
|
11
|
+
import { u as ot } from "./discardConfirm-BHni0LNu.js";
|
|
12
|
+
import { _ as nt } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-t1K3plXk.js";
|
|
13
|
+
import { c as lt } from "./check-C9mY6LiX.js";
|
|
14
|
+
import { _ as at } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
15
|
+
import { M as ge, x as rt, y as ut, A as st, e as it, j as ct, r as mt } from "./item-BXuPBp61.js";
|
|
17
16
|
import { u as pt } from "./search-BAPEUu1R.js";
|
|
18
|
-
import { C as dt } from "./catalog-
|
|
19
|
-
import { c as ft } from "./
|
|
17
|
+
import { C as dt } from "./catalog-Cu3xX3Ij.js";
|
|
18
|
+
import { c as ft } from "./menuV2-Cw9jPRug.js";
|
|
20
19
|
const vt = /* @__PURE__ */ X({
|
|
21
20
|
__name: "ResponsiveContextMenu",
|
|
22
21
|
props: {
|
|
@@ -26,9 +25,9 @@ const vt = /* @__PURE__ */ X({
|
|
|
26
25
|
const S = ye(), u = g(() => S.breakpoints.value.xs);
|
|
27
26
|
return (R, V) => {
|
|
28
27
|
const h = M("FmButton"), f = M("FmMenuItem"), y = M("FmMenu");
|
|
29
|
-
return u.value ? (m(), U(
|
|
28
|
+
return u.value ? (m(), U(Ze, { key: 0 }, {
|
|
30
29
|
default: x(() => [
|
|
31
|
-
(m(!0), C(T, null, oe(R.items, ({ icon: k, label: D, disabled: w, itemClass: A, onClick: _ }) => (m(), U(
|
|
30
|
+
(m(!0), C(T, null, oe(R.items, ({ icon: k, label: D, disabled: w, itemClass: A, onClick: _ }) => (m(), U(et, {
|
|
32
31
|
key: D,
|
|
33
32
|
icon: k,
|
|
34
33
|
label: D,
|
|
@@ -85,13 +84,13 @@ const vt = /* @__PURE__ */ X({
|
|
|
85
84
|
},
|
|
86
85
|
emits: ["apply:product"],
|
|
87
86
|
setup(L, { emit: S }) {
|
|
88
|
-
const u = L, R = S, { t: V } = le(), h = u.initialValue.map((A) => ({ _id: A })), f = E(H.clone(h)), y =
|
|
87
|
+
const u = L, R = S, { t: V } = le(), h = u.initialValue.map((A) => ({ _id: A })), f = E(H.clone(h)), y = ot(
|
|
89
88
|
() => !H.isEqual(f.value, h),
|
|
90
89
|
() => {
|
|
91
90
|
k.value = !1;
|
|
92
91
|
}
|
|
93
92
|
), k = E(!1), D = (A) => {
|
|
94
|
-
|
|
93
|
+
lt.isBoolean(A) ? k.value = A : k.value = !k.value, k.value && (f.value = u.initialValue.map((_) => ({ _id: _ })));
|
|
95
94
|
}, w = ne();
|
|
96
95
|
return (A, _) => {
|
|
97
96
|
const b = M("fm-button"), q = M("fm-side-sheet");
|
|
@@ -131,7 +130,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
131
130
|
])
|
|
132
131
|
]),
|
|
133
132
|
default: x(() => [
|
|
134
|
-
s(
|
|
133
|
+
s(nt, {
|
|
135
134
|
overrides: f.value,
|
|
136
135
|
"onUpdate:overrides": _[0] || (_[0] = (N) => f.value = N),
|
|
137
136
|
"categorized-items": r(w).categorizedItems,
|
|
@@ -203,20 +202,23 @@ const vt = /* @__PURE__ */ X({
|
|
|
203
202
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
204
203
|
}, Et = {
|
|
205
204
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
206
|
-
},
|
|
205
|
+
}, eo = /* @__PURE__ */ X({
|
|
207
206
|
__name: "Group",
|
|
208
207
|
emits: ["update:count"],
|
|
209
208
|
setup(L, {
|
|
210
209
|
emit: S
|
|
211
210
|
}) {
|
|
212
|
-
const u = ne(), R = Be(), V =
|
|
211
|
+
const u = ne(), R = Be(), V = He(), h = Ue(Te(V)), f = qe(), y = g(() => u.rules.group), k = g(() => new ge(u, h.updateMenu, f)), D = g(() => k.value.mapGroups(u.groups, !1)), {
|
|
213
212
|
searchKey: w,
|
|
214
213
|
filter: A
|
|
215
214
|
} = pt(), _ = E(!1), b = E(null), {
|
|
216
215
|
attributes: q,
|
|
217
216
|
filterRule: N,
|
|
218
217
|
mongoQuery: ae
|
|
219
|
-
} =
|
|
218
|
+
} = Ke({
|
|
219
|
+
valueSource: D,
|
|
220
|
+
entity: "group"
|
|
221
|
+
}), z = g(() => {
|
|
220
222
|
const t = (a) => A([a.name, ...Object.values(a.items).flatMap((l) => `${l.code} ${l.name} ${Ye.Dinero.fromFdoDinero(l.price).toFormat()}`), a.type]), e = (a) => !a.customAttributes && !ae.value ? !0 : je(a.customAttributes ?? {}, ae.value);
|
|
221
223
|
return D.value.filter((a) => t(a) && e(a)).filter((a) => !b.value || a.type === b.value);
|
|
222
224
|
}), be = S;
|
|
@@ -294,7 +296,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
294
296
|
}
|
|
295
297
|
}).onPrimary(() => k.value.duplicateGroup(t));
|
|
296
298
|
}
|
|
297
|
-
const ee = g(() => u.currentCatalog), j = g(() => u.currentScheduler), B = g(() => new dt(ee.value, u, h.updateMenu, f)), te = g(() => new
|
|
299
|
+
const ee = g(() => u.currentCatalog), j = g(() => u.currentScheduler), B = g(() => new dt(ee.value, u, h.updateMenu, f)), te = g(() => new rt(j.value, u, h.updateMenu, f)), we = (t) => {
|
|
298
300
|
let e = t;
|
|
299
301
|
function a(l) {
|
|
300
302
|
const F = u.state.menu.modules.group.find((o) => o._id === l._id), d = (l.items ?? []).reduce((o, O) => (o[O._id] = [...o[O._id] || [], O.combinationKey || ""], o), {}), Y = (F.items ?? []).filter((o) => {
|
|
@@ -333,7 +335,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
333
335
|
primaryActions: {
|
|
334
336
|
text: n("menu.common.actions.delete"),
|
|
335
337
|
close: !0,
|
|
336
|
-
variant:
|
|
338
|
+
variant: Je.Destructive
|
|
337
339
|
},
|
|
338
340
|
secondaryActions: {
|
|
339
341
|
text: n("menu.common.actions.cancel"),
|
|
@@ -347,7 +349,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
347
349
|
return de(_t, {
|
|
348
350
|
key: t._id,
|
|
349
351
|
initialValue: t.itemsLinked,
|
|
350
|
-
group:
|
|
352
|
+
group: it(t),
|
|
351
353
|
editable: y.value.applyProduct,
|
|
352
354
|
"onApply:product": async (a) => {
|
|
353
355
|
var l;
|
|
@@ -439,7 +441,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
439
441
|
size: 140,
|
|
440
442
|
cell: (t) => {
|
|
441
443
|
const e = t.row.original;
|
|
442
|
-
return de(
|
|
444
|
+
return de(Qe, {
|
|
443
445
|
// FIXME:FdoCustomAttribute under "@feedmepos/custom-attributes" is not compatible
|
|
444
446
|
// with FdoCustomAttribute from "@feedmepos/core", ! mark should be removed when fixed
|
|
445
447
|
customAttributes: e.customAttributes
|
|
@@ -483,7 +485,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
483
485
|
tagging: ((t = R.groupAttributeSettings) == null ? void 0 : t.value.length) > 0
|
|
484
486
|
};
|
|
485
487
|
}), Ae = async (t) => {
|
|
486
|
-
const e =
|
|
488
|
+
const e = ct(t), a = e.group, l = mt(a, re(t));
|
|
487
489
|
if (c.value)
|
|
488
490
|
ee.value ? (j.value ? B.value.overrideCatalogSchedulerGroups([l], j.value._id) : B.value.overrideCatalogGroups([l]), await B.value.update()) : (te.value.overrideSchedulerGroups([l]), await te.value.update());
|
|
489
491
|
else {
|
|
@@ -501,7 +503,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
501
503
|
}
|
|
502
504
|
}, $ = E(null), ce = E(null), me = async (t) => {
|
|
503
505
|
var e;
|
|
504
|
-
$.value =
|
|
506
|
+
$.value = tt(t), await fe(), (e = ce.value) == null || e.trigger(!0);
|
|
505
507
|
};
|
|
506
508
|
function Fe(t) {
|
|
507
509
|
me(t.original);
|
|
@@ -515,7 +517,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
515
517
|
async function Ve() {
|
|
516
518
|
K.value = !K.value, K.value && (await fe(), J.value && J.value.toggleProperty(!0));
|
|
517
519
|
}
|
|
518
|
-
const pe = () => y.value.multiScheduler ? s(
|
|
520
|
+
const pe = () => y.value.multiScheduler ? s(We, null, {
|
|
519
521
|
append: () => Pe.value ? s("div", {
|
|
520
522
|
class: "pl-8 flex items-center justify-center border-l border-fm-color-neutral-gray-200",
|
|
521
523
|
onClick: (t) => {
|
|
@@ -530,7 +532,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
530
532
|
}) : null;
|
|
531
533
|
return (t, e) => {
|
|
532
534
|
const a = M("fm-button"), l = M("fm-chip"), i = M("fm-menu-item"), F = M("fm-menu"), d = M("fm-search"), P = M("fm-table"), Y = M("fm-bottom-sheet");
|
|
533
|
-
return m(), C(T, null, [$.value ? (m(), U(
|
|
535
|
+
return m(), C(T, null, [$.value ? (m(), U(ut, Ee({
|
|
534
536
|
ref_key: "groupManagerFormRef",
|
|
535
537
|
ref: ce,
|
|
536
538
|
key: $.value._id
|
|
@@ -540,14 +542,14 @@ const vt = /* @__PURE__ */ X({
|
|
|
540
542
|
group: $.value,
|
|
541
543
|
"onUpdate:group": e[0] || (e[0] = (o) => $.value = o),
|
|
542
544
|
"onSubmit:group": e[1] || (e[1] = (o) => Ae(o))
|
|
543
|
-
}), null, 16, ["title", "group"])) : I("", !0), D.value.length === 0 ? (m(), C("div", wt, [s(
|
|
545
|
+
}), null, 16, ["title", "group"])) : I("", !0), D.value.length === 0 ? (m(), C("div", wt, [s(at, {
|
|
544
546
|
subtitle: r(n)("menu.group.empty.subtitle"),
|
|
545
547
|
title: r(n)("menu.group.empty.title")
|
|
546
548
|
}, Se({
|
|
547
549
|
_: 2
|
|
548
550
|
}, [y.value.create ? {
|
|
549
551
|
name: "action",
|
|
550
|
-
fn: x(() => [s(r(
|
|
552
|
+
fn: x(() => [s(r(st), null, {
|
|
551
553
|
default: x(({
|
|
552
554
|
trigger: o
|
|
553
555
|
}) => [s(a, {
|
|
@@ -659,7 +661,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
659
661
|
attributes: r(q),
|
|
660
662
|
modelValue: r(N),
|
|
661
663
|
"onUpdate:modelValue": e[7] || (e[7] = (o) => Q(N) ? N.value = o : null)
|
|
662
|
-
}, null, 8, ["attributes", "modelValue"])])) : I("", !0), s(
|
|
664
|
+
}, null, 8, ["attributes", "modelValue"])])) : I("", !0), s(Xe, null, {
|
|
663
665
|
default: x(() => [s(P, {
|
|
664
666
|
"column-defs": xe.value,
|
|
665
667
|
"column-visibility": De.value,
|
|
@@ -680,5 +682,5 @@ const vt = /* @__PURE__ */ X({
|
|
|
680
682
|
}
|
|
681
683
|
});
|
|
682
684
|
export {
|
|
683
|
-
|
|
685
|
+
eo as _
|
|
684
686
|
};
|