@feedmepos/mf-menu 0.32.40 → 0.32.41-dev.2
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-DqpxV0zp.js → App-mCGGnjeS.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BQM40AWC.js → ApplyProduct.vue_vue_type_script_setup_true_lang-MWoYiClD.js} +3 -3
- package/dist/{Catalog-RdpK3RmL.js → Catalog-CM2wnQ4l.js} +44 -44
- package/dist/{Category-ar15UpWV.js → Category-Bp9tGWwJ.js} +24 -24
- package/dist/{Category-DbvCHZU4.js → Category-bsL9IQ5n.js} +24 -24
- package/dist/{CookingGuide-x2w_WTnE.js → CookingGuide-Cy0Kt6Ys.js} +105 -105
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-pRoVDEEM.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CX4s7NYy.js} +1 -1
- package/dist/{Group-D30WEl2L.js → Group-0hMArGNs.js} +1 -1
- package/dist/{Group-DevhimQn.js → Group-BKFZMvZg.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BY3nr67e.js → Group.vue_vue_type_script_setup_true_lang-st4plK2R.js} +18 -18
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CPvumpiM.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-8zW2KIMn.js} +30 -30
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-hEPchEwW.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-UhuYuL-A.js} +4129 -4125
- package/dist/{Ingredient-CiJSeTgO.js → Ingredient-CvE0xujL.js} +20 -20
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Cnq9QAeQ.js → InventoryBinding.vue_vue_type_script_setup_true_lang-iEhZ4_5G.js} +2 -2
- package/dist/{LinkProductSideSheet-CJxffg6I.js → LinkProductSideSheet-CbppLDSB.js} +45 -45
- package/dist/{MenuSetting-BMuUIgLN.js → MenuSetting-CQ9HnQKx.js} +47 -47
- package/dist/{PrintRoute-Uu2n0dAY.js → PrintRoute-Cc81zV6Q.js} +39 -39
- package/dist/{Product-e81DLAaw.js → Product-kFoTn7zI.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-1axfwskP.js → Product.vue_vue_type_script_setup_true_lang-BVF9SBEL.js} +128 -128
- package/dist/{ProductInternalTools-BiK5b7KA.js → ProductInternalTools-CwxPRqTy.js} +66 -66
- package/dist/Products-IBe-R8XN.js +334 -0
- package/dist/{Publish-d_T1ROxG.js → Publish-BE-PPNO8.js} +29 -29
- package/dist/{Recipe-QIACzb3h.js → Recipe-Ddts2It2.js} +24 -24
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-01qpukRE.js → RuleView.vue_vue_type_script_setup_true_lang-DQjE4JRi.js} +369 -369
- package/dist/{Scheduler-VxoCoh9o.js → Scheduler-CqP0Ha2K.js} +11 -11
- package/dist/{ServingSequence-C7aNpyh4.js → ServingSequence-WpneAUiB.js} +44 -44
- package/dist/{Setting-BzoqHU2T.js → Setting-CNGZaUUT.js} +17 -17
- package/dist/{Subcategory-dyK9h6SV.js → Subcategory-BVN0OH_q.js} +51 -51
- package/dist/{Takeaway-C3UnFVOa.js → Takeaway-BtnGTcvW.js} +1 -1
- package/dist/{Takeaway-DxLGfrmv.js → Takeaway-LFslRotB.js} +13 -13
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-zsgXKNRt.js → Takeaway.vue_vue_type_script_setup_true_lang-CJZfd5JB.js} +28 -28
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Ba0ZuCdS.js → Thumbnail.vue_vue_type_script_setup_true_lang-CI8eK98T.js} +27 -27
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-Xfmvx9wx.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-CfA400oN.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang--vNq7F0Z.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-SNBrW4Or.js} +13 -13
- package/dist/{Unit-Clc8AYHy.js → Unit-kL0Wjfb6.js} +8 -8
- package/dist/{Variant-DOGe2aJK.js → Variant-Cj82yGYE.js} +24 -24
- package/dist/{_id_-Bbc2mu9G.js → _id_-B-guZ25K.js} +28 -28
- package/dist/app-D4se7Sr4.js +1643 -0
- package/dist/{app-DQD4sPc8.js → app-DiVDYcc9.js} +1 -1
- package/dist/app.js +2 -2
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +2 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DojmxFzq.js → linked-status-C4nECq-3.js} +5 -5
- package/dist/assets/{menu-export-rmsdV9dK.js → menu-export-PPICN1VA.js} +5 -3
- package/dist/assets/{override-menu-CVjWw9he.js → override-menu-BaYdZfDk.js} +5 -5
- package/dist/assets/{validate-menu-BB1XuZ9d.js → validate-menu-DCyVSa7R.js} +2 -2
- package/dist/{catalog-ku3nqGmL.js → catalog-BTsgJdVe.js} +1 -1
- package/dist/{catalogSetting-CpgLgy9o.js → catalogSetting-BNYPChMH.js} +1 -1
- package/dist/{currency-B58wqs-1.js → currency-2KuoTCt5.js} +1 -1
- package/dist/dayjs.min-BE8PtbAQ.js +7 -0
- package/dist/{index-BGm9S8Ih.js → index-GaHNc4iH.js} +43 -43
- package/dist/{index-CPY_DjD2.js → index-UthDVOpX.js} +31 -31
- package/dist/{index-ByMVMoTu.js → index-fLVJt8Pt.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-IHmRgZTC.js → index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js} +244 -269
- package/dist/{item-DotiWZRv.js → item-DYsNPLH9.js} +759 -754
- package/dist/{jszip.min-OZZMb1gD.js → jszip.min-CLQSAAHL.js} +7 -6
- package/dist/{menu-v_Cm5BNh.js → menu-Btb1sPTh.js} +1 -1
- package/dist/{menuV2-DsvYmLeh.js → menuV2-Bfj5ljzI.js} +129 -129
- package/dist/{priceTier-BQeJLJUu.js → priceTier-DHp_DiBo.js} +1 -1
- package/dist/{rules-D3qosTfl.js → rules-B5QEx6OC.js} +11 -11
- package/dist/{scheduler-B32ag1lR.js → scheduler-CI-LJfho.js} +29 -29
- package/dist/{toExcel-CIrCsrWL.js → toExcel-CHdQxEnw.js} +2 -2
- package/dist/{unit-y1on6-W3.js → unit-D53f5n16.js} +35 -35
- package/package.json +2 -1
- package/dist/Products-DOIcfgzd.js +0 -291
- package/dist/app-BSpY6Pgy.js +0 -363
- package/dist/dayjs.min-Dj2ONTtr.js +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as K, ref as y, watch as E, computed as F, unref as a, resolveComponent as _, createBlock as T, openBlock as i, withCtx as v, createElementVNode as t, toDisplayString as m, createElementBlock as p, createCommentVNode as B, Fragment as x, renderList as C, createVNode as r } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { H as D } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
|
|
3
3
|
import { useI18n as P, useLocale as Q } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as R } from "./discardConfirm-BHni0LNu.js";
|
|
5
5
|
import { g as V, a as I, _ as W, b as X } from "./translation-Cdap0IVg.js";
|
|
@@ -79,8 +79,8 @@ const Y = { class: "fm-typo-en-title-md-600" }, Z = { class: "pt-8 space-y-24" }
|
|
|
79
79
|
set: (e) => f("update:modelValue", e)
|
|
80
80
|
});
|
|
81
81
|
return (e, o) => {
|
|
82
|
-
const n = _("FmIcon"), g = _("fm-button"),
|
|
83
|
-
return i(), T(
|
|
82
|
+
const n = _("FmIcon"), g = _("fm-button"), H = _("FmMenu"), G = _("fm-text-field"), J = _("fm-side-sheet");
|
|
83
|
+
return i(), T(J, {
|
|
84
84
|
modelValue: j.value,
|
|
85
85
|
"onUpdate:modelValue": o[1] || (o[1] = (l) => j.value = l),
|
|
86
86
|
"max-width": 720,
|
|
@@ -123,7 +123,7 @@ const Y = { class: "fm-typo-en-title-md-600" }, Z = { class: "pt-8 space-y-24" }
|
|
|
123
123
|
onClick: (b) => z(l.localeCode)
|
|
124
124
|
}, null, 8, ["onClick"])
|
|
125
125
|
]))), 128)),
|
|
126
|
-
w.value.length > 0 ? (i(), T(
|
|
126
|
+
w.value.length > 0 ? (i(), T(H, { key: 0 }, {
|
|
127
127
|
"menu-button": v(() => [
|
|
128
128
|
r(g, {
|
|
129
129
|
variant: "secondary",
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { computed as V, shallowRef as Ht, ref as H, watch as Ee, nextTick as ot, getCurrentInstance as Xt, onMounted as Le, render as On, defineComponent as de, resolveComponent as W, createElementBlock as X, openBlock as P, createBlock as te, normalizeClass as he, createElementVNode as A, createVNode as y, unref as t, withCtx as K, toDisplayString as _e, mergeModels as Jt, useModel as Qt, createCommentVNode as Z, resolveDirective as Zt, Fragment as Ie, renderList as Ue, createTextVNode as Dn, withDirectives as tt, renderSlot as Ne, h as we, vShow as en, withModifiers as He, createSlots as Vn, onBeforeUnmount as Pt, watchEffect as $n, onUnmounted as Pn, normalizeStyle as ft, mergeProps as Un, normalizeProps as Mn, guardReactiveProps as Rn, Teleport as An, Transition as Nn, withKeys as Ln } from "vue";
|
|
2
|
-
import { g as Gn, o as Kn, _ as Bn, a as zn, f as Yn, b as jn, c as tn, n as nn, I as Wn, S as qn, d as Ut, e as Hn, C as Xn, h as on, i as St, j as rn, k as Jn, m as Qn, F as Zn, M as an, l as eo, r as to, p as ln, q as Kt, s as sn, t as no, P as oo, v as ro, w as un, u as ao, T as ze } from "./item-
|
|
3
|
-
import { _ as lo, T as io } from "./app-
|
|
4
|
-
import {
|
|
2
|
+
import { g as Gn, o as Kn, _ as Bn, a as zn, f as Yn, b as jn, c as tn, n as nn, I as Wn, S as qn, d as Ut, e as Hn, C as Xn, h as on, i as St, j as rn, k as Jn, m as Qn, F as Zn, M as an, l as eo, r as to, p as ln, q as Kt, s as sn, t as no, P as oo, v as ro, w as un, u as ao, T as ze } from "./item-DYsNPLH9.js";
|
|
3
|
+
import { _ as lo, T as io } from "./app-D4se7Sr4.js";
|
|
4
|
+
import { z as ke, J as Se, y as ae, B as rt, K as so, M as uo, N as co, u as bt, O as Mt, P as mo, A as Ge, Q as po, G as ye, R as fo, H as Fe, T as yt, U as dn, V as go, W as vo, X as bo, Y as ht, Z as Bt, $ as _o, a0 as yo } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
|
|
5
5
|
import { useI18n as be, useCoreStore as at, CustomAttributesForm as cn } from "@feedmepos/mf-common";
|
|
6
6
|
import { useDialog as Ke, useDialogChild as Rt, useSnackbar as Be, FmButtonColorThemeVariant as Pe, components as Oe, FmButtonVariant as qe, useBreakpoints as ho } from "@feedmepos/ui-library";
|
|
7
7
|
import { u as At } from "./discardConfirm-BHni0LNu.js";
|
|
8
8
|
import { defineStore as wo } from "pinia";
|
|
9
|
-
import { _ as Ve, a as Co } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as ve, g as mn, m as ko } from "./menuV2-
|
|
9
|
+
import { _ as Ve, a as Co } from "./RuleView.vue_vue_type_script_setup_true_lang-DQjE4JRi.js";
|
|
10
|
+
import { u as ve, g as mn, m as ko } from "./menuV2-Bfj5ljzI.js";
|
|
11
11
|
import { s as Ft, _ as Io } from "./index-CisutoS9.js";
|
|
12
12
|
import { useAppStore as pn, RemyButton as fn } from "@feedmepos/mf-remy-panel";
|
|
13
13
|
import { _ as Ae } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
14
14
|
import { c as Eo } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
15
|
-
import { _ as To, a as xo, u as So } from "./Thumbnail.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import { _ as To, a as xo, u as So } from "./Thumbnail.vue_vue_type_script_setup_true_lang-CI8eK98T.js";
|
|
16
16
|
import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
import { _ as Ot } from "./tooltip-B5BiPMx9.js";
|
|
18
18
|
import { g as st } from "./translation-Cdap0IVg.js";
|
|
19
|
-
import { _ as Xe, T as Fo, l as Oo } from "./index-
|
|
20
|
-
import { L as Dt } from "./LinkProductSideSheet-
|
|
19
|
+
import { _ as Xe, T as Fo, l as Oo } from "./index-UthDVOpX.js";
|
|
20
|
+
import { L as Dt } from "./LinkProductSideSheet-CbppLDSB.js";
|
|
21
21
|
import { u as Do } from "./search-BAPEUu1R.js";
|
|
22
22
|
import { c as Nt } from "./check-C9mY6LiX.js";
|
|
23
|
-
import { f as nt } from "./currency-
|
|
23
|
+
import { f as nt } from "./currency-2KuoTCt5.js";
|
|
24
24
|
import { c as Vo } from "./string-DpfFixWH.js";
|
|
25
25
|
import { useInventoryStore as $o, InventoryBindingSummary as Po } from "@feedmepos/mf-inventory-portal";
|
|
26
|
-
import { u as Uo } from "./priceTier-
|
|
26
|
+
import { u as Uo } from "./priceTier-DHp_DiBo.js";
|
|
27
27
|
import { d as Lt } from "./vuedraggable-CK8z7qA8.js";
|
|
28
|
-
import { _ as Mo } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
28
|
+
import { _ as Mo } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-MWoYiClD.js";
|
|
29
29
|
import "./app-5fxKLAzS.js";
|
|
30
30
|
/* empty css */
|
|
31
|
-
import { i as Ro, t as Gt, w as Ao, a as gn, b as vn, n as No, c as Lo, r as Go, _ as Ko } from "./index-
|
|
31
|
+
import { i as Ro, t as Gt, w as Ao, a as gn, b as vn, n as No, c as Lo, r as Go, _ as Ko } from "./index-fLVJt8Pt.js";
|
|
32
32
|
import { c as gt } from "./object-DVUNCr7w.js";
|
|
33
33
|
import { _ as Bo } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
34
34
|
import { _ as zt } from "./MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js";
|
|
@@ -824,7 +824,7 @@ const _t = () => {
|
|
|
824
824
|
};
|
|
825
825
|
}
|
|
826
826
|
});
|
|
827
|
-
var Cr = { firebase: { storageBucket: "image.
|
|
827
|
+
var Cr = { firebase: { storageBucket: "image.feedmedev.cc" } };
|
|
828
828
|
const kr = {
|
|
829
829
|
key: 0,
|
|
830
830
|
class: "absolute inset-0 flex items-center justify-center image-action-overlay"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as L, computed as d, ref as g, h as k, withModifiers as x, resolveComponent as p, createBlock as b, openBlock as a, unref as e, withCtx as h, createElementVNode as o, createVNode as r, toDisplayString as f, createCommentVNode as N, createElementBlock as u, Fragment as v, normalizeClass as C, renderList as T } from "vue";
|
|
2
2
|
import { useI18n as E } from "@feedmepos/mf-common";
|
|
3
|
-
import { useSnackbar as K, components as R, useBreakpoints as D, FmButtonVariant as
|
|
4
|
-
import { _ as
|
|
5
|
-
import {
|
|
3
|
+
import { useSnackbar as K, components as R, useBreakpoints as D, FmButtonVariant as I } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as q } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
+
import { B as A, u as G, a2 as H } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
|
|
6
6
|
import { _ as J } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { u as O, U as P } from "./unit-
|
|
7
|
+
import { u as O, U as P } from "./unit-D53f5n16.js";
|
|
8
8
|
const Q = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "h-[600px]"
|
|
@@ -32,8 +32,8 @@ const Q = {
|
|
|
32
32
|
__name: "Unit",
|
|
33
33
|
setup(re) {
|
|
34
34
|
const w = K();
|
|
35
|
-
|
|
36
|
-
const S =
|
|
35
|
+
A(w);
|
|
36
|
+
const S = G(), i = O(), {
|
|
37
37
|
t: n
|
|
38
38
|
} = E(), m = d(() => S.units), _ = d(() => m.value.filter((s) => `${s.name} ${s.abbrev}`.toLowerCase().includes(c.value.toLowerCase()))), c = g(""), U = g([{
|
|
39
39
|
accessorKey: "name",
|
|
@@ -101,7 +101,7 @@ const Q = {
|
|
|
101
101
|
class: C(["py-12 px-16", "flex space-x-8", "items-center"]),
|
|
102
102
|
onClick: () => e(i).updateUnit(t)
|
|
103
103
|
}, [o("div", ee, [o("p", te, f(t.name), 1), o("p", ne, f(e(n)("menu.common.labels.symbol")) + ": " + f(t.abbrev), 1)]), r(j, {
|
|
104
|
-
variant: e(
|
|
104
|
+
variant: e(I).Tertiary,
|
|
105
105
|
"prepend-icon": "delete",
|
|
106
106
|
"text-color": "neutral-gray-400",
|
|
107
107
|
onClick: x(() => e(i).deleteUnit(t), ["stop"])
|
|
@@ -125,7 +125,7 @@ const Q = {
|
|
|
125
125
|
"append-heading": h(() => [o("div", oe, [o("div", le, [o("div", ae, [o("p", se, f(F.value), 1)])]), r(z), r(e(P), null, {
|
|
126
126
|
default: h(({
|
|
127
127
|
trigger: t
|
|
128
|
-
}) => [m.value.length > 0 ? (a(), b(
|
|
128
|
+
}) => [m.value.length > 0 ? (a(), b(q, {
|
|
129
129
|
key: 0,
|
|
130
130
|
label: e(n)("menu.unit.add"),
|
|
131
131
|
"prepend-icon": "add",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { getCurrentInstance as U, defineComponent as $, computed as x, onMounted as R, h as u, resolveComponent as w, createBlock as L, openBlock as p, unref as t, withCtx as _, createElementBlock as y, Fragment as M, createElementVNode as i, createVNode as c, isRef as z, normalizeClass as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as W } from "./app-
|
|
6
|
-
import {
|
|
7
|
-
import { V as E } from "./index-
|
|
1
|
+
import { getCurrentInstance as U, defineComponent as $, computed as x, onMounted as R, h as u, resolveComponent as w, createBlock as L, openBlock as p, unref as t, withCtx as _, createElementBlock as y, Fragment as M, createElementVNode as i, createVNode as c, isRef as z, normalizeClass as O, renderList as Y, toDisplayString as S, withModifiers as B, createCommentVNode as G } from "vue";
|
|
2
|
+
import { useI18n as N } from "@feedmepos/mf-common";
|
|
3
|
+
import { useDialog as J, useSnackbar as D, FmButtonVariant as j, components as q, useBreakpoints as H } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as Q } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
+
import { _ as W } from "./app-D4se7Sr4.js";
|
|
6
|
+
import { B as K, u as P, O as A, J as X, y as Z, a2 as ee } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
|
|
7
|
+
import { V as E } from "./index-GaHNc4iH.js";
|
|
8
8
|
import { _ as ae } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
9
9
|
import { u as oe } from "./search-BAPEUu1R.js";
|
|
10
10
|
import { defineStore as te } from "pinia";
|
|
11
11
|
import { c as ne } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
12
12
|
import { g as F } from "./translation-Cdap0IVg.js";
|
|
13
13
|
const le = te("variant-manager", () => {
|
|
14
|
-
const I =
|
|
15
|
-
|
|
16
|
-
const f = U(), { t: m } =
|
|
14
|
+
const I = J(), n = D(), g = K(n), k = A(g);
|
|
15
|
+
P();
|
|
16
|
+
const f = U(), { t: m } = N(), V = (r) => {
|
|
17
17
|
var h, o;
|
|
18
18
|
const { vNode: C } = ne(
|
|
19
19
|
E,
|
|
@@ -34,7 +34,7 @@ const le = te("variant-manager", () => {
|
|
|
34
34
|
primaryActions: {
|
|
35
35
|
text: m("menu.common.actions.remove"),
|
|
36
36
|
close: !0,
|
|
37
|
-
variant:
|
|
37
|
+
variant: j.Destructive
|
|
38
38
|
},
|
|
39
39
|
secondaryActions: {
|
|
40
40
|
text: m("menu.common.actions.cancel"),
|
|
@@ -66,7 +66,7 @@ const le = te("variant-manager", () => {
|
|
|
66
66
|
}, ce = {
|
|
67
67
|
class: "px-16 py-8"
|
|
68
68
|
}, me = {
|
|
69
|
-
class: /* @__PURE__ */
|
|
69
|
+
class: /* @__PURE__ */ O(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
|
|
70
70
|
}, de = ["onClick"], ue = {
|
|
71
71
|
class: "flex-1 space-y-4"
|
|
72
72
|
}, pe = {
|
|
@@ -78,12 +78,12 @@ const le = te("variant-manager", () => {
|
|
|
78
78
|
}, ye = {
|
|
79
79
|
key: 1,
|
|
80
80
|
class: "xs:pt-16"
|
|
81
|
-
},
|
|
81
|
+
}, je = /* @__PURE__ */ $({
|
|
82
82
|
__name: "Variant",
|
|
83
83
|
setup(I) {
|
|
84
84
|
const {
|
|
85
85
|
t: n
|
|
86
|
-
} =
|
|
86
|
+
} = N(), g = P(), k = A(K(D())), f = le(), m = x(() => g.variants.map((o) => ({
|
|
87
87
|
...o,
|
|
88
88
|
usedBy: g.items.filter((e) => {
|
|
89
89
|
var s;
|
|
@@ -150,7 +150,7 @@ const le = te("variant-manager", () => {
|
|
|
150
150
|
class: "w-full flex justify-end items-center"
|
|
151
151
|
}, [u(q.FmButton, {
|
|
152
152
|
prependIcon: "delete",
|
|
153
|
-
variant:
|
|
153
|
+
variant: j.Tertiary,
|
|
154
154
|
textColor: "neutral-gray-400",
|
|
155
155
|
onClick: (e) => {
|
|
156
156
|
e.stopPropagation(), f.deleteVariant(o.row.original);
|
|
@@ -167,14 +167,14 @@ const le = te("variant-manager", () => {
|
|
|
167
167
|
}, {
|
|
168
168
|
default: _(({
|
|
169
169
|
trigger: a
|
|
170
|
-
}) => [c(
|
|
170
|
+
}) => [c(Q, {
|
|
171
171
|
class: "ml-auto",
|
|
172
172
|
label: t(n)("menu.variant.add"),
|
|
173
173
|
"prepend-icon": "add",
|
|
174
|
-
onClick:
|
|
174
|
+
onClick: B(a, ["stop"])
|
|
175
175
|
}, null, 8, ["label", "onClick"])]),
|
|
176
176
|
_: 1
|
|
177
|
-
})) :
|
|
177
|
+
})) : G("", !0)]),
|
|
178
178
|
default: _(() => [m.value.length ? (p(), y(M, {
|
|
179
179
|
key: 0
|
|
180
180
|
}, [h.value ? (p(), y(M, {
|
|
@@ -186,19 +186,19 @@ const le = te("variant-manager", () => {
|
|
|
186
186
|
placeholder: t(n)("menu.common.labels.search_placeholder", {
|
|
187
187
|
type: "variants"
|
|
188
188
|
})
|
|
189
|
-
}, null, 8, ["modelValue", "placeholder"])]), i("div", me, [(p(!0), y(M, null,
|
|
189
|
+
}, null, 8, ["modelValue", "placeholder"])]), i("div", me, [(p(!0), y(M, null, Y(v.value, (a) => (p(), y("div", {
|
|
190
190
|
key: a._id,
|
|
191
|
-
class:
|
|
191
|
+
class: O(["py-12 px-16", "flex space-x-8", "items-center", "cursor-pointer"]),
|
|
192
192
|
onClick: () => t(f).updateVariant(a)
|
|
193
193
|
}, [i("div", ue, [i("p", pe, S(a.name), 1), i("div", null, [i("p", fe, S(t(n)("menu.common.labels.items_linked", {
|
|
194
194
|
count: a.usedBy.length
|
|
195
195
|
})), 1), i("p", _e, S(t(n)("menu.variant.mobile.value", {
|
|
196
196
|
values: a.options.map((T) => T.name).join(", ")
|
|
197
197
|
})), 1)])]), c(l, {
|
|
198
|
-
variant: t(
|
|
198
|
+
variant: t(j).Tertiary,
|
|
199
199
|
"prepend-icon": "delete",
|
|
200
200
|
"text-color": "neutral-gray-400",
|
|
201
|
-
onClick:
|
|
201
|
+
onClick: B(() => t(f).deleteVariant(a), ["stop"])
|
|
202
202
|
}, null, 8, ["variant", "onClick"])], 8, de))), 128))])], 64)) : (p(), y("div", se, [i("div", re, [i("div", ie, [c(s, {
|
|
203
203
|
autofocus: "",
|
|
204
204
|
modelValue: t(d),
|
|
@@ -231,7 +231,7 @@ const le = te("variant-manager", () => {
|
|
|
231
231
|
}) => [c(l, {
|
|
232
232
|
"prepend-icon": "add",
|
|
233
233
|
label: t(n)("menu.variant.add"),
|
|
234
|
-
onClick:
|
|
234
|
+
onClick: B(a, ["stop"])
|
|
235
235
|
}, null, 8, ["label", "onClick"])]),
|
|
236
236
|
_: 1
|
|
237
237
|
})]),
|
|
@@ -243,5 +243,5 @@ const le = te("variant-manager", () => {
|
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
245
|
export {
|
|
246
|
-
|
|
246
|
+
je as default
|
|
247
247
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as F, computed as d, ref as p, watch as A, onMounted as H, resolveComponent as m, createElementBlock as K, openBlock as b, Fragment as
|
|
2
|
-
import { D as
|
|
3
|
-
import { useRoute as
|
|
4
|
-
import { _ as X, w as Z } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent as F, computed as d, ref as p, watch as A, onMounted as H, resolveComponent as m, createElementBlock as K, openBlock as b, Fragment as W, createVNode as n, withCtx as u, createElementVNode as i, toDisplayString as M, unref as e, createBlock as R } from "vue";
|
|
2
|
+
import { D as j } from "./dayjs.min-BE8PtbAQ.js";
|
|
3
|
+
import { useRoute as J, useRouter as Q } from "vue-router";
|
|
4
|
+
import { _ as X, w as Z } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-UhuYuL-A.js";
|
|
5
|
+
import { B as ee, u as te, A as ae, G as oe, O as ne } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
|
|
6
6
|
import { useI18n as le } from "@feedmepos/mf-common";
|
|
7
7
|
import { useSnackbar as se } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as
|
|
9
|
-
import { L as V } from "./LinkProductSideSheet-
|
|
8
|
+
import { _ as D } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
9
|
+
import { L as V } from "./LinkProductSideSheet-CbppLDSB.js";
|
|
10
10
|
import { _ as ue } from "./index-CisutoS9.js";
|
|
11
11
|
import { _ as re } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
12
|
-
import { u as ie } from "./Thumbnail.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { a as me } from "./menu-
|
|
14
|
-
import { m as ce } from "./toExcel-
|
|
15
|
-
import { _ as de, u as pe, c as _e } from "./scheduler-
|
|
16
|
-
import { R as r } from "./app-
|
|
12
|
+
import { u as ie } from "./Thumbnail.vue_vue_type_script_setup_true_lang-CI8eK98T.js";
|
|
13
|
+
import { a as me } from "./menu-Btb1sPTh.js";
|
|
14
|
+
import { m as ce } from "./toExcel-CHdQxEnw.js";
|
|
15
|
+
import { _ as de, u as pe, c as _e } from "./scheduler-CI-LJfho.js";
|
|
16
|
+
import { R as r } from "./app-D4se7Sr4.js";
|
|
17
17
|
const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class: "flex ml-auto space-x-8" }, be = { class: "flex-1 flex flex-col overflow-hidden" }, Ge = /* @__PURE__ */ F({
|
|
18
18
|
__name: "[id]",
|
|
19
19
|
setup(ke) {
|
|
20
|
-
const E =
|
|
20
|
+
const E = J(), _ = Q(), k = ee(se()), L = ne(k), a = te(), { t: l } = le(), O = d(() => a.categorizedRawMenuItems), f = d(() => !a.state.currentSchedulerId), G = p();
|
|
21
21
|
async function z(o) {
|
|
22
22
|
const t = o._id ? pe(o) : _e(o);
|
|
23
23
|
await L.updateMenu(t, o.name);
|
|
@@ -66,7 +66,7 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
|
|
|
66
66
|
await k.minor(
|
|
67
67
|
async () => {
|
|
68
68
|
await a.readMenu();
|
|
69
|
-
const o = await ce($.value), t = `menu_${
|
|
69
|
+
const o = await ce($.value), t = `menu_${j().format("DD-MM-YYYY_HH-mm")}`;
|
|
70
70
|
await Z(o, `${t}.xlsx`, {
|
|
71
71
|
bookType: "xlsx",
|
|
72
72
|
bookSST: !1,
|
|
@@ -82,12 +82,12 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
|
|
|
82
82
|
linkItemRules: T,
|
|
83
83
|
handleSubmit: y,
|
|
84
84
|
catalogManager: C,
|
|
85
|
-
schedulerManager:
|
|
85
|
+
schedulerManager: w
|
|
86
86
|
} = ie(!1);
|
|
87
87
|
return me().resetOnUnmount(), (o, t) => {
|
|
88
|
-
var
|
|
89
|
-
const Y = m("fm-bottom-sheet"), N = m("fm-button"),
|
|
90
|
-
return b(), K(
|
|
88
|
+
var I;
|
|
89
|
+
const Y = m("fm-bottom-sheet"), N = m("fm-button"), B = m("router-link"), P = m("fm-tabs"), q = m("router-view");
|
|
90
|
+
return b(), K(W, null, [
|
|
91
91
|
n(de, {
|
|
92
92
|
ref_key: "schedulerDialogRef",
|
|
93
93
|
ref: G,
|
|
@@ -122,11 +122,11 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
|
|
|
122
122
|
_: 1
|
|
123
123
|
}, 8, ["modelValue"]),
|
|
124
124
|
n(re, {
|
|
125
|
-
heading: ((
|
|
125
|
+
heading: ((I = e(a).currentCatalog) == null ? void 0 : I.name) ?? "Main",
|
|
126
126
|
class: "flex flex-col max-h-[calc(100vh-56px)] overflow-hidden"
|
|
127
127
|
}, {
|
|
128
128
|
"prepend-heading": u(() => [
|
|
129
|
-
n(
|
|
129
|
+
n(B, {
|
|
130
130
|
to: { name: e(r).CATALOG },
|
|
131
131
|
class: "mr-8",
|
|
132
132
|
title: e(l)("menu.catalog.edit.back")
|
|
@@ -142,7 +142,7 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
|
|
|
142
142
|
]),
|
|
143
143
|
"append-heading": u(() => [
|
|
144
144
|
i("div", ge, [
|
|
145
|
-
f.value ? (b(),
|
|
145
|
+
f.value ? (b(), R(V, {
|
|
146
146
|
key: 0,
|
|
147
147
|
"categorized-items": e(C).linkableItems.value,
|
|
148
148
|
"initial-value": e(C).currentItems.value,
|
|
@@ -154,17 +154,17 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
|
|
|
154
154
|
onSubmit: e(y)
|
|
155
155
|
}, {
|
|
156
156
|
default: u(({ trigger: s }) => [
|
|
157
|
-
n(
|
|
157
|
+
n(D, {
|
|
158
158
|
label: e(l)("menu.catalog.edit.link_product"),
|
|
159
159
|
"prepend-icon": "link",
|
|
160
160
|
onClick: s
|
|
161
161
|
}, null, 8, ["label", "onClick"])
|
|
162
162
|
]),
|
|
163
163
|
_: 1
|
|
164
|
-
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (b(),
|
|
164
|
+
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (b(), R(V, {
|
|
165
165
|
key: 1,
|
|
166
|
-
"categorized-items": e(
|
|
167
|
-
"initial-value": e(
|
|
166
|
+
"categorized-items": e(w).linkableItems.value,
|
|
167
|
+
"initial-value": e(w).currentItems.value,
|
|
168
168
|
"show-variant": !1,
|
|
169
169
|
"menu-items": e(x),
|
|
170
170
|
categories: e(S),
|
|
@@ -173,7 +173,7 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
|
|
|
173
173
|
onSubmit: e(y)
|
|
174
174
|
}, {
|
|
175
175
|
default: u(({ trigger: s }) => [
|
|
176
|
-
n(
|
|
176
|
+
n(D, {
|
|
177
177
|
label: e(l)("menu.catalog.edit.apply_scheduler"),
|
|
178
178
|
onClick: s
|
|
179
179
|
}, null, 8, ["label", "onClick"])
|
|
@@ -183,7 +183,7 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
|
|
|
183
183
|
])
|
|
184
184
|
]),
|
|
185
185
|
default: u(() => [
|
|
186
|
-
n(
|
|
186
|
+
n(P, {
|
|
187
187
|
modelValue: c.value,
|
|
188
188
|
"onUpdate:modelValue": t[3] || (t[3] = (s) => c.value = s),
|
|
189
189
|
items: h.value,
|
|
@@ -191,7 +191,7 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
|
|
|
191
191
|
}, null, 8, ["modelValue", "items"]),
|
|
192
192
|
i("div", be, [
|
|
193
193
|
n(ue, { "menu-store": e(a) }, null, 8, ["menu-store"]),
|
|
194
|
-
n(
|
|
194
|
+
n(q)
|
|
195
195
|
])
|
|
196
196
|
]),
|
|
197
197
|
_: 1
|