@feedmepos/mf-menu 0.32.12-dev → 0.32.13-remy.1
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-D0JZMDPU.js → App-LbcVqv2D.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C5fI7pDt.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Csx89Dps.js} +3 -3
- package/dist/{Catalog-BIVVmu4F.js → Catalog-C8NG7zlQ.js} +6 -6
- package/dist/{Category-DoEzIDPA.js → Category-2JUUtc4H.js} +4 -4
- package/dist/{Category-Cmf6dD5G.js → Category-DRcM4Znh.js} +6 -6
- package/dist/{CookingGuide-DxQ5vDF5.js → CookingGuide-CUzuA9PX.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BQscJC6_.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DUgWpyvl.js} +1 -1
- package/dist/{Group-l59a7MQy.js → Group-CgP6hO6m.js} +3 -3
- package/dist/{Group-EAACXFDr.js → Group-RdE7q9MT.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CdIKM2jO.js → Group.vue_vue_type_script_setup_true_lang-DLF8nGQl.js} +42 -42
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CendqbFI.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CEkQme8y.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-B3I3jPxC.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DH_BJSI5.js} +27456 -27454
- package/dist/{Ingredient-B7kPk3oV.js → Ingredient-DJY4kc-N.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CzpY9mWg.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CDEDazSH.js} +2 -2
- package/dist/{LinkProductSideSheet-CeXhbGnn.js → LinkProductSideSheet-CLQpNg_i.js} +3 -3
- package/dist/{MenuSetting-CCtL2qui.js → MenuSetting-DUnJNjD3.js} +5 -5
- package/dist/{PrintRoute-DMLRAZJg.js → PrintRoute-B5OeWDft.js} +4 -4
- package/dist/{Product-BAcGhIEf.js → Product-DRtEFbAc.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-V8-_F7WQ.js → Product.vue_vue_type_script_setup_true_lang-CxbBLr30.js} +12 -12
- package/dist/{ProductInternalTools-BrQwrwyG.js → ProductInternalTools-C9jEW2Sn.js} +5 -5
- package/dist/Products-DrX-0nlg.js +794 -0
- package/dist/{Publish-CtKo19_y.js → Publish-ce2Y2DEt.js} +54 -52
- package/dist/{Recipe-ORx3rnvx.js → Recipe-DC8H50Iz.js} +4 -4
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-biTDrokQ.js → RuleView.vue_vue_type_script_setup_true_lang-AQW9wTG-.js} +2 -2
- package/dist/{Scheduler-B7v3W8eG.js → Scheduler-D6fFXl4d.js} +3 -3
- package/dist/{ServingSequence-DczYH8BU.js → ServingSequence-BzlOu9Jx.js} +3 -3
- package/dist/{Setting-fNLED9R0.js → Setting-ZbKB7R3-.js} +5 -5
- package/dist/{Subcategory-DjK1PTao.js → Subcategory-ykQtRbl6.js} +4 -4
- package/dist/{Takeaway-LjEJbd4e.js → Takeaway-BID-4ZNu.js} +4 -4
- package/dist/{Takeaway-ChMYycO_.js → Takeaway-DCbjM8Hm.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CMdZM60P.js → Takeaway.vue_vue_type_script_setup_true_lang-NS8lPd8g.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Yh_aUxqS.js → Thumbnail.vue_vue_type_script_setup_true_lang-C6WEweCW.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CEmOkHc5.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-reBsMgam.js} +756 -763
- package/dist/{Unit-DGZ9xVpM.js → Unit-BlaEWWPg.js} +2 -2
- package/dist/{Variant-CUasE1B5.js → Variant-eheGaouH.js} +3 -3
- package/dist/{_id_-CXV1a1UW.js → _id_-BTXIF6lj.js} +9 -9
- package/dist/{app--9ZjQ_dH.js → app-D2Qaa9Oz.js} +26 -26
- package/dist/{app-E7mszfIB.js → app-RHArypBb.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/Entry.vue.d.ts +1 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/ImageDropField.vue.d.ts +0 -2
- package/dist/apps/mf-menu/src/composable/useClientEvent.d.ts +14 -0
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +22 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-Doclb1U6.js → linked-status-BXBCSjPP.js} +2 -2
- package/dist/assets/{override-menu-BWkFILg4.js → override-menu-B3SRSTEZ.js} +2 -2
- package/dist/assets/{validate-menu-BS4T4zZm.js → validate-menu-CecCj9UN.js} +2 -2
- package/dist/{catalog-PkvD9BV_.js → catalog-tTM8-InO.js} +1 -1
- package/dist/{catalogSetting-Cd9aIJs2.js → catalogSetting-BD-BfaO8.js} +1 -1
- package/dist/{category-1NLh1OVo.js → category-CIg6IAm0.js} +1 -1
- package/dist/{currency-J1RZcMOx.js → currency-CDjJmJek.js} +1 -1
- package/dist/{dayjs.min-CXjOYO85.js → dayjs.min-JmZVzT43.js} +1 -1
- package/dist/{index-D9h3wl03.js → index-BmuyM89Z.js} +4 -4
- package/dist/{index-BiCSP8Fy.js → index-CaVyLGMU.js} +1 -1
- package/dist/{index-BPpNi-Hh.js → index-D58HMaki.js} +3 -3
- package/dist/{index.vue_vue_type_script_setup_true_lang-B3Eku0Ig.js → index.vue_vue_type_script_setup_true_lang-CfNCMAYH.js} +2471 -2471
- package/dist/{item-Ctnd-m_D.js → item-BiB-ygXk.js} +943 -945
- package/dist/{jszip.min-Bwz_vC7R.js → jszip.min-B-xI7nLV.js} +2 -2
- package/dist/{menu-DpTANxng.js → menu-Bg1urT9-.js} +1 -1
- package/dist/{menuV2-BBMwj4p0.js → menuV2-DH9QCdAo.js} +78 -78
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-DAG2W_y3.js → priceTier-DPV1S7ac.js} +1 -1
- package/dist/{scheduler-DYuLkKsc.js → scheduler-K-fMsIxZ.js} +4 -4
- package/dist/{subcategory-BJ0oG92x.js → subcategory-BUmkchds.js} +2 -2
- package/dist/{toExcel-C5_3G21q.js → toExcel-D_EtUB49.js} +2 -2
- package/dist/{unit-CNwmGzjU.js → unit-Bv3Pp9Lp.js} +2 -2
- package/package.json +4 -4
- package/dist/Products-O5YVYdlT.js +0 -692
|
@@ -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-CfNCMAYH.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-D2Qaa9Oz.js";
|
|
9
|
+
import { _ as _sfc_main$5 } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-reBsMgam.js";
|
|
10
|
+
import { u as useAppStore } from "./app-RHArypBb.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) {
|
|
@@ -13421,7 +13421,7 @@ const _hoisted_1 = {
|
|
|
13421
13421
|
l && l === entityExports.F_MENU_VERSION.enum.v4 && router.addRoute({
|
|
13422
13422
|
path: "/serving-sequence",
|
|
13423
13423
|
name: "serving-sequence",
|
|
13424
|
-
component: () => import("./ServingSequence-
|
|
13424
|
+
component: () => import("./ServingSequence-BzlOu9Jx.js")
|
|
13425
13425
|
});
|
|
13426
13426
|
}
|
|
13427
13427
|
), watch(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
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 a, 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-AQW9wTG-.js";
|
|
5
|
+
import { L as $ } from "./LinkProductSideSheet-CLQpNg_i.js";
|
|
6
6
|
import { u as q } from "./search-BAPEUu1R.js";
|
|
7
|
-
import { u as J, an as Q } from "./index.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { u as J, an as Q } from "./index.vue_vue_type_script_setup_true_lang-CfNCMAYH.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"
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as se, computed as x, resolveComponent as _, createBlock as V, openBlock as p, createVNode as o, ref as K, createElementBlock as F, Fragment as G, 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, P as fe, G as ge, D as re, B as Oe, I as le, K as ve, ac as ie, a3 as Me } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as pe, A as M, P as fe, G as ge, D as re, B as Oe, I as le, K as ve, ac as ie, a3 as Me } from "./index.vue_vue_type_script_setup_true_lang-CfNCMAYH.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-D2Qaa9Oz.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-AQW9wTG-.js";
|
|
10
|
+
import { _ as me, a as we } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CEkQme8y.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-BD-BfaO8.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-tTM8-InO.js";
|
|
15
15
|
const Re = /* @__PURE__ */ se({
|
|
16
16
|
__name: "CatalogUsageTable",
|
|
17
17
|
props: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
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 P, Fragment as z, renderList as U, toDisplayString as E, createBlock as S } from "vue";
|
|
2
2
|
import { useI18n as L } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as M, useBreakpoints as Y, useDialog as $ } from "@feedmepos/ui-library";
|
|
4
|
-
import { G as F, u as A, Y as I, P as T, K as j, A as q, a3 as G } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as R } from "./app
|
|
6
|
-
import { u as B } from "./menu-
|
|
7
|
-
import { u as H } from "./category-
|
|
4
|
+
import { G as F, u as A, Y as I, P as T, K as j, A as q, a3 as G } from "./index.vue_vue_type_script_setup_true_lang-CfNCMAYH.js";
|
|
5
|
+
import { _ as R } from "./app-D2Qaa9Oz.js";
|
|
6
|
+
import { u as B } from "./menu-Bg1urT9-.js";
|
|
7
|
+
import { u as H } from "./category-CIg6IAm0.js";
|
|
8
8
|
const J = {
|
|
9
9
|
key: 0
|
|
10
10
|
}, Q = {
|
|
@@ -2,18 +2,18 @@ import { defineComponent as A, ref as F, computed as B, watch as se, resolveComp
|
|
|
2
2
|
import { useI18n as j } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Y, components as R, useDialog as ee, FmButtonVariant as J, useBreakpoints as de, FmButtonColorThemeVariant as me } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as pe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { G, u as ge, $ as fe, Y as _e, A as K, a2 as ye, P as q, K as te, a3 as ve } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { G, u as ge, $ as fe, Y as _e, A as K, a2 as ye, P as q, K as te, a3 as ve } from "./index.vue_vue_type_script_setup_true_lang-CfNCMAYH.js";
|
|
6
6
|
import { _ as he } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { _ as be } from "./app
|
|
7
|
+
import { _ as be } from "./app-D2Qaa9Oz.js";
|
|
8
8
|
import { c as xe } from "./createForm-BoUQeZTd.js";
|
|
9
|
-
import { _ as Q } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as Q } from "./RuleView.vue_vue_type_script_setup_true_lang-AQW9wTG-.js";
|
|
10
10
|
import { u as Ce } from "./discardConfirm-BHni0LNu.js";
|
|
11
11
|
import { c as X } from "./object-DVUNCr7w.js";
|
|
12
12
|
import { r as ke } from "./rules-CIWTZQfh.js";
|
|
13
|
-
import { u as W, a as we } from "./menu-
|
|
13
|
+
import { u as W, a as we } from "./menu-Bg1urT9-.js";
|
|
14
14
|
import { c as Fe } from "./check-C9mY6LiX.js";
|
|
15
|
-
import { u as Ve } from "./item-
|
|
16
|
-
import { u as oe } from "./category-
|
|
15
|
+
import { u as Ve } from "./item-BiB-ygXk.js";
|
|
16
|
+
import { u as oe } from "./category-CIg6IAm0.js";
|
|
17
17
|
const $e = {
|
|
18
18
|
class: "fm-typo-en-title-md-600"
|
|
19
19
|
}, Me = {
|
|
@@ -2,12 +2,12 @@ import { defineComponent as le, ref as w, computed as V, resolveComponent as x,
|
|
|
2
2
|
import { useI18n as se } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as ue, useSnackbar as be, useDialog as ye } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ke } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as he } from "./app
|
|
6
|
-
import { I as ee, J as me, K as re, A as oe, u as xe, P as Ce, G as we, a3 as Fe } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as he } from "./app-D2Qaa9Oz.js";
|
|
6
|
+
import { I as ee, J as me, K as re, A as oe, u as xe, P as Ce, G as we, a3 as Fe } from "./index.vue_vue_type_script_setup_true_lang-CfNCMAYH.js";
|
|
7
7
|
import { d as Ve } from "./vuedraggable-CK8z7qA8.js";
|
|
8
|
-
import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-AQW9wTG-.js";
|
|
9
9
|
import { u as pe } from "./discardConfirm-BHni0LNu.js";
|
|
10
|
-
import { L as Se } from "./LinkProductSideSheet-
|
|
10
|
+
import { L as Se } from "./LinkProductSideSheet-CLQpNg_i.js";
|
|
11
11
|
import { _ as Ie } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
12
12
|
const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = { class: "space-y-32" }, Ke = { 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" }, De = { class: "px-16 py-8 w-[40%]" }, Ge = { class: "px-16 py-8 grow" }, Ue = { class: "space-y-16" }, Te = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Be = { class: "flex gap-8 items-center justify-start" }, Me = /* @__PURE__ */ le({
|
|
13
13
|
__name: "CookingGuideStepDialog",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as S, computed as o, createBlock as v, openBlock as t, unref as c, withCtx as g, renderSlot as B, ref as A, resolveComponent as I, createElementBlock as a, createElementVNode as m, createCommentVNode as b, Fragment as f, renderList as C, toDisplayString as d, withModifiers as F } from "vue";
|
|
2
2
|
import { useI18n as V } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as M } from "./MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js";
|
|
4
|
-
import { u as D } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as D } from "./index.vue_vue_type_script_setup_true_lang-CfNCMAYH.js";
|
|
5
5
|
import { useBreakpoints as E } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as y } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
7
7
|
const X = /* @__PURE__ */ S({
|
|
@@ -2,9 +2,9 @@ import { defineComponent as m, ref as p, createBlock as i, openBlock 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-Cn-3MRBO.js";
|
|
4
4
|
import { _ as g } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.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-DLF8nGQl.js";
|
|
6
|
+
import { A as b } from "./item-BiB-ygXk.js";
|
|
7
|
+
import { a as h } from "./menu-Bg1urT9-.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,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as X, computed as g, resolveComponent as M, createBlock as I, openBlock as m, withCtx as x, createElementBlock as
|
|
2
|
-
import { J as H, u as ne, P as Ie, G as Te, A as v, D as $e, a3 as Ye, B as Le, K as ze } from "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as X, computed as g, resolveComponent as M, createBlock as I, openBlock as m, withCtx as x, createElementBlock as C, Fragment as T, renderList as oe, createElementVNode as d, normalizeClass as W, toDisplayString as G, createVNode as s, ref as E, renderSlot as Ne, unref as r, createCommentVNode as U, watch as Re, h as pe, mergeProps as Ee, createSlots as Se, withModifiers as Ue, isRef as Q, nextTick as fe } from "vue";
|
|
2
|
+
import { J as H, u as ne, P as Ie, G as Te, A as v, D as $e, a3 as Ye, B as Le, K as ze } from "./index.vue_vue_type_script_setup_true_lang-CfNCMAYH.js";
|
|
3
3
|
import { d as Be } from "./vuedraggable-CK8z7qA8.js";
|
|
4
4
|
import { b as ve, H as Ke } from "./app-5fxKLAzS.js";
|
|
5
5
|
import { useI18n as le, useCoreStore as je, useCustomAttributes as He } from "@feedmepos/mf-common";
|
|
6
6
|
import { useBreakpoints as ye, components as _e, useSnackbar as qe, useDialog as Je, FmButtonVariant as Qe } from "@feedmepos/ui-library";
|
|
7
|
-
import { _ as We, a as Xe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as Ze } from "./app
|
|
7
|
+
import { _ as We, a as Xe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-DUgWpyvl.js";
|
|
8
|
+
import { _ as Ze } from "./app-D2Qaa9Oz.js";
|
|
9
9
|
import { _ as et, a as tt } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
10
10
|
import { c as ot } from "./object-DVUNCr7w.js";
|
|
11
11
|
import { u as nt } from "./discardConfirm-BHni0LNu.js";
|
|
12
|
-
import { _ as lt } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { _ as lt } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-Csx89Dps.js";
|
|
13
13
|
import { c as at } from "./check-C9mY6LiX.js";
|
|
14
|
-
import { M as ge,
|
|
14
|
+
import { M as ge, x as rt, y as ut, A as st, e as it, i as ct, r as mt } from "./item-BiB-ygXk.js";
|
|
15
15
|
import { u as dt } from "./search-BAPEUu1R.js";
|
|
16
|
-
import { C as pt } from "./catalog-
|
|
17
|
-
import { c as ft } from "./menuV2-
|
|
16
|
+
import { C as pt } from "./catalog-tTM8-InO.js";
|
|
17
|
+
import { c as ft } from "./menuV2-DH9QCdAo.js";
|
|
18
18
|
const vt = /* @__PURE__ */ X({
|
|
19
19
|
__name: "ResponsiveContextMenu",
|
|
20
20
|
props: {
|
|
@@ -26,14 +26,14 @@ const vt = /* @__PURE__ */ X({
|
|
|
26
26
|
const h = M("FmButton"), f = M("FmMenuItem"), y = M("FmMenu");
|
|
27
27
|
return u.value ? (m(), I(et, { key: 0 }, {
|
|
28
28
|
default: x(() => [
|
|
29
|
-
(m(!0),
|
|
29
|
+
(m(!0), C(T, null, oe(R.items, ({ icon: k, label: D, disabled: w, itemClass: A, onClick: _ }) => (m(), I(tt, {
|
|
30
30
|
key: D,
|
|
31
31
|
icon: k,
|
|
32
32
|
label: D,
|
|
33
|
-
disabled:
|
|
33
|
+
disabled: w,
|
|
34
34
|
itemClass: A,
|
|
35
35
|
onClick: () => {
|
|
36
|
-
!
|
|
36
|
+
!w && (_ == null || _());
|
|
37
37
|
}
|
|
38
38
|
}, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
|
|
39
39
|
]),
|
|
@@ -53,17 +53,17 @@ const vt = /* @__PURE__ */ X({
|
|
|
53
53
|
})
|
|
54
54
|
]),
|
|
55
55
|
default: x(() => [
|
|
56
|
-
(m(!0),
|
|
56
|
+
(m(!0), C(T, null, oe(R.items, ({ icon: k, label: D, disabled: w, itemClass: A, onClick: _ }) => (m(), I(f, {
|
|
57
57
|
key: D,
|
|
58
|
-
disabled:
|
|
58
|
+
disabled: w,
|
|
59
59
|
onClick: () => {
|
|
60
|
-
!
|
|
60
|
+
!w && (_ == null || _());
|
|
61
61
|
},
|
|
62
62
|
label: D
|
|
63
63
|
}, {
|
|
64
64
|
label: x(() => [
|
|
65
65
|
d("span", {
|
|
66
|
-
class: W(
|
|
66
|
+
class: W(w ? "text-fm-color-typo-disabled" : A)
|
|
67
67
|
}, G(D), 3)
|
|
68
68
|
]),
|
|
69
69
|
_: 2
|
|
@@ -90,10 +90,10 @@ const vt = /* @__PURE__ */ X({
|
|
|
90
90
|
}
|
|
91
91
|
), k = E(!1), D = (A) => {
|
|
92
92
|
at.isBoolean(A) ? k.value = A : k.value = !k.value, k.value && (f.value = u.initialValue.map((_) => ({ _id: _ })));
|
|
93
|
-
},
|
|
93
|
+
}, w = ne();
|
|
94
94
|
return (A, _) => {
|
|
95
95
|
const b = M("fm-button"), q = M("fm-side-sheet");
|
|
96
|
-
return m(),
|
|
96
|
+
return m(), C(T, null, [
|
|
97
97
|
Ne(A.$slots, "default", { trigger: D }),
|
|
98
98
|
s(q, {
|
|
99
99
|
id: "group-form",
|
|
@@ -132,7 +132,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
132
132
|
s(lt, {
|
|
133
133
|
overrides: f.value,
|
|
134
134
|
"onUpdate:overrides": _[0] || (_[0] = (N) => f.value = N),
|
|
135
|
-
"categorized-items": r(
|
|
135
|
+
"categorized-items": r(w).categorizedItems,
|
|
136
136
|
editable: A.editable,
|
|
137
137
|
"select-variant": !1,
|
|
138
138
|
"show-variant": !1,
|
|
@@ -148,7 +148,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
148
148
|
}), bt = {
|
|
149
149
|
key: 0,
|
|
150
150
|
class: "mt-4"
|
|
151
|
-
}, ht = { class: "text-fm-color-typo-secondary mb-2" }, kt = { class: "list-disc list-inside text-fm-color-typo-secondary ml-4 space-y-1" },
|
|
151
|
+
}, ht = { class: "text-fm-color-typo-secondary mb-2" }, kt = { class: "list-disc list-inside text-fm-color-typo-secondary ml-4 space-y-1" }, Ct = /* @__PURE__ */ X({
|
|
152
152
|
__name: "DeleteGroupDialog",
|
|
153
153
|
props: {
|
|
154
154
|
group: {}
|
|
@@ -158,12 +158,12 @@ const vt = /* @__PURE__ */ X({
|
|
|
158
158
|
const f = R.state.menu.modules.item.find((y) => y._id === h);
|
|
159
159
|
return (f == null ? void 0 : f.name) || h;
|
|
160
160
|
}).filter(Boolean));
|
|
161
|
-
return (h, f) => (m(),
|
|
161
|
+
return (h, f) => (m(), C("div", null, [
|
|
162
162
|
d("div", null, G(r(u)("menu.group.dialogs.delete.message", { name: h.group.name })), 1),
|
|
163
|
-
V.value.length > 0 ? (m(),
|
|
163
|
+
V.value.length > 0 ? (m(), C("div", bt, [
|
|
164
164
|
d("div", ht, G(r(u)("menu.group.dialogs.delete.unlink_warning", { count: V.value.length })), 1),
|
|
165
165
|
d("ul", kt, [
|
|
166
|
-
(m(!0),
|
|
166
|
+
(m(!0), C(T, null, oe(V.value, (y) => (m(), C("li", {
|
|
167
167
|
key: y,
|
|
168
168
|
class: "text-sm"
|
|
169
169
|
}, G(y), 1))), 128))
|
|
@@ -171,7 +171,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
171
171
|
])) : U("", !0)
|
|
172
172
|
]));
|
|
173
173
|
}
|
|
174
|
-
}),
|
|
174
|
+
}), wt = {
|
|
175
175
|
key: 1,
|
|
176
176
|
class: "xs:pt-24"
|
|
177
177
|
}, Ot = {
|
|
@@ -208,7 +208,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
208
208
|
emit: S
|
|
209
209
|
}) {
|
|
210
210
|
const u = ne(), R = je(), V = qe(), h = Ie(Te(V)), f = Je(), y = g(() => u.rules.group), k = g(() => new ge(u, h.updateMenu, f)), D = g(() => k.value.mapGroups(u.groups, !1)), {
|
|
211
|
-
searchKey:
|
|
211
|
+
searchKey: w,
|
|
212
212
|
filter: A
|
|
213
213
|
} = dt(), _ = E(!1), b = E(null), {
|
|
214
214
|
attributes: q,
|
|
@@ -279,7 +279,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
279
279
|
function ue(t) {
|
|
280
280
|
k.value.sortGroups(t);
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function Ce(t) {
|
|
283
283
|
f.open({
|
|
284
284
|
title: n("menu.group.actions.duplicate.title"),
|
|
285
285
|
message: n("menu.group.actions.duplicate.message", {
|
|
@@ -295,7 +295,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
295
295
|
}
|
|
296
296
|
}).onPrimary(() => k.value.duplicateGroup(t));
|
|
297
297
|
}
|
|
298
|
-
const ee = g(() => u.currentCatalog), B = g(() => u.currentScheduler), K = g(() => new pt(ee.value, u, h.updateMenu, f)), te = g(() => new rt(B.value, u, h.updateMenu, f)),
|
|
298
|
+
const ee = g(() => u.currentCatalog), B = g(() => u.currentScheduler), K = g(() => new pt(ee.value, u, h.updateMenu, f)), te = g(() => new rt(B.value, u, h.updateMenu, f)), we = (t) => {
|
|
299
299
|
let e = t;
|
|
300
300
|
function a(l) {
|
|
301
301
|
const F = u.state.menu.modules.group.find((o) => o._id === l._id), p = (l.items ?? []).reduce((o, O) => (o[O._id] = [...o[O._id] || [], O.combinationKey || ""], o), {}), Y = (F.items ?? []).filter((o) => {
|
|
@@ -327,7 +327,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
327
327
|
function Oe(t) {
|
|
328
328
|
f.open({
|
|
329
329
|
title: n("menu.group.dialogs.delete.title"),
|
|
330
|
-
contentComponent:
|
|
330
|
+
contentComponent: Ct,
|
|
331
331
|
contentComponentProps: {
|
|
332
332
|
group: t
|
|
333
333
|
},
|
|
@@ -385,7 +385,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
385
385
|
}, {
|
|
386
386
|
label: n("menu.group.actions.duplicate_action"),
|
|
387
387
|
disabled: !y.value.create,
|
|
388
|
-
onClick: () =>
|
|
388
|
+
onClick: () => Ce(e)
|
|
389
389
|
}, {
|
|
390
390
|
label: n("menu.common.actions.delete"),
|
|
391
391
|
itemClass: "text-fm-color-typo-error",
|
|
@@ -531,17 +531,17 @@ const vt = /* @__PURE__ */ X({
|
|
|
531
531
|
}) : null;
|
|
532
532
|
return (t, e) => {
|
|
533
533
|
const a = M("fm-button"), l = M("fm-chip"), i = M("fm-menu-item"), F = M("fm-menu"), p = M("fm-search"), P = M("fm-table"), Y = M("fm-bottom-sheet");
|
|
534
|
-
return m(),
|
|
534
|
+
return m(), C(T, null, [$.value ? (m(), I(ut, Ee({
|
|
535
535
|
ref_key: "groupManagerFormRef",
|
|
536
536
|
ref: ce,
|
|
537
537
|
key: $.value._id
|
|
538
|
-
},
|
|
538
|
+
}, we($.value), {
|
|
539
539
|
action: "update",
|
|
540
540
|
title: r(n)("menu.group.dialogs.update.title"),
|
|
541
541
|
group: $.value,
|
|
542
542
|
"onUpdate:group": e[0] || (e[0] = (o) => $.value = o),
|
|
543
543
|
"onSubmit:group": e[1] || (e[1] = (o) => Ae(o))
|
|
544
|
-
}), null, 16, ["title", "group"])) : U("", !0), D.value.length === 0 ? (m(),
|
|
544
|
+
}), null, 16, ["title", "group"])) : U("", !0), D.value.length === 0 ? (m(), C("div", wt, [s(Ye, {
|
|
545
545
|
subtitle: r(n)("menu.group.empty.subtitle"),
|
|
546
546
|
title: r(n)("menu.group.empty.title")
|
|
547
547
|
}, Se({
|
|
@@ -559,14 +559,14 @@ const vt = /* @__PURE__ */ X({
|
|
|
559
559
|
_: 1
|
|
560
560
|
})]),
|
|
561
561
|
key: "0"
|
|
562
|
-
} : void 0]), 1032, ["subtitle", "title"])])) : (m(),
|
|
562
|
+
} : void 0]), 1032, ["subtitle", "title"])])) : (m(), C(T, {
|
|
563
563
|
key: 2
|
|
564
|
-
}, [Ge.value ? (m(),
|
|
564
|
+
}, [Ge.value ? (m(), C(T, {
|
|
565
565
|
key: 1
|
|
566
566
|
}, [d("div", Ft, [s(p, {
|
|
567
567
|
autofocus: "",
|
|
568
|
-
modelValue: r(
|
|
569
|
-
"onUpdate:modelValue": e[9] || (e[9] = (o) => Q(
|
|
568
|
+
modelValue: r(w),
|
|
569
|
+
"onUpdate:modelValue": e[9] || (e[9] = (o) => Q(w) ? w.value = o : null),
|
|
570
570
|
placeholder: r(n)("menu.group.search.placeholder")
|
|
571
571
|
}, null, 8, ["modelValue", "placeholder"])]), e[17] || (e[17] = d("div", {
|
|
572
572
|
class: "bg-fm-color-neutral-gray-100 w-full h-px rounded-md"
|
|
@@ -596,7 +596,7 @@ const vt = /* @__PURE__ */ X({
|
|
|
596
596
|
onClick: e[13] || (e[13] = (o) => b.value = "DYNAMIC")
|
|
597
597
|
}, G(r(n)("menu.group.type.dynamic")), 1)])]),
|
|
598
598
|
_: 1
|
|
599
|
-
}, 8, ["modelValue"])) : U("", !0)]), j.value ? (m(),
|
|
599
|
+
}, 8, ["modelValue"])) : U("", !0)]), j.value ? (m(), C("div", Gt, [s(r(ve), {
|
|
600
600
|
ref_key: "attributeFilterRef",
|
|
601
601
|
ref: J,
|
|
602
602
|
attributes: r(q),
|
|
@@ -612,16 +612,16 @@ const vt = /* @__PURE__ */ X({
|
|
|
612
612
|
}, {
|
|
613
613
|
item: x(({
|
|
614
614
|
element: o
|
|
615
|
-
}) => [(m(),
|
|
615
|
+
}) => [(m(), C("div", {
|
|
616
616
|
key: o._id,
|
|
617
617
|
class: W(["py-12 px-16", "flex space-x-16", "items-center"])
|
|
618
|
-
}, [d("div", Pt, [d("div", Vt, [d("p", Nt, G(o.name), 1), d("div", null, [Z.value ? (m(),
|
|
618
|
+
}, [d("div", Pt, [d("div", Vt, [d("p", Nt, G(o.name), 1), d("div", null, [Z.value ? (m(), C("p", Rt, G(r(H.capitalize)(o.type)) + " type ", 1)) : U("", !0), d("p", Et, G(r(n)("menu.group.list.products_linked", {
|
|
619
619
|
count: o.itemsLinked.length
|
|
620
620
|
})), 1)])]), s(ie, {
|
|
621
621
|
group: o
|
|
622
622
|
}, null, 8, ["group"])])]))]),
|
|
623
623
|
_: 1
|
|
624
|
-
}, 8, ["model-value"])], 64)) : (m(),
|
|
624
|
+
}, 8, ["model-value"])], 64)) : (m(), C("div", Ot, [d("div", xt, [s(de), Z.value ? (m(), I(F, {
|
|
625
625
|
key: 0
|
|
626
626
|
}, {
|
|
627
627
|
"menu-button": x(() => [s(l, {
|
|
@@ -651,10 +651,10 @@ const vt = /* @__PURE__ */ X({
|
|
|
651
651
|
_: 1
|
|
652
652
|
})) : U("", !0), d("div", Dt, [s(p, {
|
|
653
653
|
autofocus: "",
|
|
654
|
-
modelValue: r(
|
|
655
|
-
"onUpdate:modelValue": e[6] || (e[6] = (o) => Q(
|
|
654
|
+
modelValue: r(w),
|
|
655
|
+
"onUpdate:modelValue": e[6] || (e[6] = (o) => Q(w) ? w.value = o : null),
|
|
656
656
|
placeholder: r(n)("menu.group.search.placeholder")
|
|
657
|
-
}, null, 8, ["modelValue", "placeholder"])])]), j.value ? (m(),
|
|
657
|
+
}, null, 8, ["modelValue", "placeholder"])])]), j.value ? (m(), C("div", At, [s(r(ve), {
|
|
658
658
|
ref_key: "attributeFilterRef",
|
|
659
659
|
ref: J,
|
|
660
660
|
attributes: r(q),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as N, useModel as K, computed as B, resolveComponent as d, createBlock as P, openBlock as b, ref as L, watch as W, withCtx as _, createElementBlock as F, createElementVNode as I, Fragment as q, renderList as X, createVNode as u, unref as e, createCommentVNode as $, withModifiers as Q, onMounted as te, renderSlot as le, toDisplayString as h, createTextVNode as ae } from "vue";
|
|
2
2
|
import { useI18n as z, useCustomAttributes as ue, useCoreStore as re, isEmptyRule as oe, EMPTY_RULE as w } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as x } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
4
|
-
import { u as D } from "./priceTier-
|
|
4
|
+
import { u as D } from "./priceTier-DPV1S7ac.js";
|
|
5
5
|
import { b as O } from "./app-5fxKLAzS.js";
|
|
6
6
|
import { FmButtonVariant as Z, useDialog as ne, components as ie, FmButtonColorThemeVariant as j } from "@feedmepos/ui-library";
|
|
7
|
-
import { m as G, f as Y, d as se, _ as me } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { L as R } from "./catalogSetting-
|
|
9
|
-
import { L as de } from "./LinkProductSideSheet-
|
|
7
|
+
import { m as G, f as Y, d as se, _ as me } from "./RuleView.vue_vue_type_script_setup_true_lang-AQW9wTG-.js";
|
|
8
|
+
import { L as R } from "./catalogSetting-BD-BfaO8.js";
|
|
9
|
+
import { L as de } from "./LinkProductSideSheet-CLQpNg_i.js";
|
|
10
10
|
import { c as H } from "./check-C9mY6LiX.js";
|
|
11
|
-
import { u as pe, I as J, am as ce } from "./index.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { u as pe, I as J, am as ce } from "./index.vue_vue_type_script_setup_true_lang-CfNCMAYH.js";
|
|
12
12
|
import { c as ve } from "./string-DpfFixWH.js";
|
|
13
13
|
const fe = /* @__PURE__ */ N({
|
|
14
14
|
__name: "LinkPriceTier",
|