@feedmepos/mf-inventory-portal 0.0.23-dev.41 → 0.0.23-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-DW2K97Bb.js → App-Cr-n7HVf.js} +104 -98
- package/dist/{ApprovalView-BgSxdrwt.js → ApprovalView-BYHDmt9W.js} +5 -5
- package/dist/{BindingsDialog-CQtusdvp.js → BindingsDialog-CI0nYM1_.js} +2 -2
- package/dist/{BindingsPicker-BnEjRAah.js → BindingsPicker-BVzF3C8O.js} +3 -3
- package/dist/{BindingsTable-DpTPAef_.js → BindingsTable-B21_9L2o.js} +1 -1
- package/dist/ClosingDraftView-k2Vsz8-W.js +1225 -0
- package/dist/{ClosingTemplateView-CMTJHywt.js → ClosingTemplateView-BLda7tYC.js} +21 -21
- package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-zOmcCdDR.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-DUDOaU6F.js} +8 -8
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-mAPA5_sB.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CXuer_x5.js} +3 -3
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BjNpfucZ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Ds3yBf9U.js} +12 -12
- package/dist/{IngredientGroupView-CrEfiZvn.js → IngredientGroupView-CgZ4YT3i.js} +1 -1
- package/dist/{IngredientsView-BB8LQlU9.js → IngredientsView-tPERrF9O.js} +4 -4
- package/dist/{IntegrationView-D2wTkDyX.js → IntegrationView-CoF_rdWv.js} +1 -1
- package/dist/{InventoryBindingForm-DW7rJDc1.js → InventoryBindingForm-BSnofTIL.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ci8UI1eQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-4d9oz7Xh.js} +18 -18
- package/dist/{InventoryBindingSummary-B40KofiI.js → InventoryBindingSummary-qm9ZUFny.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DD7VT9MS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQY98Hj6.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BGuXTfn6.js → PremiumBadge.vue_vue_type_script_setup_true_lang-NUkiVop4.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-DQmx28Be.js → PurchaseOrderPrintPreview-CIWiq2NB.js} +1 -1
- package/dist/{ReceiveRequestView-CJknzKfd.js → ReceiveRequestView-Dgt3FeGb.js} +10 -10
- package/dist/{RecipeView-D5oWQ9Yd.js → RecipeView-CzWlx1Xv.js} +3 -3
- package/dist/{StockView-U59PHCy2.js → StockView-IPXGJNN8.js} +103 -103
- package/dist/{SupplierView-CLjjpTNZ.js → SupplierView-DuL3NXc0.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DLDDXnyG.js → TransferDetails.vue_vue_type_script_setup_true_lang-82Bu89OE.js} +43 -43
- package/dist/{TransferTemplateView-CFoVrPIX.js → TransferTemplateView-BEaRafuO.js} +25 -25
- package/dist/{UnitView-CAopphN_.js → UnitView-Cwo0mthQ.js} +14 -14
- package/dist/{WarehouseView-DUZku5U6.js → WarehouseView-DzjQrpyv.js} +140 -140
- package/dist/{app-0klJzLit.js → app-CpuFfqWF.js} +226 -226
- package/dist/app.js +1 -1
- package/dist/{decimal-Cu4rlnvU.js → decimal-bSGrDlvd.js} +1 -1
- package/dist/{feature-C1wCaXKQ.js → feature-D8aRYGen.js} +199 -183
- package/dist/{format-unit-display-CMa5UhY1.js → format-unit-display-D4gi2D-O.js} +58 -58
- package/dist/{index-HTBqkVVr.js → index-COeURijn.js} +3 -3
- package/dist/{index-BJaMpEVJ.js → index-Cn1ato-l.js} +1 -1
- package/dist/{stock-CB4yNRMO.js → stock-B1Rchi6n.js} +1 -1
- package/dist/stores/feature.d.ts +3 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-biIIXGyr.js → supplier-CeY_Gro-.js} +1 -1
- package/dist/{use-inventory-binding-dialog-BopoOOxB.js → use-inventory-binding-dialog-BXqY40wn.js} +1 -1
- package/package.json +1 -1
- package/dist/ClosingDraftView-CXKYLCZS.js +0 -1190
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as D, h as F, defineComponent as O, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Fe, toDisplayString as C, unref as v, createCommentVNode as K, createVNode as T, withCtx as P, Fragment as H, renderList as
|
|
2
|
-
import {
|
|
1
|
+
import { ref as D, h as F, defineComponent as O, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Fe, toDisplayString as C, unref as v, createCommentVNode as K, createVNode as T, withCtx as P, Fragment as H, renderList as W, computed as E, watch as Re, createSlots as Pe, createBlock as V, isRef as je, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as We, mergeProps as Je } from "vue";
|
|
2
|
+
import { W as qe, u as le, a8 as Qe, D as Se, h as N, f as Xe, e as Ae, a9 as oe, q as Ze, aa as Ee, r as Ue, a as ae, b as et, s as tt, v as Ve, w as nt, x as ot, d as z, E as j, G as st, ab as lt, l as at, B as Ne, A as rt, H as it, ac as ct, ad as ne, y as mt, _ as ut, z as dt } from "./app-CpuFfqWF.js";
|
|
3
3
|
import { useCoreStore as re, useI18n as B } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as pt, useSnackbar as Z, useDialog as ie, FmButtonVariant as De, components as L, useProxiedModel as ft, useBreakpoints as vt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Be, storeToRefs as Le } from "pinia";
|
|
@@ -95,7 +95,7 @@ const ee = qe((r, s) => {
|
|
|
95
95
|
accessorKey: "_id",
|
|
96
96
|
header: () => s("inventory.closing.table.createdAt"),
|
|
97
97
|
cell(y) {
|
|
98
|
-
return
|
|
98
|
+
return Qe(`${y.getValue()}`);
|
|
99
99
|
},
|
|
100
100
|
enableSorting: !0
|
|
101
101
|
},
|
|
@@ -170,7 +170,7 @@ const ee = qe((r, s) => {
|
|
|
170
170
|
Se[N.Edit],
|
|
171
171
|
Se[N.Delete]
|
|
172
172
|
];
|
|
173
|
-
return
|
|
173
|
+
return Xe(u, (n) => d(n, h));
|
|
174
174
|
},
|
|
175
175
|
enableSorting: !1,
|
|
176
176
|
size: 40,
|
|
@@ -553,7 +553,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
553
553
|
T(t, { "z-index": 50 }, {
|
|
554
554
|
content: P(() => [
|
|
555
555
|
_("ol", null, [
|
|
556
|
-
(k(!0), I(H, null,
|
|
556
|
+
(k(!0), I(H, null, W(o.errors, (i, d) => (k(), I("li", { key: d }, C(i), 1))), 128))
|
|
557
557
|
])
|
|
558
558
|
]),
|
|
559
559
|
default: P(() => [
|
|
@@ -710,7 +710,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
710
710
|
]))
|
|
711
711
|
], 2),
|
|
712
712
|
g.value.length ? (k(), I("div", Ut, [
|
|
713
|
-
(k(!0), I(H, null,
|
|
713
|
+
(k(!0), I(H, null, W(g.value, ($, b) => (k(), I("div", {
|
|
714
714
|
key: b,
|
|
715
715
|
class: "flex gap-8 items-center"
|
|
716
716
|
}, [
|
|
@@ -729,7 +729,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
729
729
|
]), 1032, ["class", "label", "button-label"]),
|
|
730
730
|
d.value ? (k(), I("div", Nt, [
|
|
731
731
|
_("div", Bt, C(v(m)("inventory.ingredient.import.summary")), 1),
|
|
732
|
-
(k(!0), I(H, null,
|
|
732
|
+
(k(!0), I(H, null, W(f.value, (c, $) => (k(), V(Me, {
|
|
733
733
|
key: $,
|
|
734
734
|
name: c.template.name,
|
|
735
735
|
locations: c.template.locations,
|
|
@@ -737,7 +737,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
737
737
|
errors: c.errors,
|
|
738
738
|
type: "create"
|
|
739
739
|
}, null, 8, ["name", "locations", "items", "errors"]))), 128)),
|
|
740
|
-
(k(!0), I(H, null,
|
|
740
|
+
(k(!0), I(H, null, W(p.value, (c) => (k(), V(Me, {
|
|
741
741
|
key: c.template._id,
|
|
742
742
|
name: c.template.name,
|
|
743
743
|
locations: c.template.locations,
|
|
@@ -1135,7 +1135,7 @@ function zt(r) {
|
|
|
1135
1135
|
})
|
|
1136
1136
|
};
|
|
1137
1137
|
}
|
|
1138
|
-
const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt = { class: "flex-1 flex flex-col" }, Yt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Gt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Kt = { class: "flex flex-col gap-4" },
|
|
1138
|
+
const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt = { class: "flex-1 flex flex-col" }, Yt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Gt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Kt = { class: "flex flex-col gap-4" }, Wt = /* @__PURE__ */ O({
|
|
1139
1139
|
__name: "ClosingTemplateItem",
|
|
1140
1140
|
props: {
|
|
1141
1141
|
cellByColId: {},
|
|
@@ -1162,7 +1162,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
|
|
|
1162
1162
|
]),
|
|
1163
1163
|
_("div", Kt, [
|
|
1164
1164
|
t[0] || (t[0] = _("div", { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, null, -1)),
|
|
1165
|
-
(k(!0), I(H, null,
|
|
1165
|
+
(k(!0), I(H, null, W(l.value, (m) => {
|
|
1166
1166
|
var y, h, u;
|
|
1167
1167
|
return k(), I("div", {
|
|
1168
1168
|
key: m.id
|
|
@@ -1177,7 +1177,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
|
|
|
1177
1177
|
]);
|
|
1178
1178
|
};
|
|
1179
1179
|
}
|
|
1180
|
-
}),
|
|
1180
|
+
}), Jt = { class: "flex flex-col gap-16" }, qt = { class: "flex flex-col gap-24" }, Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center" }, Zt = { class: "flex-1 fm-typo-en-title-sm-600" }, en = { class: "flex flex-col gap-16" }, tn = { class: "flex items-center" }, nn = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, on = /* @__PURE__ */ O({
|
|
1181
1181
|
__name: "ClosingTemplateForm",
|
|
1182
1182
|
props: {
|
|
1183
1183
|
modelValue: {},
|
|
@@ -1270,7 +1270,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
|
|
|
1270
1270
|
disabled: n.disabled
|
|
1271
1271
|
}, {
|
|
1272
1272
|
default: P(() => [
|
|
1273
|
-
_("div",
|
|
1273
|
+
_("div", Jt, [
|
|
1274
1274
|
_("div", qt, [
|
|
1275
1275
|
T(x, {
|
|
1276
1276
|
label: v(e)("inventory.closing.form.name"),
|
|
@@ -1287,8 +1287,8 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
|
|
|
1287
1287
|
}, null, 8, ["label", "modelValue"])
|
|
1288
1288
|
])
|
|
1289
1289
|
]),
|
|
1290
|
-
_("div",
|
|
1291
|
-
_("div",
|
|
1290
|
+
_("div", Qt, [
|
|
1291
|
+
_("div", Xt, [
|
|
1292
1292
|
_("div", Zt, C(v(e)("inventory.closing.form.locations")), 1),
|
|
1293
1293
|
T(c, {
|
|
1294
1294
|
disabled: n.disabled,
|
|
@@ -1351,7 +1351,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
|
|
|
1351
1351
|
key: v(l).items.map((S) => S.sku._id).join(".")
|
|
1352
1352
|
}, {
|
|
1353
1353
|
default: P((S) => [
|
|
1354
|
-
T(
|
|
1354
|
+
T(Wt, {
|
|
1355
1355
|
row: M,
|
|
1356
1356
|
"cell-by-col-id": S
|
|
1357
1357
|
}, null, 8, ["row", "cell-by-col-id"])
|
|
@@ -1756,14 +1756,14 @@ const un = /* @__PURE__ */ ct(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1756
1756
|
onRowClick: (U) => v(l)(U)
|
|
1757
1757
|
}, {
|
|
1758
1758
|
default: P((U) => {
|
|
1759
|
-
var me, ue, de,
|
|
1759
|
+
var me, ue, de, J, pe, fe, ve, ge, q, ye, he, be, _e, xe, we, Q, ke, Te, $e, Ce, X, Ie;
|
|
1760
1760
|
return [
|
|
1761
1761
|
_("div", $n, [
|
|
1762
1762
|
_("div", Cn, [
|
|
1763
1763
|
_("div", In, [
|
|
1764
1764
|
T(v(j), {
|
|
1765
1765
|
render: (de = (ue = (me = U._id) == null ? void 0 : me.column) == null ? void 0 : ue.columnDef) == null ? void 0 : de.cell,
|
|
1766
|
-
props: (pe = (
|
|
1766
|
+
props: (pe = (J = U._id) == null ? void 0 : J.getContext) == null ? void 0 : pe.call(J)
|
|
1767
1767
|
}, null, 8, ["render", "props"])
|
|
1768
1768
|
]),
|
|
1769
1769
|
_("div", Sn, [
|
|
@@ -1782,14 +1782,14 @@ const un = /* @__PURE__ */ ct(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1782
1782
|
_("div", Mn, [
|
|
1783
1783
|
T(v(j), {
|
|
1784
1784
|
render: (we = (xe = (_e = U.ref) == null ? void 0 : _e.column) == null ? void 0 : xe.columnDef) == null ? void 0 : we.cell,
|
|
1785
|
-
props: (ke = (
|
|
1785
|
+
props: (ke = (Q = U.ref) == null ? void 0 : Q.getContext) == null ? void 0 : ke.call(Q)
|
|
1786
1786
|
}, null, 8, ["render", "props"])
|
|
1787
1787
|
])
|
|
1788
1788
|
]),
|
|
1789
1789
|
_("div", null, [
|
|
1790
1790
|
T(v(j), {
|
|
1791
1791
|
render: (Ce = ($e = (Te = U.status) == null ? void 0 : Te.column) == null ? void 0 : $e.columnDef) == null ? void 0 : Ce.cell,
|
|
1792
|
-
props: (Ie = (
|
|
1792
|
+
props: (Ie = (X = U.status) == null ? void 0 : X.getContext) == null ? void 0 : Ie.call(X)
|
|
1793
1793
|
}, null, 8, ["render", "props"])
|
|
1794
1794
|
])
|
|
1795
1795
|
])
|
|
@@ -1805,8 +1805,8 @@ const un = /* @__PURE__ */ ct(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1805
1805
|
_: 1
|
|
1806
1806
|
}, 8, ["title", "actions"]),
|
|
1807
1807
|
(k(), V(Ge, { to: "body" }, [
|
|
1808
|
-
T(un, Ke(
|
|
1809
|
-
T(rn,
|
|
1808
|
+
T(un, Ke(We(v(f))), null, 16),
|
|
1809
|
+
T(rn, Je(v(g), {
|
|
1810
1810
|
onSubmitted: A[2] || (A[2] = (S) => v(d).fetchTemplates())
|
|
1811
1811
|
}), null, 16)
|
|
1812
1812
|
]))
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as g, openBlock as a, createElementBlock as i, createElementVNode as m, toDisplayString as u, unref as h, Fragment as C, renderList as N, computed as v, resolveComponent as V, createVNode as S, createCommentVNode as w, h as B } from "vue";
|
|
2
|
-
import { i as b,
|
|
2
|
+
import { i as b, J as F, e as $ } from "./app-CpuFfqWF.js";
|
|
3
3
|
import { useI18n as k, useCoreStore as I } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as O } from "@feedmepos/ui-library";
|
|
5
5
|
const T = { class: "flex flex-col" }, z = { 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" }, j = { class: "flex-1 py-8 px-16" }, D = {
|
|
6
6
|
class: "flex-0 py-8 px-16",
|
|
7
7
|
style: { "flex-basis": "120px" }
|
|
8
|
-
}, E = { class: "flex-1 py-8 px-16" },
|
|
8
|
+
}, E = { class: "flex-1 py-8 px-16" }, M = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "flex-0 py-8 px-16",
|
|
11
11
|
style: { "flex-basis": "120px" }
|
|
12
|
-
},
|
|
12
|
+
}, K = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "flex-0 py-8 px-16",
|
|
15
15
|
style: { "flex-basis": "120px" }
|
|
16
|
-
},
|
|
16
|
+
}, q = /* @__PURE__ */ g({
|
|
17
17
|
__name: "IngredientBindedItem",
|
|
18
18
|
props: {
|
|
19
19
|
name: {},
|
|
@@ -42,14 +42,14 @@ const T = { class: "flex flex-col" }, z = { class: "flex flex-row fm-typo-en-bod
|
|
|
42
42
|
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
43
43
|
}, [
|
|
44
44
|
m("div", E, u(n.name), 1),
|
|
45
|
-
f(n) ? (a(), i("div",
|
|
45
|
+
f(n) ? (a(), i("div", M, u(l(n, n.unit)), 1)) : (a(), i("div", K, u(h(b)(n.amount, !1)), 1))
|
|
46
46
|
]))), 128))
|
|
47
47
|
]));
|
|
48
48
|
}
|
|
49
49
|
}), U = {
|
|
50
50
|
key: 0,
|
|
51
51
|
class: "flex flex-col gap-16"
|
|
52
|
-
},
|
|
52
|
+
}, G = /* @__PURE__ */ g({
|
|
53
53
|
__name: "FmCustomAttribute",
|
|
54
54
|
props: {
|
|
55
55
|
entity: {},
|
|
@@ -137,6 +137,6 @@ const T = { class: "flex flex-col" }, z = { class: "flex flex-row fm-typo-en-bod
|
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
export {
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
q as _,
|
|
141
|
+
G as a
|
|
142
142
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as k, t as B, an as w, u as H, as as I, aC as R, aD as M } from "./app-
|
|
2
|
-
import { u as j } from "./supplier-
|
|
3
|
-
import { P as S } from "./format-unit-display-
|
|
1
|
+
import { i as k, t as B, an as w, u as H, as as I, aC as R, aD as M } from "./app-CpuFfqWF.js";
|
|
2
|
+
import { u as j } from "./supplier-CeY_Gro-.js";
|
|
3
|
+
import { P as S } from "./format-unit-display-D4gi2D-O.js";
|
|
4
4
|
import { computed as y, defineComponent as $, mergeModels as W, useModel as J, resolveComponent as U, openBlock as T, createElementBlock as A, normalizeStyle as K, createElementVNode as D, createVNode as Q, withCtx as X, createBlock as x, createCommentVNode as N, Fragment as Y, renderList as Z, unref as V } from "vue";
|
|
5
5
|
function z(l, r, e) {
|
|
6
6
|
var s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as oe, mergeModels as
|
|
2
|
-
import {
|
|
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 h, renderSlot as T, normalizeClass as V, toDisplayString as x, 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 g, aA as de, t as pe, J as fe, ag as ve, ay as be, ax as ye } from "./app-CpuFfqWF.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
function E() {
|
|
5
5
|
return {
|
|
@@ -54,9 +54,9 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
54
54
|
}, Ue = {
|
|
55
55
|
class: "flex items-center",
|
|
56
56
|
style: { "pointer-events": "none" }
|
|
57
|
-
},
|
|
57
|
+
}, Oe = /* @__PURE__ */ oe({
|
|
58
58
|
__name: "FmUnitInput",
|
|
59
|
-
props: /* @__PURE__ */
|
|
59
|
+
props: /* @__PURE__ */ j({
|
|
60
60
|
modelValue: {},
|
|
61
61
|
unit: {},
|
|
62
62
|
rules: {},
|
|
@@ -103,7 +103,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
103
103
|
modelValue: {},
|
|
104
104
|
modelModifiers: {}
|
|
105
105
|
}),
|
|
106
|
-
emits: /* @__PURE__ */
|
|
106
|
+
emits: /* @__PURE__ */ j(["update:amount", "update:measurement"], ["update:modelValue"]),
|
|
107
107
|
setup(l, { emit: d }) {
|
|
108
108
|
const t = l, r = d, s = se(l, "modelValue"), F = k(), B = v(() => {
|
|
109
109
|
var n;
|
|
@@ -120,7 +120,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
120
120
|
amount: pe(+e, o)
|
|
121
121
|
}), r("update:amount", e);
|
|
122
122
|
});
|
|
123
|
-
const
|
|
123
|
+
const J = Symbol.for("fm:form-state"), D = ie(J, null), A = v(() => t.disabled ?? (D == null ? void 0 : D.getDisabled()) ?? !1), K = P(), R = P(!1), O = P(!1), Q = v(() => R.value || O.value), X = v(() => {
|
|
124
124
|
var a;
|
|
125
125
|
const i = [...t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +g(o.conversion) != 1).groupBy(
|
|
126
126
|
(o) => `${o.abbrev}${g(o.conversion)}`
|
|
@@ -179,7 +179,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
179
179
|
H(),
|
|
180
180
|
typeof t.precision == "number" ? G(t.precision) : G(t.unit)
|
|
181
181
|
] : [], ...Y.value]);
|
|
182
|
-
function
|
|
182
|
+
function $(e) {
|
|
183
183
|
const n = t.precision ?? B.value, a = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, o = e.toFixed(a), p = o.includes(".") ? o.replace(/0+$/, "") : o;
|
|
184
184
|
return p.endsWith(".") ? p.slice(0, p.length - 1) : p;
|
|
185
185
|
}
|
|
@@ -187,13 +187,13 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
187
187
|
if (!t.stepper)
|
|
188
188
|
return;
|
|
189
189
|
const e = +c.value + +g(t.stepper);
|
|
190
|
-
c.value =
|
|
190
|
+
c.value = $(e);
|
|
191
191
|
}
|
|
192
192
|
function ne() {
|
|
193
193
|
if (!t.stepper)
|
|
194
194
|
return;
|
|
195
195
|
const e = +c.value - +g(t.stepper);
|
|
196
|
-
c.value =
|
|
196
|
+
c.value = $(e);
|
|
197
197
|
}
|
|
198
198
|
return (e, n) => {
|
|
199
199
|
const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), p = b("FmMenu"), w = b("FmTooltip"), N = b("FmField"), S = b("FmFormGroup");
|
|
@@ -224,7 +224,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
224
224
|
key: 1,
|
|
225
225
|
type: "text",
|
|
226
226
|
ref_key: "inputRef",
|
|
227
|
-
ref:
|
|
227
|
+
ref: K,
|
|
228
228
|
onFocus: n[0] || (n[0] = () => R.value = !0),
|
|
229
229
|
onBlur: n[1] || (n[1] = () => R.value = !1),
|
|
230
230
|
"onUpdate:modelValue": n[2] || (n[2] = (m) => c.value = m),
|
|
@@ -248,7 +248,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
248
248
|
default: h(() => [
|
|
249
249
|
e.disableUnit ? (f(), y("div", Pe, x(C.value), 1)) : (f(), W(p, {
|
|
250
250
|
key: 1,
|
|
251
|
-
onMenuChanged: n[3] || (n[3] = (m) =>
|
|
251
|
+
onMenuChanged: n[3] || (n[3] = (m) => O.value = m),
|
|
252
252
|
"z-index": 500,
|
|
253
253
|
placement: e.placement,
|
|
254
254
|
disabled: e.disabled
|
|
@@ -320,7 +320,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
320
320
|
});
|
|
321
321
|
export {
|
|
322
322
|
Se as F,
|
|
323
|
-
|
|
323
|
+
Oe as _,
|
|
324
324
|
Ve as a,
|
|
325
325
|
Le as b,
|
|
326
326
|
H as c,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as C, computed as F, 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,
|
|
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, o as se, u as ke, y as he, _ as we, z as Se, B as Ie, E as ae } from "./app-CpuFfqWF.js";
|
|
3
3
|
import { useDialog as le, useSnackbar as Z, useProxiedModel as Fe, useBreakpoints as Ce } 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";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ref as j, defineComponent as oe, computed as S, resolveComponent as C, openBlock as f, createBlock as B, withCtx as V, createVNode as p, unref as m, createElementBlock as T, Fragment as Q, createElementVNode as d, createCommentVNode as Y, renderSlot as ve, createTextVNode as Ie, toDisplayString as D, normalizeClass as te, onMounted as et, watch as He, renderList as ue, isRef as Re, createSlots as Ye, normalizeStyle as tt, Teleport as Ae, normalizeProps as nt, guardReactiveProps as ot } from "vue";
|
|
2
|
-
import { a as le, d as K, e as je, S as lt, f as at, D as Te, h as fe, A as ge, b as Me, i as Oe, j as be, t as qe, k as ce, l as xe, U as rt, m as st, M as it, n as De, C as ke, o as Pe, p as Ge, q as ut, r as We, s as dt, v as mt, I as ct, w as pt, x as vt, u as ft, y as yt,
|
|
2
|
+
import { a as le, d as K, e as je, S as lt, f as at, D as Te, h as fe, A as ge, b as Me, i as Oe, j as be, t as qe, k as ce, l as xe, U as rt, m as st, M as it, n as De, C as ke, o as Pe, p as Ge, q as ut, r as We, s as dt, v as mt, I as ct, w as pt, x as vt, u as ft, y as yt, _ as gt, z as bt, B as ht, E as Be } from "./app-CpuFfqWF.js";
|
|
3
3
|
import { useDialog as Ke, useSnackbar as he, useProxiedModel as Ne, useDialogChild as _t, useBreakpoints as xt } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as kt, _ as Vt } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { useI18n as ae, useCoreStore as pe } from "@feedmepos/mf-common";
|
|
6
6
|
import { defineStore as St, storeToRefs as Ct } from "pinia";
|
|
7
7
|
import { g as wt, _ as Ve, S as Se } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
8
|
-
import { _ as Ft } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as Ce, a as It } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as Ze } from "./feature-
|
|
8
|
+
import { _ as Ft } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-4d9oz7Xh.js";
|
|
9
|
+
import { _ as Ce, a as It } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-DUDOaU6F.js";
|
|
10
|
+
import { u as Ze } from "./feature-D8aRYGen.js";
|
|
11
11
|
import { _ as we } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
12
12
|
import "./array-hChJVZLE.js";
|
|
13
13
|
const Fe = St("ingredientForm", function() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as Q, computed as R, defineComponent as F, mergeModels as ge, useModel as pe, onMounted as ve, resolveComponent as O, openBlock as C, createElementBlock as V, createElementVNode as c, toDisplayString as L, unref as b, createVNode as M, createBlock as Z, withCtx as J, Fragment as G, renderList as U, normalizeClass as q, normalizeStyle as Ie, createSlots as be, createCommentVNode as K, withModifiers as ye, reactive as te, watch as ne, isRef as ie, Teleport as oe } from "vue";
|
|
2
2
|
import { E as Ee } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import { u as _, aJ as se, b as re, aK as le, aD as he, e as T,
|
|
3
|
+
import { u as _, aJ as se, b as re, aK as le, aD as he, e as T, _ as Be, z as Ce } from "./app-CpuFfqWF.js";
|
|
4
4
|
import { useSnackbar as ae, useDialogChild as Se, useDialog as de, useProxiedModel as ue, useBreakpoints as $ } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Y, useCoreStore as ke } from "@feedmepos/mf-common";
|
|
6
6
|
function xe() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as J, computed as _, reactive as Q, resolveComponent as x, openBlock as m, createElementBlock as y, createVNode as c, createElementVNode as n, toDisplayString as v, unref as l, createBlock as V, createCommentVNode as g, Fragment as R, renderList as
|
|
2
|
-
import { a as Z, aM as ee, aN as ne, i as B, aO as oe,
|
|
3
|
-
import { u as le } from "./use-inventory-binding-dialog-
|
|
4
|
-
import { _ as se, c as re, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as J, computed as _, reactive as Q, resolveComponent as x, openBlock as m, createElementBlock as y, createVNode as c, createElementVNode as n, toDisplayString as v, unref as l, createBlock as V, createCommentVNode as g, Fragment as R, renderList as S, withCtx as T, nextTick as X } from "vue";
|
|
2
|
+
import { a as Z, aM as ee, aN as ne, i as B, aO as oe, L as N, K as te, F as ie } from "./app-CpuFfqWF.js";
|
|
3
|
+
import { u as le } from "./use-inventory-binding-dialog-BXqY40wn.js";
|
|
4
|
+
import { _ as se, c as re, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Ds3yBf9U.js";
|
|
5
5
|
import { useI18n as ae } from "@feedmepos/mf-common";
|
|
6
6
|
const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-16" }, ce = { class: "flex items-center" }, pe = { class: "flex-1 fm-typo-en-title-sm-600" }, fe = { class: "flex flex-col" }, ye = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, ve = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, _e = {
|
|
7
7
|
class: "flex items-center w-full border-b border-fm-color-neutral-gray-100",
|
|
@@ -15,10 +15,10 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
15
15
|
}, Be = { class: "flex flex-col gap-16" }, ke = { class: "flex items-center" }, Fe = { class: "flex-1 fm-typo-en-title-sm-600" }, Ie = { class: "flex flex-col" }, we = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Ue = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ee = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, Ce = {
|
|
16
16
|
class: "flex items-center w-full",
|
|
17
17
|
style: { "min-height": "48px" }
|
|
18
|
-
}, Ae = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Re = { class: "line-clamp-1" },
|
|
18
|
+
}, Ae = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Re = { class: "line-clamp-1" }, Se = { class: "w-[150px]" }, Te = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "w-[52px]"
|
|
21
|
-
},
|
|
21
|
+
}, Ne = { class: "flex flex-col px-12 pb-4" }, ze = /* @__PURE__ */ J({
|
|
22
22
|
__name: "InventoryBindingForm",
|
|
23
23
|
props: {
|
|
24
24
|
id: {},
|
|
@@ -38,12 +38,12 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
38
38
|
contains: s.modelValue
|
|
39
39
|
} : t),
|
|
40
40
|
skus: h.value
|
|
41
|
-
}).inventoryBindings.filter((t) => t.error).filter((t) => t.reason === ne.enum.circularDependency)),
|
|
41
|
+
}).inventoryBindings.filter((t) => t.error).filter((t) => t.reason === ne.enum.circularDependency)), K = _(
|
|
42
42
|
() => new Set(w.value.map((e) => {
|
|
43
43
|
var o;
|
|
44
44
|
return (o = e.bindingPaths[0]) == null ? void 0 : o.id;
|
|
45
45
|
}))
|
|
46
|
-
),
|
|
46
|
+
), D = _(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: $, promptRecipesBinding: z } = le();
|
|
47
47
|
async function G() {
|
|
48
48
|
if (s.iframeMode) {
|
|
49
49
|
f("click:pick-inventory-bindings", "RECIPE");
|
|
@@ -144,20 +144,20 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
144
144
|
o[0] || (o[0] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
145
145
|
o[1] || (o[1] = n("div", { class: "w-[52px]" }, null, -1))
|
|
146
146
|
]),
|
|
147
|
-
(m(!0), y(R, null,
|
|
147
|
+
(m(!0), y(R, null, S(D.value, (i) => (m(), V(t, {
|
|
148
148
|
key: i.id,
|
|
149
149
|
disabled: e.disabled,
|
|
150
150
|
modelValue: +l(B)(i.amount ?? { amount: 1, precision: 0 }),
|
|
151
|
-
rules: [l(oe)(0), l(
|
|
151
|
+
rules: [l(oe)(0), l(N)(0)]
|
|
152
152
|
}, {
|
|
153
|
-
default:
|
|
153
|
+
default: T(({ invalid: k }) => {
|
|
154
154
|
var b;
|
|
155
155
|
return [
|
|
156
156
|
n("div", _e, [
|
|
157
157
|
n("div", ge, [
|
|
158
158
|
n("div", be, [
|
|
159
159
|
n("div", null, v((b = I.value.find((u) => u._id === i.id)) == null ? void 0 : b.name), 1),
|
|
160
|
-
|
|
160
|
+
K.value.has(i.id) ? (m(), y("div", xe, [
|
|
161
161
|
c(d, {
|
|
162
162
|
name: "error",
|
|
163
163
|
color: "system-error-400",
|
|
@@ -212,7 +212,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
212
212
|
n("div", Ee, v(l(p)("inventory.inventoryBindings.amount")), 1),
|
|
213
213
|
o[3] || (o[3] = n("div", { class: "w-[52px]" }, null, -1))
|
|
214
214
|
]),
|
|
215
|
-
(m(!0), y(R, null,
|
|
215
|
+
(m(!0), y(R, null, S(U.value, (i, k) => {
|
|
216
216
|
var b;
|
|
217
217
|
return m(), y("div", {
|
|
218
218
|
key: i.id,
|
|
@@ -229,7 +229,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
229
229
|
"hide-arrow": !0,
|
|
230
230
|
"z-index": 50
|
|
231
231
|
}, {
|
|
232
|
-
default:
|
|
232
|
+
default: T(() => [
|
|
233
233
|
c(d, {
|
|
234
234
|
name: "error",
|
|
235
235
|
size: "sm",
|
|
@@ -239,7 +239,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
239
239
|
_: 1
|
|
240
240
|
}, 8, ["content"])) : g("", !0)
|
|
241
241
|
]),
|
|
242
|
-
n("div",
|
|
242
|
+
n("div", Se, [
|
|
243
243
|
c(se, {
|
|
244
244
|
"model-value": O(i),
|
|
245
245
|
"onUpdate:modelValue": (u) => Y(i.id, u, e.modelValue),
|
|
@@ -250,7 +250,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
250
250
|
disabled: e.readonly
|
|
251
251
|
}, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
|
|
252
252
|
]),
|
|
253
|
-
e.readonly ? g("", !0) : (m(), y("div",
|
|
253
|
+
e.readonly ? g("", !0) : (m(), y("div", Te, [
|
|
254
254
|
c(r, {
|
|
255
255
|
disabled: e.disabled,
|
|
256
256
|
type: "button",
|
|
@@ -260,10 +260,10 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
260
260
|
}, null, 8, ["disabled", "onClick"])
|
|
261
261
|
]))
|
|
262
262
|
]),
|
|
263
|
-
n("div",
|
|
263
|
+
n("div", Ne, [
|
|
264
264
|
c(t, {
|
|
265
265
|
modelValue: +l(B)(i.amount ?? { amount: 1, precision: 0 }),
|
|
266
|
-
rules: [l(
|
|
266
|
+
rules: [l(N)(0)]
|
|
267
267
|
}, null, 8, ["modelValue", "rules"]),
|
|
268
268
|
c(t, {
|
|
269
269
|
modelValue: W(i),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as s, resolveComponent as c, openBlock as m, createBlock as d, h as g } from "vue";
|
|
2
2
|
import { useI18n as p } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as u } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as r } from "./app-
|
|
4
|
+
import { F as r } from "./app-CpuFfqWF.js";
|
|
5
5
|
const B = /* @__PURE__ */ s({
|
|
6
6
|
__name: "InventoryBindingSummary",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as y, computed as V, ref as w, watch as h, resolveComponent as u, openBlock as F, createBlock as A, withCtx as s, createVNode as g, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { K as d } from "./app-CpuFfqWF.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { av as d, aw as f,
|
|
1
|
+
import { av as d, aw as f, W as _, u as h } from "./app-CpuFfqWF.js";
|
|
2
2
|
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
3
3
|
import { ref as v, defineComponent as y, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as S, createVNode as l, withCtx as x } from "vue";
|
|
4
4
|
function w(e, t) {
|
package/dist/{PurchaseOrderPrintPreview-DQmx28Be.js → PurchaseOrderPrintPreview-CIWiq2NB.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import { aq as y,
|
|
3
|
+
import { aq as y, ac as C } from "./app-CpuFfqWF.js";
|
|
4
4
|
const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, q = { class: "text-right" }, D = { class: "sub-header" }, T = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
|
|
5
5
|
class: "text-left",
|
|
6
6
|
style: { width: "20%" }
|