@feedmepos/mf-inventory-portal 0.0.19-dev.14 → 0.0.19-dev.15

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 (38) hide show
  1. package/dist/{ApprovalView-BY13XuOu.js → ApprovalView-CRHU3Bv0.js} +5 -5
  2. package/dist/{BindingsDialog-B3PP-XkE.js → BindingsDialog-ChIRg0d3.js} +1 -1
  3. package/dist/{BindingsPicker-DL17pRty.js → BindingsPicker-BJAbeiDf.js} +1 -1
  4. package/dist/{BindingsTable-CjKOv7Yw.js → BindingsTable-5MxWD_qa.js} +1 -1
  5. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DoF7wwNT.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0j4VOis.js} +1 -1
  6. package/dist/{IngredientsView-C-rsKAsF.js → IngredientsView-qXrDtzSK.js} +4 -4
  7. package/dist/{IntegrationView-BkhfPSjM.js → IntegrationView-D6yFqod1.js} +2 -2
  8. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Buc21sEN.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGurlvYg.js} +1 -1
  9. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BRijSilS.js → PremiumBadge.vue_vue_type_script_setup_true_lang-2Ady4pB4.js} +1 -1
  10. package/dist/{PurchaseOrderPrintPreview-CGMMozPA.js → PurchaseOrderPrintPreview-BWwjMRqb.js} +1 -1
  11. package/dist/{ReceiveRequestView-Bk0pUeEm.js → ReceiveRequestView-C94SWDaj.js} +7 -7
  12. package/dist/{RecipeView-kzA9kIg8.js → RecipeView-CG9H_ZOo.js} +4 -4
  13. package/dist/{StockView-DF-ucES_.js → StockView-BdXGfDNl.js} +7 -7
  14. package/dist/{SupplierView-XlzsU00G.js → SupplierView-ClL2oc8K.js} +4 -4
  15. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Bp7AJiJ-.js → TransferDetails.vue_vue_type_script_setup_true_lang-DktBkwCx.js} +4 -4
  16. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-BE95F9r1.js +1437 -0
  17. package/dist/{TransferTemplateView-CsA2SzQY.js → TransferTemplateView-BXrNS8pg.js} +26 -26
  18. package/dist/{UnitView-9VMIlEZ_.js → UnitView-Dx2vWJXi.js} +5 -5
  19. package/dist/{WarehouseView-JTYLFBsu.js → WarehouseView-UkmUZnqH.js} +3 -3
  20. package/dist/{app-kYGuBDV8.js → app-BLzTa0Ut.js} +4782 -4760
  21. package/dist/app.js +1 -1
  22. package/dist/components/FmMultiselectDialogProps.d.ts +3 -1
  23. package/dist/{decimal-E3w4eGHF.js → decimal-DLYVb_I_.js} +1 -1
  24. package/dist/format-unit-display-D_Z4TNZd.js +668 -0
  25. package/dist/{id-to-date-gyR82hWy.js → id-to-date-CKplrnj_.js} +1 -1
  26. package/dist/{layout-BTYR4n3X.js → layout-B9sdKjL9.js} +1 -1
  27. package/dist/stores/feature.d.ts +1 -0
  28. package/dist/stores/location.d.ts +4 -0
  29. package/dist/{supplier-Ed-Bva_-.js → supplier-BZ6HZcYB.js} +1 -1
  30. package/dist/tsconfig.app.tsbuildinfo +1 -1
  31. package/dist/views/receive-request/components/select-template-dialog/SelectTemplateDialog.vue.d.ts +8 -0
  32. package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +1 -1
  33. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1 -1
  34. package/dist/{xlsx-q6Ctgevr.js → xlsx-C3AV6UrJ.js} +1 -1
  35. package/dist/{xlsx.util-Cvqg56mI.js → xlsx.util-slrhXhsk.js} +2 -2
  36. package/package.json +1 -1
  37. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-D1NAkXMT.js +0 -1690
  38. package/dist/purchase-order-transaction-type-CUtdDhYo.js +0 -299
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as W, onMounted as Ve, computed as M, ref as U, watch as ye, inject as Ge, resolveComponent as I, openBlock as R, createElementBlock as N, createElementVNode as a, createVNode as c, withCtx as B, renderSlot as we, withDirectives as Te, normalizeClass as ce, vModelText as Fe, reactive as Ye, h as D, toDisplayString as F, unref as e, createBlock as Q, isRef as Oe, createCommentVNode as ae, Fragment as Pe, renderList as We, normalizeStyle as Ke, Teleport as Ze, mergeProps as $e, normalizeProps as Je, guardReactiveProps as Xe } from "vue";
2
- import { _ as et, a as tt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DoF7wwNT.js";
2
+ import { _ as et, a as tt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0j4VOis.js";
3
3
  import { useI18n as Y } from "@feedmepos/mf-common";
4
- import { d as Be, c as re, u as ot, a as st, b as Se, e as nt, _ as at } from "./TransferDialog.vue_vue_type_script_setup_true_lang-D1NAkXMT.js";
4
+ import { P, a as ot, f as st, b as nt, c as Se, d as at } from "./format-unit-display-D_Z4TNZd.js";
5
5
  import { F as le, R as Re } from "./row-action.enum-PMKMRrZR.js";
6
- import { $ as me, t as Ie, I as lt, a0 as rt, a1 as it, a as E, D as Me, R as pe, a2 as ut, a3 as dt, r as de, a4 as mt, l as De, A as fe, M as Ae, G as Le, a5 as ct, a6 as Ue, b as qe, u as pt, j as Ee, y as ft, a7 as yt, a8 as vt } from "./app-kYGuBDV8.js";
7
- import { F as q, _ as Ne, u as bt } from "./layout-BTYR4n3X.js";
8
- import { useBreakpoints as ze, components as G, FmButtonVariant as _t, useDialog as xt, useSnackbar as ht, useProxiedModel as He } from "@feedmepos/ui-library";
6
+ import { $ as me, t as Ie, I as lt, a0 as rt, a1 as it, a as E, D as Me, R as pe, a2 as ut, a3 as dt, r as de, a4 as mt, l as De, A as fe, M as Ae, G as Be, a5 as ct, a6 as Le, b as Ue, u as pt, j as qe, y as ft, a7 as yt, a8 as vt } from "./app-BLzTa0Ut.js";
7
+ import { F as q, _ as Ee, u as bt } from "./layout-B9sdKjL9.js";
8
+ import { useBreakpoints as Ne, components as G, FmButtonVariant as _t, useDialog as xt, useSnackbar as ht, useProxiedModel as ze } from "@feedmepos/ui-library";
9
9
  import { storeToRefs as gt } from "pinia";
10
- import { P, f as kt, a as Ct } from "./purchase-order-transaction-type-CUtdDhYo.js";
11
- import { _ as je } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BRijSilS.js";
10
+ import { d as He, c as re, u as kt, _ as Ct } from "./TransferDialog.vue_vue_type_script_setup_true_lang-BE95F9r1.js";
11
+ import { _ as je } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-2Ady4pB4.js";
12
12
  import { useRouter as wt } from "vue-router";
13
- import { u as Tt } from "./supplier-Ed-Bva_-.js";
13
+ import { u as Tt } from "./supplier-BZ6HZcYB.js";
14
14
  const Ft = { class: "flex flex-col" }, $t = { class: "flex flex-col" }, St = { class: "flex-1" }, Rt = { class: "flex items-center" }, It = { class: "flex-1" }, Mt = { class: "flex-1" }, Dt = /* @__PURE__ */ W({
15
15
  __name: "FmMinMaxInput",
16
16
  props: {
@@ -49,7 +49,7 @@ const Ft = { class: "flex flex-col" }, $t = { class: "flex flex-col" }, St = { c
49
49
  helperState: {}
50
50
  },
51
51
  setup(u) {
52
- const b = u, m = Be("modelValue"), l = lt();
52
+ const b = u, m = He("modelValue"), l = lt();
53
53
  Ve(() => {
54
54
  const { min: n, max: t } = m ?? {};
55
55
  if (!(!n || !t) && n.precision !== t.precision) {
@@ -182,11 +182,11 @@ const Ot = () => {
182
182
  zIndex: 50,
183
183
  class: "whitespace-nowrap"
184
184
  },
185
- u("inventory.transfer.form.items.table.Cost", [Ue()])
185
+ u("inventory.transfer.form.items.table.Cost", [Le()])
186
186
  );
187
187
  };
188
188
  function Pt(u) {
189
- const { t: b } = Y(), m = Ye({}), { breakpoints: l } = ze();
189
+ const { t: b } = Y(), m = Ye({}), { breakpoints: l } = Ne();
190
190
  Ve(() => {
191
191
  for (const i of u.items) {
192
192
  if (!i.totalCost)
@@ -387,7 +387,7 @@ function Pt(u) {
387
387
  {
388
388
  class: [u.disabled ? "text-fm-color-typo-disabled" : ""]
389
389
  },
390
- p ? Le(
390
+ p ? Be(
391
391
  re(s.sku, s.quantity, s.measurement, {
392
392
  supplier: u.supplier
393
393
  })
@@ -436,7 +436,7 @@ function Pt(u) {
436
436
  u.disabled ? "text-fm-color-typo-disabled" : ""
437
437
  ]
438
438
  },
439
- Ue()
439
+ Le()
440
440
  ) : null;
441
441
  },
442
442
  append() {
@@ -484,7 +484,7 @@ function Pt(u) {
484
484
  }
485
485
  ];
486
486
  return {
487
- columnDefs: M(() => qe().enableTotalCost && u.transferType === P.PURCHASE ? g : g.filter((s) => s.id !== "Cost"))
487
+ columnDefs: M(() => Ue().enableTotalCost && u.transferType === P.PURCHASE ? g : g.filter((s) => s.id !== "Cost"))
488
488
  };
489
489
  }
490
490
  const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-center" }, Ut = { class: "flex-1 flex gap-1 items-center" }, qt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Et = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Nt = { class: "flex gap-8 w-full" }, zt = { class: "flex-1 flex flex-col gap-4" }, Ht = { class: "flex-1 flex flex-col gap-4" }, jt = { class: "flex gap-8 w-full" }, Qt = { class: "flex-1 flex flex-col gap-4" }, Gt = { class: "flex-1 flex flex-col gap-4" }, Yt = { class: "flex gap-8 w-full" }, Wt = { class: "flex-1 flex flex-col gap-4" }, Kt = { class: "flex-1 flex flex-col gap-4" }, Zt = /* @__PURE__ */ W({
@@ -592,7 +592,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
592
592
  disabled: { type: Boolean }
593
593
  },
594
594
  setup(u, { expose: b }) {
595
- const m = u, l = Be(), { t: f } = Y(), g = Ee(), k = pt(), i = Tt();
595
+ const m = u, l = He(), { t: f } = Y(), g = qe(), k = pt(), i = Tt();
596
596
  ye(
597
597
  () => m.modelValue,
598
598
  (n) => {
@@ -601,7 +601,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
601
601
  ), g.watchLocation(async () => {
602
602
  location && (l.purchaseOrder.supplier || (l.purchaseOrder.supplier = i.suppliers.find((n) => n) ?? l.purchaseOrder.supplier));
603
603
  });
604
- const s = xt(), d = ot(
604
+ const s = xt(), d = kt(
605
605
  () => l.purchaseOrder,
606
606
  (n) => {
607
607
  l.purchaseOrder = {
@@ -809,7 +809,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
809
809
  "hide-footer": ""
810
810
  }, {
811
811
  "list-row": B((x) => [
812
- (R(), Q(Ne, {
812
+ (R(), Q(Ee, {
813
813
  row: x,
814
814
  key: e(l).purchaseOrder.items.map((O) => O.sku._id).join(".")
815
815
  }, {
@@ -840,7 +840,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
840
840
  emits: ["update:show", "submitted"],
841
841
  setup(u, { expose: b, emit: m }) {
842
842
  var t;
843
- const l = u, f = m, g = st(), k = ht(), { t: i } = Y(), s = He(l, "show");
843
+ const l = u, f = m, g = ot(), k = ht(), { t: i } = Y(), s = ze(l, "show");
844
844
  function d() {
845
845
  return {
846
846
  _id: "",
@@ -1032,7 +1032,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
1032
1032
  },
1033
1033
  emits: ["update:show", "action:use", "action:edit"],
1034
1034
  setup(u, { emit: b }) {
1035
- const m = u, l = b, f = qe(), { t: g } = Y(), k = M(() => {
1035
+ const m = u, l = b, f = Ue(), { t: g } = Y(), k = M(() => {
1036
1036
  var p;
1037
1037
  return (p = m.template) == null ? void 0 : p.purchaseOrder;
1038
1038
  }), i = M(
@@ -1040,7 +1040,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
1040
1040
  var p, _, C, T;
1041
1041
  return ((_ = (p = k.value) == null ? void 0 : p.supplier) == null ? void 0 : _.internal) === "restaurant" || ((T = (C = k.value) == null ? void 0 : C.supplier) == null ? void 0 : T.internal) === "warehouse" ? P.TRANSFER : P.PURCHASE;
1042
1042
  }
1043
- ), s = U(!0), d = He(m, "show");
1043
+ ), s = U(!0), d = ze(m, "show");
1044
1044
  return (p, _) => {
1045
1045
  var L;
1046
1046
  const C = I("FmChip"), T = I("FmMenuDivider"), w = I("FmCard"), S = I("FmButton"), A = I("FmSideSheet");
@@ -1081,7 +1081,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
1081
1081
  a("div", fo, [
1082
1082
  a("div", yo, F(e(g)("inventory.transfer.receiveRequest.details.createdAt")), 1)
1083
1083
  ]),
1084
- a("div", vo, F(e(kt)(((t = p.template) == null ? void 0 : t._id) ?? "")), 1)
1084
+ a("div", vo, F(e(st)(((t = p.template) == null ? void 0 : t._id) ?? "")), 1)
1085
1085
  ]),
1086
1086
  (o = k.value) != null && o.effectiveAt ? (R(), N("div", bo, [
1087
1087
  a("div", _o, F(e(g)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
@@ -1120,11 +1120,11 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
1120
1120
  a("div", Oo, [
1121
1121
  a("div", Po, F(t.name), 1),
1122
1122
  _[3] || (_[3] = a("div", { class: "flex-1 min-w-32" }, null, -1)),
1123
- a("div", Bo, F(e(Ct)(t.quantity, t.sku.unit, t.measurement)), 1)
1123
+ a("div", Bo, F(e(nt)(t.quantity, t.sku.unit, t.measurement)), 1)
1124
1124
  ]),
1125
1125
  a("div", Lo, [
1126
1126
  a("div", Uo, F(t.code), 1),
1127
- t.totalCost && e(f).enableTotalCost ? (R(), N("div", qo, " (" + F(e(Le)(t.totalCost)) + ") ", 1)) : ae("", !0)
1127
+ t.totalCost && e(f).enableTotalCost ? (R(), N("div", qo, " (" + F(e(Be)(t.totalCost)) + ") ", 1)) : ae("", !0)
1128
1128
  ])
1129
1129
  ]))), 128))
1130
1130
  ])
@@ -1154,7 +1154,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
1154
1154
  setup(u) {
1155
1155
  const { t: b } = Y(), { createTemplate: m, viewTemplate: l } = Se(), { templateDialogProps: f, transferFormDialogProps: g, templateDetailsProps: k } = gt(
1156
1156
  Se()
1157
- ), i = nt(), s = bt(), d = Ee(), { breakpoints: p } = ze();
1157
+ ), i = at(), s = bt(), d = qe(), { breakpoints: p } = Ne();
1158
1158
  d.watchLocation(i.fetchTemplates);
1159
1159
  const _ = M(
1160
1160
  () => i.loading.value || !d._currentLocation
@@ -1209,7 +1209,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
1209
1209
  "page-size": w.value
1210
1210
  }, {
1211
1211
  "list-row": B((y) => [
1212
- c(Ne, {
1212
+ c(Ee, {
1213
1213
  row: y,
1214
1214
  onRowClick: (v) => e(l)(v)
1215
1215
  }, {
@@ -1264,7 +1264,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
1264
1264
  _: 1
1265
1265
  }, 8, ["title", "actions"]),
1266
1266
  (R(), Q(Ze, { to: "body" }, [
1267
- c(at, $e(e(g), { onSubmitted: L }), null, 16),
1267
+ c(Ct, $e(e(g), { onSubmitted: L }), null, 16),
1268
1268
  c(No, Je(Xe(e(k))), null, 16),
1269
1269
  c(ro, $e(e(f), {
1270
1270
  onSubmitted: o[2] || (o[2] = (h) => e(i).fetchTemplates())
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as H, computed as V, openBlock as v, createElementBlock as k, createElementVNode as l, Fragment as N, renderList as q, toDisplayString as h, createCommentVNode as O, ref as R, resolveComponent as E, createBlock as T, withCtx as I, createVNode as y, unref as a, isRef as X, normalizeStyle as se, Teleport as ae, normalizeProps as re, guardReactiveProps as ie } from "vue";
2
- import { u as K, S as ue, c as ne, R as z, A as de, a as Y, l as me, m as ce, e as Z, j as pe } from "./app-kYGuBDV8.js";
2
+ import { u as K, S as ue, c as ne, R as z, A as de, a as Y, l as me, m as ce, e as Z, j as pe } from "./app-BLzTa0Ut.js";
3
3
  import { useDialog as fe, useSnackbar as oe, useProxiedModel as ee, useBreakpoints as ve } from "@feedmepos/ui-library";
4
4
  import { i as ye, _ as be } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { F as w, D as te, R as j } from "./row-action.enum-PMKMRrZR.js";
6
6
  import { defineStore as ge, storeToRefs as xe } from "pinia";
7
- import { c as _e, _ as he, F as Ve, u as Ue } from "./layout-BTYR4n3X.js";
7
+ import { c as _e, _ as he, F as Ve, u as Ue } from "./layout-B9sdKjL9.js";
8
8
  import { useI18n as G } from "@feedmepos/mf-common";
9
- import { _ as we, a as Ce } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DoF7wwNT.js";
10
- import { F as ke } from "./decimal-E3w4eGHF.js";
11
- import { _ as Fe } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Buc21sEN.js";
9
+ import { _ as we, a as Ce } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0j4VOis.js";
10
+ import { F as ke } from "./decimal-DLYVb_I_.js";
11
+ import { _ as Fe } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGurlvYg.js";
12
12
  const Se = { class: "flex flex-col gap-8" }, $e = {
13
13
  key: 0,
14
14
  class: "flex flex-col"
@@ -1,9 +1,9 @@
1
1
  import { ref as W, defineComponent as O, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as S, createElementBlock as j, toRaw as be, reactive as $e, createElementVNode as b, toDisplayString as L, unref as c, createVNode as k, resolveComponent as B, createSlots as De, withCtx as q, createTextVNode as We, renderSlot as Pe, createBlock as z, createCommentVNode as xe, computed as D, isRef as we, normalizeStyle as Se } from "vue";
2
- import { n as Re, Q as Te, T as Ee, c as G, V as ae, W as le, X as Ue, i as Le, R as N, j as Ne } from "./app-kYGuBDV8.js";
2
+ import { n as Re, Q as Te, T as Ee, c as G, V as ae, W as le, X as Ue, i as Le, R as N, j as Ne } from "./app-BLzTa0Ut.js";
3
3
  import { useCoreStore as Be, useI18n as I } from "@feedmepos/mf-common";
4
4
  import { D as Ve, R as Z, F as E } from "./row-action.enum-PMKMRrZR.js";
5
- import { c as qe, _ as Ie, F as J, u as je } from "./layout-BTYR4n3X.js";
6
- import { _ as ze, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DoF7wwNT.js";
5
+ import { c as qe, _ as Ie, F as J, u as je } from "./layout-B9sdKjL9.js";
6
+ import { _ as ze, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0j4VOis.js";
7
7
  import { useDialogChild as Ge, useDialog as Ae, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
8
8
  const Y = Re((p, m) => {
9
9
  const f = Be();