@feedmepos/mf-menu 0.23.5 → 0.23.6-beta.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-BoDZl9ra.js → App-BJ55dZOx.js} +4 -4
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DmsurW8u.js → ApplyProduct.vue_vue_type_script_setup_true_lang-MlyOVrjL.js} +13 -12
- package/dist/{Catalog-CwLzNRul.js → Catalog-gyi6ux9C.js} +8 -7
- package/dist/{Category-0lckEK6t.js → Category-nIhgNITd.js} +39 -40
- package/dist/{CookingGuide-CiSx-be6.js → CookingGuide-B3EB_m67.js} +7 -6
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js +50 -0
- package/dist/{Group-BOUlrHMh.js → Group-C7ByKdfJ.js} +3 -3
- package/dist/{Group-COe636cZ.js → Group-QDr5dP7Q.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DcumCFFV.js → Group.vue_vue_type_script_setup_true_lang-BDVeXk8g.js} +7 -7
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-C4Qaas8w.js +179 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BN76zWTG.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DNW-AgaF.js} +7 -7
- package/dist/{Ingredient-XFoLyEn6.js → Ingredient-Co70DjBG.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-B29CZrs4.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CI62Hq7u.js} +23 -23
- package/dist/LinkProductSideSheet-2vVoZuIs.js +105 -0
- package/dist/MenuSetting-BvDGxfH4.js +140 -0
- package/dist/{PrintRoute-Bz8z5Cns.js → PrintRoute-Dh53H0NQ.js} +7 -6
- package/dist/{Product-C1ZlLZVR.js → Product-BjjDywoc.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BcXpuR7l.js → Product.vue_vue_type_script_setup_true_lang-CpmFv3GT.js} +2201 -2244
- package/dist/{Products-ONXrtACw.js → Products-DHmS7qjr.js} +8 -8
- package/dist/{Publish-e0QXlEwT.js → Publish-DOkHWM3D.js} +3 -3
- package/dist/{Recipe-VVltzEPx.js → Recipe-DfuEPAxj.js} +5 -5
- package/dist/{Scheduler-Bn0E7EcS.js → Scheduler-CEa-vGkH.js} +3 -3
- package/dist/{SchedulerSelector.vue_vue_type_script_setup_true_lang-D19DbA-l.js → SchedulerSelector.vue_vue_type_script_setup_true_lang-CcrzvG9H.js} +1 -1
- package/dist/{ServingSequence-C4Uz-SSy.js → ServingSequence-apn5iCp-.js} +3 -3
- package/dist/{Setting.vue_vue_type_script_setup_true_lang-BZzi4kPK.js → Setting-CZsk-TN3.js} +11 -10
- package/dist/{Takeaway-Dcjkt4az.js → Takeaway-BWYtQiwi.js} +1 -1
- package/dist/{Takeaway-9HqI9ZgQ.js → Takeaway-C_JNFT2s.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-C93DY0em.js → Takeaway.vue_vue_type_script_setup_true_lang-BsGyG8EG.js} +5 -5
- package/dist/{Unit-Dgbxftxx.js → Unit-ISW2d7AA.js} +2 -2
- package/dist/{Variant-DrdHVfJ1.js → Variant-Bx3TJL6v.js} +3 -3
- package/dist/{_id_-C8c8hx69.js → _id_-BouqIh2r.js} +7 -7
- package/dist/{app-gDE1IqsJ.js → app-CW3ESv2G.js} +1 -1
- package/dist/{app-DAayWUH3.js → app-yYtEzp2U.js} +56 -25
- package/dist/app.js +1 -1
- package/dist/assets/linked-status-DgNPf7EP.js +24 -0
- package/dist/assets/override-menu-D9ypGw3N.js +24 -0
- package/dist/assets/validate-menu-DBflGZIr.js +24 -0
- package/dist/{catalog-D0ArfwdB.js → catalog-Btd5rknc.js} +1 -1
- package/dist/catalogSetting-Bl7e_Hm6.js +62 -0
- package/dist/{currency-CK6aAuQP.js → currency-B_J0mDei.js} +1 -1
- package/dist/{discardConfirm-Bm-PkJ2b.js → discardConfirm-BUuy5Xgn.js} +1 -1
- package/dist/index-C2XY3lSz.js +47 -0
- package/dist/{index-Cxjz99a_.js → index-Y5kBkY68.js} +5 -5
- package/dist/{index-bwCjdgSa.js → index-vWp_0iZQ.js} +4 -4
- package/dist/{item-Rc8A7eoE.js → item-Ciit5Gca.js} +1642 -1494
- package/dist/{menu-DDZtDGw9.js → menu-BrpWCZJK.js} +1 -1
- package/dist/{menu-BPt5j-Rz.js → menu-CkKtN4Kz.js} +10105 -9993
- package/dist/remy-B4dlb2Ns.js +37 -0
- package/dist/{scheduler-CiRfDHll.js → scheduler-_B54p_hG.js} +15 -14
- package/dist/{toExcel-De8b563z.js → toExcel-CqJ5hTFB.js} +2 -2
- package/dist/{unit-ByTC8KHQ.js → unit-aB7uerQe.js} +2 -2
- package/package.json +2 -2
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-EX9nyvAl.js +0 -238
- package/dist/LinkProductSideSheet-ODAwTaEx.js +0 -151
- package/dist/Setting-1-QJxZRY.js +0 -4
- package/dist/TaxSetting-CZAelOHc.js +0 -27
- package/dist/assets/linked-status-kWWLVYmr.js +0 -24
- package/dist/assets/override-menu-DzGanEZq.js +0 -24
- package/dist/assets/validate-menu-DUnKwP1F.js +0 -24
- package/dist/category-DliTmlIm.js +0 -155
- package/dist/remy-qrKomAcy.js +0 -37
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref, watchEffect, computed, watch, openBlock, createElementBlock, normalizeStyle, onBeforeUnmount, createBlock, unref, onMounted, resolveComponent, withDirectives, createElementVNode, createVNode, vShow, Fragment, createCommentVNode, normalizeClass } from "vue";
|
|
2
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs, u as useMenuStore, a as coreDart, r as registerVersion, L as Logger, b as getExperimentalSetting, i as isMobileCordova, d as isReactNative, _ as _isFirebaseServerApp, e as _registerComponent, C as Component, f as _getProvider, h as getDefaultEmulatorHost, j as getApp, k as isBrowserExtension, S as SDK_VERSION, l as getModularInstance, E as ErrorFactory, m as createSubscribe, n as deepEqual, o as LogLevel, p as getUA, F as FirebaseError, q as base64Decode, s as isIE, t as querystring, v as isEmpty, w as getApps, x as initializeApp, y as getStorage, z as menu } from "./menu-
|
|
2
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs, u as useMenuStore, a as coreDart, r as registerVersion, L as Logger, b as getExperimentalSetting, i as isMobileCordova, d as isReactNative, _ as _isFirebaseServerApp, e as _registerComponent, C as Component, f as _getProvider, h as getDefaultEmulatorHost, j as getApp, k as isBrowserExtension, S as SDK_VERSION, l as getModularInstance, E as ErrorFactory, m as createSubscribe, n as deepEqual, o as LogLevel, p as getUA, F as FirebaseError, q as base64Decode, s as isIE, t as querystring, v as isEmpty, w as getApps, x as initializeApp, y as getStorage, z as menu } from "./menu-CkKtN4Kz.js";
|
|
3
3
|
import { FeedMeAuth, useCoreStore } from "@feedmepos/mf-common";
|
|
4
4
|
import { FmButtonColorThemeVariant, FmButtonVariant } from "@feedmepos/ui-library";
|
|
5
|
-
import { R as Remy, i as init } from "./remy-
|
|
5
|
+
import { R as Remy, i as init } from "./remy-B4dlb2Ns.js";
|
|
6
6
|
import { _ as _export_sfc$1 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
import { u as useAppStore } from "./app-
|
|
7
|
+
import { u as useAppStore } from "./app-CW3ESv2G.js";
|
|
8
8
|
const v = "4.8.0", meta = {
|
|
9
9
|
g: "LottieFiles AE ",
|
|
10
10
|
a: "",
|
|
@@ -23249,7 +23249,7 @@ registerAuth(
|
|
|
23249
23249
|
"Browser"
|
|
23250
23250
|
/* ClientPlatform.BROWSER */
|
|
23251
23251
|
);
|
|
23252
|
-
var define_appEndpoint_default = { mainBackend: "https://portal-v2.feedmeapi.com", menuBackend: "https://menu-v4.feedmeapi.com", remy: "https://remy.feedmeapi.com/v1", firebase: { apiKey: "
|
|
23252
|
+
var define_appEndpoint_default = { mainBackend: "https://portal-v2-dev.feedmeapi.com", menuBackend: "https://menu-v4-dev.feedmeapi.com", remy: "https://remy-dev.feedmeapi.com/v1", firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "image.feedmedev.cc", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, gtm: { id: "GTM-P7Z9FMS6", serverUrl: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", env: "development", serverMeasurementId: "G-759WBZPF06", debug: !0 } };
|
|
23253
23253
|
async function initFirebase() {
|
|
23254
23254
|
if (getApps().length) {
|
|
23255
23255
|
console.warn("mf-menu:firebase already initialized by another app");
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as K, computed as i, h as u, ref as U, resolveComponent as b, openBlock as d, createElementBlock as p, createVNode as
|
|
1
|
+
import { defineComponent as K, computed as i, h as u, ref as U, resolveComponent as b, openBlock as d, createElementBlock as p, createVNode as f, withCtx as g, createElementVNode as V, createBlock as j, unref as n, createCommentVNode as C, toDisplayString as A, isRef as D, Fragment as G, renderList as H } from "vue";
|
|
2
2
|
import { useI18n as M } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as B, FmButtonVariant as I, FmButtonColorThemeVariant as h } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as O
|
|
4
|
+
import { _ as O } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
5
|
+
import { L as $ } from "./LinkProductSideSheet-2vVoZuIs.js";
|
|
5
6
|
import { u as q } from "./search-7ZYHUW7s.js";
|
|
6
|
-
import { u as J, ab as Q } from "./menu-
|
|
7
|
+
import { u as J, ab as Q } from "./menu-CkKtN4Kz.js";
|
|
7
8
|
const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }, Y = {
|
|
8
9
|
key: 0,
|
|
9
10
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
10
|
-
},
|
|
11
|
+
}, le = /* @__PURE__ */ K({
|
|
11
12
|
__name: "ApplyProduct",
|
|
12
13
|
props: {
|
|
13
14
|
title: {},
|
|
@@ -82,8 +83,8 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
82
83
|
onClick: () => {
|
|
83
84
|
var o;
|
|
84
85
|
if (a > 0) {
|
|
85
|
-
const
|
|
86
|
-
S(
|
|
86
|
+
const v = (o = e.row.getParentRow()) == null ? void 0 : o.original;
|
|
87
|
+
S(v.value, r.value);
|
|
87
88
|
} else
|
|
88
89
|
S(r.value);
|
|
89
90
|
}
|
|
@@ -96,7 +97,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
96
97
|
return (t, e) => {
|
|
97
98
|
const r = b("fm-button"), a = b("fm-search"), l = b("fm-table");
|
|
98
99
|
return d(), p("div", W, [
|
|
99
|
-
|
|
100
|
+
f(O, { title: t.title }, {
|
|
100
101
|
"append-title": g(() => [
|
|
101
102
|
V("div", null, [
|
|
102
103
|
t.editable ? (d(), j($, {
|
|
@@ -109,7 +110,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
109
110
|
onSubmit: e[0] || (e[0] = (o) => _("update:overrides", o))
|
|
110
111
|
}, {
|
|
111
112
|
default: g(({ trigger: o }) => [
|
|
112
|
-
|
|
113
|
+
f(r, {
|
|
113
114
|
"text-color": n(h).ColorPrimary,
|
|
114
115
|
"border-color": n(h).ColorPrimary,
|
|
115
116
|
variant: n(I).Secondary,
|
|
@@ -125,7 +126,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
125
126
|
default: g(() => [
|
|
126
127
|
V("div", X, [
|
|
127
128
|
t.editable ? (d(), p("p", Y, A(n(c)("menu.common.labels.product_count", { count: T.value })), 1)) : C("", !0),
|
|
128
|
-
|
|
129
|
+
f(a, {
|
|
129
130
|
modelValue: n(m),
|
|
130
131
|
"onUpdate:modelValue": e[1] || (e[1] = (o) => D(m) ? m.value = o : null),
|
|
131
132
|
placeholder: n(c)("menu.common.labels.search_product"),
|
|
@@ -139,7 +140,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
139
140
|
key: o.id || "",
|
|
140
141
|
class: "xs:overflow-x-scroll"
|
|
141
142
|
}, [
|
|
142
|
-
|
|
143
|
+
f(l, {
|
|
143
144
|
"column-defs": E.value(o),
|
|
144
145
|
"expanded-state": x.value,
|
|
145
146
|
"get-sub-row": N,
|
|
@@ -148,7 +149,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
148
149
|
"search-value": n(m),
|
|
149
150
|
"shrink-at": !1,
|
|
150
151
|
"hide-footer": "",
|
|
151
|
-
"onUpdate:expandedState": e[2] || (e[2] = (
|
|
152
|
+
"onUpdate:expandedState": e[2] || (e[2] = (v) => x.value = v)
|
|
152
153
|
}, null, 8, ["column-defs", "expanded-state", "row-data", "search-value"])
|
|
153
154
|
]))), 128))
|
|
154
155
|
]);
|
|
@@ -156,5 +157,5 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
156
157
|
}
|
|
157
158
|
});
|
|
158
159
|
export {
|
|
159
|
-
|
|
160
|
+
le as _
|
|
160
161
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { defineComponent as oe, computed as T, resolveComponent as v, openBlock as d, createBlock as h, createVNode as n, ref as B, createElementBlock as S, Fragment as P, renderSlot as ye, unref as e, withCtx as p, createElementVNode as _, renderList as W, createCommentVNode as z, createTextVNode as be, toDisplayString as R, h as J, withModifiers as q, normalizeClass as xe } from "vue";
|
|
2
2
|
import { useRouter as ke } from "vue-router";
|
|
3
|
-
import { G as F, u as de, K as pe, A as ge, z as re, B as Ce, H as ee, J as fe, T as ue } from "./menu-
|
|
3
|
+
import { G as F, u as de, K as pe, A as ge, z as re, B as Ce, H as ee, J as fe, T as ue } from "./menu-CkKtN4Kz.js";
|
|
4
4
|
import { useI18n as ne, useCoreStore as ve } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as _e, components as te, FmButtonColorThemeVariant as Q, FmButtonVariant as K, useDialog as he, useBreakpoints as Oe } from "@feedmepos/ui-library";
|
|
6
|
-
import { _ as Fe, R as ie } from "./app-
|
|
6
|
+
import { _ as Fe, R as ie } from "./app-yYtEzp2U.js";
|
|
7
7
|
import { _ as Me } from "./TextChip.vue_vue_type_script_setup_true_lang-DoCbhCON.js";
|
|
8
8
|
import { _ as ae } from "./FormItem.vue_vue_type_script_setup_true_lang-DKsxEK-8.js";
|
|
9
|
-
import { _ as De } from "./
|
|
9
|
+
import { _ as De } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
10
10
|
import { c as Se } from "./check-C9mY6LiX.js";
|
|
11
|
-
import { C as L, a as I
|
|
11
|
+
import { C as L, a as I } from "./catalogSetting-Bl7e_Hm6.js";
|
|
12
|
+
import { _ as ce } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-C4Qaas8w.js";
|
|
12
13
|
import { _ as Te } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
13
14
|
import { _ as Ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-BJCuL4EK.js";
|
|
14
|
-
import { C as Ae } from "./catalog-
|
|
15
|
+
import { C as Ae } from "./catalog-Btd5rknc.js";
|
|
15
16
|
const Ue = /* @__PURE__ */ oe({
|
|
16
17
|
__name: "CatalogUsageTable",
|
|
17
18
|
props: {
|
|
@@ -366,7 +367,7 @@ const Ue = /* @__PURE__ */ oe({
|
|
|
366
367
|
class: "fm-typo-en-title-md-600"
|
|
367
368
|
}, We = {
|
|
368
369
|
class: "space-y-24"
|
|
369
|
-
}, le = "main",
|
|
370
|
+
}, le = "main", da = /* @__PURE__ */ oe({
|
|
370
371
|
__name: "Catalog",
|
|
371
372
|
setup(X) {
|
|
372
373
|
const M = ve(), m = de(), D = _e(), $ = ge(D), y = he(), k = pe($), V = ke(), {
|
|
@@ -631,5 +632,5 @@ const Ue = /* @__PURE__ */ oe({
|
|
|
631
632
|
}
|
|
632
633
|
});
|
|
633
634
|
export {
|
|
634
|
-
|
|
635
|
+
da as default
|
|
635
636
|
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { defineComponent as P, ref as w, computed as B, watch as re, resolveComponent as y, openBlock as h, createElementBlock as T, Fragment as Z, renderSlot as ie, createVNode as d, unref as e, withCtx as v, createElementVNode as
|
|
1
|
+
import { defineComponent as P, ref as w, computed as B, watch as re, resolveComponent as y, openBlock as h, createElementBlock as T, Fragment as Z, renderSlot as ie, createVNode as d, unref as e, withCtx as v, createElementVNode as o, toDisplayString as L, h as N, withModifiers as R, getCurrentInstance as ce, renderList as ue, createBlock as O, createCommentVNode as de } from "vue";
|
|
2
2
|
import { useI18n as j } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Y, components as I, useDialog as ee, FmButtonVariant as Q, useBreakpoints as me, FmButtonColorThemeVariant as pe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as fe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-CdVvtXw-.js";
|
|
5
|
-
import { A as G, u as ge, G as K, J as te, K as q } from "./menu-
|
|
5
|
+
import { A as G, u as ge, G as K, J as te, K as q } from "./menu-CkKtN4Kz.js";
|
|
6
6
|
import { _ as _e } from "./PageLayout.vue_vue_type_script_setup_true_lang-BJCuL4EK.js";
|
|
7
|
-
import { _ as ye } from "./app-
|
|
7
|
+
import { _ as ye } from "./app-yYtEzp2U.js";
|
|
8
8
|
import { c as ve } from "./createForm-TSiJzrqa.js";
|
|
9
|
-
import { _ as W } from "./
|
|
10
|
-
import { u as he } from "./discardConfirm-
|
|
9
|
+
import { _ as W } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
10
|
+
import { u as he } from "./discardConfirm-BUuy5Xgn.js";
|
|
11
11
|
import { c as X } from "./object-DNBFWMt7.js";
|
|
12
|
-
import { u as J, a as be } from "./menu-
|
|
12
|
+
import { u as J, a as be } from "./menu-BrpWCZJK.js";
|
|
13
13
|
import { c as xe } from "./check-C9mY6LiX.js";
|
|
14
|
-
import { u as Ce } from "./item-
|
|
15
|
-
import { u as oe } from "./category-DliTmlIm.js";
|
|
14
|
+
import { u as Ce, a as ae } from "./item-Ciit5Gca.js";
|
|
16
15
|
import { _ as ke } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
17
16
|
function we(p, f = "This field can't be empty.") {
|
|
18
17
|
return p == null || Array.isArray(p) && p.length === 0 || typeof p == "string" && p.trim() === "" ? f : !0;
|
|
@@ -48,7 +47,7 @@ const Fe = {
|
|
|
48
47
|
xe.isBoolean(t) ? m.value = t : m.value = !m.value;
|
|
49
48
|
}, u = w(X(x.initialValue)), M = w(""), E = B(() => {
|
|
50
49
|
var t;
|
|
51
|
-
return ((t = i.value.find((
|
|
50
|
+
return ((t = i.value.find((a) => a.id === u.value.id)) == null ? void 0 : t.items) || [];
|
|
52
51
|
}), n = [{
|
|
53
52
|
accessorKey: "name",
|
|
54
53
|
header: () => c("menu.category.products.columns.name"),
|
|
@@ -66,7 +65,7 @@ const Fe = {
|
|
|
66
65
|
},
|
|
67
66
|
header: "",
|
|
68
67
|
cell: (t) => {
|
|
69
|
-
const
|
|
68
|
+
const a = t.row.original;
|
|
70
69
|
return N("div", {
|
|
71
70
|
class: "flex justify-end"
|
|
72
71
|
}, [N(I.FmButton, {
|
|
@@ -75,7 +74,7 @@ const Fe = {
|
|
|
75
74
|
variant: "tertiary",
|
|
76
75
|
textColor: "neutral-gray-400",
|
|
77
76
|
onClick: R(async () => {
|
|
78
|
-
await _(
|
|
77
|
+
await _(a);
|
|
79
78
|
}, ["stop", "prevent"])
|
|
80
79
|
})]);
|
|
81
80
|
}
|
|
@@ -88,16 +87,16 @@ const Fe = {
|
|
|
88
87
|
}
|
|
89
88
|
const U = B(() => s.version === K.F_MENU_VERSION.enum.v4);
|
|
90
89
|
async function z(t) {
|
|
91
|
-
await b.rearrange(t.map((
|
|
90
|
+
await b.rearrange(t.map((a) => a._id));
|
|
92
91
|
}
|
|
93
92
|
const r = he(() => u.value.name !== x.initialValue.name, () => {
|
|
94
93
|
m.value = !1;
|
|
95
94
|
});
|
|
96
95
|
async function A() {
|
|
97
96
|
const t = s.categories.find((D) => D._id === u.value.id), {
|
|
98
|
-
updateMenu:
|
|
97
|
+
updateMenu: a
|
|
99
98
|
} = g;
|
|
100
|
-
await
|
|
99
|
+
await a({
|
|
101
100
|
module: K.F_MENU_MODULE_V4_KEY.enum.category,
|
|
102
101
|
operation: te.F_OPERATION_TYPE.update,
|
|
103
102
|
data: {
|
|
@@ -111,14 +110,14 @@ const Fe = {
|
|
|
111
110
|
}), f({
|
|
112
111
|
trigger: S,
|
|
113
112
|
show: m
|
|
114
|
-
}), (t,
|
|
115
|
-
const D = y("FmTextField"),
|
|
113
|
+
}), (t, a) => {
|
|
114
|
+
const D = y("FmTextField"), oe = y("FmButton"), ne = y("FmSearch"), le = y("FmTable"), H = y("fm-button"), se = y("fm-side-sheet");
|
|
116
115
|
return h(), T(Z, null, [ie(t.$slots, "default", {
|
|
117
116
|
trigger: S
|
|
118
117
|
}), d(se, {
|
|
119
118
|
id: "group-form",
|
|
120
119
|
modelValue: m.value,
|
|
121
|
-
"onUpdate:modelValue":
|
|
120
|
+
"onUpdate:modelValue": a[4] || (a[4] = (C) => m.value = C),
|
|
122
121
|
"is-container": e(I).FmForm,
|
|
123
122
|
"is-container-props": {
|
|
124
123
|
onValidationSuccess: A,
|
|
@@ -127,8 +126,8 @@ const Fe = {
|
|
|
127
126
|
"max-width": 560,
|
|
128
127
|
"onOn:clickedAway": e(r)
|
|
129
128
|
}, {
|
|
130
|
-
"side-sheet-header": v(() => [
|
|
131
|
-
"side-sheet-footer": v(() => [
|
|
129
|
+
"side-sheet-header": v(() => [o("p", Fe, L(e(c)("menu.category.title")), 1)]),
|
|
130
|
+
"side-sheet-footer": v(() => [o("div", Te, [d(H, {
|
|
132
131
|
label: e(c)("menu.common.actions.update"),
|
|
133
132
|
loading: $.value,
|
|
134
133
|
size: "lg",
|
|
@@ -139,15 +138,15 @@ const Fe = {
|
|
|
139
138
|
label: e(c)("menu.common.actions.cancel"),
|
|
140
139
|
size: "lg",
|
|
141
140
|
variant: "tertiary",
|
|
142
|
-
onClick:
|
|
141
|
+
onClick: a[3] || (a[3] = () => m.value = !1)
|
|
143
142
|
}, null, 8, ["label"])])]),
|
|
144
|
-
default: v(() => [
|
|
143
|
+
default: v(() => [o("div", Ve, [d(W, {
|
|
145
144
|
title: e(c)("menu.category.detail")
|
|
146
145
|
}, {
|
|
147
146
|
default: v(() => [d(D, {
|
|
148
147
|
label: e(c)("menu.category.name"),
|
|
149
148
|
modelValue: u.value.name,
|
|
150
|
-
"onUpdate:modelValue":
|
|
149
|
+
"onUpdate:modelValue": a[0] || (a[0] = (C) => u.value.name = C),
|
|
151
150
|
disabled: !u.value.id,
|
|
152
151
|
rules: [e(we)]
|
|
153
152
|
}, null, 8, ["label", "modelValue", "disabled", "rules"])]),
|
|
@@ -157,7 +156,7 @@ const Fe = {
|
|
|
157
156
|
class: "flex-1 min-h-0",
|
|
158
157
|
shrinkable: !0
|
|
159
158
|
}, {
|
|
160
|
-
"append-title": v(() => [d(
|
|
159
|
+
"append-title": v(() => [d(oe, {
|
|
161
160
|
label: e(c)("menu.category.products.add"),
|
|
162
161
|
variant: "secondary",
|
|
163
162
|
"prepend-icon": "add",
|
|
@@ -165,13 +164,13 @@ const Fe = {
|
|
|
165
164
|
"border-color": "primary",
|
|
166
165
|
onClick: l
|
|
167
166
|
}, null, 8, ["label"])]),
|
|
168
|
-
default: v(() => [
|
|
167
|
+
default: v(() => [o("div", $e, [o("div", Se, L(e(c)("menu.category.products.linked_count", {
|
|
169
168
|
count: E.value.length
|
|
170
|
-
})), 1),
|
|
169
|
+
})), 1), o("div", Me, [d(ne, {
|
|
171
170
|
placeholder: e(c)("menu.common.actions.search"),
|
|
172
171
|
modelValue: M.value,
|
|
173
|
-
"onUpdate:modelValue":
|
|
174
|
-
}, null, 8, ["placeholder", "modelValue"])])]),
|
|
172
|
+
"onUpdate:modelValue": a[1] || (a[1] = (C) => M.value = C)
|
|
173
|
+
}, null, 8, ["placeholder", "modelValue"])])]), o("div", Ee, [d(le, {
|
|
175
174
|
"column-defs": n,
|
|
176
175
|
draggable: U.value,
|
|
177
176
|
"page-size": E.value.length,
|
|
@@ -181,7 +180,7 @@ const Fe = {
|
|
|
181
180
|
"hide-footer": "",
|
|
182
181
|
"pin-header-row": "",
|
|
183
182
|
onDndChanged: z,
|
|
184
|
-
onRowClick:
|
|
183
|
+
onRowClick: a[2] || (a[2] = (C) => _(C.original))
|
|
185
184
|
}, null, 8, ["draggable", "page-size", "row-data", "search-value"])])]),
|
|
186
185
|
_: 1
|
|
187
186
|
}, 8, ["title"])])]),
|
|
@@ -211,7 +210,7 @@ const Fe = {
|
|
|
211
210
|
}, je = /* @__PURE__ */ P({
|
|
212
211
|
__name: "CategoryTable",
|
|
213
212
|
setup(p) {
|
|
214
|
-
const f = ee(), F = Y(), x = G(F), k = q(x), V =
|
|
213
|
+
const f = ee(), F = Y(), x = G(F), k = q(x), V = ae({
|
|
215
214
|
dialog: f,
|
|
216
215
|
menuLoader: k
|
|
217
216
|
}), {
|
|
@@ -302,7 +301,7 @@ const Fe = {
|
|
|
302
301
|
const M = me(), E = B(() => M.breakpoints.value.xs);
|
|
303
302
|
return (n, l) => {
|
|
304
303
|
const _ = y("FmSearch"), U = y("FmTable"), z = y("FmButton");
|
|
305
|
-
return E.value ? (h(), T("div", ze, [
|
|
304
|
+
return E.value ? (h(), T("div", ze, [o("div", Ae, [d(_, {
|
|
306
305
|
autofocus: "",
|
|
307
306
|
modelValue: s.value,
|
|
308
307
|
"onUpdate:modelValue": l[2] || (l[2] = (r) => s.value = r),
|
|
@@ -310,11 +309,11 @@ const Fe = {
|
|
|
310
309
|
placeholder: e(i)("menu.common.labels.search_placeholder", {
|
|
311
310
|
type: "categories"
|
|
312
311
|
})
|
|
313
|
-
}, null, 8, ["modelValue", "placeholder"])]),
|
|
312
|
+
}, null, 8, ["modelValue", "placeholder"])]), o("div", De, [(h(!0), T(Z, null, ue(b.value, (r) => (h(), T("div", {
|
|
314
313
|
key: r.id || "",
|
|
315
314
|
class: "flex flex-row py-12 px-16",
|
|
316
315
|
onClick: (A) => u(r)
|
|
317
|
-
}, [
|
|
316
|
+
}, [o("div", Ie, [o("p", Ke, L(r.name), 1), o("p", Pe, L(e(i)(r.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
|
|
318
317
|
count: r.items.length
|
|
319
318
|
})), 1)]), d(z, {
|
|
320
319
|
"text-color": e(pe).NeutralGray400,
|
|
@@ -322,7 +321,7 @@ const Fe = {
|
|
|
322
321
|
"prepend-icon": "delete",
|
|
323
322
|
disabled: !r.id,
|
|
324
323
|
onClick: R((A) => $(r), ["stop"])
|
|
325
|
-
}, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Re))), 128))])])) : (h(), T("div", Oe, [
|
|
324
|
+
}, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Re))), 128))])])) : (h(), T("div", Oe, [o("div", Ne, [o("div", Ue, [d(_, {
|
|
326
325
|
modelValue: s.value,
|
|
327
326
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => s.value = r),
|
|
328
327
|
autofocus: "",
|
|
@@ -347,10 +346,10 @@ const Fe = {
|
|
|
347
346
|
})]));
|
|
348
347
|
};
|
|
349
348
|
}
|
|
350
|
-
}), Ye = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ge = { class: "flex items-center" }, qe = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Je = { class: "fm-typo-en-body-md-600 font-semibold" },
|
|
349
|
+
}), Ye = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ge = { class: "flex items-center" }, qe = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Je = { class: "fm-typo-en-body-md-600 font-semibold" }, ut = /* @__PURE__ */ P({
|
|
351
350
|
__name: "Category",
|
|
352
351
|
setup(p) {
|
|
353
|
-
const f = ee(), F = Y(), x = G(F), k = q(x), V =
|
|
352
|
+
const f = ee(), F = Y(), x = G(F), k = q(x), V = ae({ dialog: f, menuLoader: k }), { categories: g } = J(), { t: s } = j();
|
|
354
353
|
function b() {
|
|
355
354
|
V.create();
|
|
356
355
|
}
|
|
@@ -370,10 +369,10 @@ const Fe = {
|
|
|
370
369
|
}, null, 8, ["action", "subtitle", "title"]))
|
|
371
370
|
]),
|
|
372
371
|
"append-heading": v(() => [
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
372
|
+
o("div", Ye, [
|
|
373
|
+
o("div", Ge, [
|
|
374
|
+
o("div", qe, [
|
|
375
|
+
o("p", Je, L(i.value), 1)
|
|
377
376
|
])
|
|
378
377
|
]),
|
|
379
378
|
e(g).length > 0 ? (h(), O(fe, {
|
|
@@ -389,5 +388,5 @@ const Fe = {
|
|
|
389
388
|
}
|
|
390
389
|
});
|
|
391
390
|
export {
|
|
392
|
-
|
|
391
|
+
ut as default
|
|
393
392
|
};
|
|
@@ -2,11 +2,12 @@ import { defineComponent as ie, ref as w, computed as F, resolveComponent as x,
|
|
|
2
2
|
import { useI18n as le } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as de, useSnackbar as be, useDialog as ye } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ke } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-CdVvtXw-.js";
|
|
5
|
-
import { _ as he } from "./app-
|
|
6
|
-
import { H as Z, G as ee, J as re, u as xe, K as Ce, A as we } from "./menu-
|
|
7
|
-
import { u as me, l as pe } from "./discardConfirm-
|
|
5
|
+
import { _ as he } from "./app-yYtEzp2U.js";
|
|
6
|
+
import { H as Z, G as ee, J as re, u as xe, K as Ce, A as we } from "./menu-CkKtN4Kz.js";
|
|
7
|
+
import { u as me, l as pe } from "./discardConfirm-BUuy5Xgn.js";
|
|
8
8
|
import { V as Ve } from "./vuedraggable-WU01qJgi.js";
|
|
9
|
-
import { _ as X
|
|
9
|
+
import { _ as X } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
10
|
+
import { L as Fe } from "./LinkProductSideSheet-2vVoZuIs.js";
|
|
10
11
|
import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
11
12
|
import { _ as Ie } from "./PageLayout.vue_vue_type_script_setup_true_lang-BJCuL4EK.js";
|
|
12
13
|
const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ke = { class: "space-y-32" }, De = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, Le = { class: "px-16 py-8 w-[40%]" }, Ne = { class: "px-16 py-8 grow" }, Ge = { class: "flex items-center border-b border-b-fm-color-neutral-gray-100" }, Ue = { class: "px-16 py-8 w-[40%]" }, Be = { class: "px-16 py-8 grow" }, Ee = { class: "space-y-16" }, ze = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Me = { class: "flex gap-8 items-center justify-start" }, Te = /* @__PURE__ */ ie({
|
|
@@ -692,7 +693,7 @@ const go = {
|
|
|
692
693
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
693
694
|
}, yo = {
|
|
694
695
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
695
|
-
},
|
|
696
|
+
}, Do = /* @__PURE__ */ ie({
|
|
696
697
|
__name: "CookingGuide",
|
|
697
698
|
setup(N) {
|
|
698
699
|
const {
|
|
@@ -863,5 +864,5 @@ const go = {
|
|
|
863
864
|
}
|
|
864
865
|
});
|
|
865
866
|
export {
|
|
866
|
-
|
|
867
|
+
Do as default
|
|
867
868
|
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as r, openBlock as s, createElementBlock as t, normalizeClass as i, renderSlot as o, createElementVNode as l, toDisplayString as n, createCommentVNode as a, createVNode as m, withCtx as d } from "vue";
|
|
2
|
+
const f = /* @__PURE__ */ r({
|
|
3
|
+
__name: "FormColumn",
|
|
4
|
+
props: {
|
|
5
|
+
shrinkable: { type: Boolean }
|
|
6
|
+
},
|
|
7
|
+
setup(p) {
|
|
8
|
+
return (e, c) => (s(), t("div", {
|
|
9
|
+
class: i(["flex-1 flex flex-col space-y-24", { "min-h-0": e.shrinkable }])
|
|
10
|
+
}, [
|
|
11
|
+
o(e.$slots, "default")
|
|
12
|
+
], 2));
|
|
13
|
+
}
|
|
14
|
+
}), h = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "flex flex-row justify-between items-center"
|
|
17
|
+
}, u = { class: "space-y-4" }, _ = { class: "fm-typo-en-title-sm-600" }, y = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
20
|
+
}, k = /* @__PURE__ */ r({
|
|
21
|
+
__name: "FormSection",
|
|
22
|
+
props: {
|
|
23
|
+
title: {},
|
|
24
|
+
subTitle: {},
|
|
25
|
+
shrinkable: { type: Boolean }
|
|
26
|
+
},
|
|
27
|
+
setup(p) {
|
|
28
|
+
return (e, c) => (s(), t("div", {
|
|
29
|
+
class: i(["flex flex-col space-y-16", { "min-h-0": e.shrinkable }])
|
|
30
|
+
}, [
|
|
31
|
+
e.title ? (s(), t("div", h, [
|
|
32
|
+
l("div", u, [
|
|
33
|
+
l("p", _, n(e.title), 1),
|
|
34
|
+
e.subTitle ? (s(), t("p", y, n(e.subTitle), 1)) : a("", !0)
|
|
35
|
+
]),
|
|
36
|
+
o(e.$slots, "append-title")
|
|
37
|
+
])) : a("", !0),
|
|
38
|
+
m(f, { shrinkable: e.shrinkable }, {
|
|
39
|
+
default: d(() => [
|
|
40
|
+
o(e.$slots, "default")
|
|
41
|
+
]),
|
|
42
|
+
_: 3
|
|
43
|
+
}, 8, ["shrinkable"])
|
|
44
|
+
], 2));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
k as _,
|
|
49
|
+
f as a
|
|
50
|
+
};
|
|
@@ -2,9 +2,9 @@ import { defineComponent as m, ref as p, openBlock as i, createBlock as d, unref
|
|
|
2
2
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as f } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-CdVvtXw-.js";
|
|
4
4
|
import { _ as g } from "./PageLayout.vue_vue_type_script_setup_true_lang-BJCuL4EK.js";
|
|
5
|
-
import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { A as b } from "./item-
|
|
7
|
-
import { a as h } from "./menu-
|
|
5
|
+
import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-BDVeXk8g.js";
|
|
6
|
+
import { A as b } from "./item-Ciit5Gca.js";
|
|
7
|
+
import { a as h } from "./menu-BrpWCZJK.js";
|
|
8
8
|
const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "flex items-center" }, k = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, C = { class: "fm-typo-en-body-md-600 font-semibold" }, j = /* @__PURE__ */ m({
|
|
9
9
|
__name: "Group",
|
|
10
10
|
setup(N) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as W, computed as b, resolveComponent as C, openBlock as v, createBlock as V, withCtx as k, createElementBlock as F, Fragment as T, renderList as ne, createVNode as c, createElementVNode as p, normalizeClass as j, toDisplayString as P, ref as S, renderSlot as Oe, unref as n, watch as we, mergeProps as De, createCommentVNode as E, createSlots as Ce, withModifiers as Me, isRef as le, h as xe, nextTick as Ae } from "vue";
|
|
2
|
-
import { l as z, u as Ge } from "./discardConfirm-
|
|
2
|
+
import { l as z, u as Ge } from "./discardConfirm-BUuy5Xgn.js";
|
|
3
3
|
import { V as Fe } from "./vuedraggable-WU01qJgi.js";
|
|
4
|
-
import { u as ue, K as Pe, A as Ve, B as Ne, G as f, z as Re, J as Ue } from "./menu-
|
|
4
|
+
import { u as ue, K as Pe, A as Ve, B as Ne, G as f, z as Re, J as Ue } from "./menu-CkKtN4Kz.js";
|
|
5
5
|
import { useI18n as se } from "@feedmepos/mf-common";
|
|
6
6
|
import { useBreakpoints as ie, components as Ee, useSnackbar as Se, useDialog as Te, FmButtonVariant as Ie } from "@feedmepos/ui-library";
|
|
7
|
-
import { _ as $e } from "./app-
|
|
7
|
+
import { _ as $e } from "./app-yYtEzp2U.js";
|
|
8
8
|
import { _ as Ye, a as Le } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DPis3HVx.js";
|
|
9
9
|
import { c as ze } from "./object-DNBFWMt7.js";
|
|
10
|
-
import { _ as Ke } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as Ke } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-MlyOVrjL.js";
|
|
11
11
|
import { c as je } from "./check-C9mY6LiX.js";
|
|
12
12
|
import { _ as Be } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
13
|
-
import { M as ae, S as qe, _ as He, A as Je, e as Qe,
|
|
14
|
-
import { _ as re } from "./SchedulerSelector.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { M as ae, S as qe, _ as He, A as Je, e as Qe, b as We } from "./item-Ciit5Gca.js";
|
|
14
|
+
import { _ as re } from "./SchedulerSelector.vue_vue_type_script_setup_true_lang-CcrzvG9H.js";
|
|
15
15
|
import { u as Xe } from "./search-7ZYHUW7s.js";
|
|
16
|
-
import { C as Ze } from "./catalog-
|
|
16
|
+
import { C as Ze } from "./catalog-Btd5rknc.js";
|
|
17
17
|
const et = /* @__PURE__ */ W({
|
|
18
18
|
__name: "ResponsiveContextMenu",
|
|
19
19
|
props: {
|