@feedmepos/mf-menu 0.32.11-dev → 0.32.12-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-BMQJXzfs.js → App-D0JZMDPU.js} +14 -10
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BwPzEkZi.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C5fI7pDt.js} +3 -3
- package/dist/{Catalog-DD9pz5om.js → Catalog-BIVVmu4F.js} +6 -6
- package/dist/{Category-Dbxxz-jo.js → Category-Cmf6dD5G.js} +6 -6
- package/dist/{Category-B_PZ_G_u.js → Category-DoEzIDPA.js} +4 -4
- package/dist/{CookingGuide-DHnJp0ti.js → CookingGuide-DxQ5vDF5.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DwLbvoN2.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BQscJC6_.js} +1 -1
- package/dist/{Group-D5DNbNUE.js → Group-EAACXFDr.js} +1 -1
- package/dist/{Group-TogIQUnh.js → Group-l59a7MQy.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BtiHaKaM.js → Group.vue_vue_type_script_setup_true_lang-CdIKM2jO.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DRYeG7wX.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CendqbFI.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CX-Q1qT4.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-B3I3jPxC.js} +3891 -3871
- package/dist/{Ingredient-B_Cu5XUX.js → Ingredient-B7kPk3oV.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-JMpeJ55c.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CzpY9mWg.js} +2 -2
- package/dist/{LinkProductSideSheet-qp0TBdii.js → LinkProductSideSheet-CeXhbGnn.js} +208 -213
- package/dist/{MenuSetting-CuMpJ9E0.js → MenuSetting-CCtL2qui.js} +5 -5
- package/dist/{PrintRoute-DQVaF9Jy.js → PrintRoute-DMLRAZJg.js} +4 -4
- package/dist/{Product-DZkUA6iZ.js → Product-BAcGhIEf.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BJfoQDpz.js → Product.vue_vue_type_script_setup_true_lang-V8-_F7WQ.js} +14 -14
- package/dist/{ProductInternalTools-KzWVZEWb.js → ProductInternalTools-BrQwrwyG.js} +28 -29
- package/dist/{Products-Bo7V88vF.js → Products-O5YVYdlT.js} +11 -11
- package/dist/Publish-CtKo19_y.js +1262 -0
- package/dist/{Recipe-DDIYbpDs.js → Recipe-ORx3rnvx.js} +4 -4
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CEtK-cui.js → RuleView.vue_vue_type_script_setup_true_lang-biTDrokQ.js} +2 -2
- package/dist/{Scheduler-CnRzjrae.js → Scheduler-B7v3W8eG.js} +3 -3
- package/dist/{ServingSequence-BI-_zfXH.js → ServingSequence-DczYH8BU.js} +3 -3
- package/dist/{Setting-CObzXORw.js → Setting-fNLED9R0.js} +5 -5
- package/dist/{Subcategory-SwoAI9Ll.js → Subcategory-DjK1PTao.js} +4 -4
- package/dist/{Takeaway-CoRzd77l.js → Takeaway-ChMYycO_.js} +1 -1
- package/dist/{Takeaway-DtwZd8AR.js → Takeaway-LjEJbd4e.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Dug9sZJl.js → Takeaway.vue_vue_type_script_setup_true_lang-CMdZM60P.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-1lzIehRE.js → Thumbnail.vue_vue_type_script_setup_true_lang-Yh_aUxqS.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-NjBNW9ch.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CEmOkHc5.js} +21 -20
- package/dist/{Unit-BkIkJdrO.js → Unit-DGZ9xVpM.js} +2 -2
- package/dist/{Variant-DNqk4G2y.js → Variant-CUasE1B5.js} +3 -3
- package/dist/{_id_-uch349de.js → _id_-CXV1a1UW.js} +10 -10
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/{app-C5IMDITK.js → app--9ZjQ_dH.js} +35 -35
- package/dist/{app-0e_XOvyp.js → app-E7mszfIB.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/menu.d.ts +9 -3
- package/dist/apps/mf-menu/src/app.d.ts +47 -0
- package/dist/apps/mf-menu/src/components/ProgressBar.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/calender/DateTimePicker.vue.d.ts +73 -0
- package/dist/apps/mf-menu/src/components/calender/FmCalendar.vue.d.ts +80 -0
- package/dist/apps/mf-menu/src/components/calender/FmDateRangeYearMonthPicker.vue.d.ts +22 -0
- package/dist/apps/mf-menu/src/components/calender/FmTimeInput.vue.d.ts +26 -0
- package/dist/apps/mf-menu/src/components/calender/TimeInput.vue.d.ts +32 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/ImageDropField.vue.d.ts +3 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/fmtree/FmTreeNode.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +5 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +5 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductPrice.vue.d.ts +5 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +9 -2
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +9 -1
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductPrice.vue.d.ts +5 -1
- package/dist/apps/mf-menu/src/views/Publish/PublishProgressView.vue.d.ts +198 -0
- package/dist/apps/mf-menu/src/views/Publish/PublishRestaurantSelector.vue.d.ts +17 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-BLErS-90.js → linked-status-Doclb1U6.js} +2 -2
- package/dist/assets/{override-menu-Bns6Vkk-.js → override-menu-BWkFILg4.js} +2 -2
- package/dist/assets/{validate-menu-v_LSEIFo.js → validate-menu-BS4T4zZm.js} +2 -2
- package/dist/{catalog-BuRtQI40.js → catalog-PkvD9BV_.js} +1 -1
- package/dist/{catalogSetting-B6GcQUXu.js → catalogSetting-Cd9aIJs2.js} +1 -1
- package/dist/{category-CztP5_ri.js → category-1NLh1OVo.js} +1 -1
- package/dist/{currency-qSlZ481F.js → currency-J1RZcMOx.js} +1 -1
- package/dist/dayjs.min-CXjOYO85.js +6 -0
- package/dist/{index-BbIeWj3n.js → index-BPpNi-Hh.js} +3 -3
- package/dist/{index-DMdZCp2g.js → index-BiCSP8Fy.js} +1 -1
- package/dist/{index-9XceRQZF.js → index-CisutoS9.js} +1 -1
- package/dist/{index-CJg7adB_.js → index-D9h3wl03.js} +4 -4
- package/dist/{index.vue_vue_type_script_setup_true_lang-CgDE93jl.js → index.vue_vue_type_script_setup_true_lang-B3Eku0Ig.js} +4479 -4432
- package/dist/{item-ByIhAQnU.js → item-Ctnd-m_D.js} +956 -925
- package/dist/{jszip.min-C4evSkfb.js → jszip.min-Bwz_vC7R.js} +353 -353
- package/dist/{menu-VanBYNI5.js → menu-DpTANxng.js} +1 -1
- package/dist/{menuV2-Pl32HC6Y.js → menuV2-BBMwj4p0.js} +61 -61
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-COST6Ohr.js → priceTier-DAG2W_y3.js} +1 -1
- package/dist/{scheduler-DIFsyx8F.js → scheduler-DYuLkKsc.js} +4 -4
- package/dist/{subcategory-D_YPCzZt.js → subcategory-BJ0oG92x.js} +2 -2
- package/dist/{toExcel-BTHGNmrM.js → toExcel-C5_3G21q.js} +2 -2
- package/dist/tooltip-B5BiPMx9.js +32 -0
- package/dist/{unit-scfKpGAE.js → unit-CNwmGzjU.js} +2 -2
- package/package.json +2 -3
- package/dist/Publish-B1cSJdud.js +0 -586
- package/dist/iteration-Brm6sHmJ.js +0 -27
- package/dist/tooltip-CQW9YRO5.js +0 -60
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as n, onMounted as d, onBeforeUnmount as m } from "vue";
|
|
2
|
-
import { u as c } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as c } from "./index.vue_vue_type_script_setup_true_lang-B3Eku0Ig.js";
|
|
3
3
|
import "@feedmepos/mf-common";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
5
|
function p() {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var We = Object.defineProperty;
|
|
2
2
|
var Le = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ne = (e, t, n) => Le(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ao as ae, I as C, D as T, A as ue, ap as re, K as
|
|
4
|
+
import { ao as ae, I as C, D as T, A as ue, ap as re, K as B, J as ie, ac as x, a as L, Y as V, am as oe, aq as qe, ar as ze, B as Be, ae as Ge, as as He, at as Je, ab as Ye } from "./index.vue_vue_type_script_setup_true_lang-B3Eku0Ig.js";
|
|
5
5
|
import { defineStore as Qe } from "pinia";
|
|
6
6
|
import { shallowRef as j, ref as G, computed as S, shallowReactive as Xe, effectScope as Ze, watch as et } from "vue";
|
|
7
7
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
8
8
|
import { useSnackbar as tt } from "@feedmepos/ui-library";
|
|
9
|
-
const nt = "/assets/linked-status-
|
|
9
|
+
const nt = "/assets/linked-status-Doclb1U6.js", rt = "/assets/override-menu-BWkFILg4.js";
|
|
10
10
|
function ot(e) {
|
|
11
11
|
var o;
|
|
12
12
|
const t = C(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
|
|
@@ -152,7 +152,7 @@ function ut(e, t) {
|
|
|
152
152
|
price: (o == null ? void 0 : o.price) || t.price
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
async function
|
|
155
|
+
async function Dt(e, t, n, o, r, u = !0) {
|
|
156
156
|
const l = C(n), a = u ? st(t, l, o, r) : l, c = t.reduce((p, v) => (p[v._id] = a.modules.item.find((y) => y._id === v._id), p), {}), i = t.reduce((p, v) => {
|
|
157
157
|
const y = v._id;
|
|
158
158
|
return p[y] = at(c[y], e), p;
|
|
@@ -170,7 +170,7 @@ async function Vt(e, t, n, o, r, u = !0) {
|
|
|
170
170
|
};
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Vt(e, t) {
|
|
174
174
|
if (e.length === 0) return "";
|
|
175
175
|
const n = e == null ? void 0 : e.split("variant");
|
|
176
176
|
return ((n == null ? void 0 : n.reduce((r, u) => {
|
|
@@ -204,7 +204,7 @@ async function ce(e, t, n) {
|
|
|
204
204
|
schedulerId: n
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Ft(e, t, n) {
|
|
208
208
|
const o = /* @__PURE__ */ new Set();
|
|
209
209
|
function r(u, l) {
|
|
210
210
|
if (!e || !u || !l || o.has(l)) return !1;
|
|
@@ -219,7 +219,7 @@ function Kt(e, t, n) {
|
|
|
219
219
|
}
|
|
220
220
|
return r(t, n);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function Kt(e, t, n) {
|
|
223
223
|
const o = /* @__PURE__ */ new Set();
|
|
224
224
|
function r(u, l) {
|
|
225
225
|
if (!e || !u || !l || o.has(u)) return !1;
|
|
@@ -234,13 +234,13 @@ function Ft(e, t, n) {
|
|
|
234
234
|
}
|
|
235
235
|
return r(t, n);
|
|
236
236
|
}
|
|
237
|
-
const
|
|
237
|
+
const z = /* @__PURE__ */ new Map();
|
|
238
238
|
async function it(e, t, n) {
|
|
239
239
|
const o = `${e._id}-${e.updatedAt}-${t || "null"}-${n || "null"}`;
|
|
240
|
-
if (
|
|
241
|
-
return
|
|
240
|
+
if (z.has(o))
|
|
241
|
+
return z.get(o);
|
|
242
242
|
const r = await ce(e, t, n);
|
|
243
|
-
return
|
|
243
|
+
return z.set(o, r), r;
|
|
244
244
|
}
|
|
245
245
|
async function Pt(e, t, n) {
|
|
246
246
|
var l, a;
|
|
@@ -254,9 +254,9 @@ async function Pt(e, t, n) {
|
|
|
254
254
|
const i = (l = c.items) == null ? void 0 : l.find((p) => p._id === n && !p.combinationKey), f = e.modules.item.find((p) => p._id === n);
|
|
255
255
|
if (i) {
|
|
256
256
|
const p = (a = c.items) == null ? void 0 : a.filter((y) => y._id === n && y.combinationKey), v = [i, ...p].map((y) => {
|
|
257
|
-
var w,
|
|
258
|
-
const h = y.combinationKey ? (
|
|
259
|
-
(
|
|
257
|
+
var w, I;
|
|
258
|
+
const h = y.combinationKey ? (I = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : I.find(
|
|
259
|
+
(E) => E.combinationKey === y.combinationKey
|
|
260
260
|
) : f, b = h && f ? u(f, h) : y;
|
|
261
261
|
return u(b, y);
|
|
262
262
|
});
|
|
@@ -268,7 +268,7 @@ async function Pt(e, t, n) {
|
|
|
268
268
|
}
|
|
269
269
|
return r;
|
|
270
270
|
}
|
|
271
|
-
const M = 0,
|
|
271
|
+
const M = 0, F = 3;
|
|
272
272
|
function ct(e) {
|
|
273
273
|
const t = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
274
274
|
if (!t)
|
|
@@ -297,7 +297,7 @@ function P(e) {
|
|
|
297
297
|
function k(e) {
|
|
298
298
|
return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function K(e, t) {
|
|
301
301
|
if (e === t) return !0;
|
|
302
302
|
if (typeof e != typeof t) return !1;
|
|
303
303
|
if (e instanceof Date && t instanceof Date)
|
|
@@ -307,14 +307,14 @@ function F(e, t) {
|
|
|
307
307
|
if (Array.isArray(e) && Array.isArray(t)) {
|
|
308
308
|
if (e.length !== t.length) return !1;
|
|
309
309
|
for (let n = 0; n < e.length; n++)
|
|
310
|
-
if (!
|
|
310
|
+
if (!K(e[n], t[n])) return !1;
|
|
311
311
|
return !0;
|
|
312
312
|
}
|
|
313
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)
|
|
317
|
-
if (!Object.prototype.hasOwnProperty.call(t, r) || !
|
|
317
|
+
if (!Object.prototype.hasOwnProperty.call(t, r) || !K(e[r], t[r])) return !1;
|
|
318
318
|
return !0;
|
|
319
319
|
}
|
|
320
320
|
return !1;
|
|
@@ -330,7 +330,7 @@ function lt(e, t, n) {
|
|
|
330
330
|
const i = e[c], f = n ? n(i) : JSON.stringify(i), p = u.get(f);
|
|
331
331
|
if (p) {
|
|
332
332
|
for (const v of p)
|
|
333
|
-
if (!a.has(v) &&
|
|
333
|
+
if (!a.has(v) && K(i, t[v])) {
|
|
334
334
|
l.push({ leftIndex: c, rightIndex: v }), a.add(v);
|
|
335
335
|
break;
|
|
336
336
|
}
|
|
@@ -340,7 +340,7 @@ function lt(e, t, n) {
|
|
|
340
340
|
}
|
|
341
341
|
function dt(e, t, n) {
|
|
342
342
|
var v, y;
|
|
343
|
-
if (
|
|
343
|
+
if (K(e, t)) return;
|
|
344
344
|
const o = { _t: "a" }, r = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.detectMove) !== !1, u = ((y = n == null ? void 0 : n.arrays) == null ? void 0 : y.includeValueOnMove) === !0, l = n == null ? void 0 : n.objectHash;
|
|
345
345
|
let a = r ? lt(e, t, l) : [];
|
|
346
346
|
if (!l && e.length === t.length && e.length > 0 && a.length < e.length) {
|
|
@@ -360,8 +360,8 @@ function dt(e, t, n) {
|
|
|
360
360
|
if (b !== void 0) {
|
|
361
361
|
const w = J(e[h], t[b], n);
|
|
362
362
|
if (w !== void 0 && (o[b] = w), r && b !== h) {
|
|
363
|
-
const
|
|
364
|
-
o[
|
|
363
|
+
const I = `_${h}`, E = u ? [e[h], b, F] : ["", b, F];
|
|
364
|
+
o[I] = E;
|
|
365
365
|
}
|
|
366
366
|
} else {
|
|
367
367
|
const w = `_${h}`;
|
|
@@ -375,7 +375,7 @@ function dt(e, t, n) {
|
|
|
375
375
|
return o;
|
|
376
376
|
}
|
|
377
377
|
function ft(e, t, n) {
|
|
378
|
-
if (
|
|
378
|
+
if (K(e, t)) return;
|
|
379
379
|
const o = {}, r = Object.keys(e), u = Object.keys(t), l = /* @__PURE__ */ new Set([...r, ...u]);
|
|
380
380
|
for (const a of l) {
|
|
381
381
|
if (n != null && n.propertyFilter && !n.propertyFilter(a, { left: e, right: t }))
|
|
@@ -392,7 +392,7 @@ function ft(e, t, n) {
|
|
|
392
392
|
return Object.keys(o).length > 0 ? o : void 0;
|
|
393
393
|
}
|
|
394
394
|
function J(e, t, n) {
|
|
395
|
-
if (
|
|
395
|
+
if (K(e, t)) return;
|
|
396
396
|
if (e === void 0 && t !== void 0) {
|
|
397
397
|
const a = n != null && n.cloneDiffValues ? O(t) : t;
|
|
398
398
|
return [P(a)];
|
|
@@ -416,7 +416,7 @@ function vt(e, t, n) {
|
|
|
416
416
|
for (const a in t) {
|
|
417
417
|
if (a === "_t" || !a.startsWith("_")) continue;
|
|
418
418
|
const c = parseInt(a.slice(1)), i = t[a];
|
|
419
|
-
Array.isArray(i) && (i.length === 3 && i[2] === M ? o.add(c) : i.length === 3 && i[2] ===
|
|
419
|
+
Array.isArray(i) && (i.length === 3 && i[2] === M ? o.add(c) : i.length === 3 && i[2] === F && r.set(c, i[1]));
|
|
420
420
|
}
|
|
421
421
|
const u = [];
|
|
422
422
|
let l = 0;
|
|
@@ -481,9 +481,9 @@ function pt(e) {
|
|
|
481
481
|
if (Array.isArray(r)) {
|
|
482
482
|
if (r.length === 3 && r[2] === M)
|
|
483
483
|
t[o] = [r[0]];
|
|
484
|
-
else if (r.length === 3 && r[2] ===
|
|
484
|
+
else if (r.length === 3 && r[2] === F) {
|
|
485
485
|
const u = r[1];
|
|
486
|
-
t[`_${u}`] = [r[0], o,
|
|
486
|
+
t[`_${u}`] = [r[0], o, F];
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
} else {
|
|
@@ -519,7 +519,7 @@ function Q(e) {
|
|
|
519
519
|
return [e[1], e[0]];
|
|
520
520
|
if (e.length === 3 && e[2] === M)
|
|
521
521
|
return [e[0]];
|
|
522
|
-
if (e.length === 3 && e[2] ===
|
|
522
|
+
if (e.length === 3 && e[2] === F)
|
|
523
523
|
return e;
|
|
524
524
|
}
|
|
525
525
|
return k(e) && e._t === "a" ? pt(e) : k(e) ? ht(e) : e;
|
|
@@ -616,7 +616,7 @@ function bt({
|
|
|
616
616
|
}
|
|
617
617
|
const wt = {
|
|
618
618
|
async updateMenuModule(e, t) {
|
|
619
|
-
const n =
|
|
619
|
+
const n = B.RequestRunner.operation(t, e.modules);
|
|
620
620
|
if (n.validateError.length > 0)
|
|
621
621
|
throw new Error(n.validateError.join(`
|
|
622
622
|
`));
|
|
@@ -690,7 +690,7 @@ const $t = Qe(
|
|
|
690
690
|
(s) => s._id === e.currentSchedulerId
|
|
691
691
|
));
|
|
692
692
|
function f(s, d = !0) {
|
|
693
|
-
e.menu = { ...s, _rev: e.menu._rev }, d &&
|
|
693
|
+
e.menu = { ...s, _rev: e.menu._rev }, d && D.push(e.menu);
|
|
694
694
|
}
|
|
695
695
|
const p = j(fe()), v = G(!1), y = G(1);
|
|
696
696
|
async function h() {
|
|
@@ -728,9 +728,9 @@ const $t = Qe(
|
|
|
728
728
|
return p.value = d, v.value = !1, y.value = y.value + 1, d;
|
|
729
729
|
}
|
|
730
730
|
const w = ie.debounce(h, 200);
|
|
731
|
-
let
|
|
731
|
+
let I = null, E = null;
|
|
732
732
|
function X() {
|
|
733
|
-
|
|
733
|
+
E && (E(), E = null), I && I.stop(), I = Ze(!0), E = I.run(() => et(
|
|
734
734
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
735
735
|
() => {
|
|
736
736
|
v.value || w();
|
|
@@ -757,11 +757,11 @@ const $t = Qe(
|
|
|
757
757
|
position: 0
|
|
758
758
|
}
|
|
759
759
|
] : [],
|
|
760
|
-
...
|
|
760
|
+
...V(s, (d) => d.name)
|
|
761
761
|
];
|
|
762
762
|
}), ve = S(() => {
|
|
763
763
|
const s = p.value.modules.subCategory || [];
|
|
764
|
-
return
|
|
764
|
+
return V(s, (d) => d.name);
|
|
765
765
|
}), ee = S(() => {
|
|
766
766
|
var d;
|
|
767
767
|
let s = p.value.modules.item;
|
|
@@ -775,13 +775,13 @@ const $t = Qe(
|
|
|
775
775
|
return (_ == null ? void 0 : _.orderFrom) !== ue.F_ORDER_FROM.enum.NONE;
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
|
-
return
|
|
778
|
+
return V(s, (m) => m.code || m.name);
|
|
779
779
|
}), ye = S(() => {
|
|
780
|
-
const s = e.menu.modules.category, d =
|
|
780
|
+
const s = e.menu.modules.category, d = V(s, (g) => g.name).reduce(
|
|
781
781
|
(g, _, A) => (g[_._id] = A, g),
|
|
782
782
|
{ "": 0 }
|
|
783
783
|
), m = e.menu.modules.item;
|
|
784
|
-
return
|
|
784
|
+
return V(
|
|
785
785
|
m,
|
|
786
786
|
(g) => g.code || g.name
|
|
787
787
|
).reduce((g, _, A) => (g[_._id] = A + d[_.category || ""], g), {});
|
|
@@ -807,14 +807,14 @@ const $t = Qe(
|
|
|
807
807
|
const d = s.map((g) => N.value.find((_) => _._id === g)).filter((g) => !!g);
|
|
808
808
|
return T.fullVariantCombination(d).reduce((g, _) => (g[_.combinationKey] = _.selectionName.join(" / "), g), {});
|
|
809
809
|
}
|
|
810
|
-
const _e = S(() =>
|
|
810
|
+
const _e = S(() => V(p.value.modules.group, (s) => s.name)), Se = S(() => x(p.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
|
|
811
811
|
selector: "name"
|
|
812
812
|
})), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(qe(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
813
813
|
selector: "name"
|
|
814
814
|
})), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
|
|
815
|
-
const s =
|
|
815
|
+
const s = ze(e.menu.modules.sku);
|
|
816
816
|
return x(s, { selector: "code" });
|
|
817
|
-
}),
|
|
817
|
+
}), Ie = S(() => {
|
|
818
818
|
const s = /* @__PURE__ */ new Map();
|
|
819
819
|
return e.menu.modules.item.forEach((d) => {
|
|
820
820
|
var m, g;
|
|
@@ -895,7 +895,7 @@ const $t = Qe(
|
|
|
895
895
|
function W(s) {
|
|
896
896
|
return `${s.systemCode}/${s.taxCode}`;
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function Ee(s) {
|
|
899
899
|
const [d, m] = s.split("/");
|
|
900
900
|
return { systemCode: d, taxCode: m };
|
|
901
901
|
}
|
|
@@ -904,7 +904,7 @@ const $t = Qe(
|
|
|
904
904
|
}
|
|
905
905
|
const Re = S(() => {
|
|
906
906
|
var g;
|
|
907
|
-
const s = ["SV5", "SV10"], d =
|
|
907
|
+
const s = ["SV5", "SV10"], d = Be.Country.getCountryFlattenTaxes(
|
|
908
908
|
se().currentCountry.value
|
|
909
909
|
), m = d.filter((_) => u.value || !s.includes(_.taxCode)).map((_) => ({
|
|
910
910
|
label: `${_.name} (${Ge(_.rate)}%)`,
|
|
@@ -929,13 +929,13 @@ const $t = Qe(
|
|
|
929
929
|
});
|
|
930
930
|
}, te = (s) => {
|
|
931
931
|
e.currentCatalogId = s;
|
|
932
|
-
}, Ve = (s) => {
|
|
933
|
-
e.currentSchedulerId = s;
|
|
934
932
|
}, De = (s) => {
|
|
933
|
+
e.currentSchedulerId = s;
|
|
934
|
+
}, Ve = (s) => {
|
|
935
935
|
e.currentCategoryIds = s;
|
|
936
936
|
}, Te = (s) => {
|
|
937
937
|
e.currentRestaurantAttrParams = s;
|
|
938
|
-
},
|
|
938
|
+
}, Fe = async (s, d) => {
|
|
939
939
|
const m = Array.isArray(s) ? s : [s];
|
|
940
940
|
if (!m.length) return;
|
|
941
941
|
const g = m.map((_) => ({
|
|
@@ -945,7 +945,7 @@ const $t = Qe(
|
|
|
945
945
|
}));
|
|
946
946
|
try {
|
|
947
947
|
if (d || g.some(
|
|
948
|
-
(A) => [
|
|
948
|
+
(A) => [B.F_OPERATION_TYPE.delete, B.F_OPERATION_TYPE.deleteMany].includes(A.operation)
|
|
949
949
|
)) {
|
|
950
950
|
const A = await He(g, e.menu.modules);
|
|
951
951
|
if (A !== !0) throw new Error(A);
|
|
@@ -959,7 +959,7 @@ const $t = Qe(
|
|
|
959
959
|
message: _
|
|
960
960
|
});
|
|
961
961
|
}
|
|
962
|
-
},
|
|
962
|
+
}, Ke = async (s) => {
|
|
963
963
|
const d = {
|
|
964
964
|
...e.menu,
|
|
965
965
|
masterCatalogSetting: s.masterCatalogSetting,
|
|
@@ -967,14 +967,14 @@ const $t = Qe(
|
|
|
967
967
|
priceTierSettings: s.priceTierSettings
|
|
968
968
|
};
|
|
969
969
|
return f(d), d;
|
|
970
|
-
},
|
|
971
|
-
const s =
|
|
970
|
+
}, D = bt({ maxHistorySize: 50 }), Pe = S(() => D.canUndo.value), $e = S(() => D.canRedo.value), je = () => {
|
|
971
|
+
const s = D.undo();
|
|
972
972
|
s && f(s, !1);
|
|
973
973
|
}, Ne = () => {
|
|
974
|
-
const s =
|
|
974
|
+
const s = D.redo();
|
|
975
975
|
s && f(s, !1);
|
|
976
976
|
}, Ue = () => {
|
|
977
|
-
|
|
977
|
+
D.clear();
|
|
978
978
|
};
|
|
979
979
|
return {
|
|
980
980
|
state: e,
|
|
@@ -996,7 +996,7 @@ const $t = Qe(
|
|
|
996
996
|
subcategories: ve,
|
|
997
997
|
items: ee,
|
|
998
998
|
sortedItems: ye,
|
|
999
|
-
itemCodeMap:
|
|
999
|
+
itemCodeMap: Ie,
|
|
1000
1000
|
categorizedItems: pe,
|
|
1001
1001
|
categorizedRawMenuItems: he,
|
|
1002
1002
|
variants: N,
|
|
@@ -1014,15 +1014,15 @@ const $t = Qe(
|
|
|
1014
1014
|
readMenu: xe,
|
|
1015
1015
|
readRestaurants: Oe,
|
|
1016
1016
|
selectCatalog: te,
|
|
1017
|
-
selectScheduler:
|
|
1018
|
-
selectCategory:
|
|
1017
|
+
selectScheduler: De,
|
|
1018
|
+
selectCategory: Ve,
|
|
1019
1019
|
setRestaurantAttrParams: Te,
|
|
1020
|
-
updateMenu:
|
|
1021
|
-
updateMenuSetting:
|
|
1020
|
+
updateMenu: Fe,
|
|
1021
|
+
updateMenuSetting: Ke,
|
|
1022
1022
|
computeMergedMenu: h,
|
|
1023
1023
|
// helper
|
|
1024
1024
|
encodeTax: W,
|
|
1025
|
-
decodeTax:
|
|
1025
|
+
decodeTax: Ee,
|
|
1026
1026
|
getSelectedTax: ke,
|
|
1027
1027
|
mapVariant: ge,
|
|
1028
1028
|
// history
|
|
@@ -1032,7 +1032,7 @@ const $t = Qe(
|
|
|
1032
1032
|
redoHistory: Ne,
|
|
1033
1033
|
// cleanup
|
|
1034
1034
|
$dispose: () => {
|
|
1035
|
-
w.cancel(),
|
|
1035
|
+
w.cancel(), E && (E(), E = null), I && (I.stop(), I = null), Ue();
|
|
1036
1036
|
},
|
|
1037
1037
|
$reinitialize: () => {
|
|
1038
1038
|
X();
|
|
@@ -1042,11 +1042,11 @@ const $t = Qe(
|
|
|
1042
1042
|
);
|
|
1043
1043
|
export {
|
|
1044
1044
|
Tt as a,
|
|
1045
|
-
|
|
1046
|
-
|
|
1045
|
+
Ft as b,
|
|
1046
|
+
Kt as c,
|
|
1047
1047
|
Pt as f,
|
|
1048
|
-
|
|
1049
|
-
|
|
1048
|
+
Vt as g,
|
|
1049
|
+
Dt as m,
|
|
1050
1050
|
it as o,
|
|
1051
1051
|
$t as u
|
|
1052
1052
|
};
|
package/dist/mf-menu.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.expand-enter-from[data-v-60163177]{opacity:0;max-height:0}.expand-enter-to[data-v-60163177],.expand-leave-from[data-v-60163177]{opacity:1;max-height:1000px}.expand-leave-to[data-v-60163177]{opacity:0;max-height:0}.expand-enter-active[data-v-60163177],.expand-leave-active[data-v-60163177]{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-cd10e067] 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-e9a1f9cd] 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
|
+
.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-60163177]{opacity:0;max-height:0}.expand-enter-to[data-v-60163177],.expand-leave-from[data-v-60163177]{opacity:1;max-height:1000px}.expand-leave-to[data-v-60163177]{opacity:0;max-height:0}.expand-enter-active[data-v-60163177],.expand-leave-active[data-v-60163177]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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-8bd8a216] 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-d74e5a64] 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}.fm-calendar__name-row[data-v-47484312]{display:flex;height:40px;width:100%;align-items:center}.fm-calendar__row[data-v-47484312]{display:flex;height:2.25rem;width:100%}.fm-calendar__cell[data-v-47484312]{position:relative;display:flex;align-items:center;justify-content:center}.fm-calendar__cell__md[data-v-47484312]{height:2.25rem;width:2.25rem}.fm-calendar__cell__lg[data-v-47484312]{height:2.25rem;width:48px}.fm-calendar__cell--not-current-month[data-v-47484312]:before{background-color:transparent!important}.fm-calendar__cell--not-current-month[data-v-47484312]:after{background-color:transparent!important}.fm-calendar__cell--not-current-month[data-v-47484312]>*{background-color:transparent!important}.fm-calendar__cell__button[data-v-47484312]{height:2.25rem;width:2.25rem;border-radius:9999px}.fm-calendar__cell__button--today[data-v-47484312]{position:absolute;bottom:0;left:50%;--tw-translate-x: -50%;--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));width:1.75rem;border-radius:8px;border-bottom-width:2px;border-color:var(--fm-color-primary)}.fm-calendar__cell:hover:not(.fm-calendar__cell--selected):not(.fm-calendar__cell--selected-start):not(.fm-calendar__cell--selected-between):not(.fm-calendar__cell--selected-end)>.fm-calendar__cell__button[data-v-47484312]{border-radius:9999px;background-color:var(--fm-color-opacity-sm)}.fm-calendar__cell--selected>button[data-v-47484312]{background-color:var(--fm-color-primary);color:var(--fm-color-neutral-white)}.fm-calendar__cell--selected-start[data-v-47484312]:before,.fm-calendar__cell--selected-end[data-v-47484312]:before,.fm-calendar__cell--selected-between[data-v-47484312]:before{--tw-content: "";content:var(--tw-content);z-index:-1;height:100%;width:50%;position:absolute;top:0;left:0}.fm-calendar__cell--selected-start[data-v-47484312]:after,.fm-calendar__cell--selected-end[data-v-47484312]:after,.fm-calendar__cell--selected-between[data-v-47484312]:after{--tw-content: "";content:var(--tw-content);z-index:-1;height:100%;width:50%;position:absolute;top:0;left:50%}.fm-calendar__cell--selected-start>button[data-v-47484312]{background-color:var(--fm-color-primary);color:var(--fm-color-neutral-white)}.fm-calendar__cell--selected-start[data-v-47484312]:after{background-color:var(--fm-color-system-orange-100)}.fm-calendar__cell--selected-between[data-v-47484312]:before,.fm-calendar__cell--selected-between[data-v-47484312]:after{background-color:var(--fm-color-system-orange-100)}.fm-calendar__cell--selected-end>button[data-v-47484312]{background-color:var(--fm-color-primary);color:var(--fm-color-neutral-white)}.fm-calendar__cell--selected-end[data-v-47484312]:before{background-color:var(--fm-color-system-orange-100)}.container[data-v-709d7500]{height:5px;width:100%;background-color:#e0e0de;border-radius:50px}.label[data-v-709d7500]{padding:5px;color:#fff;font-weight:700}
|
|
@@ -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, G as M } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as k, G as M } from "./index.vue_vue_type_script_setup_true_lang-B3Eku0Ig.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,12 +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 L, 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 { I as S, A as r, u as pe, J as ve, K as ue } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { I as S, A as r, u as pe, J as ve, K as ue } from "./index.vue_vue_type_script_setup_true_lang-B3Eku0Ig.js";
|
|
3
3
|
import { useI18n as de } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as _e } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as fe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
6
|
-
import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-biTDrokQ.js";
|
|
7
7
|
import { u as ye } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as he } from "./menu-
|
|
9
|
-
import { L as ge } from "./LinkProductSideSheet-
|
|
8
|
+
import { u as he } from "./menu-DpTANxng.js";
|
|
9
|
+
import { L as ge } from "./LinkProductSideSheet-CeXhbGnn.js";
|
|
10
10
|
const Ve = { class: "space-y-8" }, Fe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "space-y-16"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as A, unref as c, withCtx as C, createVNode as V } from "vue";
|
|
2
|
-
import { K as l, A as d, u as F } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { K as l, A as d, u as F } from "./index.vue_vue_type_script_setup_true_lang-B3Eku0Ig.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-BBMwj4p0.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 "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-B3I3jPxC.js";
|
|
2
|
+
import "./index.vue_vue_type_script_setup_true_lang-B3Eku0Ig.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as c, createElementBlock as s, openBlock as a, createElementVNode as n, toDisplayString as i, resolveDirective as l, withDirectives as p } from "vue";
|
|
2
|
+
const d = { class: "space-y-4" }, u = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, m = { class: "fm-typo-en-body-lg-600" }, y = /* @__PURE__ */ c({
|
|
3
|
+
__name: "InfoBasic",
|
|
4
|
+
props: {
|
|
5
|
+
name: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: !0
|
|
8
|
+
},
|
|
9
|
+
value: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: !0
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
setup(e) {
|
|
15
|
+
return (t, o) => (a(), s("div", d, [
|
|
16
|
+
n("div", u, i(e.name), 1),
|
|
17
|
+
n("div", m, i(e.value), 1)
|
|
18
|
+
]));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
function f(e, t, o = 110) {
|
|
22
|
+
const r = l("tooltip");
|
|
23
|
+
return p(e, [[r, { content: t, zIndex: o }]]);
|
|
24
|
+
}
|
|
25
|
+
function v(e, t = 110) {
|
|
26
|
+
return { content: e, zIndex: t };
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
v as _,
|
|
30
|
+
y as a,
|
|
31
|
+
f as w
|
|
32
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineStore as W } from "pinia";
|
|
2
2
|
import { defineComponent as T, computed as U, ref as h, watch as L, resolveComponent as V, createBlock as H, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as P, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
-
import { a6 as q, a7 as te, a4 as B, I as k, P as $, G as I, D as E, a5 as ne, K as C, A as D, J as oe, u as ae } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { a6 as q, a7 as te, a4 as B, I as k, P as $, G as I, D as E, a5 as ne, K as C, A as D, J as oe, u as ae } from "./index.vue_vue_type_script_setup_true_lang-B3Eku0Ig.js";
|
|
4
4
|
import { useI18n as N } 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 re } from "./check-C9mY6LiX.js";
|
|
8
8
|
import "./vuedraggable-CK8z7qA8.js";
|
|
9
|
-
import "./menuV2-
|
|
9
|
+
import "./menuV2-BBMwj4p0.js";
|
|
10
10
|
import "./app-5fxKLAzS.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-menu",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.12-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"vue3-lottie": "^3.3.0",
|
|
55
55
|
"vuedraggable": "^4.1.0",
|
|
56
56
|
"xlsx": "^0.18.5",
|
|
57
|
-
"@feedmepos/mf-common": "^1.29.
|
|
57
|
+
"@feedmepos/mf-common": "^1.29.12"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
@@ -74,7 +74,6 @@
|
|
|
74
74
|
"eslint-plugin-vue": "^9.17.0",
|
|
75
75
|
"npm-run-all2": "^6.1.1",
|
|
76
76
|
"postcss": "^8.4.31",
|
|
77
|
-
"prettier": "^3.0.3",
|
|
78
77
|
"sass": "1.69.5",
|
|
79
78
|
"tailwindcss": "^3.3.3",
|
|
80
79
|
"typescript": "^5.2.2",
|