@feedmepos/mf-inventory-portal 0.0.23-dev.38 → 0.0.23-dev.40

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.
Files changed (42) hide show
  1. package/dist/{App-DQgtWkQj.js → App-D8DXxTIq.js} +2 -2
  2. package/dist/{ApprovalView-CvSK9fGA.js → ApprovalView-BWGXkHV6.js} +2 -2
  3. package/dist/{BindingsDialog-BAC0_xCP.js → BindingsDialog-D7WypDot.js} +2 -2
  4. package/dist/{BindingsPicker-ecWMwsNp.js → BindingsPicker-DUlGwkwM.js} +1 -1
  5. package/dist/{BindingsTable-D5kQydOU.js → BindingsTable-BjeZYCaJ.js} +1 -1
  6. package/dist/{ClosingDraftView-CnHQ59rX.js → ClosingDraftView-o2LEUfo8.js} +2 -2
  7. package/dist/{ClosingTemplateView-vRTsVZ0c.js → ClosingTemplateView-Dt983Cg4.js} +1 -1
  8. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-Dc_7IyBG.js +142 -0
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CpIzIvkU.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-wocPyZls.js} +3 -3
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CNzEHF-R.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DzoEp-Pg.js} +1 -1
  11. package/dist/{IngredientGroupView-BLsABZ3h.js → IngredientGroupView-CIPpIpv1.js} +1 -1
  12. package/dist/IngredientsView-CFV3kX7Q.js +1707 -0
  13. package/dist/{IntegrationView-BqAqngtM.js → IntegrationView-DkW32m-t.js} +1 -1
  14. package/dist/{InventoryBindingForm-D54V_qZQ.js → InventoryBindingForm-B4CBet9W.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-KIW9J7Xn.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DpdDVf6O.js} +3 -3
  16. package/dist/{InventoryBindingSummary-htT7GNto.js → InventoryBindingSummary-75ImZtqK.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BlEgALMj.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DfpG3Fy8.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DHbxXDGy.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B4d0c3nk.js} +1 -1
  19. package/dist/{PurchaseOrderPrintPreview-hmzxKuIa.js → PurchaseOrderPrintPreview-BYO0JcQW.js} +1 -1
  20. package/dist/{ReceiveRequestView-_YioyWqU.js → ReceiveRequestView-cFLNExw9.js} +182 -182
  21. package/dist/RecipeView-CjfpaHaT.js +609 -0
  22. package/dist/{StockView-R4cnEbHQ.js → StockView-HMtD9qar.js} +8 -8
  23. package/dist/{SupplierView-CevGG507.js → SupplierView-Cidfe-Xm.js} +4 -4
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CeWP9msS.js → TransferDetails.vue_vue_type_script_setup_true_lang-CdU3HPBC.js} +4 -4
  25. package/dist/{TransferTemplateView-QDniAq8o.js → TransferTemplateView-Doxr1fXP.js} +6 -6
  26. package/dist/{UnitView-SjwJ3lZ0.js → UnitView-C1af71aM.js} +228 -223
  27. package/dist/{WarehouseView-55LiPQXG.js → WarehouseView-CviOLXfX.js} +1 -1
  28. package/dist/{app-UTiudUUR.js → app-BE8SgDqI.js} +92 -93
  29. package/dist/app.js +1 -1
  30. package/dist/{decimal-tyBgHJ47.js → decimal-xj3kVOP6.js} +1 -1
  31. package/dist/{feature-z7inw9y6.js → feature-CWpNYcWJ.js} +1 -1
  32. package/dist/{format-unit-display-DN0KtCh2.js → format-unit-display-CZ835oaL.js} +2 -2
  33. package/dist/{index-Dj2Ccgp1.js → index-B8IWDKYv.js} +3 -3
  34. package/dist/{index-DlhdTaa8.js → index-C6SzYqK7.js} +1 -1
  35. package/dist/{stock-CxRxidDu.js → stock-C2xyYnS7.js} +1 -1
  36. package/dist/{supplier-BhyiTwSJ.js → supplier-B-7o9hg1.js} +1 -1
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/{use-inventory-binding-dialog-DwSvUvRl.js → use-inventory-binding-dialog-Dm8Ky1MH.js} +1 -1
  39. package/package.json +3 -3
  40. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DBhBaRrd.js +0 -51
  41. package/dist/IngredientsView-Cs4TIf6V.js +0 -1794
  42. package/dist/RecipeView-88KJ0nvU.js +0 -591
@@ -1,8 +1,8 @@
1
1
  import { ref as x, onUnmounted as F, defineComponent as h, watch as y, onMounted as G, computed as g, resolveComponent as R, openBlock as S, createElementBlock as I, unref as v, createVNode as E, createElementVNode as p, toDisplayString as w, createBlock as U, createCommentVNode as M } from "vue";
2
- import { u as k, a as D, b as H, R as e, g as r, _ as K, c as W } from "./app-UTiudUUR.js";
2
+ import { u as k, a as D, b as H, R as e, g as r, _ as K, c as W } from "./app-BE8SgDqI.js";
3
3
  import { useCoreStore as A, useI18n as B } from "@feedmepos/mf-common";
4
4
  import { useRouter as C, useRoute as $ } from "vue-router";
5
- import { u as O } from "./feature-z7inw9y6.js";
5
+ import { u as O } from "./feature-CWpNYcWJ.js";
6
6
  import { u as Q } from "./useTabStorage-BkIVScW_.js";
7
7
  import { u as j } from "./googlemap-Dm8ERVai.js";
8
8
  import "./array-hChJVZLE.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as y, createBlock as J, unref as e, withCtx as x, createElementVNode as s, normalizeClass as ne, createVNode as n, normalizeStyle as se, toDisplayString as le, createElementBlock as ce, createCommentVNode as ie, Teleport as ue, mergeProps as pe } from "vue";
2
- import { u as me, au as v, aE as de, a8 as K, y as fe, z as ve, B as _e, E as he, G as _ } from "./app-UTiudUUR.js";
3
- import { a as De, b as ge, _ as be } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CeWP9msS.js";
2
+ import { u as me, au as v, aE as de, a8 as K, y as fe, z as ve, B as _e, E as he, G as _ } from "./app-BE8SgDqI.js";
3
+ import { a as De, b as ge, _ as be } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CdU3HPBC.js";
4
4
  import { useBreakpoints as ye } from "@feedmepos/ui-library";
5
5
  import { useI18n as xe } from "@feedmepos/mf-common";
6
6
  const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Se = {
@@ -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 L } from "vue";
2
- import { _ as P } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-KIW9J7Xn.js";
3
- import { a as V, aL as S } from "./app-UTiudUUR.js";
2
+ import { _ as P } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DpdDVf6O.js";
3
+ import { a as V, aL as S } from "./app-BE8SgDqI.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 S, 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, aL as x, J as z } from "./app-UTiudUUR.js";
2
+ import { a as M, aL as x, J as z } from "./app-BE8SgDqI.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 L } from "vue";
2
- import { F as v, a as x, aL as E } from "./app-UTiudUUR.js";
2
+ import { F as v, a as x, aL as E } from "./app-BE8SgDqI.js";
3
3
  import { components as F } from "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
5
  const P = /* @__PURE__ */ _({
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as ge, ref as O, resolveComponent as z, openBlock as _, createBlock as ne, withCtx as N, createElementVNode as o, createTextVNode as ve, toDisplayString as H, unref as h, createVNode as D, h as E, computed as R, onMounted as ze, watch as He, isRef as Ae, createElementBlock as S, Fragment as Z, createCommentVNode as le, normalizeClass as ie, renderList as ue, normalizeStyle as _e, Teleport as Ee, mergeProps as Le } from "vue";
2
- import { X as Ne, u as ye, ae as G, l as Oe, K as be, i as j, t as Ve, L as ce, p as Ke, q as Ye, r as Ge, af as we, ag as ke, a3 as Ce, ah as je, ai as oe, a9 as qe, ad as W, V as Se, D as xe, h as de, f as Ze, e as We, a as Xe, y as Je, z as Qe, B as et, E as tt, G as me } from "./app-UTiudUUR.js";
2
+ import { X as Ne, u as ye, ae as G, l as Oe, K as be, i as j, t as Ve, L as ce, p as Ke, q as Ye, r as Ge, af as we, ag as ke, a3 as Ce, ah as je, ai as oe, a9 as qe, ad as W, V as Se, D as xe, h as de, f as Ze, e as We, a as Xe, y as Je, z as Qe, B as et, E as tt, G as me } from "./app-BE8SgDqI.js";
3
3
  import { useCoreStore as at, useI18n as Be } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as he, useDialog as nt, useProxiedModel as ot, components as ae, useBreakpoints as st } from "@feedmepos/ui-library";
5
5
  import { defineStore as Fe, storeToRefs as rt } from "pinia";
6
- import { u as $e } from "./stock-CxRxidDu.js";
6
+ import { u as $e } from "./stock-C2xyYnS7.js";
7
7
  import { E as lt } from "./empty-placeholder-wf6-BWE8.js";
8
8
  const Re = Ne((n, d) => {
9
9
  function e() {
@@ -1,5 +1,5 @@
1
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 J, 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 Je, mergeProps as We } from "vue";
2
- import { X as qe, u as le, a9 as Xe, D as Se, h as N, f as Qe, e as Ae, aa as oe, q as Ze, ab 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, G as j, H as st, ac as lt, l as at, E as Ne, A as rt, J as it, _ as ct, ad as ne, y as mt, z as ut, B as dt } from "./app-UTiudUUR.js";
2
+ import { X as qe, u as le, a9 as Xe, D as Se, h as N, f as Qe, e as Ae, aa as oe, q as Ze, ab 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, G as j, H as st, ac as lt, l as at, E as Ne, A as rt, J as it, _ as ct, ad as ne, y as mt, z as ut, B as dt } from "./app-BE8SgDqI.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";
@@ -0,0 +1,142 @@
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, K as F, e as $ } from "./app-BE8SgDqI.js";
3
+ import { useI18n as k, useCoreStore as I } from "@feedmepos/mf-common";
4
+ import { components as O } from "@feedmepos/ui-library";
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
+ class: "flex-0 py-8 px-16",
7
+ style: { "flex-basis": "120px" }
8
+ }, E = { class: "flex-1 py-8 px-16" }, K = {
9
+ key: 0,
10
+ class: "flex-0 py-8 px-16",
11
+ style: { "flex-basis": "120px" }
12
+ }, M = {
13
+ key: 1,
14
+ class: "flex-0 py-8 px-16",
15
+ style: { "flex-basis": "120px" }
16
+ }, G = /* @__PURE__ */ g({
17
+ __name: "IngredientBindedItem",
18
+ props: {
19
+ name: {},
20
+ bindings: {}
21
+ },
22
+ setup(_) {
23
+ const { t: p } = k();
24
+ function l(o, c) {
25
+ var n;
26
+ if (o.measurement) {
27
+ const d = F(o.amount, o.measurement.conversion);
28
+ return `${b(d, !1)} ${(n = o.measurement) == null ? void 0 : n.abbrev}`;
29
+ }
30
+ return `${b(o.amount, !1)} ${c.abbrev}`;
31
+ }
32
+ function f(o) {
33
+ return o.unit !== void 0;
34
+ }
35
+ return (o, c) => (a(), i("div", T, [
36
+ m("div", z, [
37
+ m("div", j, u(o.name), 1),
38
+ m("div", D, u(h(p)("inventory.ingredient.bindedItems.amount")), 1)
39
+ ]),
40
+ (a(!0), i(C, null, N(o.bindings, (n) => (a(), i("div", {
41
+ key: n.id,
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
+ }, [
44
+ m("div", E, u(n.name), 1),
45
+ f(n) ? (a(), i("div", K, u(l(n, n.unit)), 1)) : (a(), i("div", M, u(h(b)(n.amount, !1)), 1))
46
+ ]))), 128))
47
+ ]));
48
+ }
49
+ }), U = {
50
+ key: 0,
51
+ class: "flex flex-col gap-16"
52
+ }, H = /* @__PURE__ */ g({
53
+ __name: "FmCustomAttribute",
54
+ props: {
55
+ entity: {},
56
+ modelValue: {},
57
+ valueOptions: {}
58
+ },
59
+ emits: ["update:modelValue"],
60
+ setup(_, { emit: p }) {
61
+ const l = _, f = p, { t: o } = k(), c = I();
62
+ function n(s) {
63
+ var e, t;
64
+ if ((t = (e = l.valueOptions) == null ? void 0 : e[s]) != null && t.length)
65
+ return l.valueOptions[s];
66
+ }
67
+ const d = v(() => {
68
+ const s = /* @__PURE__ */ new Set(["671005de24a7f4001c87e25e"]), e = c.currentBusiness.value;
69
+ return e ? s.has(e._id) ? [
70
+ {
71
+ key: "tag",
72
+ type: "string",
73
+ entity: "inventorySku"
74
+ },
75
+ {
76
+ key: "tag",
77
+ type: "string",
78
+ entity: "inventoryRecipe"
79
+ }
80
+ ].filter((r) => r.entity === l.entity) : [] : [];
81
+ }), y = v(() => d.value.map((s) => {
82
+ var t;
83
+ const e = n(s.key);
84
+ return {
85
+ key: s.key,
86
+ type: s.type,
87
+ value: ((t = l.modelValue) == null ? void 0 : t[s.key]) || "",
88
+ options: e
89
+ };
90
+ }) || []), A = [
91
+ {
92
+ header: () => o("portalshell.customAttributes.form.key"),
93
+ accessorKey: "key",
94
+ enableSorting: !1
95
+ },
96
+ {
97
+ header: () => o("portalshell.customAttributes.form.value"),
98
+ accessorKey: "value",
99
+ enableSorting: !1,
100
+ cell: (s) => {
101
+ const e = s.row.original;
102
+ return B(O.FmTextField, {
103
+ modelValue: e.value,
104
+ placeholder: o("portalshell.customAttributes.form.valuePlaceholder"),
105
+ datalist: e.options,
106
+ rules: [
107
+ (t) => e.type === "number" && isNaN(Number(t)) ? o("portalshell.customAttributes.form.attributeValueMustBeNumber") : !0
108
+ ],
109
+ "onUpdate:modelValue": (t) => {
110
+ const r = $(l.modelValue);
111
+ if (r[e.key] = t == null ? void 0 : t.trim(), e.type === "number") {
112
+ if (isNaN(Number(t)))
113
+ return;
114
+ r[e.key] = Number(t);
115
+ }
116
+ Object.keys(r).forEach((x) => {
117
+ r[x] || delete r[x];
118
+ }), f("update:modelValue", r);
119
+ }
120
+ });
121
+ }
122
+ }
123
+ ];
124
+ return (s, e) => {
125
+ const t = V("FmTable");
126
+ return y.value.length ? (a(), i("div", U, [
127
+ e[0] || (e[0] = m("div", { class: "fm-typo-en-title-sm-600" }, "Custom attributes", -1)),
128
+ S(t, {
129
+ "column-defs": A,
130
+ "row-data": y.value,
131
+ "shrink-at": !1,
132
+ "page-size": y.value.length,
133
+ "hide-footer": ""
134
+ }, null, 8, ["row-data", "page-size"])
135
+ ])) : w("", !0);
136
+ };
137
+ }
138
+ });
139
+ export {
140
+ G as _,
141
+ H as a
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-UTiudUUR.js";
2
- import { u as j } from "./supplier-BhyiTwSJ.js";
3
- import { P as S } from "./format-unit-display-DN0KtCh2.js";
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-BE8SgDqI.js";
2
+ import { u as j } from "./supplier-B-7o9hg1.js";
3
+ import { P as S } from "./format-unit-display-CZ835oaL.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
1
  import { defineComponent as oe, mergeModels as O, 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 { $ as I, I as k, P as L, L as ce, i as g, aA as de, t as pe, K as fe, ag as ve, ay as be, ax as ye } from "./app-UTiudUUR.js";
2
+ import { $ as I, I as k, P as L, L as ce, i as g, aA as de, t as pe, K as fe, ag as ve, ay as be, ax as ye } from "./app-BE8SgDqI.js";
3
3
  import "@feedmepos/ui-library";
4
4
  function E() {
5
5
  return {
@@ -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, H as be, l as _e, A as xe, J as ne, o as se, u as ke, y as he, z as we, B as Se, E as Ie, G as ae } from "./app-UTiudUUR.js";
2
+ import { a as J, d as h, e as B, f as ye, D as oe, h as Q, H as be, l as _e, A as xe, J as ne, o as se, u as ke, y as he, z as we, B as Se, E as Ie, G as ae } from "./app-BE8SgDqI.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";