@feedmepos/mf-menu 0.32.7-beta.2 → 0.32.7
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-BIQ0CTci.js → App-6Q1nmlfA.js} +99 -99
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-xLPJOt02.js +161 -0
- package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js +74 -0
- package/dist/{Catalog-D2wc24o8.js → Catalog-Bf5JieUH.js} +9 -9
- package/dist/{Category-DA5-55d2.js → Category-BBATgN1o.js} +7 -7
- package/dist/{Category-BPufryqK.js → Category-BSBZlBHF.js} +4 -4
- package/dist/{CookingGuide-DKvou40e.js → CookingGuide-BnjSTAL4.js} +6 -6
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DHoAYdGI.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BXdLDaBB.js} +3 -3
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +26 -0
- package/dist/{Group-D60oAvmM.js → Group-BqXtHWr2.js} +1 -1
- package/dist/{Group-Bgpc6qE1.js → Group-Dpbz5j1x.js} +4 -4
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BXn3--BL.js → Group.vue_vue_type_script_setup_true_lang-Bz5hEPov.js} +128 -128
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BD9IZkwW.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-3a6eV6cB.js} +91 -91
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BE3LdBYY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C6Z7OJz7.js} +6075 -6075
- package/dist/{Ingredient-Brv4hml-.js → Ingredient-BZfbbI--.js} +29 -29
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CIOX-pq1.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DfyUAd9n.js} +104 -104
- package/dist/{LinkProductSideSheet-BDMbKJ8o.js → LinkProductSideSheet-C-CcvD1Y.js} +251 -251
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +69 -0
- package/dist/{MenuSetting-DvCu23my.js → MenuSetting-CRCXtk6n.js} +77 -77
- package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js → PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js} +8 -8
- package/dist/{PrintRoute-DwgLKDUV.js → PrintRoute-BqRkve5U.js} +5 -5
- package/dist/{Product-EmoWM778.js → Product-cj-wKww4.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-5HyO_RYw.js → Product.vue_vue_type_script_setup_true_lang-DtCzSk94.js} +606 -606
- package/dist/{ProductInternalTools-PqzouaF2.js → ProductInternalTools-B5V7Hs15.js} +11 -11
- package/dist/{Products-ZgfTT9dI.js → Products-a0N50IJw.js} +52 -52
- package/dist/{Publish-CUdRwmN1.js → Publish-CyiUajCw.js} +5 -5
- package/dist/{Recipe-BRUxyire.js → Recipe-CKIoGrBI.js} +5 -5
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CPFGkaTr.js → RuleView.vue_vue_type_script_setup_true_lang-fp_IdVVZ.js} +451 -448
- package/dist/{Scheduler-BXdZh-xC.js → Scheduler-CwTdAm-V.js} +4 -4
- package/dist/{ServingSequence-EAZHOHiy.js → ServingSequence-BAxm0bx1.js} +4 -4
- package/dist/{Setting-BRut_Xj0.js → Setting-J9s4VpKm.js} +6 -6
- package/dist/{Subcategory-D6Yrs-vO.js → Subcategory-BXJ2H9cr.js} +5 -5
- package/dist/{Takeaway-Bi8JfDWa.js → Takeaway-CPPrIbb0.js} +5 -5
- package/dist/{Takeaway-CRdlNTu7.js → Takeaway-Cm9DdUdf.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DKQZ9J8Z.js → Takeaway.vue_vue_type_script_setup_true_lang-PRAGlbyK.js} +5 -5
- package/dist/{TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js → TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DDWk-WUW.js → Thumbnail.vue_vue_type_script_setup_true_lang-BQcHroCG.js} +74 -74
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BRmrp3_3.js +6038 -0
- package/dist/{Unit-Ccs_k5IS.js → Unit-9pTm3F5W.js} +3 -3
- package/dist/{Variant-BHmgMXq7.js → Variant-qGJvwVW3.js} +4 -4
- package/dist/{_id_-DSSoi4Gy.js → _id_-BPgTKleB.js} +11 -11
- package/dist/{app-CzXxFrl1.js → app-5fxKLAzS.js} +447 -447
- package/dist/{app-B9seAt5l.js → app-BYd7KCR0.js} +1 -1
- package/dist/{app-C8Dm2-h4.js → app-BoVVV8kG.js} +35 -35
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +20 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/MenuSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/SubcategoryManager/SubcategorySelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +2 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-YBCdx1_k.js +13 -0
- package/dist/assets/override-menu-D2ffZ3LE.js +13 -0
- package/dist/assets/validate-menu-C55soZke.js +13 -0
- package/dist/{catalog-CD-fdGdY.js → catalog-DjMrJdom.js} +1 -1
- package/dist/{catalogSetting-Ci85lXor.js → catalogSetting-DMUZ11RQ.js} +1 -1
- package/dist/{category-6NAH0dUF.js → category-DRr-IdFP.js} +1 -1
- package/dist/{currency-BP_z7R5d.js → currency-CAUInXnj.js} +1 -1
- package/dist/{index-BLMijxTj.js → index-By_yIps1.js} +91 -91
- package/dist/{index-DgDQzkPR.js → index-CG5i_sE7.js} +30 -30
- package/dist/{index-C1XCbqC-.js → index-DOwV5hqi.js} +56 -56
- package/dist/{index-Cftm4-G_.js → index-hDyuidIm.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js → index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.js} +40027 -40154
- package/dist/item-Cq7YkZBk.js +7685 -0
- package/dist/{iteration-ZG64Re91.js → iteration-V9L5Rk-0.js} +1 -1
- package/dist/{jszip.min-BETdv0rh.js → jszip.min-Danu3otn.js} +429 -429
- package/dist/{menu-COMXycAe.js → menu-D1PHF11v.js} +1 -1
- package/dist/{menuV2-CeRS0Jw3.js → menuV2-BfvbnMWo.js} +356 -347
- package/dist/mf-menu.css +1 -1
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
- package/dist/{priceTier-t2T3Q87F.js → priceTier-DszOAydN.js} +1 -1
- package/dist/{scheduler-BbJUVuiK.js → scheduler-BbQrleYX.js} +7 -7
- package/dist/{subcategory-61kOQh4g.js → subcategory-BnW2z6Vy.js} +2 -2
- package/dist/{toExcel-DIYaK18-.js → toExcel-De8V6KyO.js} +2 -2
- package/dist/{unit-B6StucsI.js → unit-BjQ-Hi7b.js} +151 -151
- package/dist/{vuedraggable-DnBIRDMr.js → vuedraggable-CK8z7qA8.js} +2 -2
- package/package.json +3 -2
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-BpEjqhAC.js +0 -161
- package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.js +0 -74
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js +0 -26
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-Bm_hSelC.js +0 -69
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-JdHaBpaX.js +0 -5997
- package/dist/assets/linked-status-Cuf8X8_g.js +0 -13
- package/dist/assets/override-menu-yxQLf82k.js +0 -13
- package/dist/assets/validate-menu-BwbenBs6.js +0 -13
- package/dist/item-ByEPWjef.js +0 -6819
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as y, resolveComponent as
|
|
2
|
-
import { _ as k } from "./LinkProductSideSheet-
|
|
1
|
+
import { defineComponent as y, resolveComponent as p, createBlock as f, openBlock as i, Teleport as E, createVNode as _, Transition as g, withCtx as h, createCommentVNode as L, withKeys as w, normalizeStyle as F, normalizeClass as d, createElementVNode as m, renderSlot as x, createElementBlock as T, toDisplayString as R, Fragment as A, renderList as v, computed as C, unref as I } from "vue";
|
|
2
|
+
import { _ as k } from "./LinkProductSideSheet-C-CcvD1Y.js";
|
|
3
3
|
import { useI18n as U } from "@feedmepos/mf-common";
|
|
4
4
|
const N = {
|
|
5
|
-
class: /* @__PURE__ */
|
|
5
|
+
class: /* @__PURE__ */ d([
|
|
6
6
|
"flex items-center",
|
|
7
7
|
"px-24 pt-16 pb-8",
|
|
8
8
|
"border-b border-fm-color-neutral-gray-100",
|
|
9
9
|
"space-x-4"
|
|
10
10
|
])
|
|
11
11
|
}, $ = { class: "fm-typo-en-title-sm-600 mr-auto" }, z = {
|
|
12
|
-
class: /* @__PURE__ */
|
|
12
|
+
class: /* @__PURE__ */ d(["flex flex-col", "flex-1 overflow-scroll", "w-full", "px-24"])
|
|
13
13
|
}, V = /* @__PURE__ */ y({
|
|
14
14
|
__name: "FullScreenForm",
|
|
15
15
|
props: {
|
|
@@ -21,42 +21,42 @@ const N = {
|
|
|
21
21
|
},
|
|
22
22
|
emits: ["onPrimary", "onCancel"],
|
|
23
23
|
setup(t, { emit: e }) {
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
|
|
24
|
+
const n = e, l = () => {
|
|
25
|
+
n("onPrimary");
|
|
26
|
+
}, c = () => {
|
|
27
|
+
n("onCancel");
|
|
28
28
|
};
|
|
29
|
-
return (
|
|
30
|
-
const a =
|
|
29
|
+
return (r, o) => {
|
|
30
|
+
const a = p("fm-button"), s = p("fm-form");
|
|
31
31
|
return i(), f(E, { to: "body" }, [
|
|
32
32
|
_(g, { name: "fade" }, {
|
|
33
33
|
default: h(() => [
|
|
34
|
-
|
|
34
|
+
r.show ? (i(), f(s, {
|
|
35
35
|
key: 0,
|
|
36
36
|
"blame-form-child-on-validation-failed": "",
|
|
37
|
-
class:
|
|
38
|
-
style: F({ zIndex:
|
|
37
|
+
class: d(["fixed inset-0", "flex flex-col", "w-screen h-dvh", "bg-fm-color-neutral-white"]),
|
|
38
|
+
style: F({ zIndex: r.zIndex }),
|
|
39
39
|
tabindex: "-1",
|
|
40
|
-
onValidationSuccess:
|
|
41
|
-
onKeyup: w(
|
|
40
|
+
onValidationSuccess: l,
|
|
41
|
+
onKeyup: w(c, ["esc"])
|
|
42
42
|
}, {
|
|
43
43
|
default: h(() => [
|
|
44
44
|
m("div", N, [
|
|
45
|
-
m("p", $, R(
|
|
46
|
-
x(
|
|
47
|
-
(i(!0), T(A, null, v(
|
|
45
|
+
m("p", $, R(r.title), 1),
|
|
46
|
+
x(r.$slots, "append-title", {}, void 0, !0),
|
|
47
|
+
(i(!0), T(A, null, v(r.secondaryActions, (u) => (i(), f(a, {
|
|
48
48
|
label: u.label,
|
|
49
49
|
variant: "tertiary",
|
|
50
50
|
onClick: u.click
|
|
51
51
|
}, null, 8, ["label", "onClick"]))), 256)),
|
|
52
52
|
_(a, {
|
|
53
|
-
label:
|
|
53
|
+
label: r.primaryAction.label,
|
|
54
54
|
type: "submit",
|
|
55
55
|
variant: "primary"
|
|
56
56
|
}, null, 8, ["label"])
|
|
57
57
|
]),
|
|
58
58
|
m("div", z, [
|
|
59
|
-
x(
|
|
59
|
+
x(r.$slots, "default", {}, void 0, !0)
|
|
60
60
|
])
|
|
61
61
|
]),
|
|
62
62
|
_: 3
|
|
@@ -73,21 +73,21 @@ const N = {
|
|
|
73
73
|
menuStore: {}
|
|
74
74
|
},
|
|
75
75
|
setup(t) {
|
|
76
|
-
const e = t,
|
|
77
|
-
var
|
|
78
|
-
return ((
|
|
79
|
-
}),
|
|
80
|
-
var
|
|
81
|
-
return e.menuStore.isV4 && e.menuStore.currentCatalog && !e.menuStore.currentScheduler && ((
|
|
82
|
-
}), { t:
|
|
83
|
-
return (
|
|
76
|
+
const e = t, n = C(() => {
|
|
77
|
+
var r, o;
|
|
78
|
+
return ((r = e.menuStore.currentCatalog) == null ? void 0 : r.priceTierRules) ?? ((o = e.menuStore.currentCatalog) == null ? void 0 : o.usePriceTiers) ?? [];
|
|
79
|
+
}), l = C(() => {
|
|
80
|
+
var r;
|
|
81
|
+
return e.menuStore.isV4 && e.menuStore.currentCatalog && !e.menuStore.currentScheduler && ((r = n.value) == null ? void 0 : r.length) > 0;
|
|
82
|
+
}), { t: c } = U();
|
|
83
|
+
return (r, o) => {
|
|
84
84
|
var s;
|
|
85
|
-
const a =
|
|
86
|
-
return
|
|
85
|
+
const a = p("FmSnackbar");
|
|
86
|
+
return l.value ? (i(), f(a, {
|
|
87
87
|
key: 0,
|
|
88
88
|
"z-index": 0,
|
|
89
89
|
class: "!max-w-full",
|
|
90
|
-
title: I(
|
|
90
|
+
title: I(c)("menu.price_tier.price_group_description", { group: (s = n.value) == null ? void 0 : s.join(", ") })
|
|
91
91
|
}, null, 8, ["title"])) : L("", !0);
|
|
92
92
|
};
|
|
93
93
|
}
|
|
@@ -95,29 +95,29 @@ const N = {
|
|
|
95
95
|
function P(t) {
|
|
96
96
|
let e = t.trim();
|
|
97
97
|
e = e.replace(B, S).replace(D, S), e = e.replace(j, "\0");
|
|
98
|
-
let
|
|
99
|
-
for (; e.charAt(
|
|
100
|
-
|
|
101
|
-
if (
|
|
98
|
+
let n = 0, l = e.length;
|
|
99
|
+
for (; e.charAt(n) === "\0"; )
|
|
100
|
+
n++;
|
|
101
|
+
if (n === l)
|
|
102
102
|
return [];
|
|
103
|
-
for (; e.charAt(
|
|
104
|
-
|
|
105
|
-
return e.slice(
|
|
103
|
+
for (; e.charAt(l - 1) === "\0"; )
|
|
104
|
+
l--;
|
|
105
|
+
return e.slice(n, l).split(/\0/g);
|
|
106
106
|
}
|
|
107
107
|
function K(t) {
|
|
108
108
|
const e = P(t);
|
|
109
|
-
for (let
|
|
110
|
-
const
|
|
111
|
-
if (
|
|
112
|
-
const
|
|
113
|
-
e.splice(
|
|
109
|
+
for (let n = 0; n < e.length; n++) {
|
|
110
|
+
const l = e[n], c = X.exec(l);
|
|
111
|
+
if (c) {
|
|
112
|
+
const r = c.index + (c[1] ?? c[2]).length;
|
|
113
|
+
e.splice(n, 1, l.slice(0, r), l.slice(r));
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
return e;
|
|
117
117
|
}
|
|
118
118
|
function Z(t, e) {
|
|
119
|
-
const [
|
|
120
|
-
return
|
|
119
|
+
const [n, l, c] = O(t, e), r = G(e == null ? void 0 : e.locale), o = H(e == null ? void 0 : e.locale), a = M(r, o);
|
|
120
|
+
return n + l.map((s, u) => u === 0 ? a(s) : r(s)).join((e == null ? void 0 : e.delimiter) ?? " ") + c;
|
|
121
121
|
}
|
|
122
122
|
function G(t) {
|
|
123
123
|
return t === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(t);
|
|
@@ -126,26 +126,26 @@ function H(t) {
|
|
|
126
126
|
return t === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(t);
|
|
127
127
|
}
|
|
128
128
|
function M(t, e) {
|
|
129
|
-
return (
|
|
129
|
+
return (n) => `${e(n[0])}${t(n.slice(1))}`;
|
|
130
130
|
}
|
|
131
131
|
function O(t, e = {}) {
|
|
132
|
-
const
|
|
133
|
-
let
|
|
134
|
-
for (;
|
|
135
|
-
const a = t.charAt(
|
|
136
|
-
if (!
|
|
132
|
+
const n = e.split ?? (e.separateNumbers ? K : P), l = e.prefixCharacters ?? b, c = e.suffixCharacters ?? b;
|
|
133
|
+
let r = 0, o = t.length;
|
|
134
|
+
for (; r < t.length; ) {
|
|
135
|
+
const a = t.charAt(r);
|
|
136
|
+
if (!l.includes(a))
|
|
137
137
|
break;
|
|
138
|
-
|
|
138
|
+
r++;
|
|
139
139
|
}
|
|
140
|
-
for (; o >
|
|
140
|
+
for (; o > r; ) {
|
|
141
141
|
const a = o - 1, s = t.charAt(a);
|
|
142
|
-
if (!
|
|
142
|
+
if (!c.includes(s))
|
|
143
143
|
break;
|
|
144
144
|
o = a;
|
|
145
145
|
}
|
|
146
146
|
return [
|
|
147
|
-
t.slice(0,
|
|
148
|
-
|
|
147
|
+
t.slice(0, r),
|
|
148
|
+
n(t.slice(r, o)),
|
|
149
149
|
t.slice(o)
|
|
150
150
|
];
|
|
151
151
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as G, computed as w, ref as E, watch as C, resolveComponent as g, createElementBlock as F, openBlock as V, Fragment as K, renderSlot as j, createVNode as s, unref as n, withCtx as m, createElementVNode as d, createBlock as M, createCommentVNode as U, normalizeClass as H, createSlots as J, toDisplayString as Q } from "vue";
|
|
2
|
-
import { O as W, D as X, H as f, B, J as D, z as I, I as Z } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { d as ee } from "./vuedraggable-
|
|
2
|
+
import { O as W, D as X, H as f, B, J as D, z as I, I as Z } from "./index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.js";
|
|
3
|
+
import { d as ee } from "./vuedraggable-CK8z7qA8.js";
|
|
4
4
|
import { useI18n as te } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as ae, components as ne } from "@feedmepos/ui-library";
|
|
6
|
-
import { _ as oe } from "./FormItem.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as le } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as oe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
7
|
+
import { _ as le } from "./RuleView.vue_vue_type_script_setup_true_lang-fp_IdVVZ.js";
|
|
8
8
|
import { u as ie } from "./discardConfirm-BHni0LNu.js";
|
|
9
|
-
import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-xLPJOt02.js";
|
|
10
10
|
import { c as re } from "./check-C9mY6LiX.js";
|
|
11
11
|
const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32" }, de = ["data-not-allow-sort"], ce = {
|
|
12
12
|
key: 1,
|