@feedmepos/mf-menu 0.31.51-beta.1 → 0.31.52-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-nZUeOsRj.js → App-MaktN0h5.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CZGHeqq-.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DZnCqrjJ.js} +3 -3
- package/dist/{Catalog-CQHowlMD.js → Catalog-cEpnDQ84.js} +6 -6
- package/dist/{Category-CdO_RVBl.js → Category-C3Ypu2VQ.js} +4 -4
- package/dist/{Category-IHtQRYpA.js → Category-ZiBoYQQN.js} +6 -6
- package/dist/{CookingGuide-EBJuyvti.js → CookingGuide-DH0pYHsm.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DWwByBHi.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-C4e7SpGo.js} +1 -1
- package/dist/{Group-H9YjM9Uh.js → Group-WRlOExBi.js} +1 -1
- package/dist/{Group-B9gYyuw8.js → Group-j5TSPPHj.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-D15J3zxB.js → Group.vue_vue_type_script_setup_true_lang-CpOAdyWu.js} +8 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B2FS4qly.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Da4d_t4d.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BKYGviw4.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DJ7_iBd1.js} +7 -7
- package/dist/{Ingredient-B5GU-Ids.js → Ingredient-7o_2tWwH.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BHLP_plA.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DVBc2xYW.js} +2 -2
- package/dist/{LinkProductSideSheet-B5Mv40Np.js → LinkProductSideSheet-BBLfSM53.js} +3 -3
- package/dist/{MenuSetting-D6yyyckv.js → MenuSetting-d9jbk0M4.js} +5 -5
- package/dist/{PrintRoute-Bwa6CM4E.js → PrintRoute-BQCMHXJ9.js} +4 -4
- package/dist/{Product-D5NxKIbK.js → Product-CXt3FaBK.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DFSWEKN-.js → Product.vue_vue_type_script_setup_true_lang-C9SXeiW2.js} +13 -13
- package/dist/{ProductInternalTools-bNqxtp09.js → ProductInternalTools-BBNHbRCz.js} +5 -5
- package/dist/{Products-BGO9EeZJ.js → Products-CXRSPmS2.js} +11 -11
- package/dist/{Publish-DFgfd9PG.js → Publish-BOaAkCRE.js} +3 -3
- package/dist/{Recipe-ayBsaO3Y.js → Recipe-DUY4qTTX.js} +4 -4
- package/dist/{Scheduler-B7muq2xt.js → Scheduler-BPEWew1d.js} +3 -3
- package/dist/{ServingSequence-B7gaxwFi.js → ServingSequence-9JE73A2n.js} +3 -3
- package/dist/{Setting-B6KAm9OQ.js → Setting-DdL7wa-o.js} +5 -5
- package/dist/{Subcategory-BPjF5OW7.js → Subcategory-znLDoHOm.js} +4 -4
- package/dist/{Takeaway-CAHgx8Pb.js → Takeaway-CanMCNoK.js} +4 -4
- package/dist/{Takeaway-Cr8Ok4de.js → Takeaway-DLc6Pu42.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-B31aUQ3c.js → Takeaway.vue_vue_type_script_setup_true_lang-DNQTblGJ.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-C8HFPhnD.js → Thumbnail.vue_vue_type_script_setup_true_lang-DqzK9R-0.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Bkvg9n_Y.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-734F0DDo.js} +156 -156
- package/dist/{Unit-Bz0m4H4g.js → Unit-DYPVcncJ.js} +2 -2
- package/dist/{Variant-Df3s68dC.js → Variant-CPNPsxlY.js} +3 -3
- package/dist/{_id_-B6dJ5d52.js → _id_-BtEgjazW.js} +10 -10
- package/dist/{app-BaxOlDbP.js → app-edIuGM5n.js} +1 -1
- package/dist/{app-CjXgTr4z.js → app-m5E6HHmB.js} +26 -26
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/history/jsonDiffPatch.d.ts +130 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +3 -3
- package/dist/apps/mf-menu/src/stores/menu.d.ts +0 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{validate-menu-Bj2kRZAS.js → linked-status-CvGzvMr1.js} +7 -7
- package/dist/assets/{override-menu-qDB0GOu1.js → override-menu-143sdmgy.js} +2 -2
- package/dist/assets/{linked-status-CX6Q-vWP.js → validate-menu-GPsZur6N.js} +7 -7
- package/dist/{catalog-BjKlXYln.js → catalog-DbBOv8uZ.js} +1 -1
- package/dist/{catalogSetting-YqC6Ojo8.js → catalogSetting-OMF_13MG.js} +1 -1
- package/dist/{category-CNoYX7sj.js → category-CkHad8Qe.js} +1 -1
- package/dist/{currency-CI2JmD81.js → currency-DF2AE_Ev.js} +1 -1
- package/dist/{customAttributes-6K-H9b8-.js → customAttributes-BBq_Rv5r.js} +1 -1
- package/dist/{dayjs.min-CuNawXBv.js → dayjs.min-Baxvt3jl.js} +1 -1
- package/dist/{index-Cbmiaavc.js → index-9LDXtBYA.js} +3 -3
- package/dist/{index-Dk3Tf8J1.js → index-BCaofwYh.js} +1 -1
- package/dist/{index-B7J4O0Yk.js → index-BgQC1nrS.js} +4 -4
- package/dist/{index-D9Ja3xu0.js → index-OrBLJRSr.js} +1 -1
- package/dist/{item-chcJdZaJ.js → item-BLAE_RCk.js} +16 -16
- package/dist/{jszip.min-DCZRJUBf.js → jszip.min-BMisfLkQ.js} +2 -2
- package/dist/{menu-CmVLUyqN.js → menu-3zZmORBk.js} +1 -1
- package/dist/{menu-Bf2WmNLJ.js → menu-k8bqSg47.js} +5 -5
- package/dist/menuV2-BYX-027p.js +1042 -0
- package/dist/{priceTier-BzBG7LNF.js → priceTier-znTjAPPz.js} +1 -1
- package/dist/{scheduler-CYGLnR9N.js → scheduler-DJbCs-IR.js} +4 -4
- package/dist/{subcategory-r_AeUJ_h.js → subcategory-CHBqzP1A.js} +2 -2
- package/dist/{toExcel-BupMrq3s.js → toExcel-ZjuZ9iuw.js} +2 -2
- package/dist/{unit-BpR8s1rn.js → unit-BYsP3DYD.js} +2 -2
- package/package.json +7 -2
- package/dist/menuV2-DOFVpwgW.js +0 -712
|
@@ -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-k8bqSg47.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-BYsP3DYD.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-m5E6HHmB.js";
|
|
6
|
+
import { G as K, u as P, O as j, J as W, A as X } from "./menu-k8bqSg47.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-9LDXtBYA.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-Baxvt3jl.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-DJ7_iBd1.js";
|
|
5
|
+
import { G as ee, u as te, D as ae, H as oe, O as ne } from "./menu-k8bqSg47.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-BBLfSM53.js";
|
|
10
|
+
import { _ as ue } from "./index-BCaofwYh.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-DqzK9R-0.js";
|
|
13
|
+
import { a as me } from "./menu-3zZmORBk.js";
|
|
14
|
+
import { m as ce } from "./toExcel-ZjuZ9iuw.js";
|
|
15
|
+
import { _ as de, u as pe, c as _e } from "./scheduler-DJbCs-IR.js";
|
|
16
|
+
import { R as r } from "./app-m5E6HHmB.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) {
|
|
@@ -1831,7 +1831,7 @@ const h = {
|
|
|
1831
1831
|
{
|
|
1832
1832
|
path: "/product",
|
|
1833
1833
|
name: "$menu-products",
|
|
1834
|
-
component: y(b(() => import("./Products-
|
|
1834
|
+
component: y(b(() => import("./Products-CXRSPmS2.js"))),
|
|
1835
1835
|
meta: {
|
|
1836
1836
|
...h,
|
|
1837
1837
|
isNavItem: !0,
|
|
@@ -1842,7 +1842,7 @@ const h = {
|
|
|
1842
1842
|
path: "/product-internal-tools",
|
|
1843
1843
|
name: "$menu-product-internal-tools",
|
|
1844
1844
|
component: y(
|
|
1845
|
-
b(() => import("./ProductInternalTools-
|
|
1845
|
+
b(() => import("./ProductInternalTools-BBNHbRCz.js"))
|
|
1846
1846
|
),
|
|
1847
1847
|
meta: {
|
|
1848
1848
|
i18nId: "menu.productInternalTools.title",
|
|
@@ -1855,7 +1855,7 @@ const h = {
|
|
|
1855
1855
|
{
|
|
1856
1856
|
path: "/category",
|
|
1857
1857
|
name: "$menu-category",
|
|
1858
|
-
component: y(b(() => import("./Category-
|
|
1858
|
+
component: y(b(() => import("./Category-ZiBoYQQN.js"))),
|
|
1859
1859
|
meta: {
|
|
1860
1860
|
...h,
|
|
1861
1861
|
isNavItem: !0,
|
|
@@ -1865,7 +1865,7 @@ const h = {
|
|
|
1865
1865
|
{
|
|
1866
1866
|
path: "/subcategory",
|
|
1867
1867
|
name: "$menu-subcategory",
|
|
1868
|
-
component: y(b(() => import("./Subcategory-
|
|
1868
|
+
component: y(b(() => import("./Subcategory-znLDoHOm.js"))),
|
|
1869
1869
|
meta: {
|
|
1870
1870
|
...h,
|
|
1871
1871
|
isNavItem: () => T.value,
|
|
@@ -1875,7 +1875,7 @@ const h = {
|
|
|
1875
1875
|
{
|
|
1876
1876
|
path: "/group",
|
|
1877
1877
|
name: "$menu-group",
|
|
1878
|
-
component: y(b(() => import("./Group-
|
|
1878
|
+
component: y(b(() => import("./Group-j5TSPPHj.js"))),
|
|
1879
1879
|
meta: {
|
|
1880
1880
|
...h,
|
|
1881
1881
|
isNavItem: !0,
|
|
@@ -1885,7 +1885,7 @@ const h = {
|
|
|
1885
1885
|
{
|
|
1886
1886
|
path: "/takeaway",
|
|
1887
1887
|
name: "$menu-takeaway",
|
|
1888
|
-
component: y(b(() => import("./Takeaway-
|
|
1888
|
+
component: y(b(() => import("./Takeaway-CanMCNoK.js"))),
|
|
1889
1889
|
meta: {
|
|
1890
1890
|
...h,
|
|
1891
1891
|
isNavItem: !0,
|
|
@@ -1895,7 +1895,7 @@ const h = {
|
|
|
1895
1895
|
{
|
|
1896
1896
|
path: "/scheduler",
|
|
1897
1897
|
name: "$menu-scheduler",
|
|
1898
|
-
component: y(b(() => import("./Scheduler-
|
|
1898
|
+
component: y(b(() => import("./Scheduler-BPEWew1d.js"))),
|
|
1899
1899
|
meta: {
|
|
1900
1900
|
...h,
|
|
1901
1901
|
isNavItem: !0,
|
|
@@ -1905,7 +1905,7 @@ const h = {
|
|
|
1905
1905
|
{
|
|
1906
1906
|
path: "/variant",
|
|
1907
1907
|
name: "$menu-variant",
|
|
1908
|
-
component: y(b(() => import("./Variant-
|
|
1908
|
+
component: y(b(() => import("./Variant-CPNPsxlY.js"))),
|
|
1909
1909
|
meta: {
|
|
1910
1910
|
...h,
|
|
1911
1911
|
isNavItem: !0,
|
|
@@ -1915,7 +1915,7 @@ const h = {
|
|
|
1915
1915
|
{
|
|
1916
1916
|
path: "/recipe",
|
|
1917
1917
|
name: "$menu-recipe",
|
|
1918
|
-
component: y(b(() => import("./Recipe-
|
|
1918
|
+
component: y(b(() => import("./Recipe-DUY4qTTX.js"))),
|
|
1919
1919
|
meta: {
|
|
1920
1920
|
...h,
|
|
1921
1921
|
isNavItem: () => !T.value,
|
|
@@ -1925,7 +1925,7 @@ const h = {
|
|
|
1925
1925
|
{
|
|
1926
1926
|
path: "/ingredient",
|
|
1927
1927
|
name: "$menu-ingredient",
|
|
1928
|
-
component: y(b(() => import("./Ingredient-
|
|
1928
|
+
component: y(b(() => import("./Ingredient-7o_2tWwH.js"))),
|
|
1929
1929
|
meta: {
|
|
1930
1930
|
...h,
|
|
1931
1931
|
isNavItem: () => !T.value,
|
|
@@ -1935,7 +1935,7 @@ const h = {
|
|
|
1935
1935
|
{
|
|
1936
1936
|
path: "/unit",
|
|
1937
1937
|
name: "$menu-unit",
|
|
1938
|
-
component: y(b(() => import("./Unit-
|
|
1938
|
+
component: y(b(() => import("./Unit-DYPVcncJ.js"))),
|
|
1939
1939
|
meta: {
|
|
1940
1940
|
...h,
|
|
1941
1941
|
isNavItem: () => !T.value,
|
|
@@ -1945,7 +1945,7 @@ const h = {
|
|
|
1945
1945
|
{
|
|
1946
1946
|
path: "/cooking-guide",
|
|
1947
1947
|
name: "$menu-cooking-guide",
|
|
1948
|
-
component: y(b(() => import("./CookingGuide-
|
|
1948
|
+
component: y(b(() => import("./CookingGuide-DH0pYHsm.js"))),
|
|
1949
1949
|
meta: {
|
|
1950
1950
|
...h,
|
|
1951
1951
|
isNavItem: !0,
|
|
@@ -1955,7 +1955,7 @@ const h = {
|
|
|
1955
1955
|
{
|
|
1956
1956
|
path: "/print-route",
|
|
1957
1957
|
name: "$menu-print-route",
|
|
1958
|
-
component: y(b(() => import("./PrintRoute-
|
|
1958
|
+
component: y(b(() => import("./PrintRoute-BQCMHXJ9.js"))),
|
|
1959
1959
|
meta: {
|
|
1960
1960
|
...h,
|
|
1961
1961
|
isNavItem: !0,
|
|
@@ -1966,7 +1966,7 @@ const h = {
|
|
|
1966
1966
|
path: "/serving-sequence",
|
|
1967
1967
|
name: "$menu-serving-sequence",
|
|
1968
1968
|
component: y(
|
|
1969
|
-
b(() => import("./ServingSequence-
|
|
1969
|
+
b(() => import("./ServingSequence-9JE73A2n.js"))
|
|
1970
1970
|
),
|
|
1971
1971
|
meta: {
|
|
1972
1972
|
...h,
|
|
@@ -1977,7 +1977,7 @@ const h = {
|
|
|
1977
1977
|
{
|
|
1978
1978
|
path: "/publish",
|
|
1979
1979
|
name: "$menu-publish",
|
|
1980
|
-
component: y(b(() => import("./Publish-
|
|
1980
|
+
component: y(b(() => import("./Publish-BOaAkCRE.js"))),
|
|
1981
1981
|
meta: {
|
|
1982
1982
|
...h,
|
|
1983
1983
|
isNavItem: !0,
|
|
@@ -1991,7 +1991,7 @@ const h = {
|
|
|
1991
1991
|
{
|
|
1992
1992
|
path: "/setting",
|
|
1993
1993
|
name: "$menu-menu-setting",
|
|
1994
|
-
component: y(b(() => import("./MenuSetting-
|
|
1994
|
+
component: y(b(() => import("./MenuSetting-d9jbk0M4.js"))),
|
|
1995
1995
|
meta: {
|
|
1996
1996
|
...h,
|
|
1997
1997
|
isNavItem: !0,
|
|
@@ -2006,7 +2006,7 @@ const h = {
|
|
|
2006
2006
|
{
|
|
2007
2007
|
path: "/catalog",
|
|
2008
2008
|
name: "$menu-catalog",
|
|
2009
|
-
component: y(b(() => import("./Catalog-
|
|
2009
|
+
component: y(b(() => import("./Catalog-cEpnDQ84.js"))),
|
|
2010
2010
|
meta: {
|
|
2011
2011
|
...h,
|
|
2012
2012
|
isNavItem: !0,
|
|
@@ -2015,7 +2015,7 @@ const h = {
|
|
|
2015
2015
|
},
|
|
2016
2016
|
{
|
|
2017
2017
|
path: "/catalog/edit/:id",
|
|
2018
|
-
component: y(b(() => import("./_id_-
|
|
2018
|
+
component: y(b(() => import("./_id_-BtEgjazW.js"))),
|
|
2019
2019
|
name: "$menu-catalog-edit",
|
|
2020
2020
|
meta: {
|
|
2021
2021
|
...h
|
|
@@ -2030,31 +2030,31 @@ const h = {
|
|
|
2030
2030
|
},
|
|
2031
2031
|
{
|
|
2032
2032
|
path: "/catalog/edit/:id/product",
|
|
2033
|
-
component: y(b(() => import("./Product-
|
|
2033
|
+
component: y(b(() => import("./Product-CXt3FaBK.js"))),
|
|
2034
2034
|
name: "$menu-catalog-edit-product",
|
|
2035
2035
|
meta: { ...h }
|
|
2036
2036
|
},
|
|
2037
2037
|
{
|
|
2038
2038
|
path: "/catalog/edit/:id/category",
|
|
2039
|
-
component: y(b(() => import("./Category-
|
|
2039
|
+
component: y(b(() => import("./Category-C3Ypu2VQ.js"))),
|
|
2040
2040
|
name: "$menu-catalog-edit-category",
|
|
2041
2041
|
meta: { ...h }
|
|
2042
2042
|
},
|
|
2043
2043
|
{
|
|
2044
2044
|
path: "/catalog/edit/:id/group",
|
|
2045
|
-
component: y(b(() => import("./Group-
|
|
2045
|
+
component: y(b(() => import("./Group-WRlOExBi.js"))),
|
|
2046
2046
|
name: "$menu-catalog-edit-group",
|
|
2047
2047
|
meta: { ...h }
|
|
2048
2048
|
},
|
|
2049
2049
|
{
|
|
2050
2050
|
path: "/catalog/edit/:id/takeaway",
|
|
2051
|
-
component: y(b(() => import("./Takeaway-
|
|
2051
|
+
component: y(b(() => import("./Takeaway-DLc6Pu42.js"))),
|
|
2052
2052
|
name: "$menu-catalog-edit-takeaway",
|
|
2053
2053
|
meta: { ...h }
|
|
2054
2054
|
},
|
|
2055
2055
|
{
|
|
2056
2056
|
path: "/catalog/edit/:id/setting",
|
|
2057
|
-
component: y(b(() => import("./Setting-
|
|
2057
|
+
component: y(b(() => import("./Setting-DdL7wa-o.js"))),
|
|
2058
2058
|
name: "$menu-catalog-edit-setting",
|
|
2059
2059
|
meta: { ...h }
|
|
2060
2060
|
}
|
|
@@ -2068,12 +2068,12 @@ ae.push({
|
|
|
2068
2068
|
name: ((Ie = ae[0].children) == null ? void 0 : Ie[0].name) || ae[0].name
|
|
2069
2069
|
}
|
|
2070
2070
|
});
|
|
2071
|
-
y(b(() => import("./Catalog-
|
|
2071
|
+
y(b(() => import("./Catalog-cEpnDQ84.js"))), {
|
|
2072
2072
|
...h
|
|
2073
|
-
}, y(b(() => import("./_id_-
|
|
2073
|
+
}, y(b(() => import("./_id_-BtEgjazW.js"))), { ...h }, y(b(() => import("./Product-CXt3FaBK.js"))), { ...h }, y(b(() => import("./Category-C3Ypu2VQ.js"))), { ...h }, y(b(() => import("./Group-WRlOExBi.js"))), { ...h }, y(b(() => import("./Takeaway-DLc6Pu42.js"))), { ...h }, y(b(() => import("./Setting-DdL7wa-o.js"))), { ...h };
|
|
2074
2074
|
const pi = "treeEditorOpen", hi = () => {
|
|
2075
2075
|
window.postMessage({ type: pi }, "*");
|
|
2076
|
-
}, fi = b(() => import("./App-
|
|
2076
|
+
}, fi = b(() => import("./App-MaktN0h5.js"));
|
|
2077
2077
|
function vi(e, t) {
|
|
2078
2078
|
e.use(Xa);
|
|
2079
2079
|
}
|
package/dist/app.js
CHANGED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JsonDiffPatch - A diff and patch library similar to git
|
|
3
|
+
* Instead of storing whole data, just store the diff to save memory
|
|
4
|
+
*
|
|
5
|
+
* Based on: https://github.com/benjamine/jsondiffpatch
|
|
6
|
+
*
|
|
7
|
+
* Delta Format:
|
|
8
|
+
* - undefined: no change
|
|
9
|
+
* - [newValue]: added
|
|
10
|
+
* - [oldValue, newValue]: modified
|
|
11
|
+
* - [oldValue, 0, 0]: deleted
|
|
12
|
+
* - ['', newIndex, 3]: moved (arrays only)
|
|
13
|
+
* - Arrays: { _t: 'a', ...changes }
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Marker constants for delta format
|
|
17
|
+
* These follow the jsondiffpatch specification for distinguishing delta types
|
|
18
|
+
*/
|
|
19
|
+
export declare const DELETED_MARKER = 0;
|
|
20
|
+
export declare const MOVED_MARKER = 3;
|
|
21
|
+
/**
|
|
22
|
+
* Delta represents the difference between two values
|
|
23
|
+
*/
|
|
24
|
+
export type Delta = undefined | AddedDelta | ModifiedDelta | DeletedDelta | MovedDelta | ObjectDelta | ArrayDelta;
|
|
25
|
+
/**
|
|
26
|
+
* Added delta: [newValue]
|
|
27
|
+
* Represents a value that was added
|
|
28
|
+
*/
|
|
29
|
+
export type AddedDelta = [unknown];
|
|
30
|
+
/**
|
|
31
|
+
* Modified delta: [oldValue, newValue]
|
|
32
|
+
* Represents a value that was changed
|
|
33
|
+
*/
|
|
34
|
+
export type ModifiedDelta = [unknown, unknown];
|
|
35
|
+
/**
|
|
36
|
+
* Deleted delta: [oldValue, 0, 0]
|
|
37
|
+
* The two zeros are markers to distinguish deletion from modification
|
|
38
|
+
* Second element (0) indicates deletion, third element (0) confirms the format
|
|
39
|
+
*/
|
|
40
|
+
export type DeletedDelta = [unknown, typeof DELETED_MARKER, typeof DELETED_MARKER];
|
|
41
|
+
/**
|
|
42
|
+
* Moved delta: ["", newIndex, 3]
|
|
43
|
+
* Used in array diffs to indicate an item moved to a new position
|
|
44
|
+
* First element can be empty string or the moved value (if includeValueOnMove is true)
|
|
45
|
+
* Second element is the target index
|
|
46
|
+
* Third element (3) is the move marker to distinguish from other delta types
|
|
47
|
+
*/
|
|
48
|
+
export type MovedDelta = ["" | unknown, number, typeof MOVED_MARKER];
|
|
49
|
+
export interface ObjectDelta {
|
|
50
|
+
[key: string]: Delta;
|
|
51
|
+
}
|
|
52
|
+
export interface ArrayDelta {
|
|
53
|
+
_t: "a";
|
|
54
|
+
[key: string]: Delta | string | MovedDelta;
|
|
55
|
+
}
|
|
56
|
+
export interface Options {
|
|
57
|
+
/**
|
|
58
|
+
* Function to match objects when diffing arrays
|
|
59
|
+
* By default only === operator is used
|
|
60
|
+
*/
|
|
61
|
+
objectHash?: (obj: unknown) => string | number;
|
|
62
|
+
arrays?: {
|
|
63
|
+
/** Detect items moved inside the array (default: true) */
|
|
64
|
+
detectMove?: boolean;
|
|
65
|
+
/** Include value of moved items in deltas (default: false) */
|
|
66
|
+
includeValueOnMove?: boolean;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Filter to ignore certain properties
|
|
70
|
+
*/
|
|
71
|
+
propertyFilter?: (name: string, context: {
|
|
72
|
+
left: unknown;
|
|
73
|
+
right: unknown;
|
|
74
|
+
}) => boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Clone values in delta to avoid references (default: false)
|
|
77
|
+
*/
|
|
78
|
+
cloneDiffValues?: boolean | ((value: unknown) => unknown);
|
|
79
|
+
/**
|
|
80
|
+
* Omit removed values from delta for more compact deltas (default: false)
|
|
81
|
+
* Warning: makes delta irreversible
|
|
82
|
+
*/
|
|
83
|
+
omitRemovedValues?: boolean;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Deep clone a value
|
|
87
|
+
*/
|
|
88
|
+
export declare function clone(arg: unknown): unknown;
|
|
89
|
+
/**
|
|
90
|
+
* Calculate the difference between two values
|
|
91
|
+
*/
|
|
92
|
+
export declare function diff(left: unknown, right: unknown, options?: Options): Delta;
|
|
93
|
+
/**
|
|
94
|
+
* Apply a delta to a value
|
|
95
|
+
*/
|
|
96
|
+
export declare function patch(left: unknown, delta: Delta, options?: Options): unknown;
|
|
97
|
+
/**
|
|
98
|
+
* Reverse a delta (to undo it)
|
|
99
|
+
*/
|
|
100
|
+
export declare function reverse(delta: Delta): Delta;
|
|
101
|
+
/**
|
|
102
|
+
* Unpatch: reverse the delta and apply it
|
|
103
|
+
*/
|
|
104
|
+
export declare function unpatch(right: unknown, delta: Delta, options?: Options): unknown;
|
|
105
|
+
/**
|
|
106
|
+
* DiffPatcher class for creating instances with specific options
|
|
107
|
+
*/
|
|
108
|
+
export declare class DiffPatcher {
|
|
109
|
+
private options;
|
|
110
|
+
constructor(options?: Options);
|
|
111
|
+
diff(left: unknown, right: unknown): Delta;
|
|
112
|
+
patch(left: unknown, delta: Delta): unknown;
|
|
113
|
+
reverse(delta: Delta): Delta;
|
|
114
|
+
unpatch(right: unknown, delta: Delta): unknown;
|
|
115
|
+
clone(value: unknown): unknown;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Create a new DiffPatcher instance with options
|
|
119
|
+
*/
|
|
120
|
+
export declare function create(options?: Options): DiffPatcher;
|
|
121
|
+
export declare const jsondiffpatch: {
|
|
122
|
+
diff: (left: unknown, right: unknown) => Delta;
|
|
123
|
+
patch: (left: unknown, delta: Delta) => unknown;
|
|
124
|
+
reverse: (delta: Delta) => Delta;
|
|
125
|
+
unpatch: (right: unknown, delta: Delta) => unknown;
|
|
126
|
+
clone: (value: unknown) => unknown;
|
|
127
|
+
create: typeof create;
|
|
128
|
+
DiffPatcher: typeof DiffPatcher;
|
|
129
|
+
};
|
|
130
|
+
export default jsondiffpatch;
|
|
@@ -7753,7 +7753,6 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
7753
7753
|
}[];
|
|
7754
7754
|
};
|
|
7755
7755
|
}>>;
|
|
7756
|
-
export declare function useCatalogIdWatcher(callback: (catalogId: string | null) => Promise<void>): void;
|
|
7757
7756
|
interface MenuStoreType {
|
|
7758
7757
|
state: ShallowReactive<MenuState>;
|
|
7759
7758
|
workerIsComputing: Ref<boolean>;
|
|
@@ -7813,7 +7812,8 @@ interface MenuStoreType {
|
|
|
7813
7812
|
canRedoHistory: ComputedRef<boolean>;
|
|
7814
7813
|
undoHistory: () => void;
|
|
7815
7814
|
redoHistory: () => void;
|
|
7816
|
-
|
|
7815
|
+
$dispose: () => void;
|
|
7816
|
+
$reinitialize: () => void;
|
|
7817
7817
|
}
|
|
7818
|
-
export declare const useMenuStore: import("pinia").StoreDefinition<"mf-menu-store-v2", Pick<MenuStoreType, "state" | "mergedMenu" | "workerIsComputing" | "mergedMenuChangeId">, Pick<MenuStoreType, "groups" | "categories" | "version" | "isV4" | "serveSequence" | "catalogs" | "currentCatalog" | "schedulers" | "currentScheduler" | "catalogOptions" | "subcategories" | "items" | "sortedItems" | "categorizedItems" | "categorizedRawMenuItems" | "variants" | "takeaways" | "printDepartments" | "units" | "recipes" | "cookingGuide" | "skus" | "rules" | "taxSetting" | "canUndoHistory" | "canRedoHistory">, Pick<MenuStoreType, "readMenu" | "readRestaurants" | "selectCatalog" | "selectScheduler" | "selectCategory" | "setRestaurantAttrParams" | "updateMenu" | "updateMenuSetting" | "encodeTax" | "decodeTax" | "getSelectedTax" | "mapVariant" | "setMenu" | "computeMergedMenu" | "undoHistory" | "redoHistory" | "
|
|
7818
|
+
export declare const useMenuStore: import("pinia").StoreDefinition<"mf-menu-store-v2", Pick<MenuStoreType, "state" | "mergedMenu" | "workerIsComputing" | "mergedMenuChangeId">, Pick<MenuStoreType, "groups" | "categories" | "version" | "isV4" | "serveSequence" | "catalogs" | "currentCatalog" | "schedulers" | "currentScheduler" | "catalogOptions" | "subcategories" | "items" | "sortedItems" | "categorizedItems" | "categorizedRawMenuItems" | "variants" | "takeaways" | "printDepartments" | "units" | "recipes" | "cookingGuide" | "skus" | "rules" | "taxSetting" | "canUndoHistory" | "canRedoHistory">, Pick<MenuStoreType, "readMenu" | "readRestaurants" | "selectCatalog" | "selectScheduler" | "selectCategory" | "setRestaurantAttrParams" | "updateMenu" | "updateMenuSetting" | "encodeTax" | "decodeTax" | "getSelectedTax" | "mapVariant" | "$dispose" | "setMenu" | "computeMergedMenu" | "undoHistory" | "redoHistory" | "$reinitialize">>;
|
|
7819
7819
|
export {};
|
|
@@ -7755,7 +7755,6 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
7755
7755
|
}[];
|
|
7756
7756
|
};
|
|
7757
7757
|
}>>;
|
|
7758
|
-
export declare function useCatalogIdWatcher(callback: (catalogId: string | null) => Promise<void>): void;
|
|
7759
7758
|
interface MenuStore {
|
|
7760
7759
|
state: Ref<MenuState>;
|
|
7761
7760
|
version: ComputedRef<F_MENU_VERSION>;
|