@feedmepos/mf-menu 0.32.62 → 0.32.63-dev.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-CE4fZP2_.js → App-DhfTGlgM.js} +467 -462
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-PpYjjdOP.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-C_JKiJRD.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js} +8 -8
- package/dist/{Catalog-C2MyXkps.js → Catalog-WuZJfM6l.js} +78 -78
- package/dist/{Category-B7Uxbyug.js → Category-BeIo7XWY.js} +20 -20
- package/dist/{Category-BoV0MYQp.js → Category-D-cQQCPS.js} +19 -19
- package/dist/{CookingGuide-Bdyj8XMv.js → CookingGuide-B-yvD9ZA.js} +88 -88
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-EDbgLHTU.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js} +1 -1
- package/dist/{Group-BuFbi0Z-.js → Group-13i5igrS.js} +5 -5
- package/dist/{Group-DYpxc5ui.js → Group-CY8lUzQG.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-B5Uw2Rzm.js → Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js} +95 -94
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-COYg8e7h.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js} +13 -13
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-YY25YW4B.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js} +219 -220
- package/dist/{Ingredient-Ddw06I0B.js → Ingredient-vrUOW6gk.js} +49 -49
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CsWdL5Lz.js → InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js} +2 -2
- package/dist/{LinkProductSideSheet-COAMZqOM.js → LinkProductSideSheet-DMbJG6wf.js} +8 -8
- package/dist/{MenuSetting--G1_lGoV.js → MenuSetting-Di2xwm00.js} +10 -10
- package/dist/{OrderPacing-DnvLJh5M.js → OrderPacing-CCe-IcGO.js} +28 -28
- package/dist/{PrintRoute-CP-3JGP3.js → PrintRoute-CcfObcHY.js} +27 -27
- package/dist/{Product-D-q15-Qw.js → Product-ChUVnMgG.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BaOg60Q6.js → Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js} +153 -152
- package/dist/{ProductInternalTools-wYn0bzml.js → ProductInternalTools-D9HXhgo5.js} +80 -79
- package/dist/{Products-CxEsB-7l.js → Products-Bly2ktEC.js} +75 -74
- package/dist/{Publish-BCljLztW.js → Publish-C8ubb8Qf.js} +113 -113
- package/dist/{Recipe-DgfobgnQ.js → Recipe-BpMRLsyO.js} +32 -32
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BgDVFKRI.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DCbrAMxd.js → RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js} +474 -473
- package/dist/{Scheduler-C-LJs7Gl.js → Scheduler-CiB4b2Fn.js} +9 -9
- package/dist/{ServingSequence-BoaDRfsc.js → ServingSequence-BlcyW-dv.js} +18 -18
- package/dist/{Setting-BfFqBD9u.js → Setting-DqkL6YYU.js} +31 -31
- package/dist/{Subcategory-BsnC9ZSS.js → Subcategory-B4Jg_wtT.js} +43 -43
- package/dist/{Takeaway-PilRifJP.js → Takeaway-5G3f7jWT.js} +1 -1
- package/dist/{Takeaway-dSEAc70g.js → Takeaway-5rFPYYNA.js} +16 -16
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CgioM0sV.js → Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js} +23 -23
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CHf3g1ia.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-A43XxqyC.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js} +8 -9
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js +5836 -0
- package/dist/{Unit-DW1dFJas.js → Unit-CAkdmQLg.js} +2 -2
- package/dist/{Variant-CzLzrt2N.js → Variant-BbLQqbAK.js} +13 -13
- package/dist/{_id_-qfASfKMD.js → _id_-Dzacr40I.js} +13 -13
- package/dist/{app-BB33yKM6.js → app-4yWs09Fr.js} +495 -495
- package/dist/{app-CJnEQz-U.js → app-Deov1985.js} +3 -3
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/media.d.ts +161 -0
- package/dist/apps/mf-menu/src/app.d.ts +340 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +150 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/CustomDimensionDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadDialog.vue.d.ts +16 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ManageImageDrawer.vue.d.ts +42 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ProductImageField.vue.d.ts +75 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/RegenerateImageDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +3 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
- package/dist/apps/mf-menu/src/composable/remyImageTarget.d.ts +5 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +14 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
- package/dist/apps/mf-menu/src/types/rule.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +3 -2
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +8 -8
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-VaVE9Pyh.js → linked-status-B2WLhKkV.js} +3 -3
- package/dist/assets/{menu-export-DD9Zt6XH.js → menu-export-Dcw5a_dN.js} +3 -3
- package/dist/assets/{override-menu-DZCgrhuF.js → override-menu-cBe2aMY6.js} +3 -3
- package/dist/assets/{validate-menu-BFsQlikL.js → validate-menu-BM-5GK85.js} +2 -2
- package/dist/{catalog-Cvn1ZMGp.js → catalog-DKygS2Cs.js} +6 -6
- package/dist/{catalogSetting-D2bOCGW7.js → catalogSetting-Bn2TplvM.js} +1 -1
- package/dist/currency-DXgNHtK8.js +7 -0
- package/dist/dayjs.min-DpX65tgj.js +7 -0
- package/dist/discardConfirm-DZwzKO-Q.js +3704 -0
- package/dist/{index-B2fxLO4K.js → index-B48KLyqg.js} +61 -61
- package/dist/{index-CizrxT_e.js → index-BEocaqRK.js} +30 -30
- package/dist/index-K-MBqJJo.js +222 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-gaRM4vfS.js → index.vue_vue_type_script_setup_true_lang-Nl505vPi.js} +44918 -51563
- package/dist/item-Da3ArD-G.js +13213 -0
- package/dist/{jszip.min-BXLegUsz.js → jszip.min-Cc2eR4Cq.js} +119 -119
- package/dist/linkProducts-GNuUxFEE.js +331 -0
- package/dist/{memberPricing-CizI1rUM.js → memberPricing-T-jr7tn1.js} +1 -1
- package/dist/{menu-BCed1YCE.js → menu-DSDRAil-.js} +1 -1
- package/dist/{menuV2-Bo9AHrdr.js → menuV2-fTlJdjxi.js} +162 -160
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-BkfQeNeC.js → order_pacing-Dgo1fySS.js} +17 -17
- package/dist/packages/shared/src/helpers/agentCode.d.ts +9 -0
- package/dist/{priceTier-rjuK-b6U.js → priceTier-aT_gIfrN.js} +3 -3
- package/dist/{rules-DHX_hK6G.js → rules-Cx2hkV20.js} +8 -8
- package/dist/{scheduler-BsfPbtM2.js → scheduler-Bd-q7yF8.js} +62 -62
- package/dist/{toExcel-DJHljg_L.js → toExcel-qfjR83qT.js} +2 -2
- package/dist/{unit-BxTWR1dZ.js → unit-n1T9grbM.js} +64 -64
- package/package.json +3 -3
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DGqao47l.js +0 -399
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DY1umres.js +0 -6058
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/thumbnailUpload.d.ts +0 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadForm.vue.d.ts +0 -38
- package/dist/currency-DQDsuXB5.js +0 -7
- package/dist/dayjs.min-CzUkrXIR.js +0 -7
- package/dist/discardConfirm-BHni0LNu.js +0 -28
- package/dist/index-CisutoS9.js +0 -156
- package/dist/item-DOHVD6CN.js +0 -9098
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as K, computed as i, h as u, ref as U, resolveComponent as b, createElementBlock as p, openBlock as d, createVNode as f, withCtx as g, createElementVNode as V, createCommentVNode as C, toDisplayString as j, unref as n, isRef as A, createBlock as D, Fragment as G, renderList as H } from "vue";
|
|
2
2
|
import { useI18n as M } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as B, FmButtonColorThemeVariant as h, FmButtonVariant as I } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as O } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { L as $ } from "./LinkProductSideSheet-
|
|
4
|
+
import { _ as O } from "./RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js";
|
|
5
|
+
import { L as $ } from "./LinkProductSideSheet-DMbJG6wf.js";
|
|
6
6
|
import { u as q } from "./search-BAPEUu1R.js";
|
|
7
|
-
import { u as J,
|
|
7
|
+
import { u as J, af as Q } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
8
8
|
const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }, Y = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as C, ref as d, resolveComponent as f, createElementBlock as w, openBlock as z, Fragment as F, renderSlot as S, createVNode as l, unref as i, withCtx as r, createElementVNode as v, toDisplayString as B } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { l as _, u as D } from "./discardConfirm-DZwzKO-Q.js";
|
|
3
3
|
import { useI18n as E } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as x } from "@feedmepos/ui-library";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { _ as A } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js";
|
|
6
|
+
import { c as O } from "./check-C9mY6LiX.js";
|
|
7
|
+
import { u as I } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
8
8
|
const N = { class: "fm-typo-en-title-md-600" }, P = { class: "flex gap-8 items-center justify-start" }, J = /* @__PURE__ */ C({
|
|
9
9
|
__name: "ApplyProductDialog",
|
|
10
10
|
props: {
|
|
@@ -15,14 +15,14 @@ const N = { class: "fm-typo-en-title-md-600" }, P = { class: "flex gap-8 items-c
|
|
|
15
15
|
},
|
|
16
16
|
emits: ["apply:product"],
|
|
17
17
|
setup(b, { emit: g }) {
|
|
18
|
-
const m = b, y = g, { t: u } = E(), c = m.initialValue.map((e) => ({ _id: e })), a = d(_.clone(c)), h =
|
|
18
|
+
const m = b, y = g, { t: u } = E(), c = m.initialValue.map((e) => ({ _id: e })), a = d(_.clone(c)), h = D(
|
|
19
19
|
() => !_.isEqual(a.value, c),
|
|
20
20
|
() => {
|
|
21
21
|
t.value = !1;
|
|
22
22
|
}
|
|
23
23
|
), t = d(!1), n = (e) => {
|
|
24
|
-
|
|
25
|
-
}, V =
|
|
24
|
+
O.isBoolean(e) ? t.value = e : t.value = !t.value, t.value && (a.value = m.initialValue.map((o) => ({ _id: o })));
|
|
25
|
+
}, V = I();
|
|
26
26
|
return (e, o) => {
|
|
27
27
|
const p = f("fm-button"), k = f("fm-side-sheet");
|
|
28
28
|
return z(), w(F, null, [
|
|
@@ -61,7 +61,7 @@ const N = { class: "fm-typo-en-title-md-600" }, P = { class: "flex gap-8 items-c
|
|
|
61
61
|
])
|
|
62
62
|
]),
|
|
63
63
|
default: r(() => [
|
|
64
|
-
l(
|
|
64
|
+
l(A, {
|
|
65
65
|
overrides: a.value,
|
|
66
66
|
"onUpdate:overrides": o[0] || (o[0] = (s) => a.value = s),
|
|
67
67
|
"categorized-items": i(V).categorizedItems,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as se, computed as x, resolveComponent as _, createBlock as V, openBlock as p, createVNode as o, ref as j, createElementBlock as F, Fragment as G, renderSlot as xe, unref as e, withCtx as g, createElementVNode as v, createCommentVNode as
|
|
1
|
+
import { defineComponent as se, computed as x, resolveComponent as _, createBlock as V, openBlock as p, createVNode as o, ref as j, createElementBlock as F, Fragment as G, renderSlot as xe, unref as e, withCtx as g, createElementVNode as v, createCommentVNode as z, renderList as X, createTextVNode as ke, toDisplayString as L, markRaw as Ce, toRaw as he, h as J, withModifiers as Q, normalizeClass as Fe } from "vue";
|
|
2
2
|
import { useRouter as Oe } from "vue-router";
|
|
3
|
-
import { u as pe,
|
|
3
|
+
import { u as pe, F as Ve, i as fe, b as ge, m as re, a as Me, k as N, d as le, g as ve, h as _e, L as ie, _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
4
4
|
import { useI18n as ue, useCoreStore as ye } from "@feedmepos/mf-common";
|
|
5
|
-
import { useSnackbar as be, components as ne, FmButtonVariant as
|
|
6
|
-
import { _ as Ue, R as ce } from "./app-
|
|
5
|
+
import { useSnackbar as be, components as ne, FmButtonVariant as W, FmButtonColorThemeVariant as Z, useDialog as Te, useBreakpoints as we } from "@feedmepos/ui-library";
|
|
6
|
+
import { _ as Ue, R as ce } from "./app-4yWs09Fr.js";
|
|
7
7
|
import { _ as Ae } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
8
8
|
import { _ as te } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
9
|
-
import { _ as De } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { _ as me, a as Ne } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { c as
|
|
12
|
-
import { C as P, a as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { C as Ee } from "./catalog-
|
|
9
|
+
import { _ as De } from "./RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js";
|
|
10
|
+
import { _ as me, a as Ne } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js";
|
|
11
|
+
import { c as Le } from "./check-C9mY6LiX.js";
|
|
12
|
+
import { C as P, a as R } from "./catalogSetting-Bn2TplvM.js";
|
|
13
|
+
import { _ as $e } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
14
|
+
import { C as Ee } from "./catalog-DKygS2Cs.js";
|
|
15
15
|
const Ie = /* @__PURE__ */ se({
|
|
16
16
|
__name: "CatalogUsageTable",
|
|
17
17
|
props: {
|
|
@@ -23,7 +23,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
23
23
|
} = ue(), S = x(() => M.catalog.restaurants.length === 0 ? [{
|
|
24
24
|
name: "--",
|
|
25
25
|
usage: []
|
|
26
|
-
}] : M.catalog.restaurants),
|
|
26
|
+
}] : M.catalog.restaurants), $ = [{
|
|
27
27
|
accessorKey: "name",
|
|
28
28
|
header: () => o("div", {
|
|
29
29
|
class: "flex flex-col"
|
|
@@ -55,20 +55,20 @@ const Ie = /* @__PURE__ */ se({
|
|
|
55
55
|
cell: ({
|
|
56
56
|
row: y
|
|
57
57
|
}) => {
|
|
58
|
-
const
|
|
58
|
+
const k = y.original.usage.join(", ") || "--";
|
|
59
59
|
return o("p", {
|
|
60
60
|
class: "flex py-8"
|
|
61
|
-
}, [
|
|
61
|
+
}, [k]);
|
|
62
62
|
},
|
|
63
63
|
enableSorting: !1,
|
|
64
64
|
meta: {
|
|
65
65
|
headerClass: "px-16 py-4"
|
|
66
66
|
}
|
|
67
67
|
}];
|
|
68
|
-
return (y,
|
|
68
|
+
return (y, k) => {
|
|
69
69
|
const A = _("FmTable");
|
|
70
70
|
return p(), V(A, {
|
|
71
|
-
"column-defs":
|
|
71
|
+
"column-defs": $,
|
|
72
72
|
"row-data": S.value,
|
|
73
73
|
"page-size": S.value.length,
|
|
74
74
|
virtual: !0,
|
|
@@ -80,25 +80,25 @@ const Ie = /* @__PURE__ */ se({
|
|
|
80
80
|
}), Be = { class: "space-y-32" }, Pe = {
|
|
81
81
|
key: 0,
|
|
82
82
|
class: "pl-32 space-x-8"
|
|
83
|
-
},
|
|
83
|
+
}, Re = { class: "pl-[60px] space-y-16" }, ze = { class: "space-x-16 flex items-center" }, je = { class: "flex-1 space-y-4" }, Ge = { class: "fm-typo-en-body-lg-400" }, Ke = { class: "fm-typo-en-body-md-400" }, Ye = { class: "flex gap-8 items-center justify-start" }, He = /* @__PURE__ */ se({
|
|
84
84
|
__name: "Form",
|
|
85
85
|
setup(ee, { expose: M }) {
|
|
86
|
-
const d = j(!1), S = j(!1),
|
|
87
|
-
|
|
86
|
+
const d = j(!1), S = j(!1), $ = (c, u) => {
|
|
87
|
+
Le.isBoolean(c) ? d.value = c : d.value = !d.value, d.value && (r.value = P.fromCatalog(
|
|
88
88
|
u ?? re.generator.initMenuV4Catalog(),
|
|
89
89
|
y.value
|
|
90
90
|
));
|
|
91
|
-
}, y = x(() =>
|
|
91
|
+
}, y = x(() => k.version === Ve.enum.v4), k = pe(), A = ye(), m = fe(ge(be())), r = j(
|
|
92
92
|
P.fromCatalog(re.generator.initMenuV4Catalog(), y.value)
|
|
93
|
-
), ae = x(() =>
|
|
93
|
+
), ae = x(() => k.catalogs.map((c) => c.name)), K = x({
|
|
94
94
|
get: () => r.value.taxSetting,
|
|
95
95
|
set: (c) => {
|
|
96
96
|
r.value.taxSetting = c;
|
|
97
97
|
}
|
|
98
98
|
}), Y = x(() => {
|
|
99
|
-
var f,
|
|
99
|
+
var f, C;
|
|
100
100
|
if (!A.currentCountry.value) return [];
|
|
101
|
-
const c = ((f = r.value.taxSetting) == null ? void 0 : f.mode) ===
|
|
101
|
+
const c = ((f = r.value.taxSetting) == null ? void 0 : f.mode) === R.MANUAL ? ((C = r.value.taxSetting) == null ? void 0 : C.inclusive) ?? [] : [];
|
|
102
102
|
return Me.Country.getCountry(A.currentCountry.value).taxSystems.map((U) => {
|
|
103
103
|
const D = c.find((I) => I.systemCode === U.code);
|
|
104
104
|
return {
|
|
@@ -108,16 +108,16 @@ const Ie = /* @__PURE__ */ se({
|
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
110
|
function E(c) {
|
|
111
|
-
const u = r.value.taxSetting, f = u.mode ===
|
|
111
|
+
const u = r.value.taxSetting, f = u.mode === R.AUTO ? P.manualTax(Y.value) : le(u);
|
|
112
112
|
f.inclusive ?? (f.inclusive = []);
|
|
113
|
-
const
|
|
114
|
-
|
|
113
|
+
const C = f.inclusive.findIndex((U) => U.systemCode === c.systemCode);
|
|
114
|
+
C < 0 ? f.inclusive.push(c) : f.inclusive.splice(C, 1, c), K.value = f;
|
|
115
115
|
}
|
|
116
116
|
function w(c, u) {
|
|
117
117
|
const f = le(r.value);
|
|
118
118
|
f.markupOptions && (f.markupOptions[c] = u, r.value = f);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function q(c) {
|
|
121
121
|
const u = le(r.value);
|
|
122
122
|
u.markupOptions && (u.markupOptions.splice(c, 1), r.value = u);
|
|
123
123
|
}
|
|
@@ -141,10 +141,10 @@ const Ie = /* @__PURE__ */ se({
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
const { t: i } = ue();
|
|
144
|
-
return M({ trigger:
|
|
145
|
-
const f = _("fm-text-field"),
|
|
144
|
+
return M({ trigger: $ }), (c, u) => {
|
|
145
|
+
const f = _("fm-text-field"), C = _("fm-radio"), U = _("fm-radio-group"), D = _("fm-checkbox"), I = _("fm-switch"), s = _("fm-select"), a = _("fm-button"), l = _("fm-chip"), O = _("fm-card"), B = _("fm-side-sheet");
|
|
146
146
|
return p(), F(G, null, [
|
|
147
|
-
xe(c.$slots, "default", { trigger:
|
|
147
|
+
xe(c.$slots, "default", { trigger: $ }),
|
|
148
148
|
o(B, {
|
|
149
149
|
modelValue: d.value,
|
|
150
150
|
"onUpdate:modelValue": u[8] || (u[8] = (t) => d.value = t),
|
|
@@ -197,24 +197,24 @@ const Ie = /* @__PURE__ */ se({
|
|
|
197
197
|
o(U, {
|
|
198
198
|
"model-value": (t = r.value.taxSetting) == null ? void 0 : t.mode,
|
|
199
199
|
"onUpdate:modelValue": u[1] || (u[1] = (n) => {
|
|
200
|
-
n === e(
|
|
200
|
+
n === e(R).AUTO ? K.value = e(P).autoTax() : K.value = e(P).manualTax(Y.value);
|
|
201
201
|
})
|
|
202
202
|
}, {
|
|
203
203
|
default: g(() => [
|
|
204
|
-
o(
|
|
205
|
-
value: e(
|
|
204
|
+
o(C, {
|
|
205
|
+
value: e(R).AUTO,
|
|
206
206
|
label: e(i)("menu.catalog.form.tax.auto.label"),
|
|
207
207
|
sublabel: e(i)("menu.catalog.form.tax.auto.sublabel")
|
|
208
208
|
}, null, 8, ["value", "label", "sublabel"]),
|
|
209
|
-
o(
|
|
210
|
-
value: e(
|
|
209
|
+
o(C, {
|
|
210
|
+
value: e(R).MANUAL,
|
|
211
211
|
label: e(i)("menu.catalog.form.tax.manual.label"),
|
|
212
212
|
sublabel: e(i)("menu.catalog.form.tax.manual.sublabel")
|
|
213
213
|
}, null, 8, ["value", "label", "sublabel"])
|
|
214
214
|
]),
|
|
215
215
|
_: 1
|
|
216
216
|
}, 8, ["model-value"]),
|
|
217
|
-
((b = r.value.taxSetting) == null ? void 0 : b.mode) === e(
|
|
217
|
+
((b = r.value.taxSetting) == null ? void 0 : b.mode) === e(R).MANUAL ? (p(), F("div", Pe, [
|
|
218
218
|
(p(!0), F(G, null, X(Y.value, (n) => (p(), V(D, {
|
|
219
219
|
key: n.systemCode,
|
|
220
220
|
"model-value": n.inclusive,
|
|
@@ -227,7 +227,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
}, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))
|
|
230
|
-
])) :
|
|
230
|
+
])) : z("", !0)
|
|
231
231
|
];
|
|
232
232
|
}),
|
|
233
233
|
_: 1
|
|
@@ -262,10 +262,10 @@ const Ie = /* @__PURE__ */ se({
|
|
|
262
262
|
],
|
|
263
263
|
"model-value": r.value.orderFrom,
|
|
264
264
|
"onUpdate:modelValue": u[3] || (u[3] = (t) => r.value.orderFrom = t)
|
|
265
|
-
}, null, 8, ["items", "model-value"])) :
|
|
265
|
+
}, null, 8, ["items", "model-value"])) : z("", !0)
|
|
266
266
|
]),
|
|
267
267
|
_: 1
|
|
268
|
-
}, 8, ["label"])) :
|
|
268
|
+
}, 8, ["label"])) : z("", !0),
|
|
269
269
|
y.value ? (p(), V(te, {
|
|
270
270
|
key: 1,
|
|
271
271
|
label: e(i)("menu.catalog.form.markup.title")
|
|
@@ -278,10 +278,10 @@ const Ie = /* @__PURE__ */ se({
|
|
|
278
278
|
sublabel: e(i)("menu.catalog.form.markup.auto.sublabel"),
|
|
279
279
|
"onUpdate:modelValue": u[4] || (u[4] = (t) => r.value.markupOptions = t ? [] : null)
|
|
280
280
|
}, null, 8, ["model-value", "label", "sublabel"]),
|
|
281
|
-
v("div",
|
|
281
|
+
v("div", Re, [
|
|
282
282
|
o(me, {
|
|
283
|
-
categories: e(
|
|
284
|
-
items: e(
|
|
283
|
+
categories: e(k).categories,
|
|
284
|
+
items: e(k).items,
|
|
285
285
|
action: "add",
|
|
286
286
|
"onUpdate:modelValue": u[5] || (u[5] = (t) => t && (r.value.markupOptions = [...r.value.markupOptions ?? [], t]))
|
|
287
287
|
}, {
|
|
@@ -289,7 +289,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
289
289
|
o(a, {
|
|
290
290
|
"text-color": e(Z).ColorPrimary,
|
|
291
291
|
"border-color": e(Z).ColorPrimary,
|
|
292
|
-
variant: e(
|
|
292
|
+
variant: e(W).Secondary,
|
|
293
293
|
label: e(i)("menu.catalog.form.markup.add"),
|
|
294
294
|
"prepend-icon": "add",
|
|
295
295
|
onClick: t
|
|
@@ -299,8 +299,8 @@ const Ie = /* @__PURE__ */ se({
|
|
|
299
299
|
}, 8, ["categories", "items"]),
|
|
300
300
|
(p(!0), F(G, null, X(r.value.markupOptions, (t, b) => (p(), V(me, {
|
|
301
301
|
key: b,
|
|
302
|
-
categories: e(
|
|
303
|
-
items: e(
|
|
302
|
+
categories: e(k).categories,
|
|
303
|
+
items: e(k).items,
|
|
304
304
|
"model-value": t,
|
|
305
305
|
action: "update",
|
|
306
306
|
"onUpdate:modelValue": (n) => n && w(b, n)
|
|
@@ -313,23 +313,23 @@ const Ie = /* @__PURE__ */ se({
|
|
|
313
313
|
onClick: n
|
|
314
314
|
}, {
|
|
315
315
|
default: g(() => [
|
|
316
|
-
v("div",
|
|
316
|
+
v("div", ze, [
|
|
317
317
|
v("div", je, [
|
|
318
318
|
o(l, { class: "text-fm-color-typo-info bg-fm-color-system-info-100 font-semibold" }, {
|
|
319
319
|
default: g(() => [
|
|
320
|
-
|
|
320
|
+
ke(L(e(i)("menu.catalog.form.markup.percentage", { value: t.percentage })), 1)
|
|
321
321
|
]),
|
|
322
322
|
_: 2
|
|
323
323
|
}, 1024),
|
|
324
|
-
v("p", Ge,
|
|
325
|
-
v("p", Ke,
|
|
324
|
+
v("p", Ge, L(e(i)("menu.catalog.form.markup.config", { number: b + 1 })), 1),
|
|
325
|
+
v("p", Ke, L(t.includeItems ? e(i)("menu.catalog.form.markup.products", {
|
|
326
326
|
count: t.includeItems.length
|
|
327
327
|
}) : e(i)("menu.catalog.form.markup.all_items")), 1)
|
|
328
328
|
]),
|
|
329
329
|
o(a, {
|
|
330
|
-
variant: e(
|
|
330
|
+
variant: e(W).Tertiary,
|
|
331
331
|
"prepend-icon": "delete",
|
|
332
|
-
onClick: (h) =>
|
|
332
|
+
onClick: (h) => q(b)
|
|
333
333
|
}, null, 8, ["variant", "onClick"])
|
|
334
334
|
])
|
|
335
335
|
]),
|
|
@@ -341,7 +341,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
341
341
|
])
|
|
342
342
|
]),
|
|
343
343
|
_: 1
|
|
344
|
-
}, 8, ["label"])) :
|
|
344
|
+
}, 8, ["label"])) : z("", !0),
|
|
345
345
|
o(Ne, {
|
|
346
346
|
modelValue: r.value,
|
|
347
347
|
"onUpdate:modelValue": u[6] || (u[6] = (t) => r.value = t),
|
|
@@ -355,11 +355,11 @@ const Ie = /* @__PURE__ */ se({
|
|
|
355
355
|
], 64);
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
|
-
}), de = He,
|
|
358
|
+
}), de = He, We = {
|
|
359
359
|
key: 0
|
|
360
|
-
}, We = {
|
|
361
|
-
class: "flex justify-end items-center"
|
|
362
360
|
}, qe = {
|
|
361
|
+
class: "flex justify-end items-center"
|
|
362
|
+
}, Je = {
|
|
363
363
|
class: "w-[320px]"
|
|
364
364
|
}, Qe = {
|
|
365
365
|
key: 1,
|
|
@@ -383,10 +383,10 @@ const Ie = /* @__PURE__ */ se({
|
|
|
383
383
|
}, ua = {
|
|
384
384
|
key: 0,
|
|
385
385
|
class: "space-y-24"
|
|
386
|
-
}, oe = "main",
|
|
386
|
+
}, oe = "main", Ca = /* @__PURE__ */ se({
|
|
387
387
|
__name: "Catalog",
|
|
388
388
|
setup(ee) {
|
|
389
|
-
const M = ye(), d = pe(), S = be(),
|
|
389
|
+
const M = ye(), d = pe(), S = be(), $ = ge(S), y = Te(), k = fe($), A = Oe(), {
|
|
390
390
|
t: m
|
|
391
391
|
} = ue(), r = x(() => {
|
|
392
392
|
const s = {};
|
|
@@ -438,7 +438,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
438
438
|
usage: K(s, a)
|
|
439
439
|
})).filter((a) => a.usage.length > 0);
|
|
440
440
|
}
|
|
441
|
-
const E = j(!1), w = j(""),
|
|
441
|
+
const E = j(!1), w = j(""), q = x(() => {
|
|
442
442
|
var a;
|
|
443
443
|
return [{
|
|
444
444
|
id: oe,
|
|
@@ -455,7 +455,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
455
455
|
// trying to wrap it again. Object.freeze on a reactive proxy caused runtime
|
|
456
456
|
// errors with read-only property traps ("get on proxy: property 'override' ...").
|
|
457
457
|
// markRaw ensures the catalog snapshot stays non-reactive here without those errors.
|
|
458
|
-
doc:
|
|
458
|
+
doc: Ce(he(l)),
|
|
459
459
|
disableDelete: !1,
|
|
460
460
|
defaultOrderFrom: l.defaultOrderFrom
|
|
461
461
|
}))].map((l) => {
|
|
@@ -472,7 +472,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
472
472
|
disableDelete: l.disableDelete
|
|
473
473
|
};
|
|
474
474
|
});
|
|
475
|
-
}), H = x(() =>
|
|
475
|
+
}), H = x(() => q.value.filter((s) => s.id !== oe)), i = x(() => H.value.filter((s) => s.name.toLowerCase().includes(w.value.toLowerCase()))), c = (s) => {
|
|
476
476
|
d.selectCatalog(s === oe ? null : s), A.push({
|
|
477
477
|
name: ce.EDIT_CATALOG_PRODUCT,
|
|
478
478
|
params: {
|
|
@@ -487,7 +487,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
487
487
|
name: `${s.name} copy`
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
|
-
async function
|
|
490
|
+
async function C(s) {
|
|
491
491
|
const a = d.state.restaurants.filter((l) => [...l.additionalCatalogs, l.inHouseDelivery, ...l.linkedDeliveryCatalogs.map((O) => O.catalog), l.pickupCatalog, l.takeawayCatalog, l.catalogId].includes(s.id)).map((l) => l.name);
|
|
492
492
|
a.length > 0 ? S.open({
|
|
493
493
|
type: "error",
|
|
@@ -502,14 +502,14 @@ const Ie = /* @__PURE__ */ se({
|
|
|
502
502
|
primaryActions: {
|
|
503
503
|
text: m("menu.common.actions.remove"),
|
|
504
504
|
close: !0,
|
|
505
|
-
variant:
|
|
505
|
+
variant: W.Destructive
|
|
506
506
|
},
|
|
507
507
|
secondaryActions: {
|
|
508
508
|
text: m("menu.common.actions.cancel"),
|
|
509
509
|
close: !0
|
|
510
510
|
}
|
|
511
511
|
}).onPrimary(async () => {
|
|
512
|
-
await
|
|
512
|
+
await k.updateMenu({
|
|
513
513
|
module: _e.enum.catalog,
|
|
514
514
|
operation: ve.F_OPERATION_TYPE.delete,
|
|
515
515
|
data: s.id
|
|
@@ -532,7 +532,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
532
532
|
enableSorting: !1,
|
|
533
533
|
cell: (s) => {
|
|
534
534
|
const a = s.row.original;
|
|
535
|
-
return
|
|
535
|
+
return J("div", {
|
|
536
536
|
class: "flex justify-between"
|
|
537
537
|
}, [a.autoLink]);
|
|
538
538
|
}
|
|
@@ -546,9 +546,9 @@ const Ie = /* @__PURE__ */ se({
|
|
|
546
546
|
header: "",
|
|
547
547
|
cell: (s) => {
|
|
548
548
|
const a = s.row.original;
|
|
549
|
-
return
|
|
549
|
+
return J("div", {
|
|
550
550
|
class: "flex justify-end"
|
|
551
|
-
}, [
|
|
551
|
+
}, [J(ne.FmButton, {
|
|
552
552
|
icon: "file_copy",
|
|
553
553
|
disabled: !a.id,
|
|
554
554
|
variant: "tertiary",
|
|
@@ -556,20 +556,20 @@ const Ie = /* @__PURE__ */ se({
|
|
|
556
556
|
onClick: Q(async () => {
|
|
557
557
|
await f(a);
|
|
558
558
|
}, ["stop", "prevent"])
|
|
559
|
-
}),
|
|
559
|
+
}), J(ne.FmButton, {
|
|
560
560
|
icon: "delete",
|
|
561
561
|
disabled: !a.id,
|
|
562
562
|
variant: "tertiary",
|
|
563
563
|
textColor: "neutral-gray-400",
|
|
564
564
|
onClick: Q(async () => {
|
|
565
|
-
await
|
|
565
|
+
await C(a);
|
|
566
566
|
}, ["stop", "prevent"])
|
|
567
567
|
})]);
|
|
568
568
|
}
|
|
569
569
|
}]), D = we(), I = x(() => D.breakpoints.value.xs);
|
|
570
570
|
return (s, a) => {
|
|
571
571
|
const l = _("fm-button"), O = _("FmSearch"), B = _("FmTable"), t = _("FmButton"), b = _("fm-side-sheet");
|
|
572
|
-
return p(), V(
|
|
572
|
+
return p(), V($e, {
|
|
573
573
|
heading: e(m)("menu.catalog.title")
|
|
574
574
|
}, {
|
|
575
575
|
"append-heading": g(() => [H.value.length > 0 ? (p(), V(e(de), {
|
|
@@ -591,7 +591,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
591
591
|
onClick: n
|
|
592
592
|
}, null, 8, ["label", "onClick"])])]),
|
|
593
593
|
_: 1
|
|
594
|
-
}, 512)) :
|
|
594
|
+
}, 512)) : z("", !0)]),
|
|
595
595
|
default: g(() => [H.value.length === 0 ? (p(), V(e(Se), {
|
|
596
596
|
key: 0,
|
|
597
597
|
subtitle: e(m)("menu.catalog.empty.subtitle"),
|
|
@@ -622,17 +622,17 @@ const Ie = /* @__PURE__ */ se({
|
|
|
622
622
|
key: n.id,
|
|
623
623
|
class: "flex flex-row py-12 px-16 items-center",
|
|
624
624
|
onClick: (h) => c(n.id)
|
|
625
|
-
}, [v("div", aa, [v("p", la, " Tax calculation: " +
|
|
625
|
+
}, [v("div", aa, [v("p", la, " Tax calculation: " + L(n.taxMode), 1), v("p", ta, " Auto link product: " + L(n.autoLink), 1), v("p", oa, L(n.name), 1)]), v("div", na, [o(t, {
|
|
626
626
|
"text-color": e(Z).NeutralGray400,
|
|
627
|
-
variant: e(
|
|
627
|
+
variant: e(W).Tertiary,
|
|
628
628
|
"prepend-icon": "file_copy",
|
|
629
629
|
onClick: Q((h) => f(n), ["stop"])
|
|
630
630
|
}, null, 8, ["text-color", "variant", "onClick"]), o(t, {
|
|
631
631
|
"text-color": e(Z).NeutralGray400,
|
|
632
|
-
variant: e(
|
|
632
|
+
variant: e(W).Tertiary,
|
|
633
633
|
"prepend-icon": "delete",
|
|
634
|
-
onClick: Q((h) =>
|
|
635
|
-
}, null, 8, ["text-color", "variant", "onClick"])])], 8, ea))), 128))])])) : (p(), F("div",
|
|
634
|
+
onClick: Q((h) => C(n), ["stop"])
|
|
635
|
+
}, null, 8, ["text-color", "variant", "onClick"])])], 8, ea))), 128))])])) : (p(), F("div", We, [v("div", qe, [v("div", Je, [o(O, {
|
|
636
636
|
modelValue: w.value,
|
|
637
637
|
"onUpdate:modelValue": a[1] || (a[1] = (n) => w.value = n),
|
|
638
638
|
autofocus: "",
|
|
@@ -658,11 +658,11 @@ const Ie = /* @__PURE__ */ se({
|
|
|
658
658
|
"max-width": 1e3,
|
|
659
659
|
"dismiss-away": ""
|
|
660
660
|
}, {
|
|
661
|
-
"side-sheet-header": g(() => [v("p", sa,
|
|
662
|
-
default: g(() => [E.value ? (p(), F("div", ua, [(p(!0), F(G, null, X(
|
|
661
|
+
"side-sheet-header": g(() => [v("p", sa, L(e(m)("menu.catalog.usage.title")), 1)]),
|
|
662
|
+
default: g(() => [E.value ? (p(), F("div", ua, [(p(!0), F(G, null, X(q.value, (n, h) => (p(), V(Ie, {
|
|
663
663
|
key: h,
|
|
664
664
|
catalog: n
|
|
665
|
-
}, null, 8, ["catalog"]))), 128))])) :
|
|
665
|
+
}, null, 8, ["catalog"]))), 128))])) : z("", !0)]),
|
|
666
666
|
_: 1
|
|
667
667
|
}, 8, ["modelValue"])], 64))]),
|
|
668
668
|
_: 1
|
|
@@ -671,5 +671,5 @@ const Ie = /* @__PURE__ */ se({
|
|
|
671
671
|
}
|
|
672
672
|
});
|
|
673
673
|
export {
|
|
674
|
-
|
|
674
|
+
Ca as default
|
|
675
675
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as E, computed as k, ref as C, resolveComponent as w, createElementBlock as g, openBlock as u, createElementVNode as i, createVNode as _, unref as a, withCtx as
|
|
1
|
+
import { defineComponent as E, computed as k, ref as C, resolveComponent as w, createElementBlock as g, openBlock as u, createElementVNode as i, createVNode as _, unref as a, withCtx as K, Fragment as P, renderList as U, toDisplayString as S, createBlock as V } from "vue";
|
|
2
2
|
import { useI18n as L } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as M, useBreakpoints as $, useDialog as I } from "@feedmepos/ui-library";
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
4
|
+
import { b as F, u as Y, s as j, i as T, g as q, h as A, _ as R } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
5
|
+
import { _ as G } from "./app-4yWs09Fr.js";
|
|
6
|
+
import { u as B } from "./menu-DSDRAil-.js";
|
|
7
|
+
import { ao as H } from "./item-Da3ArD-G.js";
|
|
8
|
+
const J = {
|
|
9
9
|
key: 0
|
|
10
10
|
}, Q = {
|
|
11
11
|
class: "flex justify-end items-center"
|
|
@@ -26,10 +26,10 @@ const H = {
|
|
|
26
26
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
27
27
|
}, ne = /* @__PURE__ */ E({
|
|
28
28
|
__name: "CategoryTable",
|
|
29
|
-
setup(
|
|
30
|
-
const f = M(), y = F(f), h =
|
|
29
|
+
setup(D) {
|
|
30
|
+
const f = M(), y = F(f), h = T(y), d = Y(), {
|
|
31
31
|
categories: v
|
|
32
|
-
} =
|
|
32
|
+
} = B(), b = k(() => {
|
|
33
33
|
var r, t;
|
|
34
34
|
const l = ((t = (r = d.currentCatalog) == null ? void 0 : r.override) == null ? void 0 : t.category) ?? {}, o = v.value.map((e, c) => {
|
|
35
35
|
var p;
|
|
@@ -61,7 +61,7 @@ const H = {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
}]);
|
|
64
|
-
async function
|
|
64
|
+
async function N(l) {
|
|
65
65
|
var e;
|
|
66
66
|
const o = d.currentCatalog;
|
|
67
67
|
if (!o)
|
|
@@ -86,10 +86,10 @@ const H = {
|
|
|
86
86
|
}
|
|
87
87
|
}, "Category");
|
|
88
88
|
}
|
|
89
|
-
const
|
|
89
|
+
const O = $(), z = k(() => O.breakpoints.value.xs);
|
|
90
90
|
return (l, o) => {
|
|
91
91
|
const r = w("FmSearch"), t = w("FmTable");
|
|
92
|
-
return
|
|
92
|
+
return z.value ? (u(), g("div", X, [i("div", Z, [_(r, {
|
|
93
93
|
autofocus: "",
|
|
94
94
|
modelValue: n.value,
|
|
95
95
|
"onUpdate:modelValue": o[1] || (o[1] = (e) => n.value = e),
|
|
@@ -97,12 +97,12 @@ const H = {
|
|
|
97
97
|
placeholder: a(s)("menu.common.labels.search_placeholder", {
|
|
98
98
|
type: a(s)("menu.category.title")
|
|
99
99
|
})
|
|
100
|
-
}, null, 8, ["modelValue", "placeholder"])]), i("div", ee, [(u(!0), g(
|
|
100
|
+
}, null, 8, ["modelValue", "placeholder"])]), i("div", ee, [(u(!0), g(P, null, U(m.value, (e) => (u(), g("div", {
|
|
101
101
|
key: e.id || "",
|
|
102
102
|
class: "flex flex-row py-12 px-16"
|
|
103
103
|
}, [i("div", oe, [i("p", te, S(e.name), 1), i("p", ae, S(a(s)(e.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
|
|
104
104
|
count: e.items.length
|
|
105
|
-
})), 1)])]))), 128))])])) : (u(), g("div",
|
|
105
|
+
})), 1)])]))), 128))])])) : (u(), g("div", J, [i("div", Q, [i("div", W, [_(r, {
|
|
106
106
|
modelValue: n.value,
|
|
107
107
|
"onUpdate:modelValue": o[0] || (o[0] = (e) => n.value = e),
|
|
108
108
|
autofocus: "",
|
|
@@ -110,8 +110,8 @@ const H = {
|
|
|
110
110
|
placeholder: a(s)("menu.common.labels.search_placeholder", {
|
|
111
111
|
type: a(s)("menu.category.title")
|
|
112
112
|
})
|
|
113
|
-
}, null, 8, ["modelValue", "placeholder"])])]), _(
|
|
114
|
-
default:
|
|
113
|
+
}, null, 8, ["modelValue", "placeholder"])])]), _(G, null, {
|
|
114
|
+
default: K(() => [_(t, {
|
|
115
115
|
"column-defs": x.value,
|
|
116
116
|
draggable: a(d).rules.category.overrideSequence,
|
|
117
117
|
"page-size": m.value.length,
|
|
@@ -120,7 +120,7 @@ const H = {
|
|
|
120
120
|
"shrink-at": !1,
|
|
121
121
|
"hide-footer": "",
|
|
122
122
|
"pin-header-row": "",
|
|
123
|
-
onDndChanged:
|
|
123
|
+
onDndChanged: N
|
|
124
124
|
}, null, 8, ["column-defs", "draggable", "page-size", "row-data", "search-value"])]),
|
|
125
125
|
_: 1
|
|
126
126
|
})]));
|
|
@@ -128,15 +128,15 @@ const H = {
|
|
|
128
128
|
}
|
|
129
129
|
}), me = /* @__PURE__ */ E({
|
|
130
130
|
__name: "Category",
|
|
131
|
-
setup(
|
|
132
|
-
const f = I(), y = M(), h = F(y), d =
|
|
131
|
+
setup(D) {
|
|
132
|
+
const f = I(), y = M(), h = F(y), d = T(h), v = H({ dialog: f, menuLoader: d }), { categories: b } = B(), { t: n } = L();
|
|
133
133
|
function m() {
|
|
134
134
|
v.create();
|
|
135
135
|
}
|
|
136
136
|
return (s, x) => a(b).length > 0 ? (u(), V(ne, {
|
|
137
137
|
key: 0,
|
|
138
138
|
class: "pt-16"
|
|
139
|
-
})) : (u(), V(a(
|
|
139
|
+
})) : (u(), V(a(R), {
|
|
140
140
|
key: 1,
|
|
141
141
|
class: "pt-16",
|
|
142
142
|
action: {
|