@feedmepos/mf-menu 0.32.7-beta.2 → 0.32.7-dev
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-DCkQc7e4.js} +98 -98
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js +161 -0
- package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js +74 -0
- package/dist/{Catalog-D2wc24o8.js → Catalog-CUPoRid3.js} +9 -9
- package/dist/{Category-DA5-55d2.js → Category-BkvhZ57Y.js} +7 -7
- package/dist/{Category-BPufryqK.js → Category-Cdw0ikhP.js} +4 -4
- package/dist/{CookingGuide-DKvou40e.js → CookingGuide-BZ-4oULM.js} +6 -6
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DHoAYdGI.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJvVFWdR.js} +3 -3
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +26 -0
- package/dist/{Group-D60oAvmM.js → Group-C1FaXdUb.js} +1 -1
- package/dist/{Group-Bgpc6qE1.js → Group-Cec83DWm.js} +4 -4
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BXn3--BL.js → Group.vue_vue_type_script_setup_true_lang-2_lLBdX2.js} +128 -128
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BD9IZkwW.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BEDyKWhK.js} +91 -91
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BE3LdBYY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js} +3225 -3225
- package/dist/{Ingredient-Brv4hml-.js → Ingredient-DulL8h2B.js} +29 -29
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CIOX-pq1.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js} +104 -104
- package/dist/{LinkProductSideSheet-BDMbKJ8o.js → LinkProductSideSheet-Br2eE8pC.js} +251 -251
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +69 -0
- package/dist/{MenuSetting-DvCu23my.js → MenuSetting-DxW4LCW4.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-Da6Zkx-0.js} +5 -5
- package/dist/{Product-EmoWM778.js → Product-Cs76t18_.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-5HyO_RYw.js → Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js} +606 -606
- package/dist/{ProductInternalTools-PqzouaF2.js → ProductInternalTools-DPbeRvTM.js} +10 -10
- package/dist/{Products-ZgfTT9dI.js → Products--7dGfuuT.js} +52 -52
- package/dist/{Publish-CUdRwmN1.js → Publish-COmZtiyX.js} +5 -5
- package/dist/{Recipe-BRUxyire.js → Recipe-BaN_1zrP.js} +5 -5
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CPFGkaTr.js → RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js} +451 -448
- package/dist/{Scheduler-BXdZh-xC.js → Scheduler-BSUpIAaK.js} +4 -4
- package/dist/{ServingSequence-EAZHOHiy.js → ServingSequence-dXBb7e5d.js} +4 -4
- package/dist/{Setting-BRut_Xj0.js → Setting-CalEQW0n.js} +6 -6
- package/dist/{Subcategory-D6Yrs-vO.js → Subcategory-zPHtX7Vc.js} +5 -5
- package/dist/{Takeaway-Bi8JfDWa.js → Takeaway-CRDj2Bpe.js} +5 -5
- package/dist/{Takeaway-CRdlNTu7.js → Takeaway-CcnmeTmu.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DKQZ9J8Z.js → Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.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-B0552qsN.js} +74 -74
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js +6038 -0
- package/dist/{Unit-Ccs_k5IS.js → Unit-C7-Oj5S3.js} +3 -3
- package/dist/{Variant-BHmgMXq7.js → Variant-CYiMkE0q.js} +4 -4
- package/dist/{_id_-DSSoi4Gy.js → _id_-D75ZcNlf.js} +11 -11
- package/dist/{app-CzXxFrl1.js → app-5fxKLAzS.js} +447 -447
- package/dist/{app-C8Dm2-h4.js → app-BhLVpUSl.js} +35 -35
- package/dist/{app-B9seAt5l.js → app-DzVMOviz.js} +1 -1
- 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-BoIPm5hC.js +13 -0
- package/dist/assets/override-menu-DfTrwWpR.js +13 -0
- package/dist/assets/validate-menu-BhWvQ3T9.js +13 -0
- package/dist/{catalog-CD-fdGdY.js → catalog-CudNSsIP.js} +1 -1
- package/dist/{catalogSetting-Ci85lXor.js → catalogSetting-BVHO9tK3.js} +1 -1
- package/dist/{category-6NAH0dUF.js → category-BQpgz1lk.js} +1 -1
- package/dist/{currency-BP_z7R5d.js → currency-BfS7H2KE.js} +1 -1
- package/dist/{index-BLMijxTj.js → index-BHdPJta4.js} +91 -91
- package/dist/{index-C1XCbqC-.js → index-DmGJvREM.js} +56 -56
- package/dist/{index-Cftm4-G_.js → index-DuLXS699.js} +5 -5
- package/dist/{index-DgDQzkPR.js → index-aaoziUNI.js} +30 -30
- package/dist/{index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js → index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js} +40026 -40153
- package/dist/item-BtKW0wdj.js +7685 -0
- package/dist/{iteration-ZG64Re91.js → iteration-CaliNodx.js} +1 -1
- package/dist/{jszip.min-BETdv0rh.js → jszip.min-DXbkmgRD.js} +102 -102
- package/dist/{menu-COMXycAe.js → menu-D-lUEuvX.js} +1 -1
- package/dist/{menuV2-CeRS0Jw3.js → menuV2-D-6O36DO.js} +357 -348
- 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-DKnYaOA9.js} +1 -1
- package/dist/{scheduler-BbJUVuiK.js → scheduler-DEwfbYPL.js} +7 -7
- package/dist/{subcategory-61kOQh4g.js → subcategory-CQKklgcd.js} +2 -2
- package/dist/{toExcel-DIYaK18-.js → toExcel-CRwL-QqF.js} +2 -2
- package/dist/{unit-B6StucsI.js → unit-BzM1rmN7.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,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as W, ref as A, resolveComponent as v, createElementBlock as E, openBlock as I, Fragment as B, createElementVNode as g, createVNode as c, normalizeClass as T, withCtx as _, toDisplayString as S, unref as i, h as G, watch as O, onMounted as K, nextTick as M, readonly as N, getCurrentInstance as U, getCurrentScope as L, onScopeDispose as $ } from "vue";
|
|
2
2
|
import { useI18n as q, useCustomAttributes as H, useCoreStore as J } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as Q } from "@feedmepos/ui-library";
|
|
4
|
-
import { d as X, _ as k } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { d as X, _ as k } from "./RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js";
|
|
5
5
|
const Y = {
|
|
6
6
|
class: /* @__PURE__ */ T(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap", "text-fm-color-neutral-gray-400"])
|
|
7
7
|
}, Z = {
|
|
@@ -38,8 +38,8 @@ const Y = {
|
|
|
38
38
|
header: () => t("portalshell.customAttributes.form.value"),
|
|
39
39
|
accessorKey: "values",
|
|
40
40
|
enableSorting: !1,
|
|
41
|
-
cell: (
|
|
42
|
-
const s =
|
|
41
|
+
cell: (f) => {
|
|
42
|
+
const s = f.row.original, u = s.values;
|
|
43
43
|
return G(Q.FmSelect, {
|
|
44
44
|
modelValue: s.value,
|
|
45
45
|
placeholder: t("portalshell.customAttributes.form.valuePlaceholder"),
|
|
@@ -53,38 +53,38 @@ const Y = {
|
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}], m = n;
|
|
56
|
-
function b(
|
|
57
|
-
return
|
|
56
|
+
function b(f) {
|
|
57
|
+
return f.reduce((s, u) => (u.value != null && (s[u.key] = u.value), s), {});
|
|
58
58
|
}
|
|
59
59
|
const h = () => {
|
|
60
|
-
const
|
|
61
|
-
restaurantCustomAttributes: b(
|
|
60
|
+
const f = r.value.filter((l) => l.value != null), s = a.value.filter((l) => l.value != null), u = {
|
|
61
|
+
restaurantCustomAttributes: b(f),
|
|
62
62
|
restaurantAttributes: b(s)
|
|
63
63
|
};
|
|
64
64
|
m("confirm", u), C();
|
|
65
|
-
},
|
|
65
|
+
}, p = A(!1);
|
|
66
66
|
function w() {
|
|
67
67
|
var u, l;
|
|
68
|
-
|
|
69
|
-
const
|
|
70
|
-
r.value.forEach((
|
|
71
|
-
|
|
68
|
+
p.value = !0;
|
|
69
|
+
const f = ((u = o.currentRestaurantAttrParams) == null ? void 0 : u.restaurantCustomAttributes) ?? {};
|
|
70
|
+
r.value.forEach((d) => {
|
|
71
|
+
d.value = f[d.key] ?? void 0;
|
|
72
72
|
});
|
|
73
73
|
const s = ((l = o.currentRestaurantAttrParams) == null ? void 0 : l.restaurantAttributes) ?? {};
|
|
74
|
-
a.value.forEach((
|
|
75
|
-
|
|
74
|
+
a.value.forEach((d) => {
|
|
75
|
+
d.value = s[d.key] ?? void 0;
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
function C() {
|
|
79
|
-
|
|
79
|
+
p.value = !1;
|
|
80
80
|
}
|
|
81
|
-
return (
|
|
82
|
-
const u = v("FmIcon"), l = v("FmChip"),
|
|
81
|
+
return (f, s) => {
|
|
82
|
+
const u = v("FmIcon"), l = v("FmChip"), d = v("FmTable"), V = v("FmSpacer"), F = v("fm-button"), j = v("FmDialog");
|
|
83
83
|
return I(), E(B, null, [g("div", {
|
|
84
84
|
class: "cursor-pointer",
|
|
85
85
|
onClick: w
|
|
86
86
|
}, [c(l, {
|
|
87
|
-
class: T([
|
|
87
|
+
class: T([f.fullWidth ? "w-full justify-between" : ""])
|
|
88
88
|
}, {
|
|
89
89
|
default: _(() => [g("div", Y, S(i(t)("menu.catalog.form.restaurant_attributes_title")), 1), c(u, {
|
|
90
90
|
color: "neutral-gray-400",
|
|
@@ -93,8 +93,8 @@ const Y = {
|
|
|
93
93
|
})]),
|
|
94
94
|
_: 1
|
|
95
95
|
}, 8, ["class"])]), c(j, {
|
|
96
|
-
modelValue:
|
|
97
|
-
"onUpdate:modelValue": s[0] || (s[0] = (R) =>
|
|
96
|
+
modelValue: p.value,
|
|
97
|
+
"onUpdate:modelValue": s[0] || (s[0] = (R) => p.value = R),
|
|
98
98
|
overlay: !0,
|
|
99
99
|
"min-width": "min(calc(100% - 48px), 560px)"
|
|
100
100
|
}, {
|
|
@@ -114,7 +114,7 @@ const Y = {
|
|
|
114
114
|
default: _(() => [g("div", ee, [c(k, {
|
|
115
115
|
title: i(t)("menu.link_product.rules.restaurant_custom_attributes_filter")
|
|
116
116
|
}, {
|
|
117
|
-
default: _(() => [c(
|
|
117
|
+
default: _(() => [c(d, {
|
|
118
118
|
"column-defs": y,
|
|
119
119
|
"row-data": i(r),
|
|
120
120
|
"shrink-at": !1,
|
|
@@ -125,7 +125,7 @@ const Y = {
|
|
|
125
125
|
}, 8, ["title"]), c(k, {
|
|
126
126
|
title: i(t)("menu.link_product.rules.restaurant_filter")
|
|
127
127
|
}, {
|
|
128
|
-
default: _(() => [c(
|
|
128
|
+
default: _(() => [c(d, {
|
|
129
129
|
"column-defs": y,
|
|
130
130
|
"row-data": i(a),
|
|
131
131
|
"shrink-at": !1,
|
|
@@ -145,9 +145,9 @@ function fe(e) {
|
|
|
145
145
|
function x(e) {
|
|
146
146
|
return typeof e == "function" ? e() : i(e);
|
|
147
147
|
}
|
|
148
|
-
const
|
|
148
|
+
const pe = typeof window < "u" && typeof document < "u";
|
|
149
149
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
150
|
-
const te = Object.prototype.toString,
|
|
150
|
+
const te = Object.prototype.toString, de = (e) => te.call(e) === "[object Object]", D = () => {
|
|
151
151
|
};
|
|
152
152
|
function P(e, n) {
|
|
153
153
|
function o(...t) {
|
|
@@ -165,11 +165,11 @@ function ne(e, n = {}) {
|
|
|
165
165
|
};
|
|
166
166
|
return (m) => {
|
|
167
167
|
const b = x(e), h = x(n.maxWait);
|
|
168
|
-
return o && a(o), b <= 0 || h !== void 0 && h <= 0 ? (t && (a(t), t = null), Promise.resolve(m())) : new Promise((
|
|
169
|
-
r = n.rejectOnCancel ? w :
|
|
170
|
-
o && a(o), t = null,
|
|
168
|
+
return o && a(o), b <= 0 || h !== void 0 && h <= 0 ? (t && (a(t), t = null), Promise.resolve(m())) : new Promise((p, w) => {
|
|
169
|
+
r = n.rejectOnCancel ? w : p, h && !t && (t = setTimeout(() => {
|
|
170
|
+
o && a(o), t = null, p(m());
|
|
171
171
|
}, h)), o = setTimeout(() => {
|
|
172
|
-
t && a(t), t = null,
|
|
172
|
+
t && a(t), t = null, p(m());
|
|
173
173
|
}, b);
|
|
174
174
|
});
|
|
175
175
|
};
|
|
@@ -237,8 +237,8 @@ export {
|
|
|
237
237
|
me as _,
|
|
238
238
|
ve as a,
|
|
239
239
|
fe as b,
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
de as c,
|
|
241
|
+
pe as i,
|
|
242
242
|
D as n,
|
|
243
243
|
be as r,
|
|
244
244
|
x as t,
|