@feedmepos/mf-menu 0.32.14 → 0.32.16
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-BFBPwGfb.js → App-Cp6hAf4r.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BDPEBgIX.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Bq8Ai6ir.js} +20 -20
- package/dist/{Catalog-CEUlUbTo.js → Catalog-DZlT5Kv0.js} +20 -20
- package/dist/{Category-GK_sF5cc.js → Category-CgRn_W4_.js} +24 -24
- package/dist/{Category-oxm_RKMU.js → Category-DrZWC1TQ.js} +84 -84
- package/dist/{CookingGuide-BIqPXo2F.js → CookingGuide-DkXKDRwI.js} +65 -65
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-_LjfOdmQ.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BLpFpC3r.js} +1 -1
- package/dist/{Group-G3Zm4zVj.js → Group-CoNa29qN.js} +1 -1
- package/dist/{Group-bW-m1xOv.js → Group-jthvxhWq.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DN7BsgdL.js → Group.vue_vue_type_script_setup_true_lang-edBI3IhG.js} +27 -27
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BBcZxmMz.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Bpu5NPdL.js} +5 -5
- package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-CFoEsqQW.js +72979 -0
- package/dist/{Ingredient-D0S3lRbC.js → Ingredient-87kh0Zeg.js} +26 -26
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BYAInJ7N.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DA12Hppy.js} +1052 -1052
- package/dist/{LinkProductSideSheet-DduICm_3.js → LinkProductSideSheet-q_E0OxBI.js} +3 -3
- package/dist/{MenuSetting-Ddpakood.js → MenuSetting-DrSVmJrv.js} +5 -5
- package/dist/{PrintRoute-CxDRBk-Z.js → PrintRoute-Ag3VVqG5.js} +20 -20
- package/dist/{Product-DAwEX6dW.js → Product-M4UF0g_r.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BH7BRpJ2.js → Product.vue_vue_type_script_setup_true_lang-BuXgUwkf.js} +49 -49
- package/dist/{ProductInternalTools--i0xQb6O.js → ProductInternalTools-COwLVN9M.js} +20 -20
- package/dist/Products-1nOux6aQ.js +292 -0
- package/dist/Publish-DND24UOM.js +1300 -0
- package/dist/{Recipe-DIfPG7dG.js → Recipe-BahCl2QF.js} +9 -9
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DiutI4rb.js → RuleView.vue_vue_type_script_setup_true_lang-DxCclyLW.js} +134 -134
- package/dist/{Scheduler-D-qRoZEk.js → Scheduler-CxW9mXnC.js} +7 -7
- package/dist/{ServingSequence-DdGQTO5m.js → ServingSequence-DBtmKTWP.js} +27 -27
- package/dist/{Setting-Cy3lcj6b.js → Setting-D2CdAkIV.js} +17 -17
- package/dist/{Subcategory-bX7uTJKn.js → Subcategory-B4TkrH7w.js} +37 -37
- package/dist/{Takeaway-Dt4W1Tmn.js → Takeaway-BReaJjqu.js} +1 -1
- package/dist/{Takeaway-DoTobUpw.js → Takeaway-R8sKp9dk.js} +9 -9
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Ccqd0SSb.js → Takeaway.vue_vue_type_script_setup_true_lang-DPphTwY2.js} +54 -54
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Bxd5sGBt.js → Thumbnail.vue_vue_type_script_setup_true_lang-CA-t0MP_.js} +12 -12
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BTny5xEr.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DVJGepyS.js} +15 -14
- package/dist/{Unit-li0qBwz-.js → Unit-DaupB3J7.js} +2 -2
- package/dist/{Variant-CGcJ_TZj.js → Variant-CesYb5do.js} +14 -14
- package/dist/{_id_-BWdsDm62.js → _id_-CN8RH43s.js} +14 -14
- package/dist/{app-M9IH0JfT.js → app-d97Ud4fA.js} +26 -26
- package/dist/{app-4fAuR8EW.js → app-s52udDOz.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +22 -22
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +59 -33
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-3-xHTXMe.js → linked-status-KQPs_XUH.js} +2 -2
- package/dist/assets/menu-export-KHAdCiC5.js +107 -0
- package/dist/assets/{override-menu-9sR4Y3Xg.js → override-menu-CsUVrV3Q.js} +2 -2
- package/dist/assets/{validate-menu-BmHir2_T.js → validate-menu-BEJZow8d.js} +2 -2
- package/dist/{catalog-DFja-c1u.js → catalog-9_jtmYlm.js} +1 -1
- package/dist/{catalogSetting-CcpYLKqf.js → catalogSetting-Btjwav-1.js} +1 -1
- package/dist/{category-DpZwNc4t.js → category-DRwNEBe8.js} +1 -1
- package/dist/{currency-BAE6MewY.js → currency-Do-UYAXP.js} +1 -1
- package/dist/dayjs.min-BaRcKvRp.js +6 -0
- package/dist/{index-CKinAgXM.js → index-BFWW3J1P.js} +1 -1
- package/dist/{index-vusQqUrf.js → index-CuCfLbb2.js} +17 -17
- package/dist/{index-CVzNrW67.js → index-D1GAORV_.js} +4 -4
- package/dist/{index.vue_vue_type_script_setup_true_lang-BdR9Cau8.js → index.vue_vue_type_script_setup_true_lang-_DMs_swc.js} +2439 -2439
- package/dist/{item-CwwbAMhc.js → item-Ge1k1cYH.js} +245 -244
- package/dist/{jszip.min-DYs79nMN.js → jszip.min-BSs0LVJA.js} +2 -2
- package/dist/{menu-BaIAvmpZ.js → menu-DL-wM6sR.js} +1 -1
- package/dist/{menuV2-B2fEnjKF.js → menuV2-DMWng1KE.js} +55 -55
- package/dist/{priceTier-BSQ1vmHy.js → priceTier-BHOMDhXP.js} +1 -1
- package/dist/{scheduler-C7lp1B_N.js → scheduler-B_ztjqQh.js} +4 -4
- package/dist/{subcategory-DUGbyIKt.js → subcategory-53vsxcNn.js} +2 -2
- package/dist/{toExcel-CnvNPzQj.js → toExcel-B5cp0vaL.js} +2 -2
- package/dist/{unit-gzTDfacM.js → unit-VmVDMUZb.js} +12 -12
- package/package.json +3 -3
- package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-BpYIAC6_.js +0 -96043
- package/dist/Products-DHP2P67R.js +0 -794
- package/dist/Publish-BwI7NOud.js +0 -1264
- package/dist/dayjs.min-Bbp8wB12.js +0 -6
|
@@ -2,12 +2,12 @@ var tt = Object.defineProperty;
|
|
|
2
2
|
var At = (t, e, A) => e in t ? tt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: A }) : t[e] = A;
|
|
3
3
|
var Te = (t, e, A) => At(t, typeof e != "symbol" ? e + "" : e, A);
|
|
4
4
|
import { readonly, ref, defineComponent, watchEffect, computed, watch, createElementBlock, openBlock, normalizeStyle, onBeforeUnmount, createBlock, unref, onUnmounted, resolveComponent, onMounted, Fragment, createVNode, createCommentVNode, createElementVNode, normalizeClass } from "vue";
|
|
5
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs, u as useMenuStore, a as coreDartExports, r as registerVersion, b as getApp, _ as _getProvider, d as getExperimentalSetting, e as getDefaultEmulatorHost, f as _isFirebaseServerApp, h as deepEqual, i as getModularInstance, j as getUA, E as ErrorFactory, k as isIE, l as isEmpty, S as SDK_VERSION, q as querystring, F as FirebaseError, m as isMobileCordova, n as isReactNative, o as base64Decode, L as Logger, p as LogLevel, s as isBrowserExtension, t as isCloudflareWorker, v as _registerComponent, C as Component, w as createSubscribe, x as getApps, y as initializeApp, z as getStorage, A as entityExports, B as coreExports, D as menuExports } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs, u as useMenuStore, a as coreDartExports, r as registerVersion, b as getApp, _ as _getProvider, d as getExperimentalSetting, e as getDefaultEmulatorHost, f as _isFirebaseServerApp, h as deepEqual, i as getModularInstance, j as getUA, E as ErrorFactory, k as isIE, l as isEmpty, S as SDK_VERSION, q as querystring, F as FirebaseError, m as isMobileCordova, n as isReactNative, o as base64Decode, L as Logger, p as LogLevel, s as isBrowserExtension, t as isCloudflareWorker, v as _registerComponent, C as Component, w as createSubscribe, x as getApps, y as initializeApp, z as getStorage, A as entityExports, B as coreExports, D as menuExports } from "./index.vue_vue_type_script_setup_true_lang-_DMs_swc.js";
|
|
6
6
|
import { installBusinessQueryStatePlugin, useI18n, FeedMeAuth, useCoreStore } from "@feedmepos/mf-common";
|
|
7
7
|
import { createRouter, createWebHistory, useRouter } from "vue-router";
|
|
8
|
-
import { r as routers, u as useMenuNavigatorStatus } from "./app-
|
|
9
|
-
import { _ as _sfc_main$5 } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as useAppStore } from "./app-
|
|
8
|
+
import { r as routers, u as useMenuNavigatorStatus } from "./app-d97Ud4fA.js";
|
|
9
|
+
import { _ as _sfc_main$5 } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DVJGepyS.js";
|
|
10
|
+
import { u as useAppStore } from "./app-s52udDOz.js";
|
|
11
11
|
var flagsmith$1 = { exports: {} }, flagsmith = flagsmith$1.exports, hasRequiredFlagsmith;
|
|
12
12
|
function requireFlagsmith() {
|
|
13
13
|
return hasRequiredFlagsmith || (hasRequiredFlagsmith = 1, function(t, e) {
|
|
@@ -13376,7 +13376,7 @@ registerAuth(
|
|
|
13376
13376
|
"Browser"
|
|
13377
13377
|
/* ClientPlatform.BROWSER */
|
|
13378
13378
|
);
|
|
13379
|
-
var define_appEndpoint_default = { firebase: { apiKey: "
|
|
13379
|
+
var define_appEndpoint_default = { 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" } };
|
|
13380
13380
|
async function initFirebase() {
|
|
13381
13381
|
if (getApps().length) {
|
|
13382
13382
|
console.warn("mf-menu:firebase already initialized by another app");
|
|
@@ -13396,7 +13396,7 @@ const _hoisted_1 = {
|
|
|
13396
13396
|
async function a(l) {
|
|
13397
13397
|
try {
|
|
13398
13398
|
if (!o.value) {
|
|
13399
|
-
const f = "
|
|
13399
|
+
const f = "MaGoXrEWuEJNpWgKTqseee";
|
|
13400
13400
|
console.log(`Initialize feature flag with key *${f.slice(f.length - 4)}`), await s({ apiKey: f });
|
|
13401
13401
|
}
|
|
13402
13402
|
console.log("Retrieving menu_unique_product_code flag");
|
|
@@ -13428,7 +13428,7 @@ const _hoisted_1 = {
|
|
|
13428
13428
|
l && l === entityExports.F_MENU_VERSION.enum.v4 && router.addRoute({
|
|
13429
13429
|
path: "/serving-sequence",
|
|
13430
13430
|
name: "serving-sequence",
|
|
13431
|
-
component: () => import("./ServingSequence-
|
|
13431
|
+
component: () => import("./ServingSequence-DBtmKTWP.js")
|
|
13432
13432
|
});
|
|
13433
13433
|
}
|
|
13434
13434
|
), watch(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as K, computed as i, h as u, ref as U, resolveComponent as b, createElementBlock as p, openBlock as d, createVNode as f, withCtx as g, createElementVNode as V, createCommentVNode as C, toDisplayString as j, unref as
|
|
1
|
+
import { defineComponent as K, computed as i, h as u, ref as U, resolveComponent as b, createElementBlock as p, openBlock as d, createVNode as f, withCtx as g, createElementVNode as V, createCommentVNode as C, toDisplayString as j, unref as n, isRef as A, createBlock 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, FmButtonColorThemeVariant as h, FmButtonVariant as I } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as O } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { L as $ } from "./LinkProductSideSheet-
|
|
4
|
+
import { _ as O } from "./RuleView.vue_vue_type_script_setup_true_lang-DxCclyLW.js";
|
|
5
|
+
import { L as $ } from "./LinkProductSideSheet-q_E0OxBI.js";
|
|
6
6
|
import { u as q } from "./search-BAPEUu1R.js";
|
|
7
|
-
import { u as J,
|
|
7
|
+
import { u as J, ao as Q } from "./index.vue_vue_type_script_setup_true_lang-_DMs_swc.js";
|
|
8
8
|
const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }, Y = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
@@ -26,12 +26,12 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
26
26
|
const s = z, _ = F, L = J(), { searchKey: m, filter: w } = q(), y = i(() => s.categorizedItems || L.categorizedItems), k = i(() => Q(y.value, s.overrides)), P = i(() => k.value.reduce((t, e) => {
|
|
27
27
|
if (w([e.name]))
|
|
28
28
|
return t.push(e), t;
|
|
29
|
-
const r = e.items.filter((
|
|
29
|
+
const r = e.items.filter((a) => w([a.label]));
|
|
30
30
|
return r.length && t.push({ ...e, items: r }), t;
|
|
31
31
|
}, [])), R = i(() => s.showVariant || s.selectVariant);
|
|
32
32
|
function S(t, e) {
|
|
33
|
-
var
|
|
34
|
-
const r = e ? (
|
|
33
|
+
var a, l;
|
|
34
|
+
const r = e ? (a = s.overrides) == null ? void 0 : a.filter((o) => !(o._id === t && o.combinationKey === e)) : (l = s.overrides) == null ? void 0 : l.filter((o) => o._id !== t);
|
|
35
35
|
_("update:overrides", r ?? []);
|
|
36
36
|
}
|
|
37
37
|
const { t: c } = M(), E = i(
|
|
@@ -70,7 +70,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
70
70
|
id: "action",
|
|
71
71
|
enableSorting: !1,
|
|
72
72
|
cell: (e) => {
|
|
73
|
-
const r = e.row.original,
|
|
73
|
+
const r = e.row.original, a = e.row.depth;
|
|
74
74
|
return s.editable ? u(
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
@@ -82,7 +82,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
82
82
|
textColor: h.NeutralGray400,
|
|
83
83
|
onClick: () => {
|
|
84
84
|
var o;
|
|
85
|
-
if (
|
|
85
|
+
if (a > 0) {
|
|
86
86
|
const v = (o = e.row.getParentRow()) == null ? void 0 : o.original;
|
|
87
87
|
S(v.value, r.value);
|
|
88
88
|
} else
|
|
@@ -95,7 +95,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
95
95
|
]
|
|
96
96
|
), x = U({}), N = (t) => t.variant, T = i(() => k.value.reduce((t, e) => t + e.items.length, 0));
|
|
97
97
|
return (t, e) => {
|
|
98
|
-
const r = b("fm-button"),
|
|
98
|
+
const r = b("fm-button"), a = b("fm-search"), l = b("fm-table");
|
|
99
99
|
return d(), p("div", W, [
|
|
100
100
|
f(O, { title: t.title }, {
|
|
101
101
|
"append-title": g(() => [
|
|
@@ -106,15 +106,15 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
106
106
|
"initial-value": t.overrides,
|
|
107
107
|
"select-variant": t.selectVariant,
|
|
108
108
|
"show-variant": R.value,
|
|
109
|
-
title:
|
|
109
|
+
title: n(c)("menu.apply_product.link.title"),
|
|
110
110
|
onSubmit: e[0] || (e[0] = ({ items: o }) => _("update:overrides", o))
|
|
111
111
|
}, {
|
|
112
112
|
default: g(({ trigger: o }) => [
|
|
113
113
|
f(r, {
|
|
114
|
-
"text-color":
|
|
115
|
-
"border-color":
|
|
116
|
-
variant:
|
|
117
|
-
label: t.linkButtonLabel ||
|
|
114
|
+
"text-color": n(h).ColorPrimary,
|
|
115
|
+
"border-color": n(h).ColorPrimary,
|
|
116
|
+
variant: n(I).Secondary,
|
|
117
|
+
label: t.linkButtonLabel || n(c)("menu.common.actions.link_product"),
|
|
118
118
|
"prepend-icon": "link",
|
|
119
119
|
onClick: o
|
|
120
120
|
}, null, 8, ["text-color", "border-color", "variant", "label", "onClick"])
|
|
@@ -125,11 +125,11 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
125
125
|
]),
|
|
126
126
|
default: g(() => [
|
|
127
127
|
V("div", X, [
|
|
128
|
-
t.editable ? (d(), p("p", Y, j(
|
|
129
|
-
f(
|
|
130
|
-
modelValue:
|
|
128
|
+
t.editable ? (d(), p("p", Y, j(n(c)("menu.common.labels.product_count", { count: T.value })), 1)) : C("", !0),
|
|
129
|
+
f(a, {
|
|
130
|
+
modelValue: n(m),
|
|
131
131
|
"onUpdate:modelValue": e[1] || (e[1] = (o) => A(m) ? m.value = o : null),
|
|
132
|
-
placeholder:
|
|
132
|
+
placeholder: n(c)("menu.common.labels.search_product"),
|
|
133
133
|
class: "flex-1"
|
|
134
134
|
}, null, 8, ["modelValue", "placeholder"])
|
|
135
135
|
])
|
|
@@ -146,7 +146,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
146
146
|
"get-sub-row": N,
|
|
147
147
|
"page-size": 9999,
|
|
148
148
|
"row-data": o.items,
|
|
149
|
-
"search-value":
|
|
149
|
+
"search-value": n(m),
|
|
150
150
|
"shrink-at": !1,
|
|
151
151
|
"hide-footer": "",
|
|
152
152
|
"onUpdate:expandedState": e[2] || (e[2] = (v) => x.value = v)
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as se, computed as x, resolveComponent as _, createBlock as V, openBlock as p, createVNode as o, ref as
|
|
1
|
+
import { defineComponent as se, computed as x, resolveComponent as _, createBlock as V, openBlock as p, createVNode as o, ref as G, createElementBlock as F, Fragment as K, renderSlot as be, unref as e, withCtx as g, createElementVNode as v, createCommentVNode as z, renderList as X, createTextVNode as xe, toDisplayString as N, markRaw as Ce, toRaw as ke, h as J, withModifiers as Q, normalizeClass as he } from "vue";
|
|
2
2
|
import { useRouter as Fe } from "vue-router";
|
|
3
|
-
import { u as pe, A as M,
|
|
3
|
+
import { u as pe, A as M, Q as fe, G as ge, D as re, B as Oe, I as le, M as ve, ad as ie, a4 as Me } from "./index.vue_vue_type_script_setup_true_lang-_DMs_swc.js";
|
|
4
4
|
import { useI18n as ue, useCoreStore as _e } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as ye, components as ne, FmButtonVariant as W, FmButtonColorThemeVariant as Z, useDialog as Ve, useBreakpoints as De } from "@feedmepos/ui-library";
|
|
6
|
-
import { _ as Se, R as ce } from "./app-
|
|
6
|
+
import { _ as Se, R as ce } from "./app-d97Ud4fA.js";
|
|
7
7
|
import { _ as Te } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
8
8
|
import { _ as te } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
9
|
-
import { _ as Ue } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { _ as me, a as we } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as Ue } from "./RuleView.vue_vue_type_script_setup_true_lang-DxCclyLW.js";
|
|
10
|
+
import { _ as me, a as we } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Bpu5NPdL.js";
|
|
11
11
|
import { c as Ee } from "./check-C9mY6LiX.js";
|
|
12
|
-
import { C as B, a as P } from "./catalogSetting-
|
|
12
|
+
import { C as B, a as P } from "./catalogSetting-Btjwav-1.js";
|
|
13
13
|
import { _ as Ae } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
14
|
-
import { C as Ne } from "./catalog-
|
|
14
|
+
import { C as Ne } from "./catalog-9_jtmYlm.js";
|
|
15
15
|
const Re = /* @__PURE__ */ se({
|
|
16
16
|
__name: "CatalogUsageTable",
|
|
17
17
|
props: {
|
|
@@ -80,15 +80,15 @@ const Re = /* @__PURE__ */ se({
|
|
|
80
80
|
}), Le = { class: "space-y-32" }, $e = {
|
|
81
81
|
key: 0,
|
|
82
82
|
class: "pl-32 space-x-8"
|
|
83
|
-
}, Ie = { class: "pl-[60px] space-y-16" }, Be = { class: "space-x-16 flex items-center" }, Pe = { class: "flex-1 space-y-4" }, ze = { class: "fm-typo-en-body-lg-400" },
|
|
83
|
+
}, Ie = { class: "pl-[60px] space-y-16" }, Be = { class: "space-x-16 flex items-center" }, Pe = { class: "flex-1 space-y-4" }, ze = { class: "fm-typo-en-body-lg-400" }, Ge = { class: "fm-typo-en-body-md-400" }, Ke = { class: "flex gap-8 items-center justify-start" }, je = /* @__PURE__ */ se({
|
|
84
84
|
__name: "Form",
|
|
85
85
|
setup(ee, { expose: D }) {
|
|
86
|
-
const d =
|
|
86
|
+
const d = G(!1), S = G(!1), R = (c, u) => {
|
|
87
87
|
Ee.isBoolean(c) ? d.value = c : d.value = !d.value, d.value && (r.value = B.fromCatalog(
|
|
88
88
|
u ?? re.generator.initMenuV4Catalog(),
|
|
89
89
|
y.value
|
|
90
90
|
));
|
|
91
|
-
}, y = x(() => C.version === M.F_MENU_VERSION.enum.v4), C = pe(), E = _e(), m = fe(ge(ye())), r =
|
|
91
|
+
}, y = x(() => C.version === M.F_MENU_VERSION.enum.v4), C = pe(), E = _e(), m = fe(ge(ye())), r = G(
|
|
92
92
|
B.fromCatalog(re.generator.initMenuV4Catalog(), y.value)
|
|
93
93
|
), ae = x(() => C.catalogs.map((c) => c.name)), j = x({
|
|
94
94
|
get: () => r.value.taxSetting,
|
|
@@ -143,7 +143,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
143
143
|
const { t: i } = ue();
|
|
144
144
|
return D({ trigger: R }), (c, u) => {
|
|
145
145
|
const f = _("fm-text-field"), k = _("fm-radio"), w = _("fm-radio-group"), A = _("fm-checkbox"), $ = _("fm-switch"), s = _("fm-select"), a = _("fm-button"), l = _("fm-chip"), O = _("fm-card"), I = _("fm-side-sheet");
|
|
146
|
-
return p(), F(
|
|
146
|
+
return p(), F(K, null, [
|
|
147
147
|
be(c.$slots, "default", { trigger: R }),
|
|
148
148
|
o(I, {
|
|
149
149
|
modelValue: d.value,
|
|
@@ -156,7 +156,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
156
156
|
"max-width": 560
|
|
157
157
|
}, {
|
|
158
158
|
"side-sheet-footer": g(() => [
|
|
159
|
-
v("div",
|
|
159
|
+
v("div", Ke, [
|
|
160
160
|
o(a, {
|
|
161
161
|
loading: S.value,
|
|
162
162
|
label: e(i)("menu.common.actions.add"),
|
|
@@ -215,7 +215,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
215
215
|
_: 1
|
|
216
216
|
}, 8, ["model-value"]),
|
|
217
217
|
((b = r.value.taxSetting) == null ? void 0 : b.mode) === e(P).MANUAL ? (p(), F("div", $e, [
|
|
218
|
-
(p(!0), F(
|
|
218
|
+
(p(!0), F(K, null, X(Y.value, (n) => (p(), V(A, {
|
|
219
219
|
key: n.systemCode,
|
|
220
220
|
"model-value": n.inclusive,
|
|
221
221
|
value: !0,
|
|
@@ -297,7 +297,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
297
297
|
]),
|
|
298
298
|
_: 1
|
|
299
299
|
}, 8, ["categories", "items"]),
|
|
300
|
-
(p(!0), F(
|
|
300
|
+
(p(!0), F(K, null, X(r.value.markupOptions, (t, b) => (p(), V(me, {
|
|
301
301
|
key: b,
|
|
302
302
|
categories: e(C).categories,
|
|
303
303
|
items: e(C).items,
|
|
@@ -322,7 +322,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
322
322
|
_: 2
|
|
323
323
|
}, 1024),
|
|
324
324
|
v("p", ze, N(e(i)("menu.catalog.form.markup.config", { number: b + 1 })), 1),
|
|
325
|
-
v("p",
|
|
325
|
+
v("p", Ge, N(t.includeItems ? e(i)("menu.catalog.form.markup.products", {
|
|
326
326
|
count: t.includeItems.length
|
|
327
327
|
}) : e(i)("menu.catalog.form.markup.all_items")), 1)
|
|
328
328
|
]),
|
|
@@ -438,7 +438,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
438
438
|
usage: j(s, a)
|
|
439
439
|
})).filter((a) => a.usage.length > 0);
|
|
440
440
|
}
|
|
441
|
-
const L =
|
|
441
|
+
const L = G(!1), U = G(""), q = x(() => {
|
|
442
442
|
var a;
|
|
443
443
|
return [{
|
|
444
444
|
id: oe,
|
|
@@ -479,7 +479,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
479
479
|
id: s
|
|
480
480
|
}
|
|
481
481
|
});
|
|
482
|
-
}, u =
|
|
482
|
+
}, u = G(null);
|
|
483
483
|
function f(s) {
|
|
484
484
|
var a;
|
|
485
485
|
(a = u.value) == null || a.trigger(null, {
|
|
@@ -608,7 +608,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
608
608
|
_: 1
|
|
609
609
|
})]),
|
|
610
610
|
_: 1
|
|
611
|
-
}, 8, ["subtitle", "title"])) : (p(), F(
|
|
611
|
+
}, 8, ["subtitle", "title"])) : (p(), F(K, {
|
|
612
612
|
key: 1
|
|
613
613
|
}, [$.value ? (p(), F("div", qe, [v("div", Je, [o(O, {
|
|
614
614
|
autofocus: "",
|
|
@@ -618,7 +618,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
618
618
|
placeholder: e(m)("menu.common.labels.search_placeholder", {
|
|
619
619
|
type: e(m)("menu.catalog.title")
|
|
620
620
|
})
|
|
621
|
-
}, null, 8, ["modelValue", "placeholder"])]), v("div", Qe, [(p(!0), F(
|
|
621
|
+
}, null, 8, ["modelValue", "placeholder"])]), v("div", Qe, [(p(!0), F(K, null, X(i.value, (n) => (p(), F("div", {
|
|
622
622
|
key: n.id,
|
|
623
623
|
class: "flex flex-row py-12 px-16 items-center",
|
|
624
624
|
onClick: (h) => c(n.id)
|
|
@@ -659,7 +659,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
659
659
|
"dismiss-away": ""
|
|
660
660
|
}, {
|
|
661
661
|
"side-sheet-header": g(() => [v("p", oa, N(e(m)("menu.catalog.usage.title")), 1)]),
|
|
662
|
-
default: g(() => [L.value ? (p(), F("div", na, [(p(!0), F(
|
|
662
|
+
default: g(() => [L.value ? (p(), F("div", na, [(p(!0), F(K, null, X(q.value, (n, h) => (p(), V(Re, {
|
|
663
663
|
key: h,
|
|
664
664
|
catalog: n
|
|
665
665
|
}, null, 8, ["catalog"]))), 128))])) : z("", !0)]),
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as V, computed as k, ref as C, resolveComponent as w, createElementBlock as g, openBlock as u, createElementVNode as i, createVNode as _, unref as a, withCtx as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useSnackbar as
|
|
4
|
-
import { G as F, u as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as B } from "./menu-
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as V, computed as k, ref as C, resolveComponent as w, createElementBlock as g, openBlock as u, createElementVNode as i, createVNode as _, unref as a, withCtx as K, Fragment as P, renderList as U, toDisplayString as E, createBlock as S } from "vue";
|
|
2
|
+
import { useI18n as M } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as L, useBreakpoints as $, useDialog as A } from "@feedmepos/ui-library";
|
|
4
|
+
import { G as F, u as I, Z as Y, Q as T, M as j, A as q, a4 as G } from "./index.vue_vue_type_script_setup_true_lang-_DMs_swc.js";
|
|
5
|
+
import { _ as Q } from "./app-d97Ud4fA.js";
|
|
6
|
+
import { u as B } from "./menu-DL-wM6sR.js";
|
|
7
|
+
import { u as R } from "./category-DRwNEBe8.js";
|
|
8
|
+
const Z = {
|
|
9
9
|
key: 0
|
|
10
|
-
},
|
|
10
|
+
}, H = {
|
|
11
11
|
class: "flex justify-end items-center"
|
|
12
|
-
},
|
|
12
|
+
}, J = {
|
|
13
13
|
class: "w-[320px]"
|
|
14
|
-
},
|
|
14
|
+
}, W = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "flex-1 flex flex-col min-h-0"
|
|
17
|
-
},
|
|
17
|
+
}, X = {
|
|
18
18
|
class: "p-8"
|
|
19
19
|
}, ee = {
|
|
20
20
|
class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
|
|
@@ -27,7 +27,7 @@ const J = {
|
|
|
27
27
|
}, ne = /* @__PURE__ */ V({
|
|
28
28
|
__name: "CategoryTable",
|
|
29
29
|
setup(D) {
|
|
30
|
-
const f =
|
|
30
|
+
const f = L(), y = F(f), h = T(y), d = I(), {
|
|
31
31
|
categories: v
|
|
32
32
|
} = B(), b = k(() => {
|
|
33
33
|
var r, t;
|
|
@@ -39,10 +39,10 @@ const J = {
|
|
|
39
39
|
position: e.id ? ((p = l[e.id]) == null ? void 0 : p.position) ?? c + 1 : null
|
|
40
40
|
};
|
|
41
41
|
});
|
|
42
|
-
return
|
|
42
|
+
return Y(o, (e) => e.name);
|
|
43
43
|
}), n = C(""), m = k(() => b.value.filter((l) => l.name.toLowerCase().includes(n.value.toLowerCase()))), {
|
|
44
44
|
t: s
|
|
45
|
-
} =
|
|
45
|
+
} = M(), x = C([{
|
|
46
46
|
accessorKey: "name",
|
|
47
47
|
header: () => s("menu.category.columns.title"),
|
|
48
48
|
enableSorting: !1,
|
|
@@ -61,7 +61,7 @@ const J = {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
}]);
|
|
64
|
-
async function
|
|
64
|
+
async function N(l) {
|
|
65
65
|
var e;
|
|
66
66
|
const o = d.currentCatalog;
|
|
67
67
|
if (!o)
|
|
@@ -86,10 +86,10 @@ const J = {
|
|
|
86
86
|
}
|
|
87
87
|
}, "Category");
|
|
88
88
|
}
|
|
89
|
-
const
|
|
89
|
+
const O = $(), z = k(() => O.breakpoints.value.xs);
|
|
90
90
|
return (l, o) => {
|
|
91
91
|
const r = w("FmSearch"), t = w("FmTable");
|
|
92
|
-
return
|
|
92
|
+
return z.value ? (u(), g("div", W, [i("div", X, [_(r, {
|
|
93
93
|
autofocus: "",
|
|
94
94
|
modelValue: n.value,
|
|
95
95
|
"onUpdate:modelValue": o[1] || (o[1] = (e) => n.value = e),
|
|
@@ -97,12 +97,12 @@ const J = {
|
|
|
97
97
|
placeholder: a(s)("menu.common.labels.search_placeholder", {
|
|
98
98
|
type: a(s)("menu.category.title")
|
|
99
99
|
})
|
|
100
|
-
}, null, 8, ["modelValue", "placeholder"])]), i("div", ee, [(u(!0), g(
|
|
100
|
+
}, null, 8, ["modelValue", "placeholder"])]), i("div", ee, [(u(!0), g(P, null, U(m.value, (e) => (u(), g("div", {
|
|
101
101
|
key: e.id || "",
|
|
102
102
|
class: "flex flex-row py-12 px-16"
|
|
103
103
|
}, [i("div", oe, [i("p", te, E(e.name), 1), i("p", ae, E(a(s)(e.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
|
|
104
104
|
count: e.items.length
|
|
105
|
-
})), 1)])]))), 128))])])) : (u(), g("div",
|
|
105
|
+
})), 1)])]))), 128))])])) : (u(), g("div", Z, [i("div", H, [i("div", J, [_(r, {
|
|
106
106
|
modelValue: n.value,
|
|
107
107
|
"onUpdate:modelValue": o[0] || (o[0] = (e) => n.value = e),
|
|
108
108
|
autofocus: "",
|
|
@@ -110,8 +110,8 @@ const J = {
|
|
|
110
110
|
placeholder: a(s)("menu.common.labels.search_placeholder", {
|
|
111
111
|
type: a(s)("menu.category.title")
|
|
112
112
|
})
|
|
113
|
-
}, null, 8, ["modelValue", "placeholder"])])]), _(
|
|
114
|
-
default:
|
|
113
|
+
}, null, 8, ["modelValue", "placeholder"])])]), _(Q, null, {
|
|
114
|
+
default: K(() => [_(t, {
|
|
115
115
|
"column-defs": x.value,
|
|
116
116
|
draggable: a(d).rules.category.overrideSequence,
|
|
117
117
|
"page-size": m.value.length,
|
|
@@ -120,7 +120,7 @@ const J = {
|
|
|
120
120
|
"shrink-at": !1,
|
|
121
121
|
"hide-footer": "",
|
|
122
122
|
"pin-header-row": "",
|
|
123
|
-
onDndChanged:
|
|
123
|
+
onDndChanged: N
|
|
124
124
|
}, null, 8, ["column-defs", "draggable", "page-size", "row-data", "search-value"])]),
|
|
125
125
|
_: 1
|
|
126
126
|
})]));
|
|
@@ -129,7 +129,7 @@ const J = {
|
|
|
129
129
|
}), me = /* @__PURE__ */ V({
|
|
130
130
|
__name: "Category",
|
|
131
131
|
setup(D) {
|
|
132
|
-
const f =
|
|
132
|
+
const f = A(), y = L(), h = F(y), d = T(h), v = R({ dialog: f, menuLoader: d }), { categories: b } = B(), { t: n } = M();
|
|
133
133
|
function m() {
|
|
134
134
|
v.create();
|
|
135
135
|
}
|