@feedmepos/mf-inventory-portal 0.0.25-dev.41 → 0.0.25-dev.42
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-BqAbcrCa.js → App-BgLyTa3Z.js} +2 -2
- package/dist/{ApprovalView-CstNyWuq.js → ApprovalView-UC31qsPD.js} +17 -17
- package/dist/{BindingsDialog-B2POgTvT.js → BindingsDialog-h9el4EvX.js} +2 -2
- package/dist/{BindingsPicker-Bp8wNAW0.js → BindingsPicker-Cw5AT6xO.js} +1 -1
- package/dist/{BindingsTable-C5ToIwJw.js → BindingsTable-Boj3hZup.js} +1 -1
- package/dist/{ClosingDraftView-B5KgTQOB.js → ClosingDraftView-DOH7FmkH.js} +2 -2
- package/dist/{ClosingTemplateView-B6gT5-A_.js → ClosingTemplateView-CG7qArA8.js} +2 -2
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BcedQV1P.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-k1J8dWcK.js} +3 -3
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Bc6eTKR-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C5qp_p1A.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C76t4wed.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DBYsiV9t.js} +1 -1
- package/dist/{IngredientGroupView-Bo18pDpd.js → IngredientGroupView-CWEw3I3i.js} +14 -14
- package/dist/{IngredientsView-D4Tx5h1N.js → IngredientsView-B6EDjPTe.js} +492 -504
- package/dist/{IntegrationView-5cTVErK7.js → IntegrationView-DiSoM1K8.js} +1 -1
- package/dist/{InventoryBindingForm-D_JUD2PF.js → InventoryBindingForm-nKWx-EUW.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Co33Sz1A.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BMMD4hwX.js} +3 -3
- package/dist/{InventoryBindingSummary-DsQqzLxI.js → InventoryBindingSummary-CQnCjIY4.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKCHqrFd.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cr8DwdOC.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-NhSXPpV1.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DnZI3Gfj.js} +1 -1
- package/dist/{PublishView-CVReC-7J.js → PublishView-DvHW27pI.js} +7 -7
- package/dist/{PurchaseOrderPrintPreview-kHtSdc_I.js → PurchaseOrderPrintPreview-DSTbRKyh.js} +1 -1
- package/dist/{ReceiveRequestView-JJdBl6jR.js → ReceiveRequestView-BKRHqSU-.js} +9 -9
- package/dist/{RecipeView-BAZzsPdQ.js → RecipeView-CFTrf0YF.js} +21 -21
- package/dist/{StockView-Dwzf7ewT.js → StockView-CAPLd29m.js} +1526 -1539
- package/dist/{SupplierView-BoTsfsYX.js → SupplierView-C_CrS9FM.js} +441 -453
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-C2ZBmCNY.js → TransferDetails.vue_vue_type_script_setup_true_lang-BWuWB95v.js} +4 -4
- package/dist/{TransferTemplateView-BLO1uHet.js → TransferTemplateView-BaJaiaO9.js} +68 -68
- package/dist/{UnitView-DfJ-huaQ.js → UnitView-DY9nZs1y.js} +3 -3
- package/dist/{WarehouseView-h5_GDAYM.js → WarehouseView-CAFxl8K4.js} +1 -1
- package/dist/{app-CRWxxzQN.js → app-Jh5wwLsF.js} +3271 -3260
- package/dist/app.js +1 -1
- package/dist/{decimal-BDt03-KF.js → decimal-0_acpDRy.js} +1 -1
- package/dist/{feature-D_c7uzcV.js → feature-CqX_LtOl.js} +1 -1
- package/dist/{format-unit-display-CsfojMpU.js → format-unit-display-CYPC8_oX.js} +2 -2
- package/dist/helper/country.d.ts +1 -0
- package/dist/{index-BbwuhE-c.js → index-QcOk4LDU.js} +2 -2
- package/dist/{stock-DSyF_gBG.js → stock-BpWEKDoQ.js} +1 -1
- package/dist/stores/helper/generate-backend-urls.d.ts +0 -1
- package/dist/{supplier-BLqNIQG9.js → supplier-By3gzRHW.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BSxFzWSk.js → use-ingredient-select-dialog-hkbfGnB9.js} +1 -1
- package/dist/{use-inventory-binding-dialog-DyIQsTTm.js → use-inventory-binding-dialog-BFG04MUx.js} +1 -1
- package/dist/{vue-i18n-ZO6qpjnw.js → vue-i18n-D57Xfcpf.js} +2 -2
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as x, onUnmounted as F, defineComponent as h, watch as P, onMounted as U, computed as g, resolveComponent as b, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as p, toDisplayString as w, createBlock as G, createCommentVNode as M } from "vue";
|
|
2
|
-
import { u as k, a as D, b as H, R as e, g as s, c as W } from "./app-
|
|
2
|
+
import { u as k, a as D, b as H, R as e, g as s, c as W } from "./app-Jh5wwLsF.js";
|
|
3
3
|
import { useCoreStore as A, useI18n as B } from "@feedmepos/mf-common";
|
|
4
4
|
import { useRouter as C, useRoute as K } from "vue-router";
|
|
5
|
-
import { u as O } from "./feature-
|
|
5
|
+
import { u as O } from "./feature-CqX_LtOl.js";
|
|
6
6
|
import { u as $ } from "./useTabStorage-BkIVScW_.js";
|
|
7
7
|
import { u as Q } from "./googlemap-Dm8ERVai.js";
|
|
8
8
|
import "./array-hChJVZLE.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as oe, ref as g, watch as re, computed as b, resolveComponent as ne, openBlock as
|
|
2
|
-
import { u as de, az as _, aK as fe, ab as Q,
|
|
3
|
-
import { a as ge, P as O, b as be, _ as
|
|
4
|
-
import { useBreakpoints as
|
|
1
|
+
import { defineComponent as oe, ref as g, watch as re, computed as b, resolveComponent as ne, openBlock as x, createBlock as J, unref as e, withCtx as y, createElementVNode as s, normalizeClass as se, createVNode as n, normalizeStyle as le, toDisplayString as ce, createElementBlock as ie, createCommentVNode as ue, Teleport as pe, mergeProps as me } from "vue";
|
|
2
|
+
import { u as de, az as _, aK as fe, ab as Q, z as _e, _ as ve, B as he, C as De, E as v } from "./app-Jh5wwLsF.js";
|
|
3
|
+
import { a as ge, P as O, b as be, _ as xe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-BWuWB95v.js";
|
|
4
|
+
import { useBreakpoints as ye } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Oe } from "@feedmepos/mf-common";
|
|
6
|
-
const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" },
|
|
6
|
+
const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ce = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
9
|
-
},
|
|
9
|
+
}, Se = { class: "pt-8" }, $e = /* @__PURE__ */ oe({
|
|
10
10
|
__name: "ApprovalView",
|
|
11
11
|
setup(Te) {
|
|
12
12
|
const o = ge(O.APPROVAL), { columnDefs: W } = be(O.APPROVAL, o), X = de();
|
|
@@ -35,7 +35,7 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
|
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
const h = g(""), { breakpoints: w } =
|
|
38
|
+
const h = g(""), { breakpoints: w } = ye(), D = b(() => w.value.xs || w.value.sm), Z = b(() => D.value ? 10 : 20), B = _e(), { t: P } = Oe(), I = b(() => [
|
|
39
39
|
{
|
|
40
40
|
label: P("common.refresh"),
|
|
41
41
|
value: "refresh"
|
|
@@ -49,12 +49,12 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
|
|
|
49
49
|
}
|
|
50
50
|
return (c, l) => {
|
|
51
51
|
const te = ne("FmTable");
|
|
52
|
-
return
|
|
52
|
+
return x(), J(ve, {
|
|
53
53
|
title: e(P)("inventory.transfer.approval.title"),
|
|
54
54
|
actions: I.value,
|
|
55
55
|
"onClick:action": ee
|
|
56
56
|
}, {
|
|
57
|
-
default:
|
|
57
|
+
default: y(() => [
|
|
58
58
|
s("div", {
|
|
59
59
|
class: se([
|
|
60
60
|
"flex flex-col gap-8 max-h-full",
|
|
@@ -82,18 +82,18 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
|
|
|
82
82
|
)),
|
|
83
83
|
"page-size": Z.value
|
|
84
84
|
}, {
|
|
85
|
-
"list-row":
|
|
85
|
+
"list-row": y((r) => [
|
|
86
86
|
n(De, {
|
|
87
87
|
row: r,
|
|
88
88
|
onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
|
|
89
89
|
}, {
|
|
90
|
-
default:
|
|
91
|
-
var k,
|
|
90
|
+
default: y((t) => {
|
|
91
|
+
var k, C, S, i, T, A, z, V, u, L, M, p, $, m, E, F, Y, q, N, d, j, H, K, U, f, G;
|
|
92
92
|
return [
|
|
93
93
|
s("div", Re, [
|
|
94
94
|
s("div", we, [
|
|
95
95
|
n(e(v), {
|
|
96
|
-
render: (
|
|
96
|
+
render: (S = (C = (k = t.purchaseOrder__id) == null ? void 0 : k.column) == null ? void 0 : C.columnDef) == null ? void 0 : S.cell,
|
|
97
97
|
props: (T = (i = t.purchaseOrder__id) == null ? void 0 : i.getContext) == null ? void 0 : T.call(i)
|
|
98
98
|
}, null, 8, ["render", "props"])
|
|
99
99
|
]),
|
|
@@ -104,13 +104,13 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
|
|
|
104
104
|
}, null, 8, ["render", "props"])
|
|
105
105
|
]),
|
|
106
106
|
s("div", ke, ce((E = (m = ($ = (p = (M = r.original.purchaseOrder) == null ? void 0 : M.items) == null ? void 0 : p.map) == null ? void 0 : $.call(p, (ae) => `${ae.name}`)) == null ? void 0 : m.join) == null ? void 0 : E.call(m, ", ")), 1),
|
|
107
|
-
(F = r.original.purchaseOrder) != null && F.ref ? (
|
|
107
|
+
(F = r.original.purchaseOrder) != null && F.ref ? (x(), ie("div", Ce, [
|
|
108
108
|
n(e(v), {
|
|
109
109
|
render: (N = (q = (Y = t.purchaseOrder_ref) == null ? void 0 : Y.column) == null ? void 0 : q.columnDef) == null ? void 0 : N.cell,
|
|
110
110
|
props: (j = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : j.call(d)
|
|
111
111
|
}, null, 8, ["render", "props"])
|
|
112
112
|
])) : ue("", !0),
|
|
113
|
-
s("div",
|
|
113
|
+
s("div", Se, [
|
|
114
114
|
n(e(v), {
|
|
115
115
|
render: (U = (K = (H = t.purchaseOrder_status) == null ? void 0 : H.column) == null ? void 0 : K.columnDef) == null ? void 0 : U.cell,
|
|
116
116
|
props: (G = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : G.call(f)
|
|
@@ -125,8 +125,8 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
|
|
|
125
125
|
_: 1
|
|
126
126
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
127
127
|
], 2),
|
|
128
|
-
(
|
|
129
|
-
n(
|
|
128
|
+
(x(), J(pe, { to: "body" }, [
|
|
129
|
+
n(xe, me({
|
|
130
130
|
scope: e(O).APPROVAL
|
|
131
131
|
}, e(o).transferDetailsProps.value, {
|
|
132
132
|
onSubmitted: e(o).fetchData
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
|
|
2
|
-
import { _ as S } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { a as V, aS as L } from "./app-
|
|
2
|
+
import { _ as S } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BMMD4hwX.js";
|
|
3
|
+
import { a as V, aS as L } from "./app-Jh5wwLsF.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as R, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
|
|
2
|
-
import { a as M, aS as x, H as z } from "./app-
|
|
2
|
+
import { a as M, aS as x, H as z } from "./app-Jh5wwLsF.js";
|
|
3
3
|
const F = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
|
|
2
|
-
import { F as v, a as E, aS as F } from "./app-
|
|
2
|
+
import { F as v, a as E, aS as F } from "./app-Jh5wwLsF.js";
|
|
3
3
|
import { components as L } from "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
const P = /* @__PURE__ */ _({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as ke, ref as V, resolveComponent as E, openBlock as x, createBlock as Q, withCtx as Y, createElementVNode as o, createTextVNode as De, toDisplayString as z, unref as y, createVNode as _, h as k, reactive as Ye, computed as H, onMounted as Ke, watch as Ge, isRef as Te, createElementBlock as T, Fragment as W, createCommentVNode as ne, normalizeClass as me, renderList as ve, normalizeStyle as Re, Teleport as We, mergeProps as qe } from "vue";
|
|
2
|
-
import { W as Ze, u as we, aj as q, l as Je, J as je, i as P, t as Qe, K as ye,
|
|
2
|
+
import { W as Ze, u as we, aj as q, l as Je, J as je, i as P, t as Qe, K as ye, q as Xe, r as et, s as tt, ak as Me, al as Pe, a6 as Ie, am as le, ac as at, ai as oe, T as Ue, D as Fe, h as xe, f as nt, e as ot, a as st, z as rt, _ as lt, B as ct, C as it, E as he } from "./app-Jh5wwLsF.js";
|
|
3
3
|
import { useCoreStore as ut, useI18n as Ee } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as Ce, useDialog as dt, useProxiedModel as mt, components as de, useBreakpoints as ft } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as He, storeToRefs as pt } from "pinia";
|
|
6
|
-
import { a as Le, u as ze } from "./stock-
|
|
6
|
+
import { a as Le, u as ze } from "./stock-BpWEKDoQ.js";
|
|
7
7
|
import { E as vt } from "./empty-placeholder-wf6-BWE8.js";
|
|
8
8
|
const Se = Ze((n, r) => {
|
|
9
9
|
function e() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as R, h as A, defineComponent as W, resolveComponent as E, openBlock as w, createElementBlock as I, createElementVNode as b, normalizeClass as q, createTextVNode as Fe, toDisplayString as C, unref as i, createCommentVNode as Q, createVNode as T, withCtx as P, Fragment as j, renderList as X, computed as U, watch as Re, createSlots as ie, createBlock as N, isRef as Pe, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as We, mergeProps as Je } from "vue";
|
|
2
|
-
import { W as qe, u as ue, ac as Qe, D as Se, h as O, f as Xe, e as Ae, ad as ce,
|
|
2
|
+
import { W as qe, u as ue, ac as Qe, D as Se, h as O, f as Xe, e as Ae, ad as ce, r as Ze, ae as Ee, s as Ue, a as de, b as et, v as tt, w as Ve, x as nt, y as ot, d as K, E as J, G as st, af as lt, l as at, ag as rt, C as Ne, A as it, ah as ct, ai as re, z as mt, _ as ut, B as dt } from "./app-Jh5wwLsF.js";
|
|
3
3
|
import { useCoreStore as pe, useI18n as Y } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as pt, useSnackbar as se, useDialog as Be, FmButtonVariant as De, components as G, useProxiedModel as ft, useBreakpoints as gt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Le, storeToRefs as ze } from "pinia";
|
|
6
|
-
import { u as vt } from "./use-ingredient-select-dialog-
|
|
6
|
+
import { u as vt } from "./use-ingredient-select-dialog-hkbfGnB9.js";
|
|
7
7
|
const le = qe((l, o) => {
|
|
8
8
|
function n() {
|
|
9
9
|
var t;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as T, t as R, ar as M, u as B, aw as E, aH as H, aI as z, aJ as U } from "./app-
|
|
2
|
-
import { u as D } from "./supplier-
|
|
3
|
-
import { P as F } from "./format-unit-display-
|
|
1
|
+
import { i as T, t as R, ar as M, u as B, aw as E, aH as H, aI as z, aJ as U } from "./app-Jh5wwLsF.js";
|
|
2
|
+
import { u as D } from "./supplier-By3gzRHW.js";
|
|
3
|
+
import { P as F } from "./format-unit-display-CYPC8_oX.js";
|
|
4
4
|
import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as V, openBlock as S, createElementBlock as I, normalizeStyle as $, createElementVNode as N, createVNode as J, withCtx as K, createBlock as g, createCommentVNode as O, Fragment as Q, renderList as X, unref as w } from "vue";
|
|
5
5
|
function Y(t, i, a) {
|
|
6
6
|
var o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as oe, mergeModels as j, useModel as se, computed as v, ref as P, watch as z, inject as ie, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as u, createVNode as M, withCtx as g, renderSlot as T, normalizeClass as V, toDisplayString as F, withDirectives as le, vModelText as ae, createCommentVNode as q, createTextVNode as ue, createBlock as W, Fragment as re, renderList as me } from "vue";
|
|
2
|
-
import { Z as I, I as k, O as L, K as ce, i as h, aF as de, t as pe, J as fe, al as ve, aD as be, aC as ye } from "./app-
|
|
2
|
+
import { Z as I, I as k, O as L, K as ce, i as h, aF as de, t as pe, J as fe, al as ve, aD as be, aC as ye } from "./app-Jh5wwLsF.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
function E() {
|
|
5
5
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
|
|
2
|
-
import { i as a, J as y } from "./app-
|
|
2
|
+
import { i as a, J as y } from "./app-Jh5wwLsF.js";
|
|
3
3
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
4
4
|
const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, h = { class: "flex-1 py-8 px-16" }, b = {
|
|
5
5
|
class: "flex-0 py-8 px-16",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { a as J, d as h, e as B, f as ye, D as oe, h as Q, G as be, l as _e, A as xe, H as ne,
|
|
3
|
-
import { useDialog as le, useSnackbar as Z, useProxiedModel as
|
|
1
|
+
import { ref as F, computed as C, defineComponent as Y, resolveComponent as S, openBlock as M, createBlock as O, withCtx as R, createElementVNode as x, createVNode as g, unref as l, createElementBlock as ee, toDisplayString as j, createTextVNode as te, watch as ue, isRef as ce, normalizeClass as de, normalizeStyle as me, createSlots as pe, Teleport as fe, normalizeProps as ve, guardReactiveProps as ge } from "vue";
|
|
2
|
+
import { a as J, d as h, e as B, f as ye, D as oe, h as Q, G as be, l as _e, A as xe, H as ne, p as se, u as ke, z as he, _ as we, B as Se, C as Ie, E as ae } from "./app-Jh5wwLsF.js";
|
|
3
|
+
import { useDialog as le, useSnackbar as Z, useProxiedModel as Ce, useBreakpoints as Fe } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as W } from "@feedmepos/mf-common";
|
|
5
5
|
import { defineStore as ie, storeToRefs as re } from "pinia";
|
|
6
6
|
import "./array-hChJVZLE.js";
|
|
7
7
|
const X = ie(
|
|
8
8
|
"ingredientGroupactions",
|
|
9
9
|
function() {
|
|
10
|
-
const c = le(), w = Z(), o = J(), { t: r } = W(), i =
|
|
10
|
+
const c = le(), w = Z(), o = J(), { t: r } = W(), i = F();
|
|
11
11
|
function p() {
|
|
12
12
|
const d = {
|
|
13
13
|
modelValue: {},
|
|
@@ -80,7 +80,7 @@ const X = ie(
|
|
|
80
80
|
), Ge = ie(
|
|
81
81
|
"ingredientGroupTable",
|
|
82
82
|
function() {
|
|
83
|
-
const c =
|
|
83
|
+
const c = F(!1), w = Z(), o = J(), r = X();
|
|
84
84
|
async function i() {
|
|
85
85
|
c.value = !0;
|
|
86
86
|
try {
|
|
@@ -107,7 +107,7 @@ const X = ie(
|
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
const v =
|
|
110
|
+
const v = C(() => [
|
|
111
111
|
{
|
|
112
112
|
accessorKey: "name",
|
|
113
113
|
header: () => "Name"
|
|
@@ -160,7 +160,7 @@ const X = ie(
|
|
|
160
160
|
},
|
|
161
161
|
emits: ["validation-success"],
|
|
162
162
|
setup(U, { expose: c, emit: w }) {
|
|
163
|
-
const o = be("modelValue"), r = w, i = J(), p = le(), { t: v } = W(), f =
|
|
163
|
+
const o = be("modelValue"), r = w, i = J(), p = le(), { t: v } = W(), f = F();
|
|
164
164
|
c({
|
|
165
165
|
validateInputs: () => {
|
|
166
166
|
var a;
|
|
@@ -175,7 +175,7 @@ const X = ie(
|
|
|
175
175
|
return (a = f.value) == null ? void 0 : a.resetInputs();
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
|
-
const y =
|
|
178
|
+
const y = C(() => i.skus.groupBy((a) => a.unit._id));
|
|
179
179
|
function G() {
|
|
180
180
|
var s;
|
|
181
181
|
const a = i.skus.filter((n) => {
|
|
@@ -364,7 +364,7 @@ const X = ie(
|
|
|
364
364
|
},
|
|
365
365
|
emits: ["update:show"],
|
|
366
366
|
setup(U) {
|
|
367
|
-
const c = U, w = J(), o = Z(), { t: r } = W(), i =
|
|
367
|
+
const c = U, w = J(), o = Z(), { t: r } = W(), i = Ce(c, "show"), p = F({}), v = F(`${Math.random()}`);
|
|
368
368
|
ue(
|
|
369
369
|
() => c.show,
|
|
370
370
|
(t) => {
|
|
@@ -376,7 +376,7 @@ const X = ie(
|
|
|
376
376
|
}), v.value = `${Math.random()}`);
|
|
377
377
|
}
|
|
378
378
|
);
|
|
379
|
-
const f =
|
|
379
|
+
const f = C(() => {
|
|
380
380
|
switch (c.mode) {
|
|
381
381
|
case h.READ:
|
|
382
382
|
return "";
|
|
@@ -386,7 +386,7 @@ const X = ie(
|
|
|
386
386
|
return r("inventory.ingredient.create.title");
|
|
387
387
|
}
|
|
388
388
|
return "";
|
|
389
|
-
}), y =
|
|
389
|
+
}), y = C(() => {
|
|
390
390
|
switch (c.mode) {
|
|
391
391
|
case h.READ:
|
|
392
392
|
return "";
|
|
@@ -396,7 +396,7 @@ const X = ie(
|
|
|
396
396
|
return r("common.add");
|
|
397
397
|
}
|
|
398
398
|
return "";
|
|
399
|
-
}), G =
|
|
399
|
+
}), G = F(), b = F(!1);
|
|
400
400
|
async function d() {
|
|
401
401
|
b.value = !0;
|
|
402
402
|
const t = B(p.value);
|
|
@@ -494,7 +494,7 @@ const X = ie(
|
|
|
494
494
|
}), ze = { class: "flex flex-col py-8" }, Le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ne = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Qe = /* @__PURE__ */ Y({
|
|
495
495
|
__name: "IngredientGroupView",
|
|
496
496
|
setup(U) {
|
|
497
|
-
const c = J(), w =
|
|
497
|
+
const c = J(), w = C(() => c.skuGroups), o = ke(), { t: r } = W(), {
|
|
498
498
|
createIngredientGroup: i,
|
|
499
499
|
updateIngredientGroup: p,
|
|
500
500
|
importIngredientGroups: v,
|
|
@@ -510,7 +510,7 @@ const X = ie(
|
|
|
510
510
|
return f();
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
const a =
|
|
513
|
+
const a = F(""), s = F(!1), n = C(() => s.value || G.value), { breakpoints: t } = Fe(), e = C(() => t.value.xs || t.value.sm), u = C(() => e.value ? 10 : 20), _ = he(), m = C(() => [
|
|
514
514
|
{
|
|
515
515
|
label: r("inventory.ingredient.create.title"),
|
|
516
516
|
value: "add",
|