@feedmepos/mf-menu 0.21.0 → 0.21.1-ex
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/{ApplyProduct.vue_vue_type_script_setup_true_lang-DxlJ6xrN.js → ApplyProduct.vue_vue_type_script_setup_true_lang-LdZtGFPj.js} +14 -14
- package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-CF-fCyCs.js → ApplyProducts.vue_vue_type_script_setup_true_lang-DPrKRrex.js} +5 -4
- package/dist/{Catalog-CVmJyr3D.js → Catalog-Cm8v8qqB.js} +3 -3
- package/dist/{Category-CjzACwyb.js → Category-B1vZJ_mf.js} +6 -6
- package/dist/{CookingGuide-COZFvS4P.js → CookingGuide-CwYXFxsO.js} +6 -5
- package/dist/{Group-Bun-FrIN.js → Group-DSUIYrQD.js} +1 -1
- package/dist/{Group-xCFTbuXd.js → Group-DYI5EbYZ.js} +4 -4
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DSfas9NO.js → Group.vue_vue_type_script_setup_true_lang-Hbq5g4Vz.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-kl0WpFCW.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DSumVsl9.js} +10 -10
- package/dist/{Ingredient-w4kVvEml.js → Ingredient-eLbGoFPb.js} +8 -7
- package/dist/{LinkProductSideSheet-CBHtwxCb.js → LinkProductSideSheet-DOeaOkjL.js} +14 -13
- package/dist/{PrintRoute-DXsa638J.js → PrintRoute-CGgDAKRv.js} +6 -5
- package/dist/{Product-BAtB4ebt.js → Product-DRwBHwWi.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DeJy-daz.js → Product.vue_vue_type_script_setup_true_lang-D1kmghZc.js} +252 -247
- package/dist/{Products-BQHiOdhZ.js → Products-Dpl3YlDv.js} +32 -31
- package/dist/{Publish-DbxeuyRV.js → Publish-dTiRRtVp.js} +6 -5
- package/dist/{Recipe-T2PlHYY_.js → Recipe-DzSNekru.js} +36 -35
- package/dist/{Scheduler-C-W85pjK.js → Scheduler-C41tjc8b.js} +2 -2
- package/dist/{SchedulerSelector.vue_vue_type_script_setup_true_lang-DQNfBh14.js → SchedulerSelector.vue_vue_type_script_setup_true_lang-CFxR01ES.js} +1 -1
- package/dist/ServingSequence-CuF2X1fX.js +4 -0
- package/dist/{Setting-C8gm77EA.js → Setting-CYgV10_d.js} +1 -1
- package/dist/{Setting.vue_vue_type_script_setup_true_lang-BR3_ywqR.js → Setting.vue_vue_type_script_setup_true_lang-BRmY5yRo.js} +3 -3
- package/dist/{Takeaway-DbHgvpIH.js → Takeaway-C_69YlCw.js} +1 -1
- package/dist/{Takeaway-CCw_DHze.js → Takeaway-DCIAmzIs.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DsUQ3Dlh.js → Takeaway.vue_vue_type_script_setup_true_lang-W1mteYna.js} +12 -12
- package/dist/{TaxSetting-BQdKVfBi.js → TaxSetting-BbGDrnvb.js} +4 -4
- package/dist/{Unit-M217TP4K.js → Unit-B2vfZwaD.js} +5 -4
- package/dist/{Variant-Boy7TugQ.js → Variant-DH-AgKtE.js} +2 -2
- package/dist/{_id_-DA8Gpcqf.js → _id_-BK_Q9ilj.js} +6 -6
- package/dist/{app-rWkFl8Vq.js → app-BUGNrluk.js} +23832 -32275
- package/dist/app.js +2 -2
- package/dist/assets/linked-status-CQ-Fm92f.js +5 -0
- package/dist/assets/validate-menu-ColdAZA0.js +5 -0
- package/dist/{catalog-CfrgLaRX.js → catalog-B-fN-1CA.js} +1 -1
- package/dist/{catalog-Bas11mgo.js → catalog-CIuT7wF6.js} +2155 -2149
- package/dist/{category-D-4M9HY7.js → category-C5AnEaMG.js} +4 -3
- package/dist/{index-v25k4isU.js → index-DR5_T7tA.js} +3 -3
- package/dist/{index-Cwb_hpVz.js → index-DXxDyDMP.js} +6 -5
- package/dist/{item-DTVh14mw.js → item-D3h696x6.js} +12 -11
- package/dist/{lodash-BsZHKgKE.js → lodash-DYJrntXd.js} +1 -1
- package/dist/{menu-CUz01P4H.js → menu-BSlq8EiM.js} +10 -9
- package/dist/{object-CbSdUbPF.js → object-DXyPFgek.js} +14 -14
- package/dist/{scheduler-BuIczYeS.js → scheduler-Dmpa7uLF.js} +13 -12
- package/dist/{takeaway-DC-YsV2Q.js → takeaway-Cdy5CV6F.js} +41 -40
- package/dist/{toExcel-CaiFM8FE.js → toExcel-CK7e-iTg.js} +2 -2
- package/dist/{unit-D_VflvJf.js → unit-CsSuu4-8.js} +3 -3
- package/package.json +4 -4
- package/dist/ServingSequence-lNzb6f-1.js +0 -4
- package/dist/assets/linked-status-C8QAoUQr.js +0 -24
- package/dist/assets/validate-menu-DuCKFpOM.js +0 -24
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as K, computed as i, h as u, ref as U, resolveComponent as g, openBlock as d, createElementBlock as p, createVNode as v, withCtx as h, 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
|
-
import { u as M, k as O,
|
|
2
|
+
import { u as M, k as O, Q } from "./app-BUGNrluk.js";
|
|
3
3
|
import { components as I, FmButtonVariant as B, FmButtonColorThemeVariant as b } from "@feedmepos/ui-library";
|
|
4
|
-
import { L as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { useI18n as
|
|
4
|
+
import { L as $ } from "./LinkProductSideSheet-DOeaOkjL.js";
|
|
5
|
+
import { _ as q } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
6
|
+
import { useI18n as J } from "@feedmepos/mf-common";
|
|
7
7
|
const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }, Y = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
@@ -21,18 +21,18 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
21
21
|
},
|
|
22
22
|
emits: ["update:overrides", "row-click"],
|
|
23
23
|
setup(z, { emit: F }) {
|
|
24
|
-
const s = z, _ = F, P = M(), { searchKey: m, filter: w } = O(), y = i(() => s.categorizedItems || P.categorizedItems), k = i(() =>
|
|
24
|
+
const s = z, _ = F, P = M(), { searchKey: m, filter: w } = O(), y = i(() => s.categorizedItems || P.categorizedItems), k = i(() => Q(y.value, s.overrides)), R = i(() => k.value.reduce((t, e) => {
|
|
25
25
|
if (w([e.name]))
|
|
26
26
|
return t.push(e), t;
|
|
27
27
|
const r = e.items.filter((a) => w([a.label]));
|
|
28
28
|
return r.length && t.push({ ...e, items: r }), t;
|
|
29
29
|
}, [])), E = i(() => s.showVariant || s.selectVariant);
|
|
30
|
-
function
|
|
30
|
+
function x(t, e) {
|
|
31
31
|
var a, l;
|
|
32
32
|
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);
|
|
33
33
|
_("update:overrides", r ?? []);
|
|
34
34
|
}
|
|
35
|
-
const { t: c } =
|
|
35
|
+
const { t: c } = J(), N = i(
|
|
36
36
|
() => (t) => [
|
|
37
37
|
{
|
|
38
38
|
accessorKey: "label",
|
|
@@ -82,23 +82,23 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
82
82
|
var o;
|
|
83
83
|
if (a > 0) {
|
|
84
84
|
const f = (o = e.row.getParentRow()) == null ? void 0 : o.original;
|
|
85
|
-
|
|
85
|
+
x(f.value, r.value);
|
|
86
86
|
} else
|
|
87
|
-
|
|
87
|
+
x(r.value);
|
|
88
88
|
}
|
|
89
89
|
})
|
|
90
90
|
) : null;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
]
|
|
94
|
-
),
|
|
94
|
+
), S = U({}), L = (t) => t.variant, T = i(() => k.value.reduce((t, e) => t + e.items.length, 0));
|
|
95
95
|
return (t, e) => {
|
|
96
96
|
const r = g("fm-button"), a = g("fm-search"), l = g("fm-table");
|
|
97
97
|
return d(), p("div", W, [
|
|
98
|
-
v(
|
|
98
|
+
v(q, { title: t.title }, {
|
|
99
99
|
"append-title": h(() => [
|
|
100
100
|
V("div", null, [
|
|
101
|
-
t.editable ? (d(), j(
|
|
101
|
+
t.editable ? (d(), j($, {
|
|
102
102
|
key: 0,
|
|
103
103
|
"categorized-items": y.value,
|
|
104
104
|
"initial-value": t.overrides,
|
|
@@ -140,14 +140,14 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
|
|
|
140
140
|
}, [
|
|
141
141
|
v(l, {
|
|
142
142
|
"column-defs": N.value(o),
|
|
143
|
-
"expanded-state":
|
|
143
|
+
"expanded-state": S.value,
|
|
144
144
|
"get-sub-row": L,
|
|
145
145
|
"page-size": 9999,
|
|
146
146
|
"row-data": o.items,
|
|
147
147
|
"search-value": n(m),
|
|
148
148
|
"shrink-at": !1,
|
|
149
149
|
"hide-footer": "",
|
|
150
|
-
"onUpdate:expandedState": e[2] || (e[2] = (f) =>
|
|
150
|
+
"onUpdate:expandedState": e[2] || (e[2] = (f) => S.value = f)
|
|
151
151
|
}, null, 8, ["column-defs", "expanded-state", "row-data", "search-value"])
|
|
152
152
|
]))), 128))
|
|
153
153
|
]);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { defineComponent as T, ref as y, computed as k, resolveComponent as m, openBlock as p, createBlock as w, unref as G, withCtx as f, createElementVNode as s, createVNode as u, toDisplayString as g, createElementBlock as b, Fragment as F, renderList as B } from "vue";
|
|
2
|
-
import { c as V } from "./app-
|
|
2
|
+
import { c as V } from "./app-BUGNrluk.js";
|
|
3
3
|
import "@feedmepos/core";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
5
|
import "@feedmepos/mf-common";
|
|
6
|
-
import
|
|
7
|
-
|
|
6
|
+
import "@feedmepos/core/entity";
|
|
7
|
+
import { u as H, l as J } from "./lodash-DYJrntXd.js";
|
|
8
|
+
const M = { class: "flex items-center gap-8" }, Q = { class: "flex flex-col h-full" }, R = { class: "flex items-center gap-24 mb-16" }, W = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, X = { class: "flex-1" }, Y = { class: "grow overflow-y-auto py-16 space-y-24" }, Z = { class: "flex items-center" }, ee = { class: "ml-8 fm-card__title grow overflow-hidden text-nowrap text-ellipsis" }, te = { class: "ml-16" }, le = { class: "flex gap-8 items-center justify-start" }, ue = /* @__PURE__ */ T({
|
|
8
9
|
__name: "ApplyProducts",
|
|
9
10
|
props: {
|
|
10
11
|
title: {
|
|
@@ -191,5 +192,5 @@ const M = { class: "flex items-center gap-8" }, Q = { class: "flex flex-col h-fu
|
|
|
191
192
|
}
|
|
192
193
|
});
|
|
193
194
|
export {
|
|
194
|
-
|
|
195
|
+
ue as _
|
|
195
196
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as ue, ref as I, computed as $, resolveComponent as g, openBlock as m, createElementBlock as b, Fragment as V, renderSlot as ye, createVNode as u, unref as e, withCtx as p, createElementVNode as f, renderList as w, createBlock as F, createCommentVNode as z, createTextVNode as be, toDisplayString as k, h as J, withModifiers as Q, normalizeClass as ee } from "vue";
|
|
2
2
|
import { useCoreStore as ce, useI18n as me } from "@feedmepos/mf-common";
|
|
3
|
-
import { e as O, u as de, g as pe, a as fe, m as oe, d as xe, c as ae, f as ge, v as ne, _ as ke, i as Ce, h as he, R as se } from "./app-
|
|
4
|
-
import { C as Oe } from "./catalog-
|
|
3
|
+
import { e as O, u as de, g as pe, a as fe, m as oe, d as xe, c as ae, f as ge, v as ne, _ as ke, i as Ce, h as he, R as se } from "./app-BUGNrluk.js";
|
|
4
|
+
import { C as Oe } from "./catalog-B-fN-1CA.js";
|
|
5
5
|
import { useRouter as Fe } from "vue-router";
|
|
6
6
|
import { useSnackbar as _e, components as le, FmButtonColorThemeVariant as W, FmButtonVariant as G, useDialog as Me, useBreakpoints as De } from "@feedmepos/ui-library";
|
|
7
|
-
import { C as R, a as L, _ as re } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { C as R, a as L, _ as re } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DSumVsl9.js";
|
|
8
8
|
import { Country as Ve } from "@feedmepos/core";
|
|
9
9
|
import { _ as Se } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
10
10
|
import { _ as te } from "./FormItem.vue_vue_type_script_setup_true_lang-DKsxEK-8.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
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 z, withModifiers as A, getCurrentInstance as ce, renderList as ue, createBlock as O, createCommentVNode as de } from "vue";
|
|
2
|
-
import { u as j, a as me } from "./menu-
|
|
3
|
-
import { a as Y, u as pe, e as I, d as fe, f as ee, g as q, h as ge, _ as _e, i as ye, b as ve } from "./app-
|
|
2
|
+
import { u as j, a as me } from "./menu-BSlq8EiM.js";
|
|
3
|
+
import { a as Y, u as pe, e as I, d as fe, f as ee, g as q, h as ge, _ as _e, i as ye, b as ve } from "./app-BUGNrluk.js";
|
|
4
4
|
import { useSnackbar as G, components as K, useDialog as te, FmButtonVariant as Q, useBreakpoints as he, FmButtonColorThemeVariant as be } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as ae } from "./category-
|
|
5
|
+
import { u as ae } from "./category-C5AnEaMG.js";
|
|
6
6
|
import { c as xe } from "./createForm-TSiJzrqa.js";
|
|
7
|
-
import { c as W } from "./object-
|
|
8
|
-
import { u as Ce } from "./item-
|
|
7
|
+
import { c as W } from "./object-DXyPFgek.js";
|
|
8
|
+
import { u as Ce } from "./item-D3h696x6.js";
|
|
9
9
|
import { _ as X } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
10
|
-
import { u as ke } from "./lodash-
|
|
10
|
+
import { u as ke } from "./lodash-DYJrntXd.js";
|
|
11
11
|
import { useI18n as H } from "@feedmepos/mf-common";
|
|
12
12
|
function we(p, f = "This field can't be empty.") {
|
|
13
13
|
return p == null || Array.isArray(p) && p.length === 0 || typeof p == "string" && p.trim() === "" ? f : !0;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { defineComponent as le, ref as h, computed as w, resolveComponent as x, openBlock as g, createBlock as P, unref as t, withCtx as c, createElementVNode as a, createVNode as i, toDisplayString as V, createElementBlock as $, Fragment as z, renderList as q, createTextVNode as be, withModifiers as se, createCommentVNode as ce, h as R } from "vue";
|
|
2
|
-
import { c as Z, e as ee, f as ue, u as ye, g as ke, a as he, _ as xe, b as Ce, i as we, h as Ve } from "./app-
|
|
2
|
+
import { c as Z, e as ee, f as ue, u as ye, g as ke, a as he, _ as xe, b as Ce, i as we, h as Ve } from "./app-BUGNrluk.js";
|
|
3
3
|
import { components as de, useSnackbar as Fe, useDialog as Se } from "@feedmepos/ui-library";
|
|
4
4
|
import { V as $e } from "./vuedraggable-WU01qJgi.js";
|
|
5
|
-
import { _ as Ie } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as Ie } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-DPrKRrex.js";
|
|
6
6
|
import "@feedmepos/core";
|
|
7
7
|
import { useI18n as ie } from "@feedmepos/mf-common";
|
|
8
|
+
import "@feedmepos/core/entity";
|
|
8
9
|
import { _ as X } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
9
|
-
import { u as me, l as pe } from "./lodash-
|
|
10
|
+
import { u as me, l as pe } from "./lodash-DYJrntXd.js";
|
|
10
11
|
const Oe = { class: "flex items-center gap-8" }, De = { class: "grow" }, Ne = { class: "space-y-32" }, Le = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, Ue = { class: "px-16 py-8 w-[40%]" }, Ge = { class: "px-16 py-8 grow" }, Ke = { class: "flex items-center border-b border-b-fm-color-neutral-gray-100" }, Be = { class: "px-16 py-8 w-[40%]" }, Ee = { class: "px-16 py-8 grow" }, Me = { class: "space-y-16" }, ze = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Te = { class: "flex gap-8 items-center justify-start" }, Re = /* @__PURE__ */ le({
|
|
11
12
|
__name: "CookingGuideStepDialog",
|
|
12
13
|
emits: ["onComplete"],
|
|
@@ -688,7 +689,7 @@ const _o = {
|
|
|
688
689
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
689
690
|
}, ko = {
|
|
690
691
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
691
|
-
},
|
|
692
|
+
}, Do = /* @__PURE__ */ le({
|
|
692
693
|
__name: "CookingGuide",
|
|
693
694
|
setup(U) {
|
|
694
695
|
const {
|
|
@@ -859,5 +860,5 @@ const _o = {
|
|
|
859
860
|
}
|
|
860
861
|
});
|
|
861
862
|
export {
|
|
862
|
-
|
|
863
|
+
Do as default
|
|
863
864
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as m, ref as c, openBlock as i, createBlock as d, unref as n, withCtx as a, createVNode as l, createElementVNode as e, toDisplayString as p, createCommentVNode as u } from "vue";
|
|
2
|
-
import { _, b as f } from "./app-
|
|
3
|
-
import { _ as g } from "./Group.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { a as b } from "./menu-
|
|
5
|
-
import { A as y } from "./item-
|
|
2
|
+
import { _, b as f } from "./app-BUGNrluk.js";
|
|
3
|
+
import { _ as g } from "./Group.vue_vue_type_script_setup_true_lang-Hbq5g4Vz.js";
|
|
4
|
+
import { a as b } from "./menu-BSlq8EiM.js";
|
|
5
|
+
import { A as y } from "./item-D3h696x6.js";
|
|
6
6
|
import { useI18n as h } from "@feedmepos/mf-common";
|
|
7
7
|
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" }, S = /* @__PURE__ */ m({
|
|
8
8
|
__name: "Group",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as W, ref as S, resolveComponent as C, openBlock as p, createElementBlock as F, Fragment as T, renderSlot as ke, createVNode as m, unref as o, withCtx as h, createElementVNode as d, toDisplayString as V, computed as g, createBlock as N, renderList as ne, normalizeClass as K, watch as Oe, mergeProps as we, createCommentVNode as E, createSlots as De, withModifiers as Ce, isRef as oe, h as Me, nextTick as xe } from "vue";
|
|
2
|
-
import { u as ue, d as Ae, g as Fe, a as Ge, k as Ve, e as v, m as Ne, i as Pe, h as Re, f as Ue } from "./app-
|
|
3
|
-
import { _ as le } from "./SchedulerSelector.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { M as ae, S as Ee, _ as Se, A as Te, e as Ie, a as $e } from "./item-
|
|
2
|
+
import { u as ue, d as Ae, g as Fe, a as Ge, k as Ve, e as v, m as Ne, i as Pe, h as Re, f as Ue } from "./app-BUGNrluk.js";
|
|
3
|
+
import { _ as le } from "./SchedulerSelector.vue_vue_type_script_setup_true_lang-CFxR01ES.js";
|
|
4
|
+
import { M as ae, S as Ee, _ as Se, A as Te, e as Ie, a as $e } from "./item-D3h696x6.js";
|
|
5
5
|
import { components as Ye, useBreakpoints as re, useSnackbar as Le, useDialog as ze, FmButtonVariant as je } from "@feedmepos/ui-library";
|
|
6
6
|
import { Dinero as Ke } from "@feedmepos/core";
|
|
7
|
-
import { C as Be } from "./catalog-
|
|
8
|
-
import { l as z, u as qe } from "./lodash-
|
|
9
|
-
import { _ as He } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { C as Be } from "./catalog-B-fN-1CA.js";
|
|
8
|
+
import { l as z, u as qe } from "./lodash-DYJrntXd.js";
|
|
9
|
+
import { _ as He } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-LdZtGFPj.js";
|
|
10
10
|
import { useI18n as se } from "@feedmepos/mf-common";
|
|
11
11
|
import { V as Je } from "./vuedraggable-WU01qJgi.js";
|
|
12
12
|
import { _ as Qe, a as We } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DPis3HVx.js";
|
|
13
|
-
import { c as Xe } from "./object-
|
|
13
|
+
import { c as Xe } from "./object-DXyPFgek.js";
|
|
14
14
|
const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items-center justify-start" }, tt = /* @__PURE__ */ W({
|
|
15
15
|
__name: "ApplyProductDialog",
|
|
16
16
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { e as k, c, u as q,
|
|
1
|
+
import { e as k, c, u as q, C as G, d as C } from "./app-BUGNrluk.js";
|
|
2
2
|
import { defineComponent as j, computed as V, ref as b, watch as H, onMounted as J, resolveComponent as s, openBlock as _, createElementBlock as y, Fragment as S, renderSlot as K, createVNode as i, unref as o, withCtx as d, createTextVNode as Q, toDisplayString as I, createElementVNode as O, renderList as W, createBlock as R, createCommentVNode as h } from "vue";
|
|
3
3
|
import { c as X } from "./string-DpfFixWH.js";
|
|
4
4
|
import { useDialog as Y, components as Z, FmButtonColorThemeVariant as L, FmButtonVariant as ee } from "@feedmepos/ui-library";
|
|
5
|
-
import { L as ae } from "./LinkProductSideSheet-
|
|
5
|
+
import { L as ae } from "./LinkProductSideSheet-DOeaOkjL.js";
|
|
6
6
|
import { useI18n as te } from "@feedmepos/mf-common";
|
|
7
7
|
var le = /* @__PURE__ */ ((p) => (p.AUTO = "auto", p.MANUAL = "manual", p))(le || {});
|
|
8
8
|
class T {
|
|
@@ -95,7 +95,7 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
|
|
|
95
95
|
), V(
|
|
96
96
|
() => G(g.variants, n.categories, n.items)
|
|
97
97
|
);
|
|
98
|
-
function
|
|
98
|
+
function z(t) {
|
|
99
99
|
a.value = {
|
|
100
100
|
...a.value,
|
|
101
101
|
includeItems: t
|
|
@@ -105,13 +105,13 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
|
|
|
105
105
|
0
|
|
106
106
|
/* ALL */
|
|
107
107
|
);
|
|
108
|
-
function
|
|
108
|
+
function A(t) {
|
|
109
109
|
f.value = t, a.value = {
|
|
110
110
|
...a.value,
|
|
111
111
|
includeItems: t === 0 ? null : []
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
const
|
|
114
|
+
const D = V(() => [
|
|
115
115
|
{
|
|
116
116
|
label: r("menu.markup.dialog.options.all"),
|
|
117
117
|
value: 0
|
|
@@ -123,7 +123,7 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
|
|
|
123
123
|
/* CUSTOM */
|
|
124
124
|
}
|
|
125
125
|
]);
|
|
126
|
-
async function
|
|
126
|
+
async function E() {
|
|
127
127
|
M("update:model-value", a.value), x(!1);
|
|
128
128
|
}
|
|
129
129
|
return J(() => {
|
|
@@ -137,7 +137,7 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
|
|
|
137
137
|
"onUpdate:modelValue": u[3] || (u[3] = (v) => m.value = v),
|
|
138
138
|
"is-component": o(Z).FmForm,
|
|
139
139
|
"is-component-props": {
|
|
140
|
-
onValidationSuccess:
|
|
140
|
+
onValidationSuccess: E
|
|
141
141
|
},
|
|
142
142
|
"z-index": 101
|
|
143
143
|
}, {
|
|
@@ -185,12 +185,12 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
|
|
|
185
185
|
modelValue: f.value,
|
|
186
186
|
"onUpdate:modelValue": [
|
|
187
187
|
u[1] || (u[1] = (l) => f.value = l),
|
|
188
|
-
|
|
188
|
+
A
|
|
189
189
|
],
|
|
190
190
|
class: "space-y-8"
|
|
191
191
|
}, {
|
|
192
192
|
default: d(() => [
|
|
193
|
-
(_(!0), y(S, null, W(
|
|
193
|
+
(_(!0), y(S, null, W(D.value, (l) => (_(), R(U, {
|
|
194
194
|
key: l.value,
|
|
195
195
|
label: l.label,
|
|
196
196
|
value: l.value
|
|
@@ -204,7 +204,7 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
|
|
|
204
204
|
"categorized-items": o(g).categorizedItems,
|
|
205
205
|
"initial-value": a.value.includeItems || [],
|
|
206
206
|
"show-variant": !1,
|
|
207
|
-
onSubmit:
|
|
207
|
+
onSubmit: z
|
|
208
208
|
}, {
|
|
209
209
|
default: d(({ trigger: l }) => [
|
|
210
210
|
f.value === 1 ? (_(), R(F, {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { defineComponent as ie, computed as b, ref as U, reactive as Ve, watch as Ce, resolveComponent as d, openBlock as m, createElementBlock as y, Fragment as V, renderSlot as Me, createVNode as s, unref as e, withCtx as k, createElementVNode as v, toDisplayString as E, createBlock as N, createCommentVNode as K, normalizeClass as J, createTextVNode as we, renderList as q, getCurrentInstance as $e, h as te, withModifiers as le } from "vue";
|
|
2
|
-
import { g as se, a as Q, u as W, c as Ue, m as j, i as ue, d as Ee, e as G, f as H, j as Oe, _ as Be, b as Le } from "./app-
|
|
2
|
+
import { g as se, a as Q, u as W, c as Ue, m as j, i as ue, d as Ee, e as G, f as H, j as Oe, _ as Be, b as Le } from "./app-BUGNrluk.js";
|
|
3
3
|
import { useSnackbar as X, components as re, useDialog as Ne, FmButtonVariant as ce, useBreakpoints as Te } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as Z } from "@feedmepos/mf-common";
|
|
5
|
-
import
|
|
5
|
+
import "@feedmepos/core";
|
|
6
|
+
import { F_INVENTORY_BINDING_TYPE as oe } from "@feedmepos/core/entity";
|
|
6
7
|
import "vue-router";
|
|
7
8
|
import { defineStore as Ie } from "pinia";
|
|
8
|
-
import { u as Pe } from "./unit-
|
|
9
|
-
import { _ as ae, j as Re } from "./index-
|
|
10
|
-
import { u as Ae, l as De } from "./lodash-
|
|
9
|
+
import { u as Pe } from "./unit-CsSuu4-8.js";
|
|
10
|
+
import { _ as ae, j as Re } from "./index-DXxDyDMP.js";
|
|
11
|
+
import { u as Ae, l as De } from "./lodash-DYJrntXd.js";
|
|
11
12
|
const ze = { class: "fm-typo-en-title-md-600" }, Ye = {
|
|
12
13
|
key: 0,
|
|
13
14
|
class: "pt-8 flex flex-col gap-8"
|
|
@@ -375,7 +376,7 @@ const ze = { class: "fm-typo-en-title-md-600" }, Ye = {
|
|
|
375
376
|
class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4"
|
|
376
377
|
}, cn = {
|
|
377
378
|
class: "fm-typo-en-body-md-600 font-semibold"
|
|
378
|
-
},
|
|
379
|
+
}, Sn = /* @__PURE__ */ ie({
|
|
379
380
|
__name: "Ingredient",
|
|
380
381
|
setup(T) {
|
|
381
382
|
const O = X();
|
|
@@ -489,5 +490,5 @@ const ze = { class: "fm-typo-en-title-md-600" }, Ye = {
|
|
|
489
490
|
}
|
|
490
491
|
});
|
|
491
492
|
export {
|
|
492
|
-
|
|
493
|
+
Sn as default
|
|
493
494
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as S, ref as f, computed as z, watch as F, resolveComponent as v, openBlock as V, createElementBlock as I, Fragment as D, renderSlot as E, createVNode as l, unref as n, withCtx as m, createBlock as O, createCommentVNode as L, createElementVNode as h, toDisplayString as N } from "vue";
|
|
2
2
|
import { components as j, FmButtonVariant as A } from "@feedmepos/ui-library";
|
|
3
|
-
import { c as _,
|
|
3
|
+
import { c as _, S as P, d as U, K as $ } from "./app-BUGNrluk.js";
|
|
4
4
|
import "@feedmepos/core";
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import
|
|
5
|
+
import { useI18n as q } from "@feedmepos/mf-common";
|
|
6
|
+
import "@feedmepos/core/entity";
|
|
7
|
+
import { u as x, l as K } from "./lodash-DYJrntXd.js";
|
|
7
8
|
/* empty css */
|
|
8
|
-
const M = { class: "fm-typo-en-title-md-600 mr-auto" },
|
|
9
|
+
const M = { class: "fm-typo-en-title-md-600 mr-auto" }, T = { class: "flex gap-8 items-center justify-start" }, G = /* @__PURE__ */ S({
|
|
9
10
|
__name: "LinkProductSideSheet",
|
|
10
11
|
props: {
|
|
11
12
|
initialValue: { default: () => [] },
|
|
@@ -18,13 +19,13 @@ const M = { class: "fm-typo-en-title-md-600 mr-auto" }, G = { class: "flex gap-8
|
|
|
18
19
|
emits: ["submit"],
|
|
19
20
|
setup(b, { emit: k }) {
|
|
20
21
|
const s = b, y = k, a = f(!1), d = (e) => {
|
|
21
|
-
|
|
22
|
+
U.isBoolean(e) ? a.value = e : a.value = !a.value;
|
|
22
23
|
};
|
|
23
24
|
function r(e) {
|
|
24
25
|
return e.reduce((t, o) => (t[o._id] = [...t[o._id] ?? [], o], t), {});
|
|
25
26
|
}
|
|
26
|
-
const g = s.initialValue, i = f(r(_(g))), p =
|
|
27
|
-
() => !
|
|
27
|
+
const g = s.initialValue, i = f(r(_(g))), p = z(() => Object.values(i.value).flatMap((e) => e)), w = x(
|
|
28
|
+
() => !K.isEqual(r(s.initialValue), i.value),
|
|
28
29
|
() => {
|
|
29
30
|
a.value = !1;
|
|
30
31
|
}
|
|
@@ -38,7 +39,7 @@ const M = { class: "fm-typo-en-title-md-600 mr-auto" }, G = { class: "flex gap-8
|
|
|
38
39
|
i.value = r(_(s.initialValue));
|
|
39
40
|
}
|
|
40
41
|
);
|
|
41
|
-
const { t: u } =
|
|
42
|
+
const { t: u } = q();
|
|
42
43
|
return (e, t) => {
|
|
43
44
|
const o = v("fm-button"), C = v("fm-side-sheet");
|
|
44
45
|
return V(), I(D, null, [
|
|
@@ -58,7 +59,7 @@ const M = { class: "fm-typo-en-title-md-600 mr-auto" }, G = { class: "flex gap-8
|
|
|
58
59
|
"onOn:clickedAway": n(w)
|
|
59
60
|
}, {
|
|
60
61
|
"side-sheet-header": m(() => [
|
|
61
|
-
e.useCloseBtn ?
|
|
62
|
+
e.useCloseBtn ? L("", !0) : (V(), O(o, {
|
|
62
63
|
key: 0,
|
|
63
64
|
variant: n(A).Tertiary,
|
|
64
65
|
class: "cursor-pointer mr-4",
|
|
@@ -68,7 +69,7 @@ const M = { class: "fm-typo-en-title-md-600 mr-auto" }, G = { class: "flex gap-8
|
|
|
68
69
|
h("p", M, N(e.title || n(u)("menu.link_product.title")), 1)
|
|
69
70
|
]),
|
|
70
71
|
"side-sheet-footer": m(() => [
|
|
71
|
-
h("div",
|
|
72
|
+
h("div", T, [
|
|
72
73
|
l(o, {
|
|
73
74
|
label: n(u)("menu.common.actions.confirm"),
|
|
74
75
|
size: "lg",
|
|
@@ -99,7 +100,7 @@ const M = { class: "fm-typo-en-title-md-600 mr-auto" }, G = { class: "flex gap-8
|
|
|
99
100
|
], 64);
|
|
100
101
|
};
|
|
101
102
|
}
|
|
102
|
-
}),
|
|
103
|
+
}), ee = /* @__PURE__ */ $(G, [["__scopeId", "data-v-c33d339f"]]);
|
|
103
104
|
export {
|
|
104
|
-
|
|
105
|
+
ee as L
|
|
105
106
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { defineComponent as Q, ref as k, computed as p, resolveComponent as g, openBlock as c, createElementBlock as w, Fragment as D, createVNode as i, unref as a, withCtx as _, createElementVNode as s, toDisplayString as M, createBlock as U, renderList as Y, createCommentVNode as W, h as m, withModifiers as G } from "vue";
|
|
2
|
-
import { c as H, e as C, f as q, u as te, g as ne, a as oe, _ as ae, b as le, i as re, h as se } from "./app-
|
|
2
|
+
import { c as H, e as C, f as q, u as te, g as ne, a as oe, _ as ae, b as le, i as re, h as se } from "./app-BUGNrluk.js";
|
|
3
3
|
import { components as X, useSnackbar as ie, useDialog as ue } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as ce } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as ce } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-DPrKRrex.js";
|
|
5
5
|
import "@feedmepos/core";
|
|
6
6
|
import { useI18n as Z } from "@feedmepos/mf-common";
|
|
7
|
+
import "@feedmepos/core/entity";
|
|
7
8
|
import { _ as J } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
|
|
8
|
-
import { u as de, l as me } from "./lodash-
|
|
9
|
+
import { u as de, l as me } from "./lodash-DYJrntXd.js";
|
|
9
10
|
const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, fe = { class: "space-y-16" }, ve = { class: "flex items-center gap-8" }, ye = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ge = { class: "flex-1" }, he = { class: "grow overflow-y-auto" }, be = { class: "text-fm-color-typo-secondary bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-fm-color-neutral-gray-200" }, ke = { class: "flex items-center border-b border-b-fm-color-neutral-gray-100" }, xe = { class: "px-16 py-8 flex-1" }, Fe = { class: "py-8" }, Ie = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__ */ Q({
|
|
10
11
|
__name: "PrintDepartmentDialog",
|
|
11
12
|
props: {
|
|
@@ -235,7 +236,7 @@ const Te = {
|
|
|
235
236
|
class: "fm-typo-en-body-lg-600"
|
|
236
237
|
}, Se = {
|
|
237
238
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
238
|
-
},
|
|
239
|
+
}, Be = /* @__PURE__ */ Q({
|
|
239
240
|
__name: "PrintRoute",
|
|
240
241
|
setup(f) {
|
|
241
242
|
const {
|
|
@@ -414,5 +415,5 @@ const Te = {
|
|
|
414
415
|
}
|
|
415
416
|
});
|
|
416
417
|
export {
|
|
417
|
-
|
|
418
|
+
Be as default
|
|
418
419
|
};
|