@feedmepos/mf-menu 0.31.42-prod → 0.31.43-prod
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-2JChZsbD.js → App-DudzVdxN.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-D2LLOZrw.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Cx6BY_nW.js} +3 -3
- package/dist/{Catalog-BmiGl1s_.js → Catalog-BMuTQtqx.js} +6 -6
- package/dist/{Category-BV4b15dp.js → Category-CUZ_xxMs.js} +4 -4
- package/dist/{Category-C4aYzE74.js → Category-NDkmqvdw.js} +6 -6
- package/dist/{CookingGuide-CcdqS3EL.js → CookingGuide-3SgKZVRT.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Brcc_WN7.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-FuOBls0m.js} +1 -1
- package/dist/{Group-DYnOQq0q.js → Group-ClTlb1X2.js} +1 -1
- package/dist/{Group-DTRgvVko.js → Group-CvUWYuaR.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BJiPe3tH.js → Group.vue_vue_type_script_setup_true_lang-jbtZjvRL.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BBeDpoKA.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-C_nvZOlm.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Do-V1ceo.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BiwIRHka.js} +15325 -15684
- package/dist/{Ingredient-BGRNUHBO.js → Ingredient-C3a4gt_G.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-B8UmHWQq.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CYoMl-_4.js} +1052 -1052
- package/dist/{LinkProductSideSheet-zAHlypah.js → LinkProductSideSheet-4GgEt5LN.js} +3 -3
- package/dist/{MenuSetting-CJb8sWNZ.js → MenuSetting-DMDHHBs2.js} +5 -5
- package/dist/{PrintRoute-nSaHp9qi.js → PrintRoute-D8mE_R6M.js} +4 -4
- package/dist/{Product-BULdwb1Q.js → Product-B7oT5kJ6.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CBh0gBr2.js → Product.vue_vue_type_script_setup_true_lang-CUn6_bGq.js} +13 -13
- package/dist/{ProductInternalTools-CPDtesKz.js → ProductInternalTools-BPnnO5dR.js} +5 -5
- package/dist/Products-iYZPVp8Y.js +675 -0
- package/dist/{Publish-DHIlFwkI.js → Publish-BCFYIz0P.js} +3 -3
- package/dist/{Recipe-CldQTZfD.js → Recipe-Be6kHRWd.js} +4 -4
- package/dist/{Scheduler-DHQiJk0r.js → Scheduler-DTULqkZU.js} +3 -3
- package/dist/{ServingSequence-HAF3-DVb.js → ServingSequence-1B2t3IOz.js} +3 -3
- package/dist/{Setting-C0tsedhx.js → Setting-Bfx_kAhO.js} +5 -5
- package/dist/{Subcategory-DeUrA-yT.js → Subcategory-CspNxL0A.js} +4 -4
- package/dist/{Takeaway-BAl6SWU-.js → Takeaway-8ZrctPk8.js} +4 -4
- package/dist/{Takeaway-CnqY1GJT.js → Takeaway-DS9QWvP4.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BLIT_vSE.js → Takeaway.vue_vue_type_script_setup_true_lang-DPtA07uy.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CTXytwNl.js → Thumbnail.vue_vue_type_script_setup_true_lang-CdaiLu5o.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DC64EAri.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C39Fg0ZP.js} +14 -14
- package/dist/{Unit-BNghOE-p.js → Unit-qDXlKpxA.js} +2 -2
- package/dist/{Variant-BJgWQnCr.js → Variant-tGw0WZcw.js} +3 -3
- package/dist/{_id_-DyxLgR7H.js → _id_-nUIFi5Lq.js} +10 -10
- package/dist/{app-CUB5WG-_.js → app-B-AEzoH6.js} +1 -1
- package/dist/{app-BrdLq53I.js → app-BPqH1NSp.js} +25 -25
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +123 -0
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +32 -0
- package/dist/apps/mf-menu/src/helper/{import-export.d.ts → menuImport.d.ts} +3 -127
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-Dydn-qHJ.js → linked-status-CXZIhnqe.js} +2 -2
- package/dist/assets/{override-menu-BZxKccD-.js → override-menu-xw0Dqkm6.js} +2 -2
- package/dist/assets/{validate-menu-yzthJ_kL.js → validate-menu-ByQAWT_D.js} +2 -2
- package/dist/{catalog-D_-zPbeP.js → catalog-DLqIkhbq.js} +1 -1
- package/dist/{catalogSetting-DYqtFHuW.js → catalogSetting-CD1xVSYG.js} +1 -1
- package/dist/{category-Ds6mhoE_.js → category-CrJofVZH.js} +1 -1
- package/dist/{currency-D0LVH4Rm.js → currency-DvON4euj.js} +1 -1
- package/dist/{customAttributes-B0VHSDMv.js → customAttributes-C81bk6Ag.js} +1 -1
- package/dist/{dayjs.min-Dv2twIbC.js → dayjs.min-DkxnzHIf.js} +1 -1
- package/dist/{index-DZ46q9oh.js → index-Bi-tjPhn.js} +1 -1
- package/dist/{index-BHoiDppz.js → index-DoMiLJrG.js} +3 -3
- package/dist/{index-DKi3mpaS.js → index-Y2Y_5NeG.js} +1 -1
- package/dist/{index-N5K98R3Q.js → index-k8JBMmlm.js} +4 -4
- package/dist/{item-C8iSUmWK.js → item-BI77lImE.js} +16 -16
- package/dist/{jszip.min-ubvTgNXq.js → jszip.min-K1Xi3iCG.js} +689 -689
- package/dist/{menu-Cvzv8myY.js → menu-Cg_li9fp.js} +5 -5
- package/dist/{menu-CdKiY8ht.js → menu-v8tF5owz.js} +1 -1
- package/dist/{menuV2-h9I06V2J.js → menuV2-BmOhyQh2.js} +46 -46
- package/dist/{priceTier-B_8G5Phm.js → priceTier-D89QKPQZ.js} +1 -1
- package/dist/{scheduler-C7YXb2vA.js → scheduler-CFnDK-I3.js} +4 -4
- package/dist/{subcategory-BoSu3WbF.js → subcategory-CyIY_sdl.js} +2 -2
- package/dist/{toExcel-Da46LGX1.js → toExcel-DIGelQ9s.js} +2 -2
- package/dist/{unit-a1gpxhcI.js → unit-Bk_zO_6l.js} +2 -2
- package/package.json +2 -2
- package/dist/Products-B_VJPTVs.js +0 -286
|
@@ -2,15 +2,15 @@ import { defineComponent as z, computed as h, ref as w, reactive as Q, watch as
|
|
|
2
2
|
import { useI18n as U } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as A, components as j, useDialog as ne, FmButtonVariant as G, useBreakpoints as oe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ae } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as le } from "./app-
|
|
6
|
-
import { O as q, G as $, H as ie, D as P, I as se, e as Y, J as I, A as T, u as H } from "./menu-
|
|
5
|
+
import { _ as le } from "./app-BPqH1NSp.js";
|
|
6
|
+
import { O as q, G as $, H as ie, D as P, I as se, e as Y, J as I, A as T, u as H } from "./menu-Cg_li9fp.js";
|
|
7
7
|
import { _ as re } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
8
8
|
import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
9
9
|
import { defineStore as ue } from "pinia";
|
|
10
|
-
import { _ as B, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as B, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-CYoMl-_4.js";
|
|
11
11
|
import { u as de } from "./discardConfirm-BHni0LNu.js";
|
|
12
12
|
import { c as pe } from "./check-C9mY6LiX.js";
|
|
13
|
-
import "./unit-
|
|
13
|
+
import "./unit-Bk_zO_6l.js";
|
|
14
14
|
import { c as fe } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
15
15
|
const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */ z({
|
|
16
16
|
__name: "Form",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as N, computed as y, h as c, withModifiers as U, ref as V, resolveComponent as _, createBlock as k, openBlock as d, unref as m, withCtx as h, createElementBlock as D, createVNode as f, Fragment as H, createElementVNode as l, renderList as T, toDisplayString as S, createCommentVNode as I } from "vue";
|
|
2
|
-
import { A as i, O as W, u as G, G as Q } from "./menu-
|
|
2
|
+
import { A as i, O as W, u as G, G as Q } from "./menu-Cg_li9fp.js";
|
|
3
3
|
import { useI18n as J } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as X, useDialog as Z, useSnackbar as ee } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as te } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
6
|
-
import { _ as ne } from "./app-
|
|
7
|
-
import { d as ae, _ as oe, u as se, c as le } from "./scheduler-
|
|
6
|
+
import { _ as ne } from "./app-BPqH1NSp.js";
|
|
7
|
+
import { d as ae, _ as oe, u as se, c as le } from "./scheduler-CFnDK-I3.js";
|
|
8
8
|
import { _ as re } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
9
9
|
import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
10
10
|
const ce = {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as J, ref as L, computed as O, resolveComponent as h, createElementBlock as g, openBlock as d, Fragment as x, renderSlot as ae, createVNode as l, unref as t, withCtx as m, createElementVNode as y, toDisplayString as z, onBeforeMount as oe, watch as F, watchEffect as se, h as $, getCurrentInstance as le, onMounted as re, createBlock as j, createCommentVNode as G, isRef as ie, normalizeClass as Q, renderList as ue } from "vue";
|
|
2
2
|
import { useRouter as ce } from "vue-router";
|
|
3
|
-
import { H, u as W, G as X, O as Z, J as I, A as S } from "./menu-
|
|
3
|
+
import { H, u as W, G as X, O as Z, J as I, A as S } from "./menu-Cg_li9fp.js";
|
|
4
4
|
import { useI18n as ee, ItemSelector as de, useCoreStore as me } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as ne, components as Y, useDialog as pe, FmButtonVariant as A, useBreakpoints as _e } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as fe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
7
|
-
import { _ as ge, R as ve } from "./app-
|
|
7
|
+
import { _ as ge, R as ve } from "./app-BPqH1NSp.js";
|
|
8
8
|
import { _ as he } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
9
9
|
import { c as ye } from "./check-C9mY6LiX.js";
|
|
10
10
|
import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
11
11
|
import { u as ke } from "./search-BAPEUu1R.js";
|
|
12
|
-
import { u as xe } from "./app-
|
|
12
|
+
import { u as xe } from "./app-B-AEzoH6.js";
|
|
13
13
|
import { c as Se } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
14
14
|
const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex flex-col h-full" }, Ee = { class: "flex gap-8 items-center justify-start" }, Ve = /* @__PURE__ */ J({
|
|
15
15
|
__name: "Form",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as oe, computed as p, ref as se, watch as ue, watchEffect as ie, resolveComponent as m, createElementBlock as V, openBlock as r, normalizeClass as z, createVNode as s, withCtx as c, createElementVNode as v, createBlock as g, createCommentVNode as k, unref as e, Fragment as D, renderList as B, createTextVNode as re, toDisplayString as N } from "vue";
|
|
2
|
-
import { u as me, G as ce, A as f, O as de, B as pe, H as w } from "./menu-
|
|
2
|
+
import { u as me, G as ce, A as f, O as de, B as pe, H as w } from "./menu-Cg_li9fp.js";
|
|
3
3
|
import { useCoreStore as ve, useI18n as ge } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as fe, useDialog as _e, FmButtonVariant as $, FmButtonColorThemeVariant as P, components as be } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ye, a as E } from "./customAttributes-
|
|
6
|
-
import { _ as H, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { C as _, a as x } from "./catalogSetting-
|
|
8
|
-
import { C as xe } from "./catalog-
|
|
5
|
+
import { _ as ye, a as E } from "./customAttributes-C81bk6Ag.js";
|
|
6
|
+
import { _ as H, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-C_nvZOlm.js";
|
|
7
|
+
import { C as _, a as x } from "./catalogSetting-CD1xVSYG.js";
|
|
8
|
+
import { C as xe } from "./catalog-DLqIkhbq.js";
|
|
9
9
|
const Ce = {
|
|
10
10
|
class: /* @__PURE__ */ z(["overflow-scroll", "flex-1", "xs:px-16 xs:py-16", "pt-16"])
|
|
11
11
|
}, Oe = {
|
|
@@ -2,17 +2,17 @@ import { defineComponent as L, ref as w, watch as W, resolveComponent as y, crea
|
|
|
2
2
|
import { useI18n as T } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as B, components as j, useDialog as Y, FmButtonVariant as z, useBreakpoints as ae, FmButtonColorThemeVariant as oe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { G as D, u as N, O as A, J as K, A as G } from "./menu-
|
|
5
|
+
import { G as D, u as N, O as A, J as K, A as G } from "./menu-Cg_li9fp.js";
|
|
6
6
|
import { _ as le } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { _ as se } from "./app-
|
|
7
|
+
import { _ as se } from "./app-BPqH1NSp.js";
|
|
8
8
|
import { c as re } from "./createForm-BoUQeZTd.js";
|
|
9
9
|
import { u as ie } from "./discardConfirm-BHni0LNu.js";
|
|
10
10
|
import { c as I } from "./object-DVUNCr7w.js";
|
|
11
11
|
import { r as ce } from "./rules-CIWTZQfh.js";
|
|
12
12
|
import { c as ue } from "./check-C9mY6LiX.js";
|
|
13
|
-
import { u as q } from "./subcategory-
|
|
13
|
+
import { u as q } from "./subcategory-CyIY_sdl.js";
|
|
14
14
|
import { _ as de } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
15
|
-
import { a as me } from "./menu-
|
|
15
|
+
import { a as me } from "./menu-v8tF5owz.js";
|
|
16
16
|
const pe = {
|
|
17
17
|
class: "fm-typo-en-title-md-600"
|
|
18
18
|
}, _e = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as f, computed as y, ref as k, createBlock as i, openBlock as d, unref as a, withCtx as s, createElementVNode as t, toDisplayString as b, createCommentVNode as g, createVNode as m } from "vue";
|
|
2
|
-
import { G as x, u as v, O as w, J as E, A as M } from "./menu-
|
|
2
|
+
import { G as x, u as v, O as w, J as E, A as M } from "./menu-Cg_li9fp.js";
|
|
3
3
|
import { useI18n as T } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as V } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as h } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
6
6
|
import { _ as C } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { T as O, l as S } from "./index-
|
|
9
|
-
import { a as L } from "./menu-
|
|
7
|
+
import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-DPtA07uy.js";
|
|
8
|
+
import { T as O, l as S } from "./index-k8JBMmlm.js";
|
|
9
|
+
import { a as L } from "./menu-v8tF5owz.js";
|
|
10
10
|
const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "flex items-center" }, F = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, A = { class: "fm-typo-en-body-md-600 font-semibold" }, z = /* @__PURE__ */ f({
|
|
11
11
|
__name: "Takeaway",
|
|
12
12
|
setup(D) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { getCurrentInstance as te, defineComponent as oe, computed as h, watch as ne, h as R, resolveComponent as S, createElementBlock as C, openBlock as _, Fragment as O, normalizeClass as D, createElementVNode as k, createVNode as V, unref as t, isRef as j, withCtx as P, renderList as ie, createBlock as G, createCommentVNode as $, toDisplayString as B, withModifiers as H } from "vue";
|
|
2
|
-
import { G as q, u as Q, O as W, J as N, A as z, H as L, B as se, an as J } from "./menu-
|
|
2
|
+
import { G as q, u as Q, O as W, J as N, A as z, H as L, B as se, an as J } from "./menu-Cg_li9fp.js";
|
|
3
3
|
import { useI18n as X, useCoreStore as re } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as le, useSnackbar as Z, FmButtonVariant as A, components as ce, useBreakpoints as de } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ue } from "./app-
|
|
5
|
+
import { _ as ue } from "./app-BPqH1NSp.js";
|
|
6
6
|
import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
7
|
-
import { a as ye, l as ee, T as pe } from "./index-
|
|
7
|
+
import { a as ye, l as ee, T as pe } from "./index-k8JBMmlm.js";
|
|
8
8
|
import { u as fe } from "./search-BAPEUu1R.js";
|
|
9
|
-
import { f as F } from "./currency-
|
|
9
|
+
import { f as F } from "./currency-DvON4euj.js";
|
|
10
10
|
import { defineStore as _e } from "pinia";
|
|
11
|
-
import { C as ke } from "./catalog-
|
|
11
|
+
import { C as ke } from "./catalog-DLqIkhbq.js";
|
|
12
12
|
import { c as ve } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
function we(T, U, l, m) {
|
|
14
14
|
var y, v, w, g;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed as i, defineComponent as V, ref as k, resolveComponent as b, createElementBlock as L, openBlock as O, normalizeClass as v, createVNode as K, normalizeStyle as x, withCtx as $, createBlock as U, createCommentVNode as B } from "vue";
|
|
2
|
-
import { A as p, J as E, G as S, O as N, ah as A, u as y, c as j } from "./menu-
|
|
3
|
-
import { u as C } from "./menuV2-
|
|
4
|
-
import { C as w, h as G } from "./catalog-
|
|
2
|
+
import { A as p, J as E, G as S, O as N, ah as A, u as y, c as j } from "./menu-Cg_li9fp.js";
|
|
3
|
+
import { u as C } from "./menuV2-BmOhyQh2.js";
|
|
4
|
+
import { C as w, h as G } from "./catalog-DLqIkhbq.js";
|
|
5
5
|
import { useSnackbar as F, useDialog as Y } from "@feedmepos/ui-library";
|
|
6
|
-
import { a as T } from "./LinkProductSideSheet-
|
|
6
|
+
import { a as T } from "./LinkProductSideSheet-4GgEt5LN.js";
|
|
7
7
|
import { useI18n as J } from "@feedmepos/mf-common";
|
|
8
8
|
function q() {
|
|
9
9
|
const t = C(), s = i(() => t.categorizedRawMenuItems.filter((u) => u.items.length > 0)), m = i(() => {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { computed as D, shallowRef as Wt, ref as H, watch as ye, nextTick as nt, getCurrentInstance as xn, onMounted as Ae, defineComponent as ae, resolveComponent as W, createElementBlock as J, openBlock as $, createBlock as q, normalizeClass as fe, createElementVNode as A, createVNode as C, unref as o, withCtx as B, toDisplayString as ge, mergeModels as Ht, useModel as qt, createCommentVNode as X, resolveDirective as Xt, withDirectives as ft, createTextVNode as Sn, renderSlot as Me, h as ve, Fragment as Oe, renderList as Ne, vShow as Jt, withModifiers as qe, createSlots as Fn, onBeforeUnmount as Ot, watchEffect as On, onUnmounted as Dn, normalizeStyle as ct, mergeProps as Vn, normalizeProps as $n, guardReactiveProps as Pn, Teleport as Un, Transition as Rn, withKeys as Mn } from "vue";
|
|
2
|
-
import { g as An, o as Nn, f as Ln, a as Gn, n as Qt, _ as Zt, I as Kn, S as Bn, b as Dt, C as zn, R as We, c as en, d as Et, e as tn, h as Yn, m as jn, F as Wn, M as nn, j as Hn, r as qn, k as on, l as Nt, p as rn, q as Xn, P as Jn, s as Qn, t as an, u as Zn, T as Be } from "./item-
|
|
3
|
-
import { _ as eo, T as to } from "./app-
|
|
4
|
-
import { B as be, J as _e, A as te, G as ot, K as no, M as oo, N as ro, O as Vt, P as ao, D as Le, Q as lo, H as me, R as io, T as $t, I as ke, U as vt, V as so, W as uo, X as bt, Y as Lt, Z as co, u as ln, $ as mo } from "./menu-
|
|
2
|
+
import { g as An, o as Nn, f as Ln, a as Gn, n as Qt, _ as Zt, I as Kn, S as Bn, b as Dt, C as zn, R as We, c as en, d as Et, e as tn, h as Yn, m as jn, F as Wn, M as nn, j as Hn, r as qn, k as on, l as Nt, p as rn, q as Xn, P as Jn, s as Qn, t as an, u as Zn, T as Be } from "./item-BI77lImE.js";
|
|
3
|
+
import { _ as eo, T as to } from "./app-BPqH1NSp.js";
|
|
4
|
+
import { B as be, J as _e, A as te, G as ot, K as no, M as oo, N as ro, O as Vt, P as ao, D as Le, Q as lo, H as me, R as io, T as $t, I as ke, U as vt, V as so, W as uo, X as bt, Y as Lt, Z as co, u as ln, $ as mo } from "./menu-Cg_li9fp.js";
|
|
5
5
|
import { useI18n as ce, useCoreStore as rt, CustomAttributesForm as sn } from "@feedmepos/mf-common";
|
|
6
6
|
import { useDialog as Ge, useDialogChild as Pt, useSnackbar as Re, FmButtonColorThemeVariant as Fe, components as Ie, FmButtonVariant as He, useBreakpoints as po } from "@feedmepos/ui-library";
|
|
7
7
|
import { u as Ut } from "./discardConfirm-BHni0LNu.js";
|
|
8
8
|
import { defineStore as fo } from "pinia";
|
|
9
|
-
import { _ as De, a as Ue, b as go } from "./customAttributes-
|
|
10
|
-
import { u as se, g as un, m as vo } from "./menuV2-
|
|
11
|
-
import { s as Tt, _ as bo } from "./index-
|
|
12
|
-
import { _ as Gt } from "./category-
|
|
13
|
-
import { _ as _o, a as yo, u as ho } from "./Thumbnail.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { _ as Ze, L as xt } from "./LinkProductSideSheet-
|
|
9
|
+
import { _ as De, a as Ue, b as go } from "./customAttributes-C81bk6Ag.js";
|
|
10
|
+
import { u as se, g as un, m as vo } from "./menuV2-BmOhyQh2.js";
|
|
11
|
+
import { s as Tt, _ as bo } from "./index-Y2Y_5NeG.js";
|
|
12
|
+
import { _ as Gt } from "./category-CrJofVZH.js";
|
|
13
|
+
import { _ as _o, a as yo, u as ho } from "./Thumbnail.vue_vue_type_script_setup_true_lang-CdaiLu5o.js";
|
|
14
|
+
import { _ as Ze, L as xt } from "./LinkProductSideSheet-4GgEt5LN.js";
|
|
15
15
|
import { _ as dn } from "./tooltip-B5BiPMx9.js";
|
|
16
|
-
import { _ as Xe, T as wo, l as Co } from "./index-
|
|
16
|
+
import { _ as Xe, T as wo, l as Co } from "./index-k8JBMmlm.js";
|
|
17
17
|
import { u as Io } from "./search-BAPEUu1R.js";
|
|
18
18
|
import { c as Rt } from "./check-C9mY6LiX.js";
|
|
19
|
-
import { f as tt } from "./currency-
|
|
19
|
+
import { f as tt } from "./currency-DvON4euj.js";
|
|
20
20
|
import { c as ko } from "./string-DpfFixWH.js";
|
|
21
21
|
import { useInventoryStore as Eo, InventoryBindingSummary as To } from "@feedmepos/mf-inventory-portal";
|
|
22
|
-
import { u as xo } from "./priceTier-
|
|
22
|
+
import { u as xo } from "./priceTier-D89QKPQZ.js";
|
|
23
23
|
import { d as Mt } from "./vuedraggable-CK8z7qA8.js";
|
|
24
|
-
import { _ as So } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
24
|
+
import { _ as So } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-Cx6BY_nW.js";
|
|
25
25
|
import "./app-CiBqmBzO.js";
|
|
26
26
|
/* empty css */
|
|
27
|
-
import { i as Fo, t as At, w as Oo, a as cn, b as mn, n as Do, c as Vo, r as $o, _ as Po } from "./index-
|
|
27
|
+
import { i as Fo, t as At, w as Oo, a as cn, b as mn, n as Do, c as Vo, r as $o, _ as Po } from "./index-Bi-tjPhn.js";
|
|
28
28
|
import { c as mt } from "./object-DVUNCr7w.js";
|
|
29
29
|
import { _ as Uo } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
30
30
|
import { _ as Kt } from "./MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js";
|
|
@@ -2,10 +2,10 @@ import { defineComponent as L, computed as d, ref as g, h as k, withModifiers as
|
|
|
2
2
|
import { useI18n as E } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as K, components as R, useBreakpoints as D, FmButtonVariant as G } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as I } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { G as q, u as A } from "./menu-
|
|
5
|
+
import { G as q, u as A } from "./menu-Cg_li9fp.js";
|
|
6
6
|
import { _ as H } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
7
|
import { _ as J } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
8
|
-
import { u as O, U as P } from "./unit-
|
|
8
|
+
import { u as O, U as P } from "./unit-Bk_zO_6l.js";
|
|
9
9
|
const Q = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "h-[600px]"
|
|
@@ -2,10 +2,10 @@ import { getCurrentInstance as T, defineComponent as U, computed as g, onMounted
|
|
|
2
2
|
import { useI18n as N } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as Y, useSnackbar as D, FmButtonVariant as M, components as J, useBreakpoints as q } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as H } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as Q } from "./app-
|
|
6
|
-
import { G as K, u as P, O as j, J as W, A as X } from "./menu-
|
|
5
|
+
import { _ as Q } from "./app-BPqH1NSp.js";
|
|
6
|
+
import { G as K, u as P, O as j, J as W, A as X } from "./menu-Cg_li9fp.js";
|
|
7
7
|
import { _ as Z } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
8
|
-
import { V as S } from "./index-
|
|
8
|
+
import { V as S } from "./index-DoMiLJrG.js";
|
|
9
9
|
import { _ as ee } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
10
10
|
import { u as te } from "./search-BAPEUu1R.js";
|
|
11
11
|
import { defineStore as ae } from "pinia";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as H, computed as d, ref as p, watch as A, onMounted as F, resolveComponent as m, createElementBlock as K, openBlock as b, Fragment as W, createVNode as n, withCtx as u, createElementVNode as i, toDisplayString as M, unref as e, createBlock as D } from "vue";
|
|
2
|
-
import { D as j } from "./dayjs.min-
|
|
2
|
+
import { D as j } from "./dayjs.min-DkxnzHIf.js";
|
|
3
3
|
import { useRoute as J, useRouter as Q } from "vue-router";
|
|
4
|
-
import { _ as X, w as Z } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { G as ee, u as te, D as ae, H as oe, O as ne } from "./menu-
|
|
4
|
+
import { _ as X, w as Z } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BiwIRHka.js";
|
|
5
|
+
import { G as ee, u as te, D as ae, H as oe, O as ne } from "./menu-Cg_li9fp.js";
|
|
6
6
|
import { useI18n as le } from "@feedmepos/mf-common";
|
|
7
7
|
import { useSnackbar as se } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as R } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
9
|
-
import { L as V } from "./LinkProductSideSheet-
|
|
10
|
-
import { _ as ue } from "./index-
|
|
9
|
+
import { L as V } from "./LinkProductSideSheet-4GgEt5LN.js";
|
|
10
|
+
import { _ as ue } from "./index-Y2Y_5NeG.js";
|
|
11
11
|
import { _ as re } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
12
|
-
import { u as ie } from "./Thumbnail.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { a as me } from "./menu-
|
|
14
|
-
import { m as ce } from "./toExcel-
|
|
15
|
-
import { _ as de, u as pe, c as _e } from "./scheduler-
|
|
16
|
-
import { R as r } from "./app-
|
|
12
|
+
import { u as ie } from "./Thumbnail.vue_vue_type_script_setup_true_lang-CdaiLu5o.js";
|
|
13
|
+
import { a as me } from "./menu-v8tF5owz.js";
|
|
14
|
+
import { m as ce } from "./toExcel-DIGelQ9s.js";
|
|
15
|
+
import { _ as de, u as pe, c as _e } from "./scheduler-CFnDK-I3.js";
|
|
16
|
+
import { R as r } from "./app-BPqH1NSp.js";
|
|
17
17
|
const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class: "flex ml-auto space-x-8" }, be = { class: "flex-1 flex flex-col overflow-hidden" }, Ge = /* @__PURE__ */ H({
|
|
18
18
|
__name: "[id]",
|
|
19
19
|
setup(ke) {
|
|
@@ -1822,7 +1822,7 @@ const ee = [
|
|
|
1822
1822
|
{
|
|
1823
1823
|
path: "/product",
|
|
1824
1824
|
name: "$menu-products",
|
|
1825
|
-
component: b(() => import("./Products-
|
|
1825
|
+
component: b(() => import("./Products-iYZPVp8Y.js")),
|
|
1826
1826
|
meta: {
|
|
1827
1827
|
isNavItem: !0,
|
|
1828
1828
|
i18nId: "menu.products.title"
|
|
@@ -1832,7 +1832,7 @@ const ee = [
|
|
|
1832
1832
|
path: "/product-internal-tools",
|
|
1833
1833
|
name: "$menu-product-internal-tools",
|
|
1834
1834
|
component: gt(
|
|
1835
|
-
b(() => import("./ProductInternalTools-
|
|
1835
|
+
b(() => import("./ProductInternalTools-BPnnO5dR.js"))
|
|
1836
1836
|
),
|
|
1837
1837
|
meta: {
|
|
1838
1838
|
i18nId: "menu.productInternalTools.title",
|
|
@@ -1845,7 +1845,7 @@ const ee = [
|
|
|
1845
1845
|
{
|
|
1846
1846
|
path: "/category",
|
|
1847
1847
|
name: "$menu-category",
|
|
1848
|
-
component: b(() => import("./Category-
|
|
1848
|
+
component: b(() => import("./Category-NDkmqvdw.js")),
|
|
1849
1849
|
meta: {
|
|
1850
1850
|
isNavItem: !0,
|
|
1851
1851
|
i18nId: "menu.category.title"
|
|
@@ -1854,7 +1854,7 @@ const ee = [
|
|
|
1854
1854
|
{
|
|
1855
1855
|
path: "/subcategory",
|
|
1856
1856
|
name: "$menu-subcategory",
|
|
1857
|
-
component: b(() => import("./Subcategory-
|
|
1857
|
+
component: b(() => import("./Subcategory-CspNxL0A.js")),
|
|
1858
1858
|
meta: {
|
|
1859
1859
|
isNavItem: () => P.value,
|
|
1860
1860
|
i18nId: "menu.subcategory.title"
|
|
@@ -1863,7 +1863,7 @@ const ee = [
|
|
|
1863
1863
|
{
|
|
1864
1864
|
path: "/group",
|
|
1865
1865
|
name: "$menu-group",
|
|
1866
|
-
component: b(() => import("./Group-
|
|
1866
|
+
component: b(() => import("./Group-CvUWYuaR.js")),
|
|
1867
1867
|
meta: {
|
|
1868
1868
|
isNavItem: !0,
|
|
1869
1869
|
i18nId: "menu.group.title"
|
|
@@ -1872,7 +1872,7 @@ const ee = [
|
|
|
1872
1872
|
{
|
|
1873
1873
|
path: "/takeaway",
|
|
1874
1874
|
name: "$menu-takeaway",
|
|
1875
|
-
component: b(() => import("./Takeaway-
|
|
1875
|
+
component: b(() => import("./Takeaway-8ZrctPk8.js")),
|
|
1876
1876
|
meta: {
|
|
1877
1877
|
isNavItem: !0,
|
|
1878
1878
|
i18nId: "menu.takeaway.title"
|
|
@@ -1881,7 +1881,7 @@ const ee = [
|
|
|
1881
1881
|
{
|
|
1882
1882
|
path: "/scheduler",
|
|
1883
1883
|
name: "$menu-scheduler",
|
|
1884
|
-
component: b(() => import("./Scheduler-
|
|
1884
|
+
component: b(() => import("./Scheduler-DTULqkZU.js")),
|
|
1885
1885
|
meta: {
|
|
1886
1886
|
isNavItem: !0,
|
|
1887
1887
|
i18nId: "menu.scheduler.title"
|
|
@@ -1890,7 +1890,7 @@ const ee = [
|
|
|
1890
1890
|
{
|
|
1891
1891
|
path: "/variant",
|
|
1892
1892
|
name: "$menu-variant",
|
|
1893
|
-
component: b(() => import("./Variant-
|
|
1893
|
+
component: b(() => import("./Variant-tGw0WZcw.js")),
|
|
1894
1894
|
meta: {
|
|
1895
1895
|
isNavItem: !0,
|
|
1896
1896
|
i18nId: "menu.variant.title"
|
|
@@ -1899,7 +1899,7 @@ const ee = [
|
|
|
1899
1899
|
{
|
|
1900
1900
|
path: "/recipe",
|
|
1901
1901
|
name: "$menu-recipe",
|
|
1902
|
-
component: b(() => import("./Recipe-
|
|
1902
|
+
component: b(() => import("./Recipe-Be6kHRWd.js")),
|
|
1903
1903
|
meta: {
|
|
1904
1904
|
isNavItem: () => !P.value,
|
|
1905
1905
|
i18nId: "menu.recipe.title"
|
|
@@ -1908,7 +1908,7 @@ const ee = [
|
|
|
1908
1908
|
{
|
|
1909
1909
|
path: "/ingredient",
|
|
1910
1910
|
name: "$menu-ingredient",
|
|
1911
|
-
component: b(() => import("./Ingredient-
|
|
1911
|
+
component: b(() => import("./Ingredient-C3a4gt_G.js")),
|
|
1912
1912
|
meta: {
|
|
1913
1913
|
isNavItem: () => !P.value,
|
|
1914
1914
|
i18nId: "menu.ingredient.title"
|
|
@@ -1917,7 +1917,7 @@ const ee = [
|
|
|
1917
1917
|
{
|
|
1918
1918
|
path: "/unit",
|
|
1919
1919
|
name: "$menu-unit",
|
|
1920
|
-
component: b(() => import("./Unit-
|
|
1920
|
+
component: b(() => import("./Unit-qDXlKpxA.js")),
|
|
1921
1921
|
meta: {
|
|
1922
1922
|
isNavItem: () => !P.value,
|
|
1923
1923
|
i18nId: "menu.unit.title"
|
|
@@ -1926,7 +1926,7 @@ const ee = [
|
|
|
1926
1926
|
{
|
|
1927
1927
|
path: "/cooking-guide",
|
|
1928
1928
|
name: "$menu-cooking-guide",
|
|
1929
|
-
component: b(() => import("./CookingGuide-
|
|
1929
|
+
component: b(() => import("./CookingGuide-3SgKZVRT.js")),
|
|
1930
1930
|
meta: {
|
|
1931
1931
|
isNavItem: !0,
|
|
1932
1932
|
i18nId: "menu.cooking_guide.title"
|
|
@@ -1935,7 +1935,7 @@ const ee = [
|
|
|
1935
1935
|
{
|
|
1936
1936
|
path: "/print-route",
|
|
1937
1937
|
name: "$menu-print-route",
|
|
1938
|
-
component: b(() => import("./PrintRoute-
|
|
1938
|
+
component: b(() => import("./PrintRoute-D8mE_R6M.js")),
|
|
1939
1939
|
meta: {
|
|
1940
1940
|
isNavItem: !0,
|
|
1941
1941
|
i18nId: "menu.print_route.title"
|
|
@@ -1944,7 +1944,7 @@ const ee = [
|
|
|
1944
1944
|
{
|
|
1945
1945
|
path: "/serving-sequence",
|
|
1946
1946
|
name: "$menu-serving-sequence",
|
|
1947
|
-
component: b(() => import("./ServingSequence-
|
|
1947
|
+
component: b(() => import("./ServingSequence-1B2t3IOz.js")),
|
|
1948
1948
|
meta: {
|
|
1949
1949
|
isNavItem: () => P.value,
|
|
1950
1950
|
i18nId: "menu.serving_sequence.title"
|
|
@@ -1953,7 +1953,7 @@ const ee = [
|
|
|
1953
1953
|
{
|
|
1954
1954
|
path: "/publish",
|
|
1955
1955
|
name: "$menu-publish",
|
|
1956
|
-
component: b(() => import("./Publish-
|
|
1956
|
+
component: b(() => import("./Publish-BCFYIz0P.js")),
|
|
1957
1957
|
meta: {
|
|
1958
1958
|
isNavItem: !0,
|
|
1959
1959
|
i18nId: "menu.publish.title"
|
|
@@ -1966,7 +1966,7 @@ const ee = [
|
|
|
1966
1966
|
{
|
|
1967
1967
|
path: "/setting",
|
|
1968
1968
|
name: "$menu-menu-setting",
|
|
1969
|
-
component: b(() => import("./MenuSetting-
|
|
1969
|
+
component: b(() => import("./MenuSetting-DMDHHBs2.js")),
|
|
1970
1970
|
meta: {
|
|
1971
1971
|
isNavItem: !0,
|
|
1972
1972
|
i18nId: "menu.menu_setting.title"
|
|
@@ -1980,7 +1980,7 @@ const ee = [
|
|
|
1980
1980
|
{
|
|
1981
1981
|
path: "/catalog",
|
|
1982
1982
|
name: "$menu-catalog",
|
|
1983
|
-
component: b(() => import("./Catalog-
|
|
1983
|
+
component: b(() => import("./Catalog-BMuTQtqx.js")),
|
|
1984
1984
|
meta: {
|
|
1985
1985
|
isNavItem: !0,
|
|
1986
1986
|
i18nId: "menu.catalog.title"
|
|
@@ -1988,7 +1988,7 @@ const ee = [
|
|
|
1988
1988
|
},
|
|
1989
1989
|
{
|
|
1990
1990
|
path: "/catalog/edit/:id",
|
|
1991
|
-
component: b(() => import("./_id_-
|
|
1991
|
+
component: b(() => import("./_id_-nUIFi5Lq.js")),
|
|
1992
1992
|
name: "$menu-catalog-edit",
|
|
1993
1993
|
children: [
|
|
1994
1994
|
{
|
|
@@ -2000,31 +2000,31 @@ const ee = [
|
|
|
2000
2000
|
},
|
|
2001
2001
|
{
|
|
2002
2002
|
path: "/catalog/edit/:id/product",
|
|
2003
|
-
component: b(() => import("./Product-
|
|
2003
|
+
component: b(() => import("./Product-B7oT5kJ6.js")),
|
|
2004
2004
|
name: "$menu-catalog-edit-product"
|
|
2005
2005
|
/* EDIT_CATALOG_PRODUCT */
|
|
2006
2006
|
},
|
|
2007
2007
|
{
|
|
2008
2008
|
path: "/catalog/edit/:id/category",
|
|
2009
|
-
component: b(() => import("./Category-
|
|
2009
|
+
component: b(() => import("./Category-CUZ_xxMs.js")),
|
|
2010
2010
|
name: "$menu-catalog-edit-category"
|
|
2011
2011
|
/* EDIT_CATALOG_CATEGORY */
|
|
2012
2012
|
},
|
|
2013
2013
|
{
|
|
2014
2014
|
path: "/catalog/edit/:id/group",
|
|
2015
|
-
component: b(() => import("./Group-
|
|
2015
|
+
component: b(() => import("./Group-ClTlb1X2.js")),
|
|
2016
2016
|
name: "$menu-catalog-edit-group"
|
|
2017
2017
|
/* EDIT_CATALOG_GROUP */
|
|
2018
2018
|
},
|
|
2019
2019
|
{
|
|
2020
2020
|
path: "/catalog/edit/:id/takeaway",
|
|
2021
|
-
component: b(() => import("./Takeaway-
|
|
2021
|
+
component: b(() => import("./Takeaway-DS9QWvP4.js")),
|
|
2022
2022
|
name: "$menu-catalog-edit-takeaway"
|
|
2023
2023
|
/* EDIT_CATALOG_TAKEAWAY */
|
|
2024
2024
|
},
|
|
2025
2025
|
{
|
|
2026
2026
|
path: "/catalog/edit/:id/setting",
|
|
2027
|
-
component: b(() => import("./Setting-
|
|
2027
|
+
component: b(() => import("./Setting-Bfx_kAhO.js")),
|
|
2028
2028
|
name: "$menu-catalog-edit-setting"
|
|
2029
2029
|
/* EDIT_CATALOG_SETTING */
|
|
2030
2030
|
}
|
|
@@ -2038,10 +2038,10 @@ ee.push({
|
|
|
2038
2038
|
name: ((qe = ee[0].children) == null ? void 0 : qe[0].name) || ee[0].name
|
|
2039
2039
|
}
|
|
2040
2040
|
});
|
|
2041
|
-
b(() => import("./Catalog-
|
|
2041
|
+
b(() => import("./Catalog-BMuTQtqx.js")), b(() => import("./_id_-nUIFi5Lq.js")), b(() => import("./Product-B7oT5kJ6.js")), b(() => import("./Category-CUZ_xxMs.js")), b(() => import("./Group-ClTlb1X2.js")), b(() => import("./Takeaway-DS9QWvP4.js")), b(() => import("./Setting-Bfx_kAhO.js"));
|
|
2042
2042
|
const ui = "treeEditorOpen", bi = () => {
|
|
2043
2043
|
window.postMessage({ type: ui }, "*");
|
|
2044
|
-
}, yi = b(() => import("./App-
|
|
2044
|
+
}, yi = b(() => import("./App-DudzVdxN.js"));
|
|
2045
2045
|
function hi(e, t) {
|
|
2046
2046
|
e.use(Ya);
|
|
2047
2047
|
}
|
package/dist/app.js
CHANGED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import * as ExcelJS from "exceljs";
|
|
2
|
+
import { type WorkBook } from "xlsx";
|
|
3
|
+
import { FdoDinero } from "@feedmepos/core/entity";
|
|
4
|
+
import { FdoMenuV4, FdoMenuV4Catalog, F_ORDER_FROM } from "@feedmepos/menu/entity";
|
|
5
|
+
import type { GroupItem } from "@/manager/menu/group";
|
|
6
|
+
export interface ExportMenuDataRow {
|
|
7
|
+
_id: string;
|
|
8
|
+
code: string;
|
|
9
|
+
name: string;
|
|
10
|
+
variantKey: string;
|
|
11
|
+
variantName: string;
|
|
12
|
+
category: string;
|
|
13
|
+
orderFrom: string;
|
|
14
|
+
perXUnit: number | string;
|
|
15
|
+
unit: string;
|
|
16
|
+
openPrice: boolean | string;
|
|
17
|
+
price: number | string;
|
|
18
|
+
priceTier: Record<string, FdoDinero>;
|
|
19
|
+
trackingCost: number | string;
|
|
20
|
+
minPrice: number | string;
|
|
21
|
+
groupByParent: boolean | string;
|
|
22
|
+
takeawayName: string;
|
|
23
|
+
takeawayPrice: number | string;
|
|
24
|
+
tag: Record<string, any>;
|
|
25
|
+
}
|
|
26
|
+
export interface ExportAddonGroupRow {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
min: number;
|
|
30
|
+
max: number;
|
|
31
|
+
stackable: string;
|
|
32
|
+
itemId: string;
|
|
33
|
+
itemCode: string;
|
|
34
|
+
itemName: string;
|
|
35
|
+
itemNameOverrider: string;
|
|
36
|
+
combinationKey: string;
|
|
37
|
+
combinationName: string;
|
|
38
|
+
price: number;
|
|
39
|
+
priceTier: Record<string, FdoDinero>;
|
|
40
|
+
orderFrom: string;
|
|
41
|
+
isDefault: string;
|
|
42
|
+
index: number;
|
|
43
|
+
}
|
|
44
|
+
export interface TransformDataResult {
|
|
45
|
+
rows: ExportMenuDataRow[];
|
|
46
|
+
metaData: {
|
|
47
|
+
tags: string[];
|
|
48
|
+
priceTiers: string[];
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export interface GroupedItemVariant {
|
|
52
|
+
combinationKey: string;
|
|
53
|
+
name: string;
|
|
54
|
+
code: string | null | undefined;
|
|
55
|
+
takeawayUsed: string | null | undefined;
|
|
56
|
+
orderFrom: F_ORDER_FROM | null | undefined;
|
|
57
|
+
price: FdoDinero | null | undefined;
|
|
58
|
+
}
|
|
59
|
+
export interface GroupedItem {
|
|
60
|
+
_id: string;
|
|
61
|
+
code: string;
|
|
62
|
+
name: string;
|
|
63
|
+
variants: GroupedItemVariant[];
|
|
64
|
+
category: string | null | undefined;
|
|
65
|
+
orderFrom: F_ORDER_FROM;
|
|
66
|
+
perXUnit: number | null | undefined;
|
|
67
|
+
unit: string | null | undefined;
|
|
68
|
+
openPrice: boolean;
|
|
69
|
+
price: FdoDinero;
|
|
70
|
+
trackingCost: FdoDinero | null | undefined;
|
|
71
|
+
minPrice: FdoDinero | null | undefined;
|
|
72
|
+
groupByParent: boolean | null | undefined;
|
|
73
|
+
takeawayId: string | null | undefined;
|
|
74
|
+
customAttributes: Record<string, any> | null;
|
|
75
|
+
priceTiers: Record<string, FdoDinero> | null;
|
|
76
|
+
}
|
|
77
|
+
export interface GroupedAddon {
|
|
78
|
+
_id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
min: number;
|
|
81
|
+
max: number;
|
|
82
|
+
stackable: boolean;
|
|
83
|
+
itemId: string;
|
|
84
|
+
itemName: string;
|
|
85
|
+
itemCode: string;
|
|
86
|
+
combinationKey: string;
|
|
87
|
+
combinationName: string;
|
|
88
|
+
price: number;
|
|
89
|
+
orderFrom: F_ORDER_FROM;
|
|
90
|
+
isDefault: boolean;
|
|
91
|
+
priceTiers: Record<string, FdoDinero> | null;
|
|
92
|
+
index: number;
|
|
93
|
+
}
|
|
94
|
+
export interface itemsLinkWithGroup {
|
|
95
|
+
itemId: string;
|
|
96
|
+
itemName: string;
|
|
97
|
+
defaultCatalog: string;
|
|
98
|
+
}
|
|
99
|
+
export declare const ADDON = "ADDON";
|
|
100
|
+
export declare function mapVariant(menu: FdoMenuV4, variantGroupIds: string[]): {
|
|
101
|
+
[key: string]: string;
|
|
102
|
+
};
|
|
103
|
+
export declare function addDescriptionsAndHeadersExcelJS(worksheet: ExcelJS.Worksheet, tagKeys: string[], priceTierKeys: string[], catelog?: FdoMenuV4Catalog): ExcelJS.Worksheet;
|
|
104
|
+
export declare function addAddonHeaderExcelJS(worksheet: ExcelJS.Worksheet, priceTierKeys?: string[]): ExcelJS.Worksheet;
|
|
105
|
+
export declare function toDinero(price: number): {
|
|
106
|
+
currency: "ALL" | "AED" | "AFN" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
107
|
+
amount: number;
|
|
108
|
+
precision: number;
|
|
109
|
+
};
|
|
110
|
+
export declare function formatDinero(dinero?: FdoDinero | null): string;
|
|
111
|
+
export declare function compareDinero(dinero1: FdoDinero, dinero2: FdoDinero | null | undefined): boolean;
|
|
112
|
+
export declare function getUpdatedPrice(elementPrice: any, itemPrice: any, variantCombinationPrice?: any): any;
|
|
113
|
+
export declare function getUpdatedMinPrice(elementMinPrice: string, catalogItem: any): any;
|
|
114
|
+
export declare function extractExcelDataGeneric<T>(workbook: WorkBook): T[][];
|
|
115
|
+
export declare function extractExcelData(workbook: WorkBook): ExportMenuDataRow[][];
|
|
116
|
+
export declare function extractAddonExcelData(workbook: WorkBook): ExportAddonGroupRow[][];
|
|
117
|
+
export declare function extractItemsGroupExcelData(workbook: WorkBook): itemsLinkWithGroup[][];
|
|
118
|
+
export declare function transformValue<T>(v: T): NonNullable<T> | null;
|
|
119
|
+
export declare function generateId(key: string, length: number): string;
|
|
120
|
+
export declare function processGroupItem(newItem: GroupedAddon, index: number, originalItem?: GroupedAddon[] | null, combinationKey?: string | null, baseSelection?: string | null): GroupItem;
|
|
121
|
+
export declare function normalizeSheetName(name: string): string;
|
|
122
|
+
export declare function validateInputData(row: Record<string, any>, fileMap: Record<string, string>, isCatalog?: boolean, catalogName?: string): void;
|
|
123
|
+
export declare function validateAddonInputData(row: Record<string, any>, addonFile: Record<string, string>, catalogName?: string): void;
|