@feedmepos/mf-inventory-portal 1.2.10-dev.3 → 1.2.10-dev.4
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-D9otYMgh.js → App-DE0rygXX.js} +1 -1
- package/dist/{ApprovalView-Bue46U6e.js → ApprovalView-9H9G2OWv.js} +17 -17
- package/dist/{BindingsDialog-Xleskmvg.js → BindingsDialog-BjXHdsGH.js} +2 -2
- package/dist/{BindingsPicker-BeNF1NcZ.js → BindingsPicker-BijILjQH.js} +4 -4
- package/dist/{BindingsTable-ecWz3SHk.js → BindingsTable-DlSpPTRi.js} +1 -1
- package/dist/{ClosingDraftView-DkxOW9Ns.js → ClosingDraftView-BaDkJuyF.js} +123 -123
- package/dist/{ClosingTemplateView-BbnpVNYF.js → ClosingTemplateView-CdESDzwA.js} +26 -26
- package/dist/{DeliveryOrderPrintPreview-CH-IzSM9.js → DeliveryOrderPrintPreview-Bwrd33F_.js} +9 -9
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DOR_Iu0w.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-QlB_K9Yi.js} +16 -16
- package/dist/{FmMultiselectDialog-DBgk0_mV.js → FmMultiselectDialog-CLxZbi3l.js} +4 -4
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DdxSlJRz.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B6TbIvQI.js} +43 -43
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C22gncaQ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CtLFZtQZ.js} +7 -7
- package/dist/{IngredientGroupView-CrNLRll8.js → IngredientGroupView-DXQ2TKjI.js} +13 -13
- package/dist/IngredientsView-FLCGHbsn.js +2467 -0
- package/dist/{IntegrationView-DRwnqCf9.js → IntegrationView-BKI0tf68.js} +24 -25
- package/dist/{InventoryBindingForm-DU6B0J0B.js → InventoryBindingForm-BGov_1MJ.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CLCDb25h.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-4IM7dQuV.js} +12 -12
- package/dist/{InventoryBindingSummary-BH2bWICt.js → InventoryBindingSummary-BQA0Sm_K.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BD2hneTA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bc5diF2E.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-GabOf_-7.js → PremiumBadge.vue_vue_type_script_setup_true_lang-s529wQrr.js} +1 -1
- package/dist/{PublishView-B510iDYx.js → PublishView-DhZ5eMg0.js} +19 -19
- package/dist/{PurchaseOrderPrintPreview-Cbsl8gcZ.js → PurchaseOrderPrintPreview-cMNE8VTL.js} +7 -7
- package/dist/{ReceiveRequestView-rKyNjRbk.js → ReceiveRequestView-Cv-Cgi_o.js} +80 -80
- package/dist/{RecipeView-C9dw-1_E.js → RecipeView-ipT51Tbl.js} +39 -39
- package/dist/{StockView-scnHVHGB.js → StockView-CKok9_oG.js} +833 -830
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BnAwlQE1.js +172 -0
- package/dist/{SupplierView-to6stKYV.js → SupplierView-cGpKVDGP.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-laVp-HrL.js → TransferDetails.vue_vue_type_script_setup_true_lang-0ule7sK7.js} +11 -12
- package/dist/{TransferTemplateView-VOgIhPGW.js → TransferTemplateView-DrlLa0ed.js} +109 -109
- package/dist/{UnitView-sr5QkKex.js → UnitView-YFAtJ0CL.js} +16 -16
- package/dist/{WarehouseView-CB3luO1P.js → WarehouseView-CV5pg-4p.js} +16 -16
- package/dist/{app-BpyxIAaY.js → app-CUMtg_U0.js} +8610 -8548
- package/dist/app.js +1 -1
- package/dist/{closing-template-CEJaVQKn.js → closing-template-Cyva214n.js} +1 -1
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +7 -0
- package/dist/components/netsuite/ItemSubsidiaryTreeDialog.vue.d.ts +16 -0
- package/dist/{decimal-Dqff6QMJ.js → decimal-117ZlAfM.js} +1 -1
- package/dist/{format-unit-display-DcORb0K7.js → format-unit-display-BXHj4DAV.js} +3 -3
- package/dist/{index-CFfIlNHC.js → index-Da1f9OoS.js} +1 -1
- package/dist/{index-rTyWq-0n.js → index-PWnt_za9.js} +1 -1
- package/dist/{purchase-order-template-BFPrzfeR.js → purchase-order-template-AWsxLxPR.js} +1 -1
- package/dist/{stock-CkgmiPOr.js → stock-D7EiEqJe.js} +1 -1
- package/dist/stores/integration/netsuite.d.ts +25 -3
- package/dist/style.css +1 -1
- package/dist/{supplier-Db_-hKgm.js → supplier-DQmyhp0R.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CEEFJa9x.js → use-ingredient-select-dialog-C37DLY6c.js} +4 -4
- package/dist/{use-inventory-binding-dialog-C6Ev4777.js → use-inventory-binding-dialog-CmZereh8.js} +1 -1
- package/package.json +2 -2
- package/dist/FmAdminBadge-D4rqYlKu.js +0 -44
- package/dist/IngredientsView-DLK0Seww.js +0 -2319
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Dt1S8tTH.js +0 -158
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as K, ref as E, onMounted as re, resolveComponent as
|
|
2
|
-
import { a as A, e as V, f as J, S as ye,
|
|
3
|
-
import { useDialog as
|
|
1
|
+
import { defineComponent as K, ref as E, onMounted as re, resolveComponent as $, openBlock as F, createElementBlock as B, Fragment as ie, createElementVNode as h, toDisplayString as ue, createVNode as g, createCommentVNode as q, computed as k, watch as ce, createBlock as L, withCtx as P, unref as b, isRef as ee, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
|
|
2
|
+
import { a as A, e as V, f as J, S as ye, i as ge, D as te, j as Y, l as U, F as H, p as be, U as _e, A as we, c as Re, w as ne, z as he, C as xe, B as Se, u as Ve, L as Ce, O as Ee, P as Fe, Q as $e, T as oe } from "./app-CUMtg_U0.js";
|
|
3
|
+
import { useDialog as ke, useSnackbar as se, useProxiedModel as ae, useBreakpoints as Ie } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as De, _ as Ae } 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-CtLFZtQZ.js";
|
|
6
6
|
import { defineStore as Be, storeToRefs as Pe } from "pinia";
|
|
7
7
|
import { useI18n as O } from "@feedmepos/mf-common";
|
|
8
|
-
import { _ as Te } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as Te } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-4IM7dQuV.js";
|
|
9
9
|
import { _ as Ue } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
10
10
|
const Me = {
|
|
11
11
|
key: 0,
|
|
@@ -28,19 +28,19 @@ const Me = {
|
|
|
28
28
|
!l.value && ((c = p.data) != null && c._id) && (l.value = !0, f.value = await A().getAffectedMenu((i = p.data) == null ? void 0 : i._id), l.value = !1);
|
|
29
29
|
}
|
|
30
30
|
return (c, i) => {
|
|
31
|
-
const v =
|
|
32
|
-
return
|
|
31
|
+
const v = $("FmSpacer"), d = $("FmCircularProgress");
|
|
32
|
+
return F(), B(ie, null, [
|
|
33
33
|
h("p", null, ue(c.message), 1),
|
|
34
|
-
l.value ? (
|
|
34
|
+
l.value ? (F(), B("div", Me, [
|
|
35
35
|
g(v),
|
|
36
36
|
h("div", null, [
|
|
37
37
|
g(d, { size: "xl" })
|
|
38
38
|
]),
|
|
39
39
|
i[0] || (i[0] = h("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading...", -1)),
|
|
40
40
|
g(v)
|
|
41
|
-
])) : (
|
|
41
|
+
])) : (F(), B("div", Le, [
|
|
42
42
|
i[2] || (i[2] = h("br", null, null, -1)),
|
|
43
|
-
f.value.length > 0 ? (
|
|
43
|
+
f.value.length > 0 ? (F(), B("div", Ne, [
|
|
44
44
|
i[1] || (i[1] = h("p", { class: "fm-typo-en-body-lg-600" }, "Affected menu items:", -1)),
|
|
45
45
|
g(le, {
|
|
46
46
|
name: "Menu",
|
|
@@ -52,7 +52,7 @@ const Me = {
|
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
}), Q = Be("recipeForm", function() {
|
|
55
|
-
const p =
|
|
55
|
+
const p = ke(), f = se(), l = A(), r = E(!1), c = E();
|
|
56
56
|
function i() {
|
|
57
57
|
const t = {
|
|
58
58
|
recipe: {},
|
|
@@ -137,11 +137,11 @@ function Ge() {
|
|
|
137
137
|
const { updateRecipe: w, deleteRecipe: p } = Q(), f = A(), { t: l } = O();
|
|
138
138
|
async function r(d, u) {
|
|
139
139
|
const t = J(u);
|
|
140
|
-
if (d ===
|
|
140
|
+
if (d === Y.Edit) {
|
|
141
141
|
await w(t);
|
|
142
142
|
return;
|
|
143
143
|
}
|
|
144
|
-
if (d ===
|
|
144
|
+
if (d === Y.Delete) {
|
|
145
145
|
await p(t);
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
@@ -174,7 +174,7 @@ function Ge() {
|
|
|
174
174
|
header: "",
|
|
175
175
|
cell(d) {
|
|
176
176
|
return ge(
|
|
177
|
-
[te[
|
|
177
|
+
[te[Y.Edit], te[Y.Delete]],
|
|
178
178
|
(u) => {
|
|
179
179
|
r(u, d.row.original.original);
|
|
180
180
|
}
|
|
@@ -206,7 +206,7 @@ function Ge() {
|
|
|
206
206
|
}
|
|
207
207
|
return { columnDefs: i, formatRowData: v };
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const je = { class: "flex flex-col gap-40" }, Ye = {
|
|
210
210
|
key: 0,
|
|
211
211
|
class: "col-span-2 mt-16 border-1 border-fm-color-neutral-gray-200 fm-corner-radius-lg flex flex-col p-16 gap-16"
|
|
212
212
|
}, Ke = {
|
|
@@ -222,7 +222,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
|
222
222
|
emits: ["update:modelValue", "click:submit"],
|
|
223
223
|
setup(w, { expose: p, emit: f }) {
|
|
224
224
|
var R;
|
|
225
|
-
const l = w, r = f, c = Re(), { t: i } = O(), v =
|
|
225
|
+
const l = w, r = f, c = Re(), { t: i } = O(), v = k({
|
|
226
226
|
get() {
|
|
227
227
|
var e;
|
|
228
228
|
return ((e = l.modelValue) == null ? void 0 : e.name) ?? "";
|
|
@@ -231,7 +231,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
|
231
231
|
const s = l.modelValue ?? {};
|
|
232
232
|
s.name = e, r("update:modelValue", s);
|
|
233
233
|
}
|
|
234
|
-
}), d =
|
|
234
|
+
}), d = k({
|
|
235
235
|
get() {
|
|
236
236
|
var e;
|
|
237
237
|
return ((e = l.modelValue) == null ? void 0 : e.contains) ?? [];
|
|
@@ -240,7 +240,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
|
240
240
|
const s = l.modelValue ?? {};
|
|
241
241
|
s.contains = e, r("update:modelValue", s);
|
|
242
242
|
}
|
|
243
|
-
}), u =
|
|
243
|
+
}), u = k({
|
|
244
244
|
get() {
|
|
245
245
|
var e;
|
|
246
246
|
return ((e = l.modelValue) == null ? void 0 : e.customAttributes) ?? {};
|
|
@@ -278,18 +278,18 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
|
278
278
|
var s, I;
|
|
279
279
|
e && !a.value && ((s = l.modelValue) != null && s._id) && (a.value = !0, o.value = await m.getAffectedMenu((I = l.modelValue) == null ? void 0 : I._id).delayed(500), a.value = !1);
|
|
280
280
|
}
|
|
281
|
-
const C =
|
|
281
|
+
const C = k(
|
|
282
282
|
() => m.recipes.map((e) => ({ label: e.name, value: e.name }))
|
|
283
283
|
), x = E((R = l.modelValue) == null ? void 0 : R.name);
|
|
284
284
|
return (e, s) => {
|
|
285
|
-
const I =
|
|
286
|
-
return
|
|
285
|
+
const I = $("FmTextField"), D = $("FmCard"), N = $("FmSwitch"), M = $("FmSpacer"), z = $("FmCircularProgress"), T = $("FmForm");
|
|
286
|
+
return F(), L(T, {
|
|
287
287
|
ref_key: "formRef",
|
|
288
288
|
ref: n,
|
|
289
289
|
onValidationSuccess: t
|
|
290
290
|
}, {
|
|
291
291
|
default: P(() => [
|
|
292
|
-
h("div",
|
|
292
|
+
h("div", je, [
|
|
293
293
|
g(I, {
|
|
294
294
|
disabled: e.disabled,
|
|
295
295
|
label: b(i)("inventory.recipe.name"),
|
|
@@ -321,7 +321,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
|
321
321
|
_: 1
|
|
322
322
|
})
|
|
323
323
|
]),
|
|
324
|
-
e.mode !== b(V).CREATE ? (
|
|
324
|
+
e.mode !== b(V).CREATE ? (F(), B("div", Ye, [
|
|
325
325
|
g(N, {
|
|
326
326
|
label: "Show binded items",
|
|
327
327
|
modelValue: _.value,
|
|
@@ -329,14 +329,14 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
|
329
329
|
"label-placement": "right",
|
|
330
330
|
disabled: a.value
|
|
331
331
|
}, null, 8, ["modelValue", "disabled"]),
|
|
332
|
-
a.value ? (
|
|
332
|
+
a.value ? (F(), B("div", Ke, [
|
|
333
333
|
g(M),
|
|
334
334
|
h("div", null, [
|
|
335
335
|
g(z, { size: "xl" })
|
|
336
336
|
]),
|
|
337
337
|
s[4] || (s[4] = h("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading...", -1)),
|
|
338
338
|
g(M)
|
|
339
|
-
])) : _.value && o.value.length ? (
|
|
339
|
+
])) : _.value && o.value.length ? (F(), B("div", Oe, [
|
|
340
340
|
g(le, {
|
|
341
341
|
name: "Menu",
|
|
342
342
|
bindings: o.value
|
|
@@ -364,7 +364,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
|
364
364
|
},
|
|
365
365
|
emits: ["update:show"],
|
|
366
366
|
setup(w) {
|
|
367
|
-
const p = w, f = A(), l = se(), { t: r } = O(), c = ae(p, "show"), i = ae(p, "recipe"), v =
|
|
367
|
+
const p = w, f = A(), l = se(), { t: r } = O(), c = ae(p, "show"), i = ae(p, "recipe"), v = k(() => {
|
|
368
368
|
switch (p.mode) {
|
|
369
369
|
case V.READ:
|
|
370
370
|
return "";
|
|
@@ -374,7 +374,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
|
374
374
|
return r("inventory.recipe.create.title");
|
|
375
375
|
}
|
|
376
376
|
return "";
|
|
377
|
-
}), d =
|
|
377
|
+
}), d = k(() => {
|
|
378
378
|
switch (p.mode) {
|
|
379
379
|
case V.READ:
|
|
380
380
|
return "";
|
|
@@ -437,8 +437,8 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
return (a, y) => {
|
|
440
|
-
const C =
|
|
441
|
-
return
|
|
440
|
+
const C = $("FmButton"), x = $("FmSideSheet");
|
|
441
|
+
return F(), L(x, {
|
|
442
442
|
"model-value": b(c),
|
|
443
443
|
"onUpdate:modelValue": y[3] || (y[3] = (R) => ee(c) ? c.value = R : null),
|
|
444
444
|
header: v.value,
|
|
@@ -529,17 +529,17 @@ function Xe() {
|
|
|
529
529
|
const Ze = { class: "flex flex-col py-8" }, et = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, dt = /* @__PURE__ */ K({
|
|
530
530
|
__name: "RecipeView",
|
|
531
531
|
setup(w) {
|
|
532
|
-
const p = A(), f =
|
|
532
|
+
const p = A(), f = k(() => p.recipes), l = Ve(), { createRecipe: r, updateRecipe: c } = Q(), { recipeDialogProps: i, recipeViewLoading: v } = Pe(Q()), { columnDefs: d, formatRowData: u } = Ge(), t = k(() => u(f.value));
|
|
533
533
|
function n(R) {
|
|
534
534
|
if (R === "add")
|
|
535
535
|
return r();
|
|
536
536
|
if (R === "export")
|
|
537
537
|
return Xe();
|
|
538
538
|
}
|
|
539
|
-
const m = E(""), o =
|
|
539
|
+
const m = E(""), o = k(() => v.value), { breakpoints: _ } = Ie(), a = k(() => _.value.xs || _.value.sm), y = k(() => a.value ? 10 : 20), C = Ce(), { t: x } = O();
|
|
540
540
|
return (R, e) => {
|
|
541
|
-
const s =
|
|
542
|
-
return
|
|
541
|
+
const s = $("FmTable");
|
|
542
|
+
return F(), L(Ee, {
|
|
543
543
|
title: b(x)("inventory.recipe.title"),
|
|
544
544
|
actions: [
|
|
545
545
|
{
|
|
@@ -562,12 +562,12 @@ const Ze = { class: "flex flex-col py-8" }, et = { class: "fm-typo-en-body-lg-60
|
|
|
562
562
|
}
|
|
563
563
|
])
|
|
564
564
|
}, [
|
|
565
|
-
g(
|
|
565
|
+
g(Fe, {
|
|
566
566
|
searchable: "",
|
|
567
567
|
search: m.value,
|
|
568
568
|
"onUpdate:search": e[0] || (e[0] = (I) => m.value = I)
|
|
569
569
|
}, null, 8, ["search"]),
|
|
570
|
-
(
|
|
570
|
+
(F(), L(s, {
|
|
571
571
|
style: me(b(C).tableHeight),
|
|
572
572
|
"column-defs": b(d),
|
|
573
573
|
"row-data": t.value,
|
|
@@ -578,12 +578,12 @@ const Ze = { class: "flex flex-col py-8" }, et = { class: "fm-typo-en-body-lg-60
|
|
|
578
578
|
"page-size": y.value
|
|
579
579
|
}, {
|
|
580
580
|
"list-row": P((I) => [
|
|
581
|
-
g(
|
|
581
|
+
g($e, {
|
|
582
582
|
row: I,
|
|
583
583
|
onRowClick: (D) => b(c)(D.original)
|
|
584
584
|
}, {
|
|
585
585
|
default: P((D) => {
|
|
586
|
-
var N, M, z, T, S, G, W, X,
|
|
586
|
+
var N, M, z, T, S, G, W, X, j, Z;
|
|
587
587
|
return [
|
|
588
588
|
h("div", Ze, [
|
|
589
589
|
h("div", et, [
|
|
@@ -595,7 +595,7 @@ const Ze = { class: "flex flex-col py-8" }, et = { class: "fm-typo-en-body-lg-60
|
|
|
595
595
|
h("div", tt, [
|
|
596
596
|
g(b(oe), {
|
|
597
597
|
render: (X = (W = (G = D.ingredients) == null ? void 0 : G.column) == null ? void 0 : W.columnDef) == null ? void 0 : X.cell,
|
|
598
|
-
props: (Z = (
|
|
598
|
+
props: (Z = (j = D.ingredients) == null ? void 0 : j.getContext) == null ? void 0 : Z.call(j)
|
|
599
599
|
}, null, 8, ["render", "props"])
|
|
600
600
|
])
|
|
601
601
|
])
|
|
@@ -607,7 +607,7 @@ const Ze = { class: "flex flex-col py-8" }, et = { class: "fm-typo-en-body-lg-60
|
|
|
607
607
|
_: 1
|
|
608
608
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
|
|
609
609
|
], 2),
|
|
610
|
-
(
|
|
610
|
+
(F(), L(pe, { to: "body" }, [
|
|
611
611
|
g(Je, fe(ve(b(i))), null, 16)
|
|
612
612
|
]))
|
|
613
613
|
]),
|