@feedmepos/mf-menu 0.32.3-beta.1 → 0.32.4-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-DJBZBaaC.js → App-5YVGeojR.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-c9SlmPp2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DhoHYIHW.js} +20 -20
- package/dist/{Catalog-Ct9jk3A_.js → Catalog-BTNv5n_D.js} +18 -18
- package/dist/{Category-Cf5KfKdv.js → Category-BE-kkKcL.js} +22 -23
- package/dist/{Category-CTTAtG31.js → Category-DuLhbRxE.js} +21 -22
- package/dist/{CookingGuide-BaNzajgf.js → CookingGuide-JtE8QMC6.js} +92 -93
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CRodr6tr.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DdJ-o_PW.js} +1 -1
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js +26 -0
- package/dist/{Group-BfRPCCbK.js → Group-BP-j3K6J.js} +1 -1
- package/dist/{Group-BJep-xq-.js → Group-DhS9e2E3.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CoCq0edM.js → Group.vue_vue_type_script_setup_true_lang-DXUQrXXI.js} +33 -34
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DviXfima.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXzz4ClS.js} +24 -23
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DSrxcKIK.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Bpt-8tbe.js} +11525 -11504
- package/dist/{Ingredient-BnzW69zW.js → Ingredient-NSl0x-0T.js} +5 -6
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-D8m1pyLp.js → InventoryBinding.vue_vue_type_script_setup_true_lang-ByrNVvzs.js} +2 -2
- package/dist/LinkProductSideSheet-B_R_2iH6.js +692 -0
- package/dist/MenuSetting-C7cpv4S3.js +580 -0
- package/dist/{PrintRoute-CLsiDIkn.js → PrintRoute-DmP7KH58.js} +10 -11
- package/dist/{Product-DHE0XtX1.js → Product-B6gwN4g0.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CVR8j-XT.js → Product.vue_vue_type_script_setup_true_lang-BKhn8Txf.js} +15 -16
- package/dist/{ProductInternalTools-BQOXHzYp.js → ProductInternalTools-D5xIh2j2.js} +5 -5
- package/dist/Products-Cxx8pJGK.js +692 -0
- package/dist/{Publish-BlEcoJaI.js → Publish-ZCzRBB5V.js} +21 -22
- package/dist/{Recipe-CkcNxf7p.js → Recipe-DcHdr_5J.js} +9 -10
- package/dist/RuleView.vue_vue_type_script_setup_true_lang-edNbsZTq.js +3282 -0
- package/dist/{Scheduler-DV0s_qkV.js → Scheduler-ZhDXk5gQ.js} +18 -19
- package/dist/{ServingSequence-CFd8Nwws.js → ServingSequence-DcfMbHjn.js} +15 -16
- package/dist/{Setting-B55IsZCX.js → Setting-fqf_sOIc.js} +45 -44
- package/dist/{Subcategory-BXCcVdR3.js → Subcategory-BidmfEOK.js} +18 -19
- package/dist/{Takeaway-BDvcwBHP.js → Takeaway-C83SKEvl.js} +1 -1
- package/dist/{Takeaway--U_lsgYi.js → Takeaway-p6thRg74.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DaYk2xdF.js → Takeaway.vue_vue_type_script_setup_true_lang-Dq6CjXCv.js} +48 -49
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-VBpTghy9.js → Thumbnail.vue_vue_type_script_setup_true_lang-CjLOy2k9.js} +10 -10
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-IBM6rC5M.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CWdsp9eo.js} +17 -16
- package/dist/{Unit-DkvTsQWA.js → Unit-CKIaBxVE.js} +7 -8
- package/dist/{Variant-tte76SbR.js → Variant-CE21vKC4.js} +38 -39
- package/dist/{_id_-AVMi3j91.js → _id_-BhWpg9Kj.js} +10 -10
- package/dist/{app-0s3jY-aE.js → app-BkcVM9nE.js} +1 -1
- package/dist/app-CEIhTuYG.js +363 -0
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +250 -0
- package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleForm.vue.d.ts +146 -0
- package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleView.vue.d.ts +158 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleCondition.vue.d.ts +103 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleConditionListView.vue.d.ts +54 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleConditionSelector.vue.d.ts +50 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleForm.vue.d.ts +117 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleView.vue.d.ts +141 -0
- package/dist/apps/mf-menu/src/composable/attributes.d.ts +10 -0
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +2 -3
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +3 -1
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +3 -2
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DEGoFflv.js → linked-status-CStQ46Ze.js} +2 -2
- package/dist/assets/{override-menu-CZe07SCm.js → override-menu-DHTQAnIJ.js} +2 -2
- package/dist/assets/{validate-menu-BnHfAUEN.js → validate-menu-C_kUDOhd.js} +2 -2
- package/dist/{catalog-YE_knev1.js → catalog-WBrPmQwl.js} +1 -1
- package/dist/{catalogSetting-CeVHRHOo.js → catalogSetting-BAry7I_V.js} +1 -1
- package/dist/{category-Dph1iWr8.js → category-bW36h16p.js} +1 -1
- package/dist/{currency-Byslycrk.js → currency-vVxHIVBs.js} +1 -1
- package/dist/{index-C0T32LLy.js → index-Ba5-dCQA.js} +1 -1
- package/dist/{index-CUTY6cCm.js → index-C0EV3eSc.js} +20 -20
- package/dist/{index-DycbrG1l.js → index-XZlEgR2k.js} +8 -7
- package/dist/{index-Ddt_Nw9F.js → index-pxnQHVnU.js} +4 -4
- package/dist/{menu-tHhzkxDL.js → index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js} +18612 -18558
- package/dist/item-mFv0bFSn.js +7648 -0
- package/dist/{iteration-CcobmcUk.js → iteration-CaFp1Rtz.js} +3 -3
- package/dist/{jszip.min-DQrtMdm5.js → jszip.min-BkSmQKmf.js} +353 -353
- package/dist/{menu-DkRrqTVY.js → menu-ud-tWfIM.js} +1 -1
- package/dist/{menuV2-DJevKCqE.js → menuV2-xUMdUls0.js} +65 -65
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-Bkogs1qc.js → priceTier-BVTab4k1.js} +1 -1
- package/dist/{scheduler-BGQ_lxUL.js → scheduler-CAt7sELO.js} +13 -12
- package/dist/{subcategory-DvxvLe8X.js → subcategory-DMZuedoM.js} +2 -2
- package/dist/{toExcel-DQ4jlZPI.js → toExcel-CczXOnKy.js} +2 -2
- package/dist/{unit-DoxpI5dG.js → unit-CbD3sYqC.js} +2 -2
- package/package.json +4 -3
- package/dist/LinkProductSideSheet-C4yBnJSM.js +0 -361
- package/dist/MenuSetting-Fxl8F6N5.js +0 -618
- package/dist/Products-BLvwrz9P.js +0 -689
- package/dist/app-CjfWVFOg.js +0 -363
- package/dist/customAttributes-DvbvCfOd.js +0 -180
- package/dist/index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js +0 -57
- package/dist/item-x1WWjISR.js +0 -9175
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as n, onMounted as d, onBeforeUnmount as m } from "vue";
|
|
2
|
-
import { u as c } from "./
|
|
2
|
+
import { u as c } from "./index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js";
|
|
3
3
|
import "@feedmepos/mf-common";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
5
|
function p() {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var Ue = Object.defineProperty;
|
|
2
2
|
var We = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ne = (e, t, n) => We(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import {
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import { shallowRef as j, ref as
|
|
4
|
+
import { ao as ue, H as I, B as T, z as ae, ap as re, J as H, I as ie, ac as x, c as L, X as V, am as oe, aq as Le, ar as qe, A as ze, ae as He, as as Ge, at as Be, ab as Je } from "./index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js";
|
|
5
|
+
import { defineStore as Qe } from "pinia";
|
|
6
|
+
import { shallowRef as j, ref as G, computed as S, shallowReactive as Ye, effectScope as Xe, watch as Ze } from "vue";
|
|
7
7
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
8
8
|
import { useSnackbar as et } from "@feedmepos/ui-library";
|
|
9
|
-
const tt = "/assets/linked-status-
|
|
9
|
+
const tt = "/assets/linked-status-CStQ46Ze.js", nt = "/assets/override-menu-DHTQAnIJ.js";
|
|
10
10
|
function rt(e) {
|
|
11
11
|
var o;
|
|
12
|
-
const t =
|
|
12
|
+
const t = I(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
|
|
13
13
|
return delete t.variant, delete t.thumbnail, [t, ...n || []];
|
|
14
14
|
}
|
|
15
15
|
function ot(e, t, n, o) {
|
|
16
|
-
const r =
|
|
16
|
+
const r = I(t), a = n ? r.modules.catalog.find((m) => m._id === n) : null, l = o ? r.modules.scheduler.find((m) => m._id === o) : null, u = a ? I(a) : void 0, c = n ? r.modules.catalog.filter((m) => m._id !== n) : [], i = l ? I(l) : void 0, f = e.reduce((m, v) => (m[v._id] = rt(v), m), {});
|
|
17
17
|
function h(m = []) {
|
|
18
18
|
const v = e.map((p) => p._id);
|
|
19
19
|
return [
|
|
@@ -153,7 +153,7 @@ function ut(e, t) {
|
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
async function Ot(e, t, n, o, r, a = !0) {
|
|
156
|
-
const l =
|
|
156
|
+
const l = I(n), u = a ? ot(t, l, o, r) : l, c = t.reduce((h, m) => (h[m._id] = u.modules.item.find((v) => v._id === m._id), h), {}), i = t.reduce((h, m) => {
|
|
157
157
|
const v = m._id;
|
|
158
158
|
return h[v] = st(c[v], e), h;
|
|
159
159
|
}, {}), f = T.getFallbackPrices({
|
|
@@ -245,7 +245,7 @@ async function at(e, t, n) {
|
|
|
245
245
|
async function Kt(e, t, n) {
|
|
246
246
|
var l, u;
|
|
247
247
|
const o = await at(e, t, null), r = [], a = (c, i) => {
|
|
248
|
-
const f =
|
|
248
|
+
const f = I(c);
|
|
249
249
|
for (const h in i)
|
|
250
250
|
i[h] && (f[h] = i[h]);
|
|
251
251
|
return f;
|
|
@@ -254,9 +254,9 @@ async function Kt(e, t, n) {
|
|
|
254
254
|
const i = (l = c.items) == null ? void 0 : l.find((h) => h._id === n && !h.combinationKey), f = e.modules.item.find((h) => h._id === n);
|
|
255
255
|
if (i) {
|
|
256
256
|
const h = (u = c.items) == null ? void 0 : u.filter((v) => v._id === n && v.combinationKey), m = [i, ...h].map((v) => {
|
|
257
|
-
var w,
|
|
258
|
-
const p = v.combinationKey ? (
|
|
259
|
-
(
|
|
257
|
+
var w, C;
|
|
258
|
+
const p = v.combinationKey ? (C = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : C.find(
|
|
259
|
+
(R) => R.combinationKey === v.combinationKey
|
|
260
260
|
) : f, b = p && f ? a(f, p) : v;
|
|
261
261
|
return a(b, v);
|
|
262
262
|
});
|
|
@@ -294,7 +294,7 @@ function O(e) {
|
|
|
294
294
|
function P(e) {
|
|
295
295
|
return e instanceof RegExp ? e.toString() : e;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function k(e) {
|
|
298
298
|
return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
|
|
299
299
|
}
|
|
300
300
|
function K(e, t) {
|
|
@@ -310,7 +310,7 @@ function K(e, t) {
|
|
|
310
310
|
if (!K(e[n], t[n])) return !1;
|
|
311
311
|
return !0;
|
|
312
312
|
}
|
|
313
|
-
if (
|
|
313
|
+
if (k(e) && k(t)) {
|
|
314
314
|
const n = Object.keys(e), o = Object.keys(t);
|
|
315
315
|
if (n.length !== o.length) return !1;
|
|
316
316
|
for (const r of n)
|
|
@@ -344,7 +344,7 @@ function lt(e, t, n) {
|
|
|
344
344
|
const o = { _t: "a" }, r = ((m = n == null ? void 0 : n.arrays) == null ? void 0 : m.detectMove) !== !1, a = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.includeValueOnMove) === !0, l = n == null ? void 0 : n.objectHash;
|
|
345
345
|
let u = r ? ct(e, t, l) : [];
|
|
346
346
|
if (!l && e.length === t.length && e.length > 0 && u.length < e.length) {
|
|
347
|
-
const p =
|
|
347
|
+
const p = k(e[0]) || Array.isArray(e[0]), b = u.length > 0;
|
|
348
348
|
if (p || b) {
|
|
349
349
|
u = [];
|
|
350
350
|
for (let w = 0; w < e.length; w++)
|
|
@@ -360,8 +360,8 @@ function lt(e, t, n) {
|
|
|
360
360
|
if (b !== void 0) {
|
|
361
361
|
const w = J(e[p], t[b], n);
|
|
362
362
|
if (w !== void 0 && (o[b] = w), r && b !== p) {
|
|
363
|
-
const
|
|
364
|
-
o[
|
|
363
|
+
const C = `_${p}`, R = a ? [e[p], b, F] : ["", b, F];
|
|
364
|
+
o[C] = R;
|
|
365
365
|
}
|
|
366
366
|
} else {
|
|
367
367
|
const w = `_${p}`;
|
|
@@ -403,7 +403,7 @@ function J(e, t, n) {
|
|
|
403
403
|
}
|
|
404
404
|
if (Array.isArray(e) && Array.isArray(t))
|
|
405
405
|
return lt(e, t, n);
|
|
406
|
-
if (
|
|
406
|
+
if (k(e) && k(t))
|
|
407
407
|
return dt(e, t, n);
|
|
408
408
|
const a = n != null && n.cloneDiffValues ? O(e) : e, l = n != null && n.cloneDiffValues ? O(t) : t;
|
|
409
409
|
return [P(a), P(l)];
|
|
@@ -428,7 +428,7 @@ function mt(e, t, n) {
|
|
|
428
428
|
else {
|
|
429
429
|
for (; l < e.length && o.has(l); )
|
|
430
430
|
l++;
|
|
431
|
-
l < e.length && (a.push(
|
|
431
|
+
l < e.length && (a.push(Q(e[l], i)), l++);
|
|
432
432
|
}
|
|
433
433
|
else {
|
|
434
434
|
let f = !1;
|
|
@@ -453,11 +453,11 @@ function vt(e, t, n) {
|
|
|
453
453
|
const o = { ...e };
|
|
454
454
|
for (const r in t) {
|
|
455
455
|
const a = t[r];
|
|
456
|
-
Array.isArray(a) ? a.length === 1 ? o[r] = a[0] : a.length === 3 && a[2] === M ? delete o[r] : a.length === 2 && (o[r] = a[1]) : o[r] =
|
|
456
|
+
Array.isArray(a) ? a.length === 1 ? o[r] = a[0] : a.length === 3 && a[2] === M ? delete o[r] : a.length === 2 && (o[r] = a[1]) : o[r] = Q(o[r], a);
|
|
457
457
|
}
|
|
458
458
|
return o;
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function Q(e, t, n) {
|
|
461
461
|
if (t === void 0) return e;
|
|
462
462
|
if (Array.isArray(t)) {
|
|
463
463
|
if (t.length === 1)
|
|
@@ -467,10 +467,10 @@ function Y(e, t, n) {
|
|
|
467
467
|
if (t.length === 3 && t[2] === M)
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
return
|
|
470
|
+
return k(t) && t._t === "a" ? mt(e, t) : k(t) && k(e) ? vt(e, t) : e;
|
|
471
471
|
}
|
|
472
472
|
function le(e, t, n) {
|
|
473
|
-
return
|
|
473
|
+
return Q(e, t);
|
|
474
474
|
}
|
|
475
475
|
function yt(e) {
|
|
476
476
|
const t = { _t: "a" };
|
|
@@ -491,7 +491,7 @@ function yt(e) {
|
|
|
491
491
|
if (Array.isArray(r) && r.length === 1)
|
|
492
492
|
t[`_${o}`] = [r[0], M, M];
|
|
493
493
|
else {
|
|
494
|
-
const a =
|
|
494
|
+
const a = Y(r);
|
|
495
495
|
a !== void 0 && (t[n] = a);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
@@ -504,13 +504,13 @@ function ht(e) {
|
|
|
504
504
|
if (Array.isArray(o))
|
|
505
505
|
o.length === 1 ? t[n] = [o[0], M, M] : o.length === 3 && o[2] === M ? t[n] = [o[0]] : o.length === 2 && (t[n] = [o[1], o[0]]);
|
|
506
506
|
else {
|
|
507
|
-
const r =
|
|
507
|
+
const r = Y(o);
|
|
508
508
|
r !== void 0 && (t[n] = r);
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
return t;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Y(e) {
|
|
514
514
|
if (e !== void 0) {
|
|
515
515
|
if (Array.isArray(e)) {
|
|
516
516
|
if (e.length === 1)
|
|
@@ -522,11 +522,11 @@ function X(e) {
|
|
|
522
522
|
if (e.length === 3 && e[2] === F)
|
|
523
523
|
return e;
|
|
524
524
|
}
|
|
525
|
-
return
|
|
525
|
+
return k(e) && e._t === "a" ? yt(e) : k(e) ? ht(e) : e;
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
function de(e) {
|
|
529
|
-
return
|
|
529
|
+
return Y(e);
|
|
530
530
|
}
|
|
531
531
|
function pt(e, t, n) {
|
|
532
532
|
const o = de(t);
|
|
@@ -566,22 +566,22 @@ function St({
|
|
|
566
566
|
includeValueOnMove: !1
|
|
567
567
|
},
|
|
568
568
|
cloneDiffValues: !1
|
|
569
|
-
}), n = j(null), o = j([]), r =
|
|
569
|
+
}), n = j(null), o = j([]), r = G(-1), a = j(null), l = S(() => r.value > 0), u = S(() => r.value < o.value.length - 1);
|
|
570
570
|
function c(v) {
|
|
571
571
|
if (n.value === null) {
|
|
572
|
-
n.value =
|
|
572
|
+
n.value = I(v), a.value = I(v), o.value = [{ delta: null }], r.value = 0;
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
575
575
|
const p = t.diff(a.value, v);
|
|
576
|
-
if (r.value < o.value.length - 1 && (o.value = o.value.slice(0, r.value + 1)), o.value.push({ delta: p }), r.value++, a.value =
|
|
576
|
+
if (r.value < o.value.length - 1 && (o.value = o.value.slice(0, r.value + 1)), o.value.push({ delta: p }), r.value++, a.value = I(v), o.value.length > e) {
|
|
577
577
|
const b = o.value[1].delta;
|
|
578
|
-
b && n.value && (n.value = t.patch(
|
|
578
|
+
b && n.value && (n.value = t.patch(I(n.value), b)), o.value.shift(), r.value--;
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
function i(v) {
|
|
582
582
|
if (!n.value || v < 0 || v >= o.value.length)
|
|
583
583
|
return;
|
|
584
|
-
let p =
|
|
584
|
+
let p = I(n.value);
|
|
585
585
|
for (let b = 1; b <= v; b++) {
|
|
586
586
|
const w = o.value[b];
|
|
587
587
|
w.delta && (p = t.patch(p, w.delta));
|
|
@@ -592,14 +592,14 @@ function St({
|
|
|
592
592
|
if (l.value) {
|
|
593
593
|
r.value--;
|
|
594
594
|
const v = i(r.value);
|
|
595
|
-
return v && (a.value =
|
|
595
|
+
return v && (a.value = I(v)), v;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
function h() {
|
|
599
599
|
if (u.value) {
|
|
600
600
|
r.value++;
|
|
601
601
|
const v = i(r.value);
|
|
602
|
-
return v && (a.value =
|
|
602
|
+
return v && (a.value = I(v)), v;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
function m() {
|
|
@@ -616,7 +616,7 @@ function St({
|
|
|
616
616
|
}
|
|
617
617
|
const bt = {
|
|
618
618
|
async updateMenuModule(e, t) {
|
|
619
|
-
const n =
|
|
619
|
+
const n = H.RequestRunner.operation(t, e.modules);
|
|
620
620
|
if (n.validateError.length > 0)
|
|
621
621
|
throw new Error(n.validateError.join(`
|
|
622
622
|
`));
|
|
@@ -664,10 +664,10 @@ function wt() {
|
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
const Pt =
|
|
667
|
+
const Pt = Qe(
|
|
668
668
|
"mf-menu-store-v2",
|
|
669
669
|
() => {
|
|
670
|
-
const e =
|
|
670
|
+
const e = Ye(wt()), t = se(), n = et(), o = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
|
|
671
671
|
selector: "position"
|
|
672
672
|
}) : []), r = S(() => {
|
|
673
673
|
var s;
|
|
@@ -692,7 +692,7 @@ const Pt = Ye(
|
|
|
692
692
|
function f(s, d = !0) {
|
|
693
693
|
e.menu = { ...s, _rev: e.menu._rev }, d && D.push(e.menu);
|
|
694
694
|
}
|
|
695
|
-
const h = j(fe()), m =
|
|
695
|
+
const h = j(fe()), m = G(!1), v = G(1);
|
|
696
696
|
async function p() {
|
|
697
697
|
var y;
|
|
698
698
|
m.value = !0;
|
|
@@ -719,25 +719,25 @@ const Pt = Ye(
|
|
|
719
719
|
);
|
|
720
720
|
if (e.currentSchedulerId != null) {
|
|
721
721
|
const g = e.menu.modules.catalog.find(
|
|
722
|
-
(
|
|
722
|
+
(E) => E._id === e.currentCatalogId
|
|
723
723
|
), _ = g ? g.override.scheduler[e.currentSchedulerId] : e.menu.modules.scheduler.find(
|
|
724
|
-
(
|
|
725
|
-
), A = new Set(((_ == null ? void 0 : _.items) || []).map((
|
|
726
|
-
d.modules.item = d.modules.item.filter((
|
|
724
|
+
(E) => E._id === e.currentSchedulerId
|
|
725
|
+
), A = new Set(((_ == null ? void 0 : _.items) || []).map((E) => E._id));
|
|
726
|
+
d.modules.item = d.modules.item.filter((E) => A.has(E._id));
|
|
727
727
|
}
|
|
728
728
|
return h.value = d, m.value = !1, v.value = v.value + 1, d;
|
|
729
729
|
}
|
|
730
730
|
const w = ie.debounce(p, 200);
|
|
731
|
-
let
|
|
732
|
-
function
|
|
733
|
-
|
|
731
|
+
let C = null, R = null;
|
|
732
|
+
function X() {
|
|
733
|
+
R && (R(), R = null), C && C.stop(), C = Xe(!0), R = C.run(() => Ze(
|
|
734
734
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
735
735
|
() => {
|
|
736
736
|
m.value || w();
|
|
737
737
|
}
|
|
738
738
|
)) || null;
|
|
739
739
|
}
|
|
740
|
-
|
|
740
|
+
X();
|
|
741
741
|
const me = S(() => [
|
|
742
742
|
{
|
|
743
743
|
label: "Main",
|
|
@@ -747,7 +747,7 @@ const Pt = Ye(
|
|
|
747
747
|
label: s.name,
|
|
748
748
|
value: s._id
|
|
749
749
|
}))
|
|
750
|
-
]),
|
|
750
|
+
]), Z = S(() => {
|
|
751
751
|
const s = h.value.modules.category;
|
|
752
752
|
return [
|
|
753
753
|
...U.value.item.addon ? [
|
|
@@ -770,7 +770,7 @@ const Pt = Ye(
|
|
|
770
770
|
s = s.filter((g) => {
|
|
771
771
|
var A;
|
|
772
772
|
const _ = (A = y == null ? void 0 : y[g._id]) == null ? void 0 : A.find(
|
|
773
|
-
(
|
|
773
|
+
(E) => !E.combinationKey
|
|
774
774
|
);
|
|
775
775
|
return (_ == null ? void 0 : _.orderFrom) !== ae.F_ORDER_FROM.enum.NONE;
|
|
776
776
|
});
|
|
@@ -785,7 +785,7 @@ const Pt = Ye(
|
|
|
785
785
|
y,
|
|
786
786
|
(g) => g.code || g.name
|
|
787
787
|
).reduce((g, _, A) => (g[_._id] = A + d[_.category || ""], g), {});
|
|
788
|
-
}), he = S(() => oe(N.value,
|
|
788
|
+
}), he = S(() => oe(N.value, Z.value, ee.value)), pe = S(() => {
|
|
789
789
|
const s = U.value.item.addon ? [
|
|
790
790
|
{
|
|
791
791
|
_id: e.currentCatalogId ? "" : null,
|
|
@@ -811,7 +811,7 @@ const Pt = Ye(
|
|
|
811
811
|
selector: "name"
|
|
812
812
|
})), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Le(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
813
813
|
selector: "name"
|
|
814
|
-
})), Ae = S(() => e.menu.modules.cookingGuide),
|
|
814
|
+
})), Ae = S(() => e.menu.modules.cookingGuide), Ie = S(() => {
|
|
815
815
|
const s = qe(e.menu.modules.sku);
|
|
816
816
|
return x(s, { selector: "code" });
|
|
817
817
|
}), U = S(() => {
|
|
@@ -887,19 +887,19 @@ const Pt = Ye(
|
|
|
887
887
|
function W(s) {
|
|
888
888
|
return `${s.systemCode}/${s.taxCode}`;
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function Ce(s) {
|
|
891
891
|
const [d, y] = s.split("/");
|
|
892
892
|
return { systemCode: d, taxCode: y };
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function Re(s, d, y) {
|
|
895
895
|
return (s ?? d ?? []).map((g) => W(g)).find((g) => y.some((_) => _.value === g));
|
|
896
896
|
}
|
|
897
|
-
const
|
|
897
|
+
const ke = S(() => {
|
|
898
898
|
var g;
|
|
899
899
|
const s = ["SV5", "SV10"], d = ze.Country.getCountryFlattenTaxes(
|
|
900
900
|
se().currentCountry.value
|
|
901
901
|
), y = d.filter((_) => a.value || !s.includes(_.taxCode)).map((_) => ({
|
|
902
|
-
label: `${_.name} (${
|
|
902
|
+
label: `${_.name} (${He(_.rate)}%)`,
|
|
903
903
|
value: W(_),
|
|
904
904
|
meta: {
|
|
905
905
|
rate: _.rate
|
|
@@ -909,7 +909,7 @@ const Pt = Ye(
|
|
|
909
909
|
systemCode: (g = d[0]) == null ? void 0 : g.systemCode,
|
|
910
910
|
countryTaxOptions: y
|
|
911
911
|
};
|
|
912
|
-
}),
|
|
912
|
+
}), Ee = async () => {
|
|
913
913
|
const s = await Je.readMenu();
|
|
914
914
|
e.menu = s ?? e.menu, te(null);
|
|
915
915
|
}, xe = async () => {
|
|
@@ -937,9 +937,9 @@ const Pt = Ye(
|
|
|
937
937
|
}));
|
|
938
938
|
try {
|
|
939
939
|
if (d || g.some(
|
|
940
|
-
(A) => [
|
|
940
|
+
(A) => [H.F_OPERATION_TYPE.delete, H.F_OPERATION_TYPE.deleteMany].includes(A.operation)
|
|
941
941
|
)) {
|
|
942
|
-
const A = await
|
|
942
|
+
const A = await Ge(g, e.menu.modules);
|
|
943
943
|
if (A !== !0) throw new Error(A);
|
|
944
944
|
}
|
|
945
945
|
const _ = await bt.updateMenuModule(e.menu, g);
|
|
@@ -984,7 +984,7 @@ const Pt = Ye(
|
|
|
984
984
|
schedulers: c,
|
|
985
985
|
currentScheduler: i,
|
|
986
986
|
catalogOptions: me,
|
|
987
|
-
categories:
|
|
987
|
+
categories: Z,
|
|
988
988
|
subcategories: ve,
|
|
989
989
|
items: ee,
|
|
990
990
|
sortedItems: ye,
|
|
@@ -997,12 +997,12 @@ const Pt = Ye(
|
|
|
997
997
|
units: we,
|
|
998
998
|
recipes: Me,
|
|
999
999
|
cookingGuide: Ae,
|
|
1000
|
-
skus:
|
|
1000
|
+
skus: Ie,
|
|
1001
1001
|
rules: U,
|
|
1002
|
-
taxSetting:
|
|
1002
|
+
taxSetting: ke,
|
|
1003
1003
|
// Action
|
|
1004
1004
|
setMenu: f,
|
|
1005
|
-
readMenu:
|
|
1005
|
+
readMenu: Ee,
|
|
1006
1006
|
readRestaurants: xe,
|
|
1007
1007
|
selectCatalog: te,
|
|
1008
1008
|
selectScheduler: Oe,
|
|
@@ -1013,8 +1013,8 @@ const Pt = Ye(
|
|
|
1013
1013
|
computeMergedMenu: p,
|
|
1014
1014
|
// helper
|
|
1015
1015
|
encodeTax: W,
|
|
1016
|
-
decodeTax:
|
|
1017
|
-
getSelectedTax:
|
|
1016
|
+
decodeTax: Ce,
|
|
1017
|
+
getSelectedTax: Re,
|
|
1018
1018
|
mapVariant: ge,
|
|
1019
1019
|
// history
|
|
1020
1020
|
canUndoHistory: Ke,
|
|
@@ -1023,10 +1023,10 @@ const Pt = Ye(
|
|
|
1023
1023
|
redoHistory: je,
|
|
1024
1024
|
// cleanup
|
|
1025
1025
|
$dispose: () => {
|
|
1026
|
-
w.cancel(),
|
|
1026
|
+
w.cancel(), R && (R(), R = null), C && (C.stop(), C = null), Ne();
|
|
1027
1027
|
},
|
|
1028
1028
|
$reinitialize: () => {
|
|
1029
|
-
|
|
1029
|
+
X();
|
|
1030
1030
|
}
|
|
1031
1031
|
};
|
|
1032
1032
|
}
|
package/dist/mf-menu.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.expand-enter-from[data-v-
|
|
1
|
+
.expand-enter-from[data-v-62829b37]{opacity:0;max-height:0}.expand-enter-to[data-v-62829b37],.expand-leave-from[data-v-62829b37]{opacity:1;max-height:1000px}.expand-leave-to[data-v-62829b37]{opacity:0;max-height:0}.expand-enter-active[data-v-62829b37],.expand-leave-active[data-v-62829b37]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fade-enter-from[data-v-5b5c7179]{opacity:0}.fade-enter-to[data-v-5b5c7179],.fade-leave-from[data-v-5b5c7179]{opacity:1}.fade-leave-to[data-v-5b5c7179]{opacity:0}.fade-enter-active[data-v-5b5c7179],.fade-leave-active[data-v-5b5c7179]{transition:opacity .5s ease}.expand-enter-from[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-to[data-v-e920f110],.expand-leave-from[data-v-e920f110]{opacity:1;max-height:1000px}.expand-leave-to[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-active[data-v-e920f110],.expand-leave-active[data-v-e920f110]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fm-select__menu__wrapper[data-v-89b5becb]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vue-advanced-cropper{text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}.fm-select__menu__wrapper[data-v-ca5e943c]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.description[data-v-2ea806a0] textarea{padding-right:32px}.image-action-overlay[data-v-946af9b7]{visibility:hidden;background-color:#ffffff4d}.container:hover .image-action-overlay[data-v-946af9b7]{visibility:visible}.description[data-v-463524a9] textarea{padding-right:32px}.tree-item-form button:focus{outline:2px solid black}.resize-handle[data-v-570141b0]{cursor:col-resize}.resize-handle[data-v-570141b0]:hover{background-color:var(--fm-color-system-orange-200);filter:opacity(.4)}.resize-grabber[data-v-570141b0]{pointer-events:none}[data-v-f6f1080b] .highlighted-span{background-color:#ff06}.hover-effect:hover:before{content:"";background-color:var(--fm-color-opacity-sm);border-radius:var(--fm-corner-radius-sm);position:absolute;top:0;left:0;height:100%;width:100%}.tree-node .right-area .show-on-hover{display:none}.tree-node:hover .right-area .show-on-hover{display:flex}.drag-handle{cursor:grab;position:absolute;left:0}.tree-node:hover .drag-handle{visibility:visible}.tree-node .drag-handle{visibility:hidden}.drop-indicator-before{position:absolute;left:0;right:0;top:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-after{position:absolute;left:0;right:0;bottom:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-inside{position:absolute;left:0;right:0;top:0;bottom:0;border:2px solid var(--fm-color-primary);border-radius:var(--fm-corner-radius-sm);background-color:var(--fm-color-opacity-sm);z-index:5}.tree-node{position:relative}.tree-container[data-v-9244f342]{width:100%;max-width:100%;height:100%;position:relative}.tree-node-wrapper[data-v-9244f342]{width:100%;position:relative}.empty-tree-message[data-v-9244f342]{padding:20px;text-align:center;color:#666}.being-dragged[data-v-9244f342]{opacity:.5}.drop-before[data-v-9244f342]:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-after[data-v-9244f342]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-inside[data-v-9244f342]{background-color:#4299e11a}.drag-overlay[data-v-9244f342]{position:fixed;padding:4px 8px;background-color:#fff;border:1px solid var(--fm-color-neutral-gray-200);box-shadow:0 2px 4px #0000001a;pointer-events:none;z-index:1000;border-radius:4px;max-width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-overlay{background-color:#ffffff80}.fade-enter-from[data-v-6c3052b3]{opacity:0}.fade-enter-to[data-v-6c3052b3],.fade-leave-from[data-v-6c3052b3]{opacity:1}.fade-leave-to[data-v-6c3052b3]{opacity:0}.fade-enter-active[data-v-6c3052b3],.fade-leave-active[data-v-6c3052b3]{transition:opacity .5s ease}.expand-enter-active,.expand-leave-active{transition:.3s}.expand-enter-from{opacity:0;max-height:0}.expand-enter-to,.expand-leave-from{opacity:1;max-height:1000px}.expand-leave-to{opacity:0;max-height:0}.app-container{background-color:#fff!important}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
|
|
2
2
|
import { useI18n as m } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as k, D as M } from "./
|
|
4
|
+
import { u as k, D as M } from "./index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as A, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
|
|
2
|
-
import { H as S, z as r, u as pe, I as ve, J as ue } from "./
|
|
2
|
+
import { H as S, z as r, u as pe, I as ve, J as ue } from "./index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js";
|
|
3
3
|
import { useI18n as de } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as _e } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as
|
|
5
|
+
import { _ as fe } from "./FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js";
|
|
6
|
+
import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-edNbsZTq.js";
|
|
6
7
|
import { u as ye } from "./discardConfirm-BHni0LNu.js";
|
|
7
|
-
import { u as he } from "./menu-
|
|
8
|
-
import { L as ge } from "./LinkProductSideSheet-
|
|
8
|
+
import { u as he } from "./menu-ud-tWfIM.js";
|
|
9
|
+
import { L as ge } from "./LinkProductSideSheet-B_R_2iH6.js";
|
|
9
10
|
const Ve = { class: "space-y-8" }, Fe = {
|
|
10
11
|
key: 0,
|
|
11
12
|
class: "space-y-16"
|
|
@@ -150,7 +151,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
150
151
|
}, Le = { class: "w-full" }, Ae = {
|
|
151
152
|
key: 0,
|
|
152
153
|
class: "mt-8"
|
|
153
|
-
}, Ne = { class: "text-red-500 text-sm" }, Re = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, Ye = { class: "px-16 py-8 flex-1" }, Me = { class: "px-16 py-8" }, Oe = { class: "flex gap-8 items-center justify-start" },
|
|
154
|
+
}, Ne = { class: "text-red-500 text-sm" }, Re = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, Ye = { class: "px-16 py-8 flex-1" }, Me = { class: "px-16 py-8" }, Oe = { class: "flex gap-8 items-center justify-start" }, Ge = /* @__PURE__ */ ie({
|
|
154
155
|
__name: "SchedulerDialog",
|
|
155
156
|
props: {
|
|
156
157
|
categorizedItems: {
|
|
@@ -485,21 +486,21 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
485
486
|
};
|
|
486
487
|
}
|
|
487
488
|
});
|
|
488
|
-
function
|
|
489
|
+
function Je(V) {
|
|
489
490
|
return {
|
|
490
491
|
module: r.F_MENU_MODULE_V4_KEY.enum.scheduler,
|
|
491
492
|
operation: ue.F_OPERATION_TYPE.create,
|
|
492
493
|
data: r.FdoMenuV4Scheduler.parse(V)
|
|
493
494
|
};
|
|
494
495
|
}
|
|
495
|
-
function
|
|
496
|
+
function We(V) {
|
|
496
497
|
return {
|
|
497
498
|
module: r.F_MENU_MODULE_V4_KEY.enum.scheduler,
|
|
498
499
|
operation: ue.F_OPERATION_TYPE.update,
|
|
499
500
|
data: r.FdoMenuV4Scheduler.parse(V)
|
|
500
501
|
};
|
|
501
502
|
}
|
|
502
|
-
function
|
|
503
|
+
function Xe(V) {
|
|
503
504
|
return {
|
|
504
505
|
module: r.F_MENU_MODULE_V4_KEY.enum.scheduler,
|
|
505
506
|
operation: ue.F_OPERATION_TYPE.delete,
|
|
@@ -507,8 +508,8 @@ function We(V) {
|
|
|
507
508
|
};
|
|
508
509
|
}
|
|
509
510
|
export {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
511
|
+
Ge as _,
|
|
512
|
+
Je as c,
|
|
513
|
+
Xe as d,
|
|
514
|
+
We as u
|
|
514
515
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as C, unref as c, withCtx as V, createVNode as A } from "vue";
|
|
2
|
-
import { J as l, z as d, u as F } from "./
|
|
2
|
+
import { J as l, z as d, u as F } from "./index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js";
|
|
3
3
|
import { useI18n as b } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as P } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as v } from "./menuV2-
|
|
5
|
+
import { u as v } from "./menuV2-xUMdUls0.js";
|
|
6
6
|
const y = /* @__PURE__ */ M({
|
|
7
7
|
__name: "AddSubcategoryDialogContentComponent",
|
|
8
8
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-Bpt-8tbe.js";
|
|
2
|
+
import "./index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineStore as J } from "pinia";
|
|
2
2
|
import { defineComponent as O, computed as w, ref as h, watch as T, resolveComponent as _, createBlock as W, openBlock as F, withCtx as x, createVNode as d, createElementVNode as b, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
-
import {
|
|
3
|
+
import { a6 as B, a7 as te, a4 as P, H as k, O as $, D as I, B as E, a5 as ne, J as C, z as D, I as ae, u as oe } from "./index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js";
|
|
4
4
|
import { useI18n as L } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as se } from "./discardConfirm-BHni0LNu.js";
|
|
7
7
|
import { c as me } from "./check-C9mY6LiX.js";
|
|
8
8
|
import "./vuedraggable-DnBIRDMr.js";
|
|
9
|
+
import "./menuV2-xUMdUls0.js";
|
|
9
10
|
import "./app-CzXxFrl1.js";
|
|
10
|
-
import "./menuV2-DJevKCqE.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as re } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-menu",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.4-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -20,11 +20,12 @@
|
|
|
20
20
|
"@feedmepos/core-dart": "^0.2.6",
|
|
21
21
|
"@feedmepos/core-legacy": "file:../../core-legacy-1.4.tar.gz",
|
|
22
22
|
"@feedmepos/custom-attributes": "0.0.1-rc.4",
|
|
23
|
+
"@feedmepos/feature-flag": "0.0.15",
|
|
23
24
|
"@feedmepos/inventory-core": "^0.2.6",
|
|
24
25
|
"@feedmepos/menu": "1.7.32",
|
|
25
26
|
"@feedmepos/mf-inventory-portal": "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz",
|
|
26
27
|
"@feedmepos/mf-remy-panel": "^0.1.0",
|
|
27
|
-
"@feedmepos/ui-library": "1.8.
|
|
28
|
+
"@feedmepos/ui-library": "1.8.8",
|
|
28
29
|
"@feedmepos/zod-entity": "0.0.4-alpha.9",
|
|
29
30
|
"@types/dinero.js": "^1.9.4",
|
|
30
31
|
"@vue/devtools-api": "^6.5.0",
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
"vue3-lottie": "^3.3.0",
|
|
54
55
|
"vuedraggable": "^4.1.0",
|
|
55
56
|
"xlsx": "^0.18.5",
|
|
56
|
-
"@feedmepos/mf-common": "^1.28.
|
|
57
|
+
"@feedmepos/mf-common": "^1.28.9"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
59
60
|
"@rollup/plugin-commonjs": "^28.0.2",
|