@feedmepos/mf-menu 0.19.12 → 0.19.13
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/{ApplyProduct.vue_vue_type_script_setup_true_lang-DetNZI3I.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Bvkr0nD3.js} +2 -2
- package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-CwAUrR4F.js → ApplyProducts.vue_vue_type_script_setup_true_lang-Hx8MMYfJ.js} +2 -2
- package/dist/{Catalog-DIm2_Pve.js → Catalog-C3Cx3sFF.js} +3 -3
- package/dist/{Category-Bj7VMtJ-.js → Category-C_5RCWZ_.js} +6 -6
- package/dist/{CookingGuide-DDV0xBos.js → CookingGuide-BzLjzKZI.js} +3 -3
- package/dist/{Group-DLh05bcU.js → Group-DJm-Mk3u.js} +4 -4
- package/dist/{Group-DZo7HAf2.js → Group-DjTfdOWl.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-ooVmvatG.js → Group.vue_vue_type_script_setup_true_lang-DBk_yau1.js} +127 -127
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B3FXm_t8.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-By61Cx0K.js} +2 -2
- package/dist/{Ingredient-N8t1Zg1B.js → Ingredient-CN3KCmFG.js} +4 -4
- package/dist/{LinkProductSideSheet-DfPSfCPO.js → LinkProductSideSheet-DBx4NpGw.js} +2 -2
- package/dist/{PrintRoute-COjWuW4S.js → PrintRoute-DMUblGYw.js} +3 -3
- package/dist/{Product-CcSZnVtx.js → Product-BVAvSbra.js} +1 -1
- package/dist/Product.vue_vue_type_script_setup_true_lang-D5gHIGvK.js +841 -0
- package/dist/{Products-DC50oMNz.js → Products-CM4pI3iG.js} +8 -8
- package/dist/{Publish-C7wZimbw.js → Publish-MLYmwkhU.js} +2 -2
- package/dist/{Recipe-KeudfKx-.js → Recipe-CtY40lpO.js} +4 -4
- package/dist/{Scheduler-Ci0qqmD0.js → Scheduler-DDL5yw94.js} +2 -2
- package/dist/SchedulerSelector.vue_vue_type_script_setup_true_lang-DkzeDjf4.js +61 -0
- package/dist/ServingSequence-OCghftu3.js +4 -0
- package/dist/{Setting-R8hJKnp6.js → Setting-B9VYv_FV.js} +1 -1
- package/dist/{Setting.vue_vue_type_script_setup_true_lang-C8YEErhA.js → Setting.vue_vue_type_script_setup_true_lang-q4SDPU1B.js} +3 -3
- package/dist/{Takeaway-DfZUEYul.js → Takeaway-BNKH3pYw.js} +4 -4
- package/dist/{Takeaway-D1YJ51Pm.js → Takeaway-CDQjt5mB.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CxrKOffq.js → Takeaway.vue_vue_type_script_setup_true_lang-DLs6tg28.js} +4 -4
- package/dist/{TaxSetting-Cyx64cle.js → TaxSetting-LXV73pLm.js} +4 -4
- package/dist/{Unit-CSw2nzb3.js → Unit-YqlS_aYJ.js} +2 -2
- package/dist/{Variant-BexkJbX8.js → Variant-Cfec4-WR.js} +2 -2
- package/dist/{_id_-DL_--BAT.js → _id_-B3cTaq5i.js} +6 -6
- package/dist/{app-DBSpCrEz.js → app-r8ZKmdn1.js} +28 -28
- package/dist/app.js +2 -2
- package/dist/assets/{linked-status-BbVXICkq.js → linked-status-CWjLtoRl.js} +3 -3
- package/dist/assets/{validate-menu-xvp-KAet.js → validate-menu-3nJfxanr.js} +3 -3
- package/dist/{catalog-DIgmR7H0.js → catalog-CIHro4Q-.js} +432 -432
- package/dist/{catalog-BAExZa6M.js → catalog-Gpaw0veN.js} +1 -1
- package/dist/{category--Ezee0GQ.js → category-C1Nv2k2C.js} +1 -1
- package/dist/{currency-Cab-BTrJ.js → currency-CWaEAteR.js} +1 -1
- package/dist/{index-crmsscjz.js → index-DiPpC8uS.js} +3 -3
- package/dist/{index-Doj4vOci.js → index-q8vb7C-b.js} +2 -2
- package/dist/{item-C3RFNcK2.js → item-DF8-obPB.js} +11 -11
- package/dist/{lodash-Cag9qz8o.js → lodash-DT3SfcPy.js} +1 -1
- package/dist/{menu-Baw4oOOx.js → menu-BtnsqPSW.js} +1 -1
- package/dist/{object-D4QR8YOW.js → object-GEcPWoWM.js} +1 -1
- package/dist/{scheduler-Dmy-SRLI.js → scheduler-Cdw2OBBp.js} +125 -125
- package/dist/{takeaway-BVcxbDAX.js → takeaway-5q1fUkoY.js} +4 -4
- package/dist/{toExcel-CkwPnj8n.js → toExcel-D59bd39T.js} +2 -2
- package/dist/{unit-D7o6p3IX.js → unit-DYZD3TgN.js} +2 -2
- package/package.json +3 -3
- package/dist/Product.vue_vue_type_script_setup_true_lang-BZL3JDpp.js +0 -826
- package/dist/SchedulerSelector.vue_vue_type_script_setup_true_lang-6gxIvwfz.js +0 -49
- package/dist/ServingSequence-DsBZhvaK.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as U, computed as i, h as u, ref as K, resolveComponent as g, openBlock as d, createElementBlock as p, createVNode as v, withCtx as h, createElementVNode as V, createBlock as j, unref as n, createCommentVNode as C, toDisplayString as A, isRef as D, Fragment as G, renderList as H } from "vue";
|
|
2
|
-
import { u as M, n as O, U as $ } from "./app-
|
|
2
|
+
import { u as M, n as O, U as $ } from "./app-r8ZKmdn1.js";
|
|
3
3
|
import { components as I, FmButtonVariant as B, FmButtonColorThemeVariant as b } from "@feedmepos/ui-library";
|
|
4
|
-
import { L as q } from "./LinkProductSideSheet-
|
|
4
|
+
import { L as q } from "./LinkProductSideSheet-DBx4NpGw.js";
|
|
5
5
|
import { _ as J } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
6
6
|
import { useI18n as Q } from "@feedmepos/mf-common";
|
|
7
7
|
const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }, Y = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as T, ref as y, computed as k, resolveComponent as m, openBlock as p, createBlock as w, unref as G, withCtx as f, createElementVNode as s, createVNode as u, toDisplayString as g, createElementBlock as b, Fragment as F, renderList as B } from "vue";
|
|
2
|
-
import { d as V } from "./app-
|
|
2
|
+
import { d as V } from "./app-r8ZKmdn1.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
|
-
import { u as H, l as J } from "./lodash-
|
|
5
|
+
import { u as H, l as J } from "./lodash-DT3SfcPy.js";
|
|
6
6
|
const M = { class: "flex items-center gap-8" }, Q = { class: "flex flex-col h-full" }, R = { class: "flex items-center gap-24 mb-16" }, W = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, X = { class: "flex-1" }, Y = { class: "grow overflow-y-auto py-16 space-y-24" }, Z = { class: "flex items-center" }, ee = { class: "ml-8 fm-card__title grow overflow-hidden text-nowrap text-ellipsis" }, te = { class: "ml-16" }, le = { class: "flex gap-8 items-center justify-start" }, ie = /* @__PURE__ */ T({
|
|
7
7
|
__name: "ApplyProducts",
|
|
8
8
|
props: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as ie, ref as I, computed as $, resolveComponent as g, openBlock as m, createElementBlock as b, Fragment as V, renderSlot as ye, createVNode as i, unref as e, withCtx as p, createElementVNode as f, renderList as w, createBlock as F, createCommentVNode as z, createTextVNode as be, toDisplayString as k, h as J, withModifiers as Q, normalizeClass as ee } from "vue";
|
|
2
2
|
import { useCoreStore as ce, useI18n as me } from "@feedmepos/mf-common";
|
|
3
|
-
import { b as O, u as de, i as pe, a as fe, m as oe, c as xe, g as ke, d as ae, h as ge, x as ne, _ as Ce, k as he, j as Oe, R as se } from "./app-
|
|
4
|
-
import { C as Fe } from "./catalog-
|
|
3
|
+
import { b as O, u as de, i as pe, a as fe, m as oe, c as xe, g as ke, d as ae, h as ge, x as ne, _ as Ce, k as he, j as Oe, R as se } from "./app-r8ZKmdn1.js";
|
|
4
|
+
import { C as Fe } from "./catalog-Gpaw0veN.js";
|
|
5
5
|
import { useRouter as Me } from "vue-router";
|
|
6
6
|
import { useSnackbar as _e, components as le, FmButtonColorThemeVariant as W, FmButtonVariant as G, useDialog as De, useBreakpoints as Ve } from "@feedmepos/ui-library";
|
|
7
|
-
import { C as R, a as L, _ as re } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { C as R, a as L, _ as re } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-By61Cx0K.js";
|
|
8
8
|
import { _ as Se } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
9
9
|
import { _ as te } from "./FormItem.vue_vue_type_script_setup_true_lang-DKsxEK-8.js";
|
|
10
10
|
const Ae = { class: "space-y-32" }, Ne = {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as P, ref as w, computed as B, watch as re, resolveComponent as y, openBlock as h, createElementBlock as T, Fragment as Z, renderSlot as ie, createVNode as d, unref as e, withCtx as v, createElementVNode as o, toDisplayString as L, h as z, withModifiers as A, getCurrentInstance as ce, renderList as ue, createBlock as O, createCommentVNode as de } from "vue";
|
|
2
|
-
import { u as j, a as me } from "./menu-
|
|
3
|
-
import { a as Y, u as pe, b as I, g as fe, h as ee, i as q, j as ge, _ as _e, k as ye, f as ve } from "./app-
|
|
2
|
+
import { u as j, a as me } from "./menu-BtnsqPSW.js";
|
|
3
|
+
import { a as Y, u as pe, b as I, g as fe, h as ee, i as q, j as ge, _ as _e, k as ye, f as ve } from "./app-r8ZKmdn1.js";
|
|
4
4
|
import { useSnackbar as G, components as K, useDialog as te, FmButtonVariant as Q, useBreakpoints as he, FmButtonColorThemeVariant as be } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as ae } from "./category
|
|
5
|
+
import { u as ae } from "./category-C1Nv2k2C.js";
|
|
6
6
|
import { c as xe } from "./createForm-DPAQWnoK.js";
|
|
7
|
-
import { c as W } from "./object-
|
|
8
|
-
import { u as Ce } from "./item-
|
|
7
|
+
import { c as W } from "./object-GEcPWoWM.js";
|
|
8
|
+
import { u as Ce } from "./item-DF8-obPB.js";
|
|
9
9
|
import { _ as X } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
10
|
-
import { u as ke } from "./lodash-
|
|
10
|
+
import { u as ke } from "./lodash-DT3SfcPy.js";
|
|
11
11
|
import { useI18n as H } from "@feedmepos/mf-common";
|
|
12
12
|
function we(p, f = "This field can't be empty.") {
|
|
13
13
|
return p == null || Array.isArray(p) && p.length === 0 || typeof p == "string" && p.trim() === "" ? f : !0;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as le, ref as h, computed as w, resolveComponent as x, openBlock as g, createBlock as P, unref as t, withCtx as c, createElementVNode as a, createVNode as i, toDisplayString as V, createElementBlock as $, Fragment as z, renderList as q, createTextVNode as be, withModifiers as se, createCommentVNode as ce, h as R } from "vue";
|
|
2
|
-
import { d as Z, b as ee, h as ue, u as ye, i as ke, a as he, _ as xe, f as Ce, k as we, j as Ve } from "./app-
|
|
2
|
+
import { d as Z, b as ee, h as ue, u as ye, i as ke, a as he, _ as xe, f as Ce, k as we, j as Ve } from "./app-r8ZKmdn1.js";
|
|
3
3
|
import { components as de, useSnackbar as Fe, useDialog as Se } from "@feedmepos/ui-library";
|
|
4
4
|
import { V as $e } from "./vuedraggable-WU01qJgi.js";
|
|
5
|
-
import { _ as Ie } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as Ie } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-Hx8MMYfJ.js";
|
|
6
6
|
import { useI18n as ie } from "@feedmepos/mf-common";
|
|
7
7
|
import { _ as X } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
8
|
-
import { u as me, l as pe } from "./lodash-
|
|
8
|
+
import { u as me, l as pe } from "./lodash-DT3SfcPy.js";
|
|
9
9
|
const Oe = { class: "flex items-center gap-8" }, De = { class: "grow" }, Ne = { class: "space-y-32" }, Le = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, Ue = { class: "px-16 py-8 w-[40%]" }, Ge = { class: "px-16 py-8 grow" }, Ke = { class: "flex items-center border-b border-b-fm-color-neutral-gray-100" }, Be = { class: "px-16 py-8 w-[40%]" }, Ee = { class: "px-16 py-8 grow" }, Me = { class: "space-y-16" }, ze = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Te = { class: "flex gap-8 items-center justify-start" }, Re = /* @__PURE__ */ le({
|
|
10
10
|
__name: "CookingGuideStepDialog",
|
|
11
11
|
emits: ["onComplete"],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as m, ref as c, openBlock as i, createBlock as d, unref as n, withCtx as a, createVNode as l, createElementVNode as e, toDisplayString as p, createCommentVNode as u } from "vue";
|
|
2
|
-
import { _ as f, f as _ } from "./app-
|
|
3
|
-
import { _ as g } from "./Group.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { a as y } from "./menu-
|
|
5
|
-
import { A as b } from "./item-
|
|
2
|
+
import { _ as f, f as _ } from "./app-r8ZKmdn1.js";
|
|
3
|
+
import { _ as g } from "./Group.vue_vue_type_script_setup_true_lang-DBk_yau1.js";
|
|
4
|
+
import { a as y } from "./menu-BtnsqPSW.js";
|
|
5
|
+
import { A as b } from "./item-DF8-obPB.js";
|
|
6
6
|
import { useI18n as h } from "@feedmepos/mf-common";
|
|
7
7
|
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" }, S = /* @__PURE__ */ m({
|
|
8
8
|
__name: "Group",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as W, ref as S, resolveComponent as C, openBlock as
|
|
2
|
-
import { u as ue, g as Ae, i as Fe, a as Ge, n as
|
|
3
|
-
import { _ as le } from "./SchedulerSelector.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { M as ae, S as Se, _ as Te, A as Ie, e as $e, a as Ye } from "./item-
|
|
1
|
+
import { defineComponent as W, ref as S, resolveComponent as C, openBlock as p, createElementBlock as F, Fragment as T, renderSlot as ke, createVNode as m, unref as o, withCtx as h, createElementVNode as d, toDisplayString as V, computed as g, createBlock as N, renderList as ne, normalizeClass as K, watch as Oe, mergeProps as we, createCommentVNode as E, createSlots as De, withModifiers as Ce, isRef as oe, h as Me, nextTick as xe } from "vue";
|
|
2
|
+
import { u as ue, g as Ae, i as Fe, a as Ge, n as Ve, c as Ne, b as v, m as Pe, k as Re, j as Ue, h as Ee } from "./app-r8ZKmdn1.js";
|
|
3
|
+
import { _ as le } from "./SchedulerSelector.vue_vue_type_script_setup_true_lang-DkzeDjf4.js";
|
|
4
|
+
import { M as ae, S as Se, _ as Te, A as Ie, e as $e, a as Ye } from "./item-DF8-obPB.js";
|
|
5
5
|
import { components as Le, useBreakpoints as re, useSnackbar as ze, useDialog as je, FmButtonVariant as Ke } from "@feedmepos/ui-library";
|
|
6
|
-
import { C as Be } from "./catalog-
|
|
7
|
-
import { l as z, u as qe } from "./lodash-
|
|
8
|
-
import { _ as He } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { C as Be } from "./catalog-Gpaw0veN.js";
|
|
7
|
+
import { l as z, u as qe } from "./lodash-DT3SfcPy.js";
|
|
8
|
+
import { _ as He } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-Bvkr0nD3.js";
|
|
9
9
|
import { useI18n as se } from "@feedmepos/mf-common";
|
|
10
10
|
import { V as Je } from "./vuedraggable-WU01qJgi.js";
|
|
11
11
|
import { _ as Qe, a as We } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DPis3HVx.js";
|
|
12
|
-
import { c as Xe } from "./object-
|
|
12
|
+
import { c as Xe } from "./object-GEcPWoWM.js";
|
|
13
13
|
const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items-center justify-start" }, tt = /* @__PURE__ */ W({
|
|
14
14
|
__name: "ApplyProductDialog",
|
|
15
15
|
props: {
|
|
@@ -20,22 +20,22 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
20
20
|
},
|
|
21
21
|
emits: ["apply:product"],
|
|
22
22
|
setup(B, { emit: I }) {
|
|
23
|
-
const
|
|
23
|
+
const l = B, M = I, { t: G } = se(), k = l.initialValue.map((r) => ({ _id: r })), O = S(z.clone(k)), R = qe(
|
|
24
24
|
() => !z.isEqual(O.value, k),
|
|
25
25
|
() => {
|
|
26
|
-
|
|
26
|
+
f.value = !1;
|
|
27
27
|
}
|
|
28
|
-
),
|
|
29
|
-
Ae.isBoolean(r) ?
|
|
28
|
+
), f = S(!1), w = (r) => {
|
|
29
|
+
Ae.isBoolean(r) ? f.value = r : f.value = !f.value, f.value && (O.value = l.initialValue.map((c) => ({ _id: c })));
|
|
30
30
|
}, x = ue();
|
|
31
|
-
return (r,
|
|
31
|
+
return (r, c) => {
|
|
32
32
|
const j = C("fm-button"), s = C("fm-side-sheet");
|
|
33
|
-
return
|
|
33
|
+
return p(), F(T, null, [
|
|
34
34
|
ke(r.$slots, "default", { trigger: w }),
|
|
35
35
|
m(s, {
|
|
36
36
|
id: "group-form",
|
|
37
|
-
modelValue:
|
|
38
|
-
"onUpdate:modelValue":
|
|
37
|
+
modelValue: f.value,
|
|
38
|
+
"onUpdate:modelValue": c[1] || (c[1] = ($) => f.value = $),
|
|
39
39
|
"is-container": o(Le).FmForm,
|
|
40
40
|
"is-container-props": {
|
|
41
41
|
onValidationSuccess: () => {
|
|
@@ -48,10 +48,10 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
48
48
|
"onOn:clickedAway": o(R)
|
|
49
49
|
}, {
|
|
50
50
|
"side-sheet-header": h(() => [
|
|
51
|
-
|
|
51
|
+
d("p", Ze, V(r.title), 1)
|
|
52
52
|
]),
|
|
53
53
|
"side-sheet-footer": h(() => [
|
|
54
|
-
|
|
54
|
+
d("div", et, [
|
|
55
55
|
m(j, {
|
|
56
56
|
label: o(G)("common.save"),
|
|
57
57
|
size: "lg",
|
|
@@ -69,7 +69,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
69
69
|
default: h(() => [
|
|
70
70
|
m(He, {
|
|
71
71
|
overrides: O.value,
|
|
72
|
-
"onUpdate:overrides":
|
|
72
|
+
"onUpdate:overrides": c[0] || (c[0] = ($) => O.value = $),
|
|
73
73
|
"categorized-items": o(x).categorizedItems,
|
|
74
74
|
editable: r.editable,
|
|
75
75
|
"select-variant": !1,
|
|
@@ -88,24 +88,24 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
88
88
|
items: {}
|
|
89
89
|
},
|
|
90
90
|
setup(B) {
|
|
91
|
-
const I = re(),
|
|
91
|
+
const I = re(), l = g(() => I.breakpoints.value.xs);
|
|
92
92
|
return (M, G) => {
|
|
93
93
|
const k = C("FmButton"), O = C("FmMenuItem"), R = C("FmMenu");
|
|
94
|
-
return
|
|
94
|
+
return l.value ? (p(), N(Qe, { key: 0 }, {
|
|
95
95
|
default: h(() => [
|
|
96
|
-
(
|
|
96
|
+
(p(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: c }) => (p(), N(We, {
|
|
97
97
|
key: w,
|
|
98
|
-
icon:
|
|
98
|
+
icon: f,
|
|
99
99
|
label: w,
|
|
100
100
|
disabled: x,
|
|
101
101
|
itemClass: r,
|
|
102
102
|
onClick: () => {
|
|
103
|
-
!x && (
|
|
103
|
+
!x && (c == null || c());
|
|
104
104
|
}
|
|
105
105
|
}, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
|
|
106
106
|
]),
|
|
107
107
|
_: 1
|
|
108
|
-
})) : (
|
|
108
|
+
})) : (p(), N(R, {
|
|
109
109
|
key: 1,
|
|
110
110
|
"stop-click-propagation": "",
|
|
111
111
|
shift: !0
|
|
@@ -120,18 +120,18 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
120
120
|
})
|
|
121
121
|
]),
|
|
122
122
|
default: h(() => [
|
|
123
|
-
(
|
|
123
|
+
(p(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: c }) => (p(), N(O, {
|
|
124
124
|
key: w,
|
|
125
125
|
disabled: x,
|
|
126
126
|
onClick: () => {
|
|
127
|
-
!x && (
|
|
127
|
+
!x && (c == null || c());
|
|
128
128
|
},
|
|
129
129
|
label: w
|
|
130
130
|
}, {
|
|
131
131
|
label: h(() => [
|
|
132
|
-
|
|
132
|
+
d("span", {
|
|
133
133
|
class: K(x ? "text-fm-color-typo-disabled" : r)
|
|
134
|
-
},
|
|
134
|
+
}, V(w), 3)
|
|
135
135
|
]),
|
|
136
136
|
_: 2
|
|
137
137
|
}, 1032, ["disabled", "onClick", "label"]))), 128))
|
|
@@ -171,56 +171,56 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
171
171
|
setup(B, {
|
|
172
172
|
emit: I
|
|
173
173
|
}) {
|
|
174
|
-
const
|
|
175
|
-
searchKey:
|
|
174
|
+
const l = ue(), M = Fe(Ge(ze())), G = je(), k = g(() => l.rules.group), O = g(() => new ae(l, M.updateMenu, G)), R = g(() => O.value.mapGroups(l.groups, !1)), {
|
|
175
|
+
searchKey: f,
|
|
176
176
|
filter: w
|
|
177
|
-
} =
|
|
178
|
-
Oe(() =>
|
|
179
|
-
j("update:count",
|
|
177
|
+
} = Ve(), x = S(!1), r = S(null), c = g(() => R.value.filter((t) => w([t.name, ...Object.values(t.items).flatMap((e) => `${e.code} ${e.name} ${Ne.Dinero.fromFdoDinero(e.price).toFormat()}`), t.type])).filter((t) => !r.value || t.type === r.value)), j = I;
|
|
178
|
+
Oe(() => c.value.length, () => {
|
|
179
|
+
j("update:count", c.value.length);
|
|
180
180
|
}, {
|
|
181
181
|
immediate: !0
|
|
182
182
|
});
|
|
183
|
-
const s = g(() => !!
|
|
183
|
+
const s = g(() => !!l.state.currentCatalogId || !!l.state.currentSchedulerId);
|
|
184
184
|
function $(t) {
|
|
185
|
-
const e = !
|
|
185
|
+
const e = !l.state.currentSchedulerId, a = l.rules.item.bindToVariant, i = l.rules.group.type, _ = l.version === v.F_MENU_VERSION.enum.v3, D = l.rules.item.orderFromActiveOnly;
|
|
186
186
|
return {
|
|
187
|
-
link: (b) => !s.value && (!b ||
|
|
187
|
+
link: (b) => !s.value && (!b || a),
|
|
188
188
|
name: (b) => !s.value && !b,
|
|
189
189
|
type: i && !t._id && !s.value,
|
|
190
190
|
price: t.type !== v.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
|
|
191
|
-
inventory: e ?
|
|
192
|
-
orderFrom: (b) => e ?
|
|
191
|
+
inventory: e ? _ ? !s.value && t.type === v.F_ADDON_GROUP_TYPE.enum.NORMAL : !s.value : !1,
|
|
192
|
+
orderFrom: (b) => e ? _ ? t.type === v.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? s.value : !!s.value == !b : s.value : !1,
|
|
193
193
|
orderFromActiveOnly: D,
|
|
194
|
-
showOrderFrom: e ?
|
|
195
|
-
bindToVariant:
|
|
194
|
+
showOrderFrom: e ? _ ? s.value ? !0 : t.type === v.F_ADDON_GROUP_TYPE.enum.PRODUCT : s.value : !1,
|
|
195
|
+
bindToVariant: a,
|
|
196
196
|
isOverride: s.value,
|
|
197
197
|
isItemGroup: !1,
|
|
198
|
-
isV4: !
|
|
198
|
+
isV4: !_
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
201
|
const ie = g(() => {
|
|
202
|
-
const t = !
|
|
202
|
+
const t = !l.state.currentSchedulerId, e = l.rules.group.type, a = l.version === v.F_MENU_VERSION.enum.v3, i = l.rules.item.orderFromActiveOnly, _ = l.rules.item.bindToVariant;
|
|
203
203
|
return function(b) {
|
|
204
204
|
return {
|
|
205
|
-
link: (A) => !s.value && (!A ||
|
|
205
|
+
link: (A) => !s.value && (!A || _),
|
|
206
206
|
name: (A) => !s.value && !A,
|
|
207
207
|
type: e && !b._id && !s.value,
|
|
208
208
|
price: b.type !== v.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
|
|
209
|
-
inventory: t ?
|
|
210
|
-
orderFrom: (A) => t ?
|
|
209
|
+
inventory: t ? a ? !s.value && b.type === v.F_ADDON_GROUP_TYPE.enum.NORMAL : !s.value : !1,
|
|
210
|
+
orderFrom: (A) => t ? a ? b.type === v.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? s.value : !!s.value == !A : s.value : !1,
|
|
211
211
|
orderFromActiveOnly: i,
|
|
212
|
-
showOrderFrom: t ?
|
|
213
|
-
bindToVariant:
|
|
212
|
+
showOrderFrom: t ? a ? s.value ? !0 : b.type === v.F_ADDON_GROUP_TYPE.enum.PRODUCT : s.value : !1,
|
|
213
|
+
bindToVariant: _,
|
|
214
214
|
isOverride: s.value,
|
|
215
215
|
isItemGroup: !1,
|
|
216
|
-
isV4: !
|
|
216
|
+
isV4: !a
|
|
217
217
|
};
|
|
218
218
|
};
|
|
219
219
|
}), me = g(() => ({
|
|
220
|
-
...
|
|
221
|
-
type:
|
|
220
|
+
...Pe.generator.initMenuV4Group(),
|
|
221
|
+
type: l.version === v.F_MENU_VERSION.enum.v4 ? v.F_ADDON_GROUP_TYPE.enum.PRODUCT : v.F_ADDON_GROUP_TYPE.enum.NORMAL,
|
|
222
222
|
items: {},
|
|
223
|
-
position:
|
|
223
|
+
position: l.groups.length - 1,
|
|
224
224
|
itemsLinked: []
|
|
225
225
|
})), q = g(() => ie.value(me.value).type);
|
|
226
226
|
function X(t) {
|
|
@@ -242,32 +242,32 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
242
242
|
}
|
|
243
243
|
}).onPrimary(() => O.value.duplicateGroup(t));
|
|
244
244
|
}
|
|
245
|
-
const H = g(() =>
|
|
245
|
+
const H = g(() => l.currentCatalog), Y = g(() => l.currentScheduler), L = g(() => new Be(H.value, l, M.updateMenu, G)), J = g(() => new Se(Y.value, l, M.updateMenu, G)), de = (t) => {
|
|
246
246
|
let e = t;
|
|
247
247
|
if (s.value) {
|
|
248
248
|
let i = function(D) {
|
|
249
|
-
const A =
|
|
250
|
-
var
|
|
251
|
-
return !((
|
|
249
|
+
const A = l.state.menu.modules.group.find((y) => y._id === D._id), Q = (D.items ?? []).reduce((y, P) => (y[P._id] = [...y[P._id] || [], P.combinationKey || ""], y), {}), he = (A.items ?? []).filter((y) => {
|
|
250
|
+
var P;
|
|
251
|
+
return !((P = Q[y._id]) != null && P.includes(y.combinationKey || ""));
|
|
252
252
|
}).map((y) => ({
|
|
253
253
|
_id: y._id,
|
|
254
254
|
combinationKey: y.combinationKey,
|
|
255
255
|
selection: y.selection
|
|
256
|
-
})).filter((y) => !!
|
|
256
|
+
})).filter((y) => !!l.mergedMenu.modules.item.find((P) => P._id === y._id));
|
|
257
257
|
return {
|
|
258
258
|
...A,
|
|
259
259
|
...Object.fromEntries(Object.entries(D).filter(([, y]) => !!y)),
|
|
260
260
|
items: [...D.items ?? [], ...he]
|
|
261
261
|
};
|
|
262
|
-
},
|
|
263
|
-
H.value ? Y.value ?
|
|
264
|
-
const
|
|
265
|
-
e = new ae(
|
|
262
|
+
}, a;
|
|
263
|
+
H.value ? Y.value ? a = L.value.getCatalogSchedulerGroup(t._id, Y.value._id) : a = L.value.getCatalogGroup(t._id) : a = J.value.getSchedulerGroup(t._id);
|
|
264
|
+
const _ = i(a);
|
|
265
|
+
e = new ae(l, M.updateMenu, G).mapGroups([_], !0)[0];
|
|
266
266
|
}
|
|
267
267
|
return {
|
|
268
268
|
group: e,
|
|
269
269
|
config: $,
|
|
270
|
-
categorizedItems:
|
|
270
|
+
categorizedItems: l.categorizedItems
|
|
271
271
|
};
|
|
272
272
|
};
|
|
273
273
|
function pe(t) {
|
|
@@ -294,12 +294,12 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
294
294
|
initialValue: e.itemsLinked,
|
|
295
295
|
group: $e(e),
|
|
296
296
|
editable: k.value.applyProduct,
|
|
297
|
-
"onApply:product": async (
|
|
298
|
-
await O.value.applyItems(e,
|
|
297
|
+
"onApply:product": async (a) => {
|
|
298
|
+
await O.value.applyItems(e, a.map((i) => i._id));
|
|
299
299
|
}
|
|
300
300
|
}, {
|
|
301
301
|
default: ({
|
|
302
|
-
trigger:
|
|
302
|
+
trigger: a
|
|
303
303
|
}) => {
|
|
304
304
|
const i = [{
|
|
305
305
|
label: n("menu.common.actions.edit"),
|
|
@@ -307,7 +307,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
307
307
|
}, {
|
|
308
308
|
label: n("menu.group.actions.apply_product"),
|
|
309
309
|
disable: !k.value.applyProduct,
|
|
310
|
-
onClick:
|
|
310
|
+
onClick: a
|
|
311
311
|
}, {
|
|
312
312
|
label: n("menu.group.actions.duplicate_action"),
|
|
313
313
|
disabled: !k.value.create,
|
|
@@ -333,16 +333,16 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
333
333
|
header: () => n("menu.group.list.columns.products"),
|
|
334
334
|
enableSorting: !1,
|
|
335
335
|
cell: (t) => {
|
|
336
|
-
const e = t.getValue(),
|
|
336
|
+
const e = t.getValue(), a = Object.values(e).map((i) => {
|
|
337
337
|
var D;
|
|
338
|
-
const
|
|
339
|
-
return (i.items || []).length > 1 ? `${
|
|
338
|
+
const _ = [(i == null ? void 0 : i.code) || "", i.name ?? i.fallbackName].join(" ").trim();
|
|
339
|
+
return (i.items || []).length > 1 ? `${_} (${n("menu.group.list.variants", {
|
|
340
340
|
count: (D = i.items) == null ? void 0 : D.length
|
|
341
|
-
})})` :
|
|
341
|
+
})})` : _;
|
|
342
342
|
});
|
|
343
|
-
return
|
|
344
|
-
count:
|
|
345
|
-
})}` :
|
|
343
|
+
return a.length > 5 ? `${a.slice(0, 5).join(", ")} ${n("menu.group.list.more_items", {
|
|
344
|
+
count: a.length - 5
|
|
345
|
+
})}` : a.join(", ");
|
|
346
346
|
}
|
|
347
347
|
}, {
|
|
348
348
|
accessorKey: "type",
|
|
@@ -386,21 +386,21 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
386
386
|
itemsLinked: k.value.showAppliedProduct,
|
|
387
387
|
type: k.value.type
|
|
388
388
|
})), _e = async (t) => {
|
|
389
|
-
const e = Ye(t),
|
|
389
|
+
const e = Ye(t), a = e.group;
|
|
390
390
|
if (s.value)
|
|
391
|
-
H.value ? (Y.value ? L.value.overrideCatalogSchedulerGroups([
|
|
391
|
+
H.value ? (Y.value ? L.value.overrideCatalogSchedulerGroups([a], Y.value._id) : L.value.overrideCatalogGroups([a]), await L.value.update()) : (J.value.overrideSchedulerGroups([a]), await J.value.update());
|
|
392
392
|
else {
|
|
393
393
|
const i = {
|
|
394
394
|
module: v.F_MENU_MODULE_V4_KEY.enum.group,
|
|
395
395
|
operation: Ee.F_OPERATION_TYPE.update,
|
|
396
|
-
data:
|
|
396
|
+
data: a,
|
|
397
397
|
link: [{
|
|
398
398
|
module: v.F_MENU_MODULE_V4_KEY.enum.item,
|
|
399
399
|
id: "",
|
|
400
400
|
data: e.linkItems
|
|
401
401
|
}]
|
|
402
402
|
};
|
|
403
|
-
await M.updateMenu(i,
|
|
403
|
+
await M.updateMenu(i, a.name);
|
|
404
404
|
}
|
|
405
405
|
}, U = S(null), ee = S(null), te = async (t) => {
|
|
406
406
|
var e;
|
|
@@ -413,8 +413,8 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
413
413
|
t: n
|
|
414
414
|
} = se();
|
|
415
415
|
return (t, e) => {
|
|
416
|
-
const
|
|
417
|
-
return
|
|
416
|
+
const a = C("fm-button"), i = C("fm-chip"), _ = C("fm-menu-item"), D = C("fm-menu"), b = C("fm-search"), A = C("fm-table"), Q = C("fm-bottom-sheet");
|
|
417
|
+
return p(), F(T, null, [U.value ? (p(), N(Te, we({
|
|
418
418
|
ref_key: "groupManagerFormRef",
|
|
419
419
|
ref: ee,
|
|
420
420
|
key: U.value._id
|
|
@@ -422,9 +422,9 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
422
422
|
action: "update",
|
|
423
423
|
title: o(n)("menu.group.dialogs.update.title"),
|
|
424
424
|
group: U.value,
|
|
425
|
-
"onUpdate:group": e[0] || (e[0] = (
|
|
426
|
-
"onSubmit:group": e[1] || (e[1] = (
|
|
427
|
-
}), null, 16, ["title", "group"])) : E("", !0), R.value.length === 0 ? (
|
|
425
|
+
"onUpdate:group": e[0] || (e[0] = (u) => U.value = u),
|
|
426
|
+
"onSubmit:group": e[1] || (e[1] = (u) => _e(u))
|
|
427
|
+
}), null, 16, ["title", "group"])) : E("", !0), R.value.length === 0 ? (p(), F("div", ot, [m(Re, {
|
|
428
428
|
subtitle: o(n)("menu.group.empty.subtitle"),
|
|
429
429
|
title: o(n)("menu.group.empty.title")
|
|
430
430
|
}, De({
|
|
@@ -433,32 +433,32 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
433
433
|
name: "action",
|
|
434
434
|
fn: h(() => [m(o(Ie), null, {
|
|
435
435
|
default: h(({
|
|
436
|
-
trigger:
|
|
437
|
-
}) => [m(
|
|
436
|
+
trigger: u
|
|
437
|
+
}) => [m(a, {
|
|
438
438
|
"prepend-icon": "add",
|
|
439
439
|
label: o(n)("menu.group.actions.add"),
|
|
440
|
-
onClick: Ce(
|
|
440
|
+
onClick: Ce(u, ["stop"])
|
|
441
441
|
}, null, 8, ["label", "onClick"])]),
|
|
442
442
|
_: 1
|
|
443
443
|
})]),
|
|
444
444
|
key: "0"
|
|
445
|
-
} : void 0]), 1032, ["subtitle", "title"])])) : (
|
|
445
|
+
} : void 0]), 1032, ["subtitle", "title"])])) : (p(), F(T, {
|
|
446
446
|
key: 2
|
|
447
|
-
}, [be.value ? (
|
|
447
|
+
}, [be.value ? (p(), F(T, {
|
|
448
448
|
key: 1
|
|
449
|
-
}, [
|
|
449
|
+
}, [d("div", rt, [m(b, {
|
|
450
450
|
autofocus: "",
|
|
451
|
-
modelValue: o(
|
|
452
|
-
"onUpdate:modelValue": e[8] || (e[8] = (
|
|
451
|
+
modelValue: o(f),
|
|
452
|
+
"onUpdate:modelValue": e[8] || (e[8] = (u) => oe(f) ? f.value = u : null),
|
|
453
453
|
placeholder: o(n)("menu.group.search.placeholder")
|
|
454
|
-
}, null, 8, ["modelValue", "placeholder"])]), e[15] || (e[15] =
|
|
454
|
+
}, null, 8, ["modelValue", "placeholder"])]), e[15] || (e[15] = d("div", {
|
|
455
455
|
class: "bg-fm-color-neutral-gray-100 w-full h-px rounded-md"
|
|
456
|
-
}, null, -1)),
|
|
456
|
+
}, null, -1)), d("div", st, [k.value.multiScheduler ? (p(), N(le, {
|
|
457
457
|
key: 0
|
|
458
|
-
})) : E("", !0), q.value ? (
|
|
458
|
+
})) : E("", !0), q.value ? (p(), N(Q, {
|
|
459
459
|
key: 1,
|
|
460
460
|
modelValue: x.value,
|
|
461
|
-
"onUpdate:modelValue": e[13] || (e[13] = (
|
|
461
|
+
"onUpdate:modelValue": e[13] || (e[13] = (u) => x.value = u)
|
|
462
462
|
}, {
|
|
463
463
|
"bottom-sheet-button": h(() => [m(i, {
|
|
464
464
|
label: o(n)("menu.group.type.title", {
|
|
@@ -467,42 +467,42 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
467
467
|
class: "text-fm-color-typo-secondary",
|
|
468
468
|
"right-icon": "keyboard_arrow_down"
|
|
469
469
|
}, null, 8, ["label"])]),
|
|
470
|
-
default: h(() => [
|
|
470
|
+
default: h(() => [d("div", null, [d("div", {
|
|
471
471
|
class: "px-16 py-8",
|
|
472
|
-
onClick: e[9] || (e[9] = (
|
|
473
|
-
},
|
|
472
|
+
onClick: e[9] || (e[9] = (u) => r.value = null)
|
|
473
|
+
}, V(o(n)("menu.group.type.all")), 1), d("div", {
|
|
474
474
|
class: "px-16 py-8",
|
|
475
|
-
onClick: e[10] || (e[10] = (
|
|
476
|
-
},
|
|
475
|
+
onClick: e[10] || (e[10] = (u) => r.value = "NORMAL")
|
|
476
|
+
}, V(o(n)("menu.group.type.normal")), 1), d("div", {
|
|
477
477
|
class: "px-16 py-8",
|
|
478
|
-
onClick: e[11] || (e[11] = (
|
|
479
|
-
},
|
|
478
|
+
onClick: e[11] || (e[11] = (u) => r.value = "PRODUCT")
|
|
479
|
+
}, V(o(n)("menu.group.type.product")), 1), d("div", {
|
|
480
480
|
class: "px-16 py-8",
|
|
481
|
-
onClick: e[12] || (e[12] = (
|
|
482
|
-
},
|
|
481
|
+
onClick: e[12] || (e[12] = (u) => r.value = "DYNAMIC")
|
|
482
|
+
}, V(o(n)("menu.group.type.dynamic")), 1)])]),
|
|
483
483
|
_: 1
|
|
484
484
|
}, 8, ["modelValue"])) : E("", !0)]), m(o(Je), {
|
|
485
485
|
class: K(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"]),
|
|
486
|
-
"model-value":
|
|
486
|
+
"model-value": c.value,
|
|
487
487
|
group: "categories",
|
|
488
488
|
handle: ".handle",
|
|
489
489
|
"item-key": "_id",
|
|
490
|
-
"onUpdate:modelValue": e[14] || (e[14] = (
|
|
490
|
+
"onUpdate:modelValue": e[14] || (e[14] = (u) => X(u))
|
|
491
491
|
}, {
|
|
492
492
|
item: h(({
|
|
493
|
-
element:
|
|
494
|
-
}) => [(
|
|
495
|
-
key:
|
|
493
|
+
element: u
|
|
494
|
+
}) => [(p(), F("div", {
|
|
495
|
+
key: u._id,
|
|
496
496
|
class: K(["py-12 px-16", "flex space-x-16", "items-center"])
|
|
497
|
-
}, [
|
|
498
|
-
count:
|
|
497
|
+
}, [d("div", it, [d("div", mt, [d("p", ct, V(u.name), 1), d("div", null, [q.value ? (p(), F("p", dt, V(o(z.capitalize)(u.type)) + " type ", 1)) : E("", !0), d("p", pt, V(o(n)("menu.group.list.products_linked", {
|
|
498
|
+
count: u.itemsLinked.length
|
|
499
499
|
})), 1)])]), m(Z, {
|
|
500
|
-
group:
|
|
500
|
+
group: u
|
|
501
501
|
}, null, 8, ["group"])])]))]),
|
|
502
502
|
_: 1
|
|
503
|
-
}, 8, ["model-value"])], 64)) : (
|
|
503
|
+
}, 8, ["model-value"])], 64)) : (p(), F("div", lt, [d("div", at, [k.value.multiScheduler ? (p(), N(le, {
|
|
504
504
|
key: 0
|
|
505
|
-
})) : E("", !0), q.value ? (
|
|
505
|
+
})) : E("", !0), q.value ? (p(), N(D, {
|
|
506
506
|
key: 1
|
|
507
507
|
}, {
|
|
508
508
|
"menu-button": h(() => [m(i, {
|
|
@@ -512,43 +512,43 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
|
|
|
512
512
|
class: "text-fm-color-typo-secondary",
|
|
513
513
|
"right-icon": "keyboard_arrow_down"
|
|
514
514
|
}, null, 8, ["label"])]),
|
|
515
|
-
default: h(() => [
|
|
515
|
+
default: h(() => [d("div", null, [m(_, {
|
|
516
516
|
class: "px-16 py-8",
|
|
517
517
|
label: o(n)("menu.group.type.all"),
|
|
518
|
-
onClick: e[2] || (e[2] = (
|
|
519
|
-
}, null, 8, ["label"]), m(
|
|
518
|
+
onClick: e[2] || (e[2] = (u) => r.value = null)
|
|
519
|
+
}, null, 8, ["label"]), m(_, {
|
|
520
520
|
class: "px-16 py-8",
|
|
521
521
|
label: o(n)("menu.group.type.normal"),
|
|
522
|
-
onClick: e[3] || (e[3] = (
|
|
523
|
-
}, null, 8, ["label"]), m(
|
|
522
|
+
onClick: e[3] || (e[3] = (u) => r.value = "NORMAL")
|
|
523
|
+
}, null, 8, ["label"]), m(_, {
|
|
524
524
|
class: "px-16 py-8",
|
|
525
525
|
label: o(n)("menu.group.type.product"),
|
|
526
|
-
onClick: e[4] || (e[4] = (
|
|
527
|
-
}, null, 8, ["label"]), m(
|
|
526
|
+
onClick: e[4] || (e[4] = (u) => r.value = "PRODUCT")
|
|
527
|
+
}, null, 8, ["label"]), m(_, {
|
|
528
528
|
class: "px-16 py-8",
|
|
529
529
|
label: o(n)("menu.group.type.dynamic"),
|
|
530
|
-
onClick: e[5] || (e[5] = (
|
|
530
|
+
onClick: e[5] || (e[5] = (u) => r.value = "DYNAMIC")
|
|
531
531
|
}, null, 8, ["label"])])]),
|
|
532
532
|
_: 1
|
|
533
|
-
})) : E("", !0),
|
|
533
|
+
})) : E("", !0), d("div", ut, [m(b, {
|
|
534
534
|
autofocus: "",
|
|
535
|
-
modelValue: o(
|
|
536
|
-
"onUpdate:modelValue": e[6] || (e[6] = (
|
|
535
|
+
modelValue: o(f),
|
|
536
|
+
"onUpdate:modelValue": e[6] || (e[6] = (u) => oe(f) ? f.value = u : null),
|
|
537
537
|
placeholder: o(n)("menu.group.search.placeholder")
|
|
538
538
|
}, null, 8, ["modelValue", "placeholder"])])]), m(Ue, null, {
|
|
539
539
|
default: h(() => [m(A, {
|
|
540
540
|
"column-defs": ve.value,
|
|
541
541
|
"column-visibility": fe.value,
|
|
542
542
|
loading: o(M).checkMenuIsLoading(),
|
|
543
|
-
"page-size":
|
|
544
|
-
"row-data":
|
|
543
|
+
"page-size": c.value.length,
|
|
544
|
+
"row-data": c.value,
|
|
545
545
|
"shrink-at": !1,
|
|
546
546
|
class: "flex-1 overflow-hidden",
|
|
547
547
|
draggable: "",
|
|
548
548
|
"hide-footer": "",
|
|
549
549
|
"pin-header-row": "",
|
|
550
550
|
onRowClick: ye,
|
|
551
|
-
onDndChanged: e[7] || (e[7] = (
|
|
551
|
+
onDndChanged: e[7] || (e[7] = (u) => X(u))
|
|
552
552
|
}, null, 8, ["column-defs", "column-visibility", "loading", "page-size", "row-data"])]),
|
|
553
553
|
_: 1
|
|
554
554
|
})]))], 64))], 64);
|