@feedmepos/mf-inventory-portal 0.0.25-dev.41 → 0.0.25-dev.43
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-DXrm29Xt.js} +2 -2
- package/dist/{ApprovalView-CstNyWuq.js → ApprovalView-CdkO81D-.js} +17 -17
- package/dist/{BindingsDialog-B2POgTvT.js → BindingsDialog-C3LDf8O0.js} +2 -2
- package/dist/{BindingsPicker-Bp8wNAW0.js → BindingsPicker-WoF8gzVL.js} +1 -1
- package/dist/{BindingsTable-C5ToIwJw.js → BindingsTable-BiMt6dtC.js} +1 -1
- package/dist/{ClosingDraftView-B5KgTQOB.js → ClosingDraftView-DoQT7i-e.js} +2 -2
- package/dist/{ClosingTemplateView-B6gT5-A_.js → ClosingTemplateView-BQTlHSOP.js} +2 -2
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BcedQV1P.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BsNSEdH_.js} +3 -3
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Bc6eTKR-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-EAfn_gI2.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C76t4wed.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bt0MPl6I.js} +1 -1
- package/dist/{IngredientGroupView-Bo18pDpd.js → IngredientGroupView-KPqbuUdq.js} +14 -14
- package/dist/{IngredientsView-D4Tx5h1N.js → IngredientsView-btkrzfUb.js} +492 -504
- package/dist/{IntegrationView-5cTVErK7.js → IntegrationView-CPganv5I.js} +1 -1
- package/dist/{InventoryBindingForm-D_JUD2PF.js → InventoryBindingForm-Cm69z42D.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Co33Sz1A.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-ByzbgoCW.js} +3 -3
- package/dist/{InventoryBindingSummary-DsQqzLxI.js → InventoryBindingSummary-C7EeAVAs.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKCHqrFd.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CtfmvGMA.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-NhSXPpV1.js → PremiumBadge.vue_vue_type_script_setup_true_lang-6RHBNS7-.js} +1 -1
- package/dist/{PublishView-CVReC-7J.js → PublishView-C7s9DTwV.js} +7 -7
- package/dist/{PurchaseOrderPrintPreview-kHtSdc_I.js → PurchaseOrderPrintPreview-Bp8w6vni.js} +1 -1
- package/dist/{ReceiveRequestView-JJdBl6jR.js → ReceiveRequestView-VMEuhH5P.js} +163 -161
- package/dist/{RecipeView-BAZzsPdQ.js → RecipeView-Dh0WI3gA.js} +21 -21
- package/dist/{StockView-Dwzf7ewT.js → StockView-CQziShwK.js} +1526 -1539
- package/dist/{SupplierView-BoTsfsYX.js → SupplierView-BnXohTy2.js} +441 -453
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-C2ZBmCNY.js → TransferDetails.vue_vue_type_script_setup_true_lang-DCjg5ptE.js} +4 -4
- package/dist/{TransferTemplateView-BLO1uHet.js → TransferTemplateView-BNIFmGRO.js} +68 -68
- package/dist/{UnitView-DfJ-huaQ.js → UnitView-B0QQr63Q.js} +3 -3
- package/dist/{WarehouseView-h5_GDAYM.js → WarehouseView-COD-NsAu.js} +1 -1
- package/dist/{app-CRWxxzQN.js → app-Bs9204PI.js} +3475 -3454
- package/dist/app.js +1 -1
- package/dist/{decimal-BDt03-KF.js → decimal-Cwq4YmHr.js} +1 -1
- package/dist/{feature-D_c7uzcV.js → feature-aOw02w8c.js} +1 -1
- package/dist/{format-unit-display-CsfojMpU.js → format-unit-display-B0097Dbk.js} +2 -2
- package/dist/helper/country.d.ts +1 -0
- package/dist/{index-BbwuhE-c.js → index-DIrzS8cU.js} +2 -2
- package/dist/{stock-DSyF_gBG.js → stock-DqesOQBC.js} +1 -1
- package/dist/stores/helper/generate-backend-urls.d.ts +0 -1
- package/dist/{supplier-BLqNIQG9.js → supplier-BGNg5AzJ.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BSxFzWSk.js → use-ingredient-select-dialog-B3WOWtBJ.js} +1 -1
- package/dist/{use-inventory-binding-dialog-DyIQsTTm.js → use-inventory-binding-dialog-CTu19_Bj.js} +1 -1
- package/dist/{vue-i18n-ZO6qpjnw.js → vue-i18n-uf0PuoRa.js} +79 -79
- package/package.json +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as H, ref as
|
|
2
|
-
import { a as A, d as V, e as O, S as ye, f as ge, D as ee, h as Y, i as q, F as te, l as be, U as _e, A as we,
|
|
1
|
+
import { defineComponent as H, ref as E, onMounted as re, resolveComponent as S, openBlock as x, createElementBlock as $, Fragment as ie, createElementVNode as R, toDisplayString as ce, createVNode as v, createCommentVNode as j, computed as F, watch as ue, createBlock as T, withCtx as P, unref as b, isRef as Z, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
|
|
2
|
+
import { a as A, d as V, e as O, S as ye, f as ge, D as ee, h as Y, i as q, F as te, l as be, U as _e, A as we, p as ne, q as Re, s as he, r as Ve, u as xe, z as Ce, _ as Ee, B as Se, C as Fe, E as oe } from "./app-Bs9204PI.js";
|
|
3
3
|
import { useDialog as ke, useSnackbar as se, useProxiedModel as ae, useBreakpoints as De } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Ae, _ as Ie } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
|
-
import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bt0MPl6I.js";
|
|
6
6
|
import { defineStore as $e, storeToRefs as Pe } from "pinia";
|
|
7
7
|
import { useI18n as K } from "@feedmepos/mf-common";
|
|
8
|
-
import { _ as Be } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as Be } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-ByzbgoCW.js";
|
|
9
9
|
import { _ as Te } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
10
10
|
const Me = {
|
|
11
11
|
key: 0,
|
|
@@ -19,7 +19,7 @@ const Me = {
|
|
|
19
19
|
bindedItems: {}
|
|
20
20
|
},
|
|
21
21
|
setup(h) {
|
|
22
|
-
const p = h, y =
|
|
22
|
+
const p = h, y = E(p.bindedItems || []), a = E(!1);
|
|
23
23
|
re(() => {
|
|
24
24
|
s();
|
|
25
25
|
});
|
|
@@ -52,7 +52,7 @@ const Me = {
|
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
}), G = $e("recipeForm", function() {
|
|
55
|
-
const p = ke(), y = se(), a = A(), s =
|
|
55
|
+
const p = ke(), y = se(), a = A(), s = E(!1), c = E();
|
|
56
56
|
function i() {
|
|
57
57
|
const n = {
|
|
58
58
|
recipe: {},
|
|
@@ -190,9 +190,9 @@ function Le() {
|
|
|
190
190
|
return u.map((n) => ({
|
|
191
191
|
recipe: n.name,
|
|
192
192
|
ingredients: c(n.contains, /* @__PURE__ */ new Set([n._id])).map((l) => {
|
|
193
|
-
var _, g, r, m,
|
|
193
|
+
var _, g, r, m, C;
|
|
194
194
|
const t = d.skuById[l.id];
|
|
195
|
-
return t ? l.recipeIds.slice(1).length ? `(linked recipe ${(_ = d.recipeById[l.recipeIds.at(-1) ?? ""]) == null ? void 0 : _.name}) ${t.name} (${q(l.amount)}${((g = l.measurement) == null ? void 0 : g.abbrev) ?? ((r = t == null ? void 0 : t.unit) == null ? void 0 : r.abbrev)})` : `${t.name} (${q(l.amount)}${((m = l.measurement) == null ? void 0 : m.abbrev) ?? ((
|
|
195
|
+
return t ? l.recipeIds.slice(1).length ? `(linked recipe ${(_ = d.recipeById[l.recipeIds.at(-1) ?? ""]) == null ? void 0 : _.name}) ${t.name} (${q(l.amount)}${((g = l.measurement) == null ? void 0 : g.abbrev) ?? ((r = t == null ? void 0 : t.unit) == null ? void 0 : r.abbrev)})` : `${t.name} (${q(l.amount)}${((m = l.measurement) == null ? void 0 : m.abbrev) ?? ((C = t == null ? void 0 : t.unit) == null ? void 0 : C.abbrev)})` : null;
|
|
196
196
|
}).filter((l) => l).join(", "),
|
|
197
197
|
original: n
|
|
198
198
|
}));
|
|
@@ -248,7 +248,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
|
|
|
248
248
|
function d() {
|
|
249
249
|
s("click:submit");
|
|
250
250
|
}
|
|
251
|
-
const n =
|
|
251
|
+
const n = E();
|
|
252
252
|
p({
|
|
253
253
|
validateInputs: () => {
|
|
254
254
|
var e, o;
|
|
@@ -263,7 +263,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
|
|
|
263
263
|
(o = (e = n.value) == null ? void 0 : e.resetInputs) == null || o.call(e);
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
|
-
const l = A(), t =
|
|
266
|
+
const l = A(), t = E([]), _ = E(!1), g = E(!1);
|
|
267
267
|
ue(_, async (e) => {
|
|
268
268
|
r(e);
|
|
269
269
|
});
|
|
@@ -273,7 +273,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
|
|
|
273
273
|
}
|
|
274
274
|
const m = F(
|
|
275
275
|
() => l.recipes.map((e) => ({ label: e.name, value: e.name }))
|
|
276
|
-
),
|
|
276
|
+
), C = E((k = a.modelValue) == null ? void 0 : k.name);
|
|
277
277
|
return (e, o) => {
|
|
278
278
|
const B = S("FmTextField"), I = S("FmCard"), D = S("FmSwitch"), M = S("FmSpacer"), U = S("FmCircularProgress"), N = S("FmForm");
|
|
279
279
|
return x(), T(N, {
|
|
@@ -290,7 +290,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
|
|
|
290
290
|
"onUpdate:modelValue": o[0] || (o[0] = (w) => i.value = w),
|
|
291
291
|
rules: [
|
|
292
292
|
b(be)(),
|
|
293
|
-
b(_e)(m.value,
|
|
293
|
+
b(_e)(m.value, C.value, (w) => `[${w.value}] already exists`)
|
|
294
294
|
],
|
|
295
295
|
"label-mark": "required"
|
|
296
296
|
}, null, 8, ["disabled", "label", "model-value", "rules"]),
|
|
@@ -379,7 +379,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
|
|
|
379
379
|
return s("common.add");
|
|
380
380
|
}
|
|
381
381
|
return "";
|
|
382
|
-
}), d =
|
|
382
|
+
}), d = E(), n = E(!1);
|
|
383
383
|
async function l() {
|
|
384
384
|
n.value = !0;
|
|
385
385
|
try {
|
|
@@ -432,7 +432,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
|
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
return (r, m) => {
|
|
435
|
-
const
|
|
435
|
+
const C = S("FmButton"), k = S("FmSideSheet");
|
|
436
436
|
return x(), T(k, {
|
|
437
437
|
"model-value": b(c),
|
|
438
438
|
"onUpdate:modelValue": m[3] || (m[3] = (e) => Z(c) ? c.value = e : null),
|
|
@@ -443,12 +443,12 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
|
|
|
443
443
|
}, {
|
|
444
444
|
"side-sheet-footer": P(() => [
|
|
445
445
|
R("div", Oe, [
|
|
446
|
-
v(
|
|
446
|
+
v(C, {
|
|
447
447
|
loading: n.value,
|
|
448
448
|
label: u.value,
|
|
449
449
|
onClick: _
|
|
450
450
|
}, null, 8, ["loading", "label"]),
|
|
451
|
-
v(
|
|
451
|
+
v(C, {
|
|
452
452
|
disabled: n.value,
|
|
453
453
|
label: b(s)("common.close"),
|
|
454
454
|
variant: "tertiary",
|
|
@@ -495,14 +495,14 @@ function Qe() {
|
|
|
495
495
|
),
|
|
496
496
|
...l.map(
|
|
497
497
|
(t, _) => {
|
|
498
|
-
var g, r, m,
|
|
498
|
+
var g, r, m, C;
|
|
499
499
|
return [
|
|
500
500
|
!n.length && _ === 0 ? f.name : "",
|
|
501
501
|
"INGREDIENT",
|
|
502
502
|
(g = a[t.id]) == null ? void 0 : g.code,
|
|
503
503
|
(r = a[t.id]) == null ? void 0 : r.name,
|
|
504
504
|
q(t.amount),
|
|
505
|
-
t.measurement ? t.measurement.abbrev : (
|
|
505
|
+
t.measurement ? t.measurement.abbrev : (C = (m = a[t.id]) == null ? void 0 : m.unit) == null ? void 0 : C.abbrev
|
|
506
506
|
];
|
|
507
507
|
}
|
|
508
508
|
)
|
|
@@ -525,10 +525,10 @@ const We = { class: "flex flex-col py-8" }, Xe = { class: "fm-typo-en-body-lg-60
|
|
|
525
525
|
if (e === "export")
|
|
526
526
|
return Qe();
|
|
527
527
|
}
|
|
528
|
-
const t =
|
|
528
|
+
const t = E(""), _ = F(() => f.value), { breakpoints: g } = De(), r = F(() => g.value.xs || g.value.sm), m = F(() => r.value ? 10 : 20), C = Ce(), { t: k } = K();
|
|
529
529
|
return (e, o) => {
|
|
530
530
|
const B = S("FmTable");
|
|
531
|
-
return x(), T(
|
|
531
|
+
return x(), T(Ee, {
|
|
532
532
|
title: b(k)("inventory.recipe.title"),
|
|
533
533
|
actions: [
|
|
534
534
|
{
|
|
@@ -557,7 +557,7 @@ const We = { class: "flex flex-col py-8" }, Xe = { class: "fm-typo-en-body-lg-60
|
|
|
557
557
|
"onUpdate:search": o[0] || (o[0] = (I) => t.value = I)
|
|
558
558
|
}, null, 8, ["search"]),
|
|
559
559
|
(x(), T(B, {
|
|
560
|
-
style: me(b(
|
|
560
|
+
style: me(b(C).tableHeight),
|
|
561
561
|
"column-defs": b(u),
|
|
562
562
|
"row-data": n.value,
|
|
563
563
|
"search-value": t.value,
|