@feedmepos/mf-inventory-portal 0.0.17-dev.9 → 0.0.18-dev.3

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 (53) hide show
  1. package/dist/ApprovalView-G-u9nPxH.js +118 -0
  2. package/dist/{BindingsDialog-Dw_DCOTY.js → BindingsDialog-CVeD1mOn.js} +2 -2
  3. package/dist/{BindingsPicker-BRLTF4Qs.js → BindingsPicker-K04aOoGr.js} +2 -2
  4. package/dist/BindingsTable-65aYkpX7.js +147 -0
  5. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DgHp7KgJ.js +268 -0
  6. package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-YzVhmNJc.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-C5WBLEy3.js} +2 -2
  7. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Dv01gy7k.js → FmUnitInput.vue_vue_type_script_setup_true_lang-QKFZeZKM.js} +12 -12
  8. package/dist/IngredientsView-6Q2UWsu-.js +1776 -0
  9. package/dist/{IntegrationView-Xnl758CS.js → IntegrationView-ZMPPIopU.js} +260 -266
  10. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CUj9Mnt6.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-C8YTZoBw.js} +6 -6
  11. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CW0h41FP.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-kidodonU.js} +1 -1
  12. package/dist/{PurchaseOrderPrintPreview-DzimxkGt.js → PurchaseOrderPrintPreview-B4uzudnC.js} +1 -1
  13. package/dist/ReceiveRequestView-DuHtLwZN.js +1394 -0
  14. package/dist/{RecipeView-B9NcEw7x.js → RecipeView-CRj0pC9N.js} +182 -190
  15. package/dist/StockView-CQbeZ5pU.js +1862 -0
  16. package/dist/SupplierView-CrfQATQf.js +796 -0
  17. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BSwsz8Xt.js → TransferDetails.vue_vue_type_script_setup_true_lang-CLUo-Tve.js} +21 -20
  18. package/dist/{UnitView-BvbaRHxG.js → UnitView-D1acjiRV.js} +129 -133
  19. package/dist/{WarehouseView-Cf5Bmfhn.js → WarehouseView-DID1G1qK.js} +260 -264
  20. package/dist/app-D1teOEQX.js +66113 -0
  21. package/dist/app.js +1 -1
  22. package/dist/array-AvWd53LI.js +30 -0
  23. package/dist/components/FmInventoryTableToolbar.vue.d.ts +53 -0
  24. package/dist/date2-6Vt_hnAG.js +95 -0
  25. package/dist/dayjs.min-Co7-8-Mb.js +282 -0
  26. package/dist/{decimal-S-jYTEL5.js → decimal-ziY3648r.js} +1 -1
  27. package/dist/extensions/array.d.ts +1 -0
  28. package/dist/{fuzzy-DW00BX8H.js → fuzzy-gvHXFsh0.js} +1 -1
  29. package/dist/{dayjs.min-M4PEyOKN.js → index-Do1KDD1S.js} +3594 -3356
  30. package/dist/{layout-DACHKQ9G.js → layout-BxDEsp4a.js} +1 -1
  31. package/dist/number-Dvvpk3SV.js +97 -0
  32. package/dist/{rules-ldw61cGA.js → rules-CQu9yXsg.js} +16 -15
  33. package/dist/stock-estimate-Wysv30cx.js +122 -0
  34. package/dist/{supplier-DjKC4TaM.js → supplier-BFdAYn3E.js} +1 -1
  35. package/dist/tsconfig.app.tsbuildinfo +1 -1
  36. package/dist/{use-inventory-binding-dialog-D1M09VoX.js → use-inventory-binding-dialog-CuyOzZ5r.js} +2 -2
  37. package/dist/views/ingredients/IngredientsView.vue.d.ts +1 -0
  38. package/dist/{xlsx-BcM9fWkc.js → xlsx-BG4CsaGF.js} +1 -1
  39. package/dist/{xlsx.util-BNXjhkYU.js → xlsx.util-BkVYceD0.js} +2 -2
  40. package/package.json +4 -4
  41. package/dist/ApprovalView-BJ_SGOrx.js +0 -134
  42. package/dist/BindingsTable-BMIkL0Bk.js +0 -121
  43. package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D9Qp3jke.js +0 -97
  44. package/dist/IngredientsView-DYFkUsHx.js +0 -1802
  45. package/dist/ReceiveRequestView-C_0jK6GY.js +0 -1435
  46. package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-Dov3Uq2z.js +0 -64
  47. package/dist/StockView-JPw1K8aU.js +0 -1960
  48. package/dist/SupplierView-CiQLFWmQ.js +0 -804
  49. package/dist/app-BbXzmbBO.js +0 -42892
  50. package/dist/components/FmTableToolbar.vue.d.ts +0 -49
  51. package/dist/date2-DFqSdEvG.js +0 -189
  52. package/dist/init-date-range-B_ha80e0.js +0 -21
  53. package/dist/stock-estimate-DOP1qO5w.js +0 -145
@@ -1,11 +1,12 @@
1
1
  import { ref as F, computed as re, h as Se, defineComponent as Ue, resolveComponent as H, openBlock as f, createBlock as I, unref as y, isRef as Me, withCtx as se, createElementVNode as e, createVNode as G, createElementBlock as x, Fragment as ee, normalizeClass as ae, toDisplayString as O, createCommentVNode as S, renderList as me } from "vue";
2
- import { i as Fe } from "./init-date-range-B_ha80e0.js";
3
- import { h as Le, f as oe, v, w as je, c as Ce, q as M, s as Y, a as xe } from "./app-BbXzmbBO.js";
4
- import { r as ne, m as Be, n as Ie, i as Pe, c as pe, a as ce, l as Ve, k as Ge, j as Ke } from "./date2-DFqSdEvG.js";
2
+ import { i as Fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DgHp7KgJ.js";
3
+ import { h as Le, f as oe, v, w as je, c as Ce, q as M, s as Y, a as xe } from "./app-D1teOEQX.js";
4
+ import { e as ne, t as Be, b as Ie, a as Ve } from "./date2-6Vt_hnAG.js";
5
5
  import { F as ke, D as N, R as k } from "./row-action.enum-BwQbURNh.js";
6
- import { useDialog as Ne, useSnackbar as Ee, components as Ae, useProxiedModel as ze } from "@feedmepos/ui-library";
7
- import { c as Re } from "./layout-DACHKQ9G.js";
8
- import { F as He } from "./decimal-S-jYTEL5.js";
6
+ import { useDialog as Pe, useSnackbar as Ne, components as Ae, useProxiedModel as Ge } from "@feedmepos/ui-library";
7
+ import { c as Re } from "./layout-BxDEsp4a.js";
8
+ import { h as Ee, c as pe, a as ce, j as Ke, i as ze } from "./number-Dvvpk3SV.js";
9
+ import { F as He } from "./decimal-ziY3648r.js";
9
10
  import { E as Qe } from "./empty-placeholder-wf6-BWE8.js";
10
11
  const Te = Le((a, i) => {
11
12
  const d = oe();
@@ -106,8 +107,8 @@ function qe(a) {
106
107
  const d = /* @__PURE__ */ new Date(`${i[1]}`);
107
108
  return isNaN(d.getTime()) ? null : d;
108
109
  }
109
- function br(a, i) {
110
- const d = Ne(), r = oe(), g = xe(), m = F(!1), D = Ee(), T = Te(), L = F(new Array()), u = F(
110
+ function _r(a, i) {
111
+ const d = Pe(), r = oe(), g = xe(), m = F(!1), D = Ne(), T = Te(), L = F(new Array()), u = F(
111
112
  i != null && i.startDate && (i != null && i.endDate) ? i : Fe()
112
113
  ), l = re(() => {
113
114
  const n = new Date(u.value.startDate), s = new Date(u.value.endDate);
@@ -292,7 +293,7 @@ function Ye(a, i) {
292
293
  return i.reduce(
293
294
  (r, g) => {
294
295
  const m = g.received.find((D) => D.sku._id === a._id);
295
- return m && (r = Pe(r, m.amount)), r;
296
+ return m && (r = Ee(r, m.amount)), r;
296
297
  },
297
298
  He.toPrecision(pe(0), a.unit.precision)
298
299
  );
@@ -400,7 +401,7 @@ const Q = {
400
401
  value: v.enum.completeReceive
401
402
  }
402
403
  };
403
- function _r(a, i) {
404
+ function wr(a, i) {
404
405
  const d = oe();
405
406
  function r(u) {
406
407
  switch (u.status) {
@@ -648,7 +649,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, Ze = { class: "xs:w-
648
649
  }, Jt = { class: "flex flex-col gap-8" }, Zt = { class: "flex flex-col gap-4" }, Xt = /* @__PURE__ */ e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Received by ", -1), er = { class: "fm-typo-en-body-lg-600" }, tr = { class: "flex flex-col gap-4" }, rr = /* @__PURE__ */ e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Received items ", -1), sr = { class: "flex flex-col gap-4" }, ar = /* @__PURE__ */ e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Delivery order no. ", -1), or = { class: "fm-typo-en-body-lg-600" }, nr = { class: "flex flex-col gap-4" }, cr = {
649
650
  key: 0,
650
651
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
651
- }, lr = { class: "fm-typo-en-body-lg-600" }, ir = { class: "flex gap-8 xs:flex-col" }, wr = /* @__PURE__ */ Ue({
652
+ }, lr = { class: "fm-typo-en-body-lg-600" }, ir = { class: "flex gap-8 xs:flex-col" }, Or = /* @__PURE__ */ Ue({
652
653
  __name: "TransferDetails",
653
654
  props: {
654
655
  purchaseOrder: {},
@@ -660,7 +661,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, Ze = { class: "xs:w-
660
661
  },
661
662
  emits: ["update:show", "submitted"],
662
663
  setup(a, { emit: i }) {
663
- const d = a, r = i, g = Ne(), m = Ee(), D = xe(), T = re(
664
+ const d = a, r = i, g = Pe(), m = Ne(), D = xe(), T = re(
664
665
  () => {
665
666
  var t, c, R, b;
666
667
  return ((c = (t = d.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : c.internal) === "restaurant" || ((b = (R = d.purchaseOrder) == null ? void 0 : R.supplier) == null ? void 0 : b.internal) === "warehouse" ? te.TRANSFER : te.PURCHASE;
@@ -672,7 +673,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, Ze = { class: "xs:w-
672
673
  {
673
674
  label: "Delivery history"
674
675
  }
675
- ], u = F(L[0]), l = F(!1), o = F(""), h = F(!0), E = Te(), $ = ze(d, "show");
676
+ ], u = F(L[0]), l = F(!1), o = F(""), h = F(!0), E = Te(), $ = Ge(d, "show");
676
677
  async function ie(t, c, R) {
677
678
  o.value = c, l.value = !0, h.value = !1;
678
679
  try {
@@ -737,11 +738,11 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, Ze = { class: "xs:w-
737
738
  ), b = Object.entries(R).reduce(
738
739
  (s, [_, w]) => {
739
740
  const A = w.reduce((C, q) => {
740
- const j = Ve(
741
+ const j = Ke(
741
742
  C,
742
743
  Math.max(C.precision, q.amount.precision)
743
744
  );
744
- return Pe(j, q.amount);
745
+ return Ee(j, q.amount);
745
746
  }, pe(0));
746
747
  return s[_] = A, s;
747
748
  },
@@ -842,7 +843,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, Ze = { class: "xs:w-
842
843
  ]),
843
844
  e("div", Pt, [
844
845
  e("div", Nt, O(p.code), 1),
845
- p.totalCost && y(D).enableTotalCost ? (f(), x("div", Et, " (" + O(y(Ge)(p.totalCost)) + ") ", 1)) : S("", !0)
846
+ p.totalCost && y(D).enableTotalCost ? (f(), x("div", Et, " (" + O(y(ze)(p.totalCost)) + ") ", 1)) : S("", !0)
846
847
  ])
847
848
  ]))), 128))
848
849
  ])
@@ -892,7 +893,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, Ze = { class: "xs:w-
892
893
  ]),
893
894
  e("div", Gt, [
894
895
  Kt,
895
- e("div", zt, O(y(ne)(new Date(p.createdAt))) + ", " + O(y(Ke)(new Date(p.createdAt))), 1)
896
+ e("div", zt, O(y(ne)(new Date(p.createdAt))) + ", " + O(y(Ve)(new Date(p.createdAt))), 1)
896
897
  ])
897
898
  ]),
898
899
  e("div", Ht, [
@@ -1018,9 +1019,9 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, Ze = { class: "xs:w-
1018
1019
  });
1019
1020
  export {
1020
1021
  te as P,
1021
- wr as _,
1022
- br as a,
1023
- _r as b,
1022
+ Or as _,
1023
+ _r as a,
1024
+ wr as b,
1024
1025
  Ye as g,
1025
1026
  qe as p,
1026
1027
  Te as u