@feedmepos/mf-inventory-portal 0.0.7 → 0.0.9-alpha.1

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 (47) hide show
  1. package/dist/{ApprovalView-DG7YMvKX.js → ApprovalView--Rt6ezKr.js} +8 -8
  2. package/dist/{BindingsDialog-CaGH1RpY.js → BindingsDialog-BPZi6xIM.js} +7 -7
  3. package/dist/{BindingsPicker-CbMhfW2Y.js → BindingsPicker-CT84GQEF.js} +6 -6
  4. package/dist/{BindingsTable-BFWS0EAA.js → BindingsTable-BaOAJb-x.js} +6 -6
  5. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BHTzKSDX.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-Cw3xOCWL.js} +1 -1
  6. package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-ByWxD_nv.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-DB-S4jQ5.js} +9 -9
  7. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BIO7GaNT.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DFPIFKuJ.js} +1 -1
  8. package/dist/{IngredientsView-Cdz1MoXH.js → IngredientsView-R4Jpb5Oj.js} +206 -193
  9. package/dist/{IntegrationView-DcWb3QQo.js → IntegrationView-Be_x-LJn.js} +3 -3
  10. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CaorLACL.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CDISyjPI.js} +5 -5
  11. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B9laEFEX.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bg5mczIr.js} +1 -1
  12. package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-BvadeWUz.js +35 -0
  13. package/dist/{PurchaseOrderPrintPreview-Cn83AmEi.js → PurchaseOrderPrintPreview-DNasavET.js} +1 -1
  14. package/dist/{ReceiveRequestView-D0Cl-OLi.js → ReceiveRequestView-DbyGH7bJ.js} +530 -505
  15. package/dist/{RecipeView-DEYxgf7x.js → RecipeView-Dt5H2D9g.js} +58 -58
  16. package/dist/StockView-DsdHp3ya.js +1885 -0
  17. package/dist/{SupplierView-BmGBPN9f.js → SupplierView-BX8G_gxw.js} +208 -195
  18. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D7pQpCzv.js → TransferDetails.vue_vue_type_script_setup_true_lang-BvRfs5DC.js} +5 -5
  19. package/dist/{UnitView-C89g_cwQ.js → UnitView-BgOlMe9v.js} +190 -177
  20. package/dist/WarehouseView-D5gG3dAt.js +1047 -0
  21. package/dist/api/stock.d.ts +0 -8
  22. package/dist/app-CI5J2IGD.js +67014 -0
  23. package/dist/app.js +1 -1
  24. package/dist/components/PremiumBadge.vue.d.ts +24 -0
  25. package/dist/components/PreviewBadge.vue.d.ts +24 -0
  26. package/dist/core.d.ts +3 -3
  27. package/dist/{date2-CqrVcTwy.js → date2-7PFOzsGt.js} +8 -8
  28. package/dist/{dayjs.min-DgQQjOWg.js → dayjs.min-4rgS_xYG.js} +3098 -2790
  29. package/dist/{decimal-CavHyXqc.js → decimal-BE2ewAwf.js} +1 -1
  30. package/dist/{fuzzy-UnwvJrUo.js → fuzzy-CgKKJmrU.js} +1 -1
  31. package/dist/{init-date-range-BwwFXeQ6.js → init-date-range-D6uUHTuu.js} +1 -1
  32. package/dist/{layout-CSV2gMPx.js → layout-CgE3gsHz.js} +19 -19
  33. package/dist/{rules-lmtMGMmO.js → rules-D55_vOni.js} +1 -1
  34. package/dist/stock-estimate-6Mm81SSF.js +122 -0
  35. package/dist/style.css +1 -1
  36. package/dist/{supplier-CJudM6nj.js → supplier-DPiYx6RB.js} +1 -1
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/{use-inventory-binding-dialog-CUMXzT5q.js → use-inventory-binding-dialog-Dc13jNt8.js} +2 -2
  39. package/dist/views/stock/components/StockHeaderPreview.vue.d.ts +2 -0
  40. package/dist/views/stock/helper/compute-summary-total.d.ts +5 -1
  41. package/dist/{xlsx-CVZ9H3-C.js → xlsx-vY7EfQp2.js} +753 -753
  42. package/package.json +3 -3
  43. package/dist/StockView-DsxADEWf.js +0 -1919
  44. package/dist/WarehouseView-CsVUZ_yH.js +0 -1139
  45. package/dist/app-CQxbBdZV.js +0 -42750
  46. package/dist/stock-estimate-DDstcuRt.js +0 -90
  47. package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +0 -9
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Z, ref as v, watch as B, computed as I, resolveComponent as ee, openBlock as h, createBlock as P, withCtx as D, createElementVNode as o, createVNode as r, normalizeStyle as te, unref as e, toDisplayString as ae, createElementBlock as oe, createCommentVNode as re, Teleport as se, mergeProps as ne } from "vue";
2
- import { o as d, e as le } from "./app-CQxbBdZV.js";
3
- import { a as pe } from "./init-date-range-BwwFXeQ6.js";
4
- import { a as ce, b as ie, _ as me } from "./TransferDetails.vue_vue_type_script_setup_true_lang-D7pQpCzv.js";
5
- import { q as H } from "./date2-CqrVcTwy.js";
2
+ import { q as d, e as le } from "./app-CI5J2IGD.js";
3
+ import { a as pe } from "./init-date-range-D6uUHTuu.js";
4
+ import { a as ce, b as ie, _ as me } from "./TransferDetails.vue_vue_type_script_setup_true_lang-BvRfs5DC.js";
5
+ import { q as H } from "./date2-7PFOzsGt.js";
6
6
  import { _ as ue } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js";
7
- import { _ as de } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BHTzKSDX.js";
8
- import { _ as fe, F as f, u as _e } from "./layout-CSV2gMPx.js";
7
+ import { _ as de } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-Cw3xOCWL.js";
8
+ import { _ as fe, F as f, u as _e } from "./layout-CgE3gsHz.js";
9
9
  import { useBreakpoints as ve } from "@feedmepos/ui-library";
10
10
  const he = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, De = { class: "px-8 flex gap-8 items-center xs:gap-0 xs:flex-col-reverse sm:gap-0 sm:flex-col-reverse" }, xe = { class: "xs:w-full sm:w-full flex gap-8 items-center overflow-x-auto no-scrollbar py-8" }, ge = /* @__PURE__ */ o("div", { class: "h-32" }, null, -1), be = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Oe = {
11
11
  key: 0,
@@ -66,7 +66,7 @@ const he = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, De =
66
66
  onRowClick: (t) => e(s).promptShowTransferDetails(t.purchaseOrder, t)
67
67
  }, {
68
68
  default: D((t) => {
69
- var y, w, R, l, O, k, S, T, p, C, F, c, $, i, q, z, M, V, Y, m, L, N, j, A, u, E;
69
+ var y, w, R, l, O, k, S, T, p, C, q, c, F, i, $, z, M, V, Y, m, L, N, j, A, u, E;
70
70
  return [
71
71
  o("div", be, [
72
72
  o("div", ye, [
@@ -81,7 +81,7 @@ const he = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, De =
81
81
  props: (C = (p = t.to_name) == null ? void 0 : p.getContext) == null ? void 0 : C.call(p)
82
82
  }, null, 8, ["render", "props"])
83
83
  ]),
84
- o("div", Re, ae((q = (i = ($ = (c = (F = n.original.purchaseOrder) == null ? void 0 : F.items) == null ? void 0 : c.map) == null ? void 0 : $.call(c, (X) => `${X.name}`)) == null ? void 0 : i.join) == null ? void 0 : q.call(i, ", ")), 1),
84
+ o("div", Re, ae(($ = (i = (F = (c = (q = n.original.purchaseOrder) == null ? void 0 : q.items) == null ? void 0 : c.map) == null ? void 0 : F.call(c, (X) => `${X.name}`)) == null ? void 0 : i.join) == null ? void 0 : $.call(i, ", ")), 1),
85
85
  (z = n.original.purchaseOrder) != null && z.ref ? (h(), oe("div", Oe, [
86
86
  r(e(f), {
87
87
  render: (Y = (V = (M = t.purchaseOrder_ref) == null ? void 0 : M.column) == null ? void 0 : V.columnDef) == null ? void 0 : Y.cell,
@@ -1,6 +1,6 @@
1
- import { defineComponent as C, ref as o, onMounted as M, onUnmounted as x, watch as F, 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 V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CaorLACL.js";
3
- import { u as L, x as S } from "./app-CQxbBdZV.js";
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 z, createVNode as a, createCommentVNode as R, createElementVNode as P } from "vue";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CDISyjPI.js";
3
+ import { u as L, z as S } from "./app-CI5J2IGD.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -35,10 +35,10 @@ const U = {
35
35
  e && new ResizeObserver(() => {
36
36
  n.sendMessage("resize", e.scrollHeight);
37
37
  }).observe(e);
38
- }), x(() => {
38
+ }), F(() => {
39
39
  var e, t;
40
40
  (t = (e = u.value) == null ? void 0 : e.removeEventListener) == null || t.call(e);
41
- }), F([() => s.value], ([e]) => {
41
+ }), x([() => s.value], ([e]) => {
42
42
  n.sendMessage("@update:inventory-bindings", e);
43
43
  });
44
44
  function v() {
@@ -63,14 +63,14 @@ const U = {
63
63
  ref: f,
64
64
  class: "flex flex-col gap-16"
65
65
  }, {
66
- default: R(() => [
66
+ default: z(() => [
67
67
  a(V, {
68
68
  "model-value": s.value,
69
69
  "onUpdate:modelValue": t[0] || (t[0] = (w) => s.value = w),
70
70
  "iframe-mode": "",
71
71
  "onClick:pickInventoryBindings": k
72
72
  }, null, 8, ["model-value"]),
73
- r.value ? z("", !0) : (i(), c("div", U, [
73
+ r.value ? R("", !0) : (i(), c("div", U, [
74
74
  a(g, {
75
75
  type: "button",
76
76
  variant: "tertiary",
@@ -1,7 +1,7 @@
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 { _ as x } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-ByWxD_nv.js";
3
- import { u as M, x as h } from "./app-CQxbBdZV.js";
4
- const z = {
2
+ import { _ as x } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-DB-S4jQ5.js";
3
+ import { u as z, z as M } from "./app-CI5J2IGD.js";
4
+ const h = {
5
5
  key: 0,
6
6
  class: "flex flex-col gap-16"
7
7
  }, K = { class: "flex justify-end gap-8 items-center" }, w = {
@@ -10,7 +10,7 @@ const z = {
10
10
  }, F = /* @__PURE__ */ k("div", null, "Loading bindings dialog...", -1), H = /* @__PURE__ */ S({
11
11
  __name: "BindingsPicker",
12
12
  setup(L) {
13
- const d = M(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
13
+ const d = z(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
14
14
  label: s.name,
15
15
  sublabel: s.code,
16
16
  value: s
@@ -63,7 +63,7 @@ const z = {
63
63
  ];
64
64
  }
65
65
  }
66
- }), b = l(), o = h(B);
66
+ }), b = l(), o = M(B);
67
67
  async function B() {
68
68
  await d.readInventory(), b.value = o.onMessage(
69
69
  "props:binding-items",
@@ -97,7 +97,7 @@ const z = {
97
97
  g.value ? (p(), f("div", w, [
98
98
  u(t, { size: "md" }),
99
99
  F
100
- ])) : (p(), f("div", z, [
100
+ ])) : (p(), f("div", h, [
101
101
  u(x, {
102
102
  "model-value": _.value,
103
103
  "onUpdate:modelValue": s[0] || (s[0] = (m) => _.value = m),
@@ -1,8 +1,8 @@
1
- import { defineComponent as h, ref as o, provide as C, computed as v, resolveComponent as x, openBlock as r, createElementBlock as u, Fragment as L, renderList as F, createElementVNode as p, toDisplayString as k, createVNode as w, withModifiers as I, createStaticVNode as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
2
- import { h as b, u as P, x as R } from "./app-CQxbBdZV.js";
3
- import "./dayjs.min-DgQQjOWg.js";
1
+ import { defineComponent as h, ref as o, provide as C, computed as v, resolveComponent as x, openBlock as r, createElementBlock as u, Fragment as L, renderList as F, createElementVNode as p, toDisplayString as k, createVNode as w, withModifiers as I, createStaticVNode as N, onMounted as z, onUnmounted as E, createBlock as M } from "vue";
2
+ import { h as b, u as P, z as R } from "./app-CI5J2IGD.js";
3
+ import "./dayjs.min-4rgS_xYG.js";
4
4
  import "@feedmepos/ui-library";
5
- import "./fuzzy-UnwvJrUo.js";
5
+ import "./fuzzy-CgKKJmrU.js";
6
6
  const U = { class: "" }, D = /* @__PURE__ */ N('<div class="flex font-bold bg-[#F7F8FA]"><div class="flex-grow-0 flex-shrink-0 basis-5/12 py-8"></div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Ingredient</div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Recipe</div><div class="flex-grow-0 flex-shrink-0 basis-1/12 py-8"></div></div>', 1), O = ["onClick"], V = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, T = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, A = /* @__PURE__ */ h({
7
7
  __name: "binding-ui",
8
8
  props: {
@@ -85,12 +85,12 @@ const U = { class: "" }, D = /* @__PURE__ */ N('<div class="flex font-bold bg-[#
85
85
  });
86
86
  }
87
87
  const y = o();
88
- return E(() => {
88
+ return z(() => {
89
89
  const s = y.value;
90
90
  s && new ResizeObserver(() => {
91
91
  n.sendMessage("resize", s.scrollHeight);
92
92
  }).observe(s);
93
- }), z(() => {
93
+ }), E(() => {
94
94
  var s, d;
95
95
  (d = (s = t.value) == null ? void 0 : s.removeEventListener) == null || d.call(s);
96
96
  }), (s, d) => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, ref as V, computed as p, resolveComponent as a, openBlock as t, createElementBlock as v, createVNode as l, withCtx as w, createElementVNode as i, toDisplayString as H, unref as _, Fragment as k, renderList as C, createBlock as d, createCommentVNode as L } from "vue";
2
- import { e as I } from "./app-CQxbBdZV.js";
2
+ import { e as I } from "./app-CI5J2IGD.js";
3
3
  const B = { class: "inline-flex" }, D = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, z = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, E = {
4
4
  class: "overflow-hidden overflow-y-scroll",
5
5
  style: { maxHeight: "105px" }
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as $, ref as C, onMounted as N, watch as E, computed as f, resolveComponent as m, openBlock as v, createElementBlock as _, createElementVNode as s, createVNode as d, createTextVNode as M, toDisplayString as T, createSlots as U, withCtx as h, createBlock as I, Fragment as j, renderList as z } from "vue";
2
2
  import { useDialogChild as q } from "@feedmepos/ui-library";
3
- import { v as c } from "./app-CQxbBdZV.js";
4
- import { f as H } from "./fuzzy-UnwvJrUo.js";
3
+ import { x as c } from "./app-CI5J2IGD.js";
4
+ import { f as H } from "./fuzzy-CgKKJmrU.js";
5
5
  const R = { class: "flex flex-col h-[400px]" }, G = { class: "flex justify-between py-24 items-center relative" }, J = { class: "flex gap-16 basis-1/2" }, K = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, O = /* @__PURE__ */ s("span", { class: "xs:hidden" }, "selected", -1), P = /* @__PURE__ */ s("div", { class: "absolute pointer-events-none -bottom-[304px] left-0 w-full h-[308px] overflow-hidden flex flex-col justify-between" }, [
6
6
  /* @__PURE__ */ s("div", { class: "h-1 fm-shadow-light-200" }),
7
7
  /* @__PURE__ */ s("div", {
@@ -24,17 +24,17 @@ const R = { class: "flex flex-col h-[400px]" }, G = { class: "flex justify-betwe
24
24
  },
25
25
  emits: ["update:modelValue"],
26
26
  setup(L, { emit: B }) {
27
- const y = q(), b = L, D = B, t = C(b.modelValue ?? []);
27
+ const y = q(), x = L, D = B, t = C(x.modelValue ?? []);
28
28
  N(() => {
29
29
  y.emitData(t.value);
30
30
  }), E([() => t.value], ([l]) => {
31
31
  y.emitData(l), D("update:modelValue", l);
32
32
  });
33
- function x(l) {
33
+ function b(l) {
34
34
  return !!t.value.find((e) => c(e, l));
35
35
  }
36
36
  function g(l, e) {
37
- const i = x(l);
37
+ const i = b(l);
38
38
  if (!(e && i || !e && !i))
39
39
  if (e) {
40
40
  const a = [...t.value, l];
@@ -45,7 +45,7 @@ const R = { class: "flex flex-col h-[400px]" }, G = { class: "flex justify-betwe
45
45
  }
46
46
  }
47
47
  const n = C(""), u = f(() => {
48
- const l = n.value.toLocaleLowerCase(), e = b.items;
48
+ const l = n.value.toLocaleLowerCase(), e = x.items;
49
49
  return n.value ? H.filter(l, e, {
50
50
  pre: "|",
51
51
  post: "|",
@@ -59,7 +59,7 @@ const R = { class: "flex flex-col h-[400px]" }, G = { class: "flex justify-betwe
59
59
  function S() {
60
60
  r.value ? t.value = t.value.filter(
61
61
  (l) => !u.value.find((e) => c(e.value, l))
62
- ) : t.value = b.items.filter(
62
+ ) : t.value = x.items.filter(
63
63
  (l) => t.value.find((e) => c(e, l.value)) || u.value.find((e) => c(e.value, l.value))
64
64
  ).map((l) => l.value);
65
65
  }
@@ -118,12 +118,12 @@ const R = { class: "flex flex-col h-[400px]" }, G = { class: "flex justify-betwe
118
118
  key: o.value,
119
119
  label: o.label,
120
120
  sublabel: o.sublabel,
121
- onClick: (w) => g(o.value, !x(o.value)),
121
+ onClick: (w) => g(o.value, !b(o.value)),
122
122
  style: { "padding-top": "4px", "padding-bottom": "4px", "padding-left": "32px" }
123
123
  }, {
124
124
  prepend: h(() => [
125
125
  d(p, {
126
- "model-value": x(o.value),
126
+ "model-value": b(o.value),
127
127
  "onUpdate:modelValue": (w) => g(o.value, w),
128
128
  value: o.value
129
129
  }, null, 8, ["model-value", "onUpdate:modelValue", "value"])
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as f, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, Fragment as u, renderList as p, unref as x } from "vue";
2
- import { a, b as d } from "./date2-CqrVcTwy.js";
2
+ import { a, b as d } from "./date2-7PFOzsGt.js";
3
3
  const y = { class: "flex flex-col" }, _ = { 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" }, v = { class: "flex-1 py-8 px-16" }, h = /* @__PURE__ */ r("div", {
4
4
  class: "flex-0 py-8 px-16",
5
5
  style: { "flex-basis": "120px" }