@feedmepos/mf-inventory-portal 1.0.9-dev.2 → 1.0.9-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.
Files changed (60) hide show
  1. package/dist/{App-DfxhucPn.js → App-BOKGVcoO.js} +2 -2
  2. package/dist/{ApprovalView-BUYgTb8S.js → ApprovalView-Bo-4fnEU.js} +2 -2
  3. package/dist/{BindingsDialog-Cbs9aVch.js → BindingsDialog-DM2b4GN4.js} +2 -2
  4. package/dist/{BindingsPicker-BH9bil6g.js → BindingsPicker-CJKBXA0c.js} +3 -3
  5. package/dist/{BindingsTable-DBsS_9yb.js → BindingsTable-BxCEEJfb.js} +1 -1
  6. package/dist/{ClosingDraftView-CcQssDLY.js → ClosingDraftView-bQxPF18V.js} +2 -2
  7. package/dist/{ClosingTemplateView-BHPqi-bL.js → ClosingTemplateView-DLkp9Qt8.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-DlTLtZ1f.js → DeliveryOrderPrintPreview-CK3HdYVb.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CtJSPDCo.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DvCBsPdI.js} +3 -3
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-B-erI7fq.js → FmUnitInput.vue_vue_type_script_setup_true_lang-R8f-Q9Nk.js} +20 -20
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DT4nyE8i.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BOyqgaik.js} +1 -1
  12. package/dist/{IngredientsView-BCEznLxB.js → IngredientsView-DmKCy_JQ.js} +4 -4
  13. package/dist/{IntegrationView-COSJuqnB.js → IntegrationView-B1dzt8WK.js} +4 -4
  14. package/dist/{InventoryBindingForm-B3C8gktf.js → InventoryBindingForm-CeTlH0U1.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bn2X1jxB.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DsM2bCNe.js} +92 -87
  16. package/dist/{InventoryBindingSummary-BF1OtGum.js → InventoryBindingSummary-QVSD87YL.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BMTXHa4I.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C-lgLo2e.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CZR7wF6-.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CEMRfo1C.js} +1 -1
  19. package/dist/{PublishView-Cp5tpVb0.js → PublishView-BYGKLC9D.js} +2 -2
  20. package/dist/{PurchaseOrderPrintPreview-DWOcxCH8.js → PurchaseOrderPrintPreview-CEVjGeom.js} +1 -1
  21. package/dist/{ReceiveRequestView-CRuhm8r1.js → ReceiveRequestView-D5PcGCLv.js} +42 -42
  22. package/dist/RecipeView-DmTDCsvk.js +8493 -0
  23. package/dist/{StockView-CuK8s5rt.js → StockView-EmTqUcP1.js} +7 -7
  24. package/dist/{SupplierView-Bwpe9RoM.js → SupplierView-BaLnW761.js} +4 -4
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DDAZMTzq.js → TransferDetails.vue_vue_type_script_setup_true_lang-B3ew6mc5.js} +36 -36
  26. package/dist/{TransferTemplateView-BlluEiV-.js → TransferTemplateView-DoeLAFmJ.js} +114 -114
  27. package/dist/{UnitView-BWGQHOWP.js → UnitView-6Kobe5di.js} +18 -18
  28. package/dist/{WarehouseView-dOCu22dg.js → WarehouseView-BBMS14jU.js} +1 -1
  29. package/dist/api/inventory.d.ts +66 -207
  30. package/dist/{app-BkIAyhP-.js → app-CUTIQqG_.js} +7318 -7360
  31. package/dist/app.js +1 -1
  32. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +22 -0
  33. package/dist/components/shell/inventory/binding-ui.vue.d.ts +22 -0
  34. package/dist/{decimal-BiC7uGww.js → decimal-Bb7Chjpr.js} +1 -1
  35. package/dist/{feature-CCDDWpq8.js → feature-D5GLIW5h.js} +84 -89
  36. package/dist/{format-unit-display-CLa0op_h.js → format-unit-display-CqqBiewI.js} +29 -29
  37. package/dist/{index-UgbyiGok.js → index-B7QMXzGe.js} +2739 -2823
  38. package/dist/{index-BbFvsU1Z.js → index-DiEdX1Bs.js} +2 -2
  39. package/dist/main.d.ts +1 -0
  40. package/dist/{stock-SxO4bxTm.js → stock-CO0XWh8j.js} +1 -1
  41. package/dist/stores/feature.d.ts +0 -2
  42. package/dist/stores/inventory.d.ts +89 -211
  43. package/dist/{supplier-BVdCk7nI.js → supplier-C877x7mU.js} +1 -1
  44. package/dist/tsconfig.app.tsbuildinfo +1 -1
  45. package/dist/{use-ingredient-select-dialog-CDeGXhur.js → use-ingredient-select-dialog-ClufUFeU.js} +1 -1
  46. package/dist/{use-inventory-binding-dialog-CeRKqMy7.js → use-inventory-binding-dialog-BuRe6QNp.js} +1 -1
  47. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +44 -0
  48. package/dist/views/recipe/components/recipe-override-form-field/RecipeOverrideFormField.vue.d.ts +61 -0
  49. package/dist/views/recipe/composables/use-recipe-overrides-form-field.d.ts +10 -0
  50. package/dist/{vue-i18n-3Mh8tKq8.js → vue-i18n-CxuQa0ds.js} +337 -337
  51. package/package.json +4 -3
  52. package/dist/IngredientGroupView-DE15kdqH.js +0 -604
  53. package/dist/RecipeView-BTS1LBKZ.js +0 -616
  54. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +0 -3
  55. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +0 -31
  56. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +0 -12
  57. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +0 -20
  58. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +0 -12
  59. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +0 -24
  60. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +0 -218
@@ -1,14 +1,14 @@
1
- import { X as Re, a as H, K as Ie, aa as P, r as Ne, ab as pe, s as fe, u as z, i as M, v as Ae, aC as oe, w as ye, b as X, t as j, P as K, aB as Oe, au as De, V as Fe, x as Pe, y as Me, d as ae, e as Z, R as se, H as Ue, a9 as Be, D as Y, h as O, f as Le } from "./app-BkIAyhP-.js";
2
- import { useCoreStore as J, useI18n as ee } from "@feedmepos/mf-common";
1
+ import { X as Re, a as H, J as Ie, aa as P, r as Ne, ab as pe, s as fe, u as z, i as M, v as Ae, aC as oe, w as ye, b as J, t as j, O as K, aB as Oe, au as De, T as Fe, x as Pe, y as Me, d as ae, e as X, R as se, W as Ue, a9 as Be, D as W, h as O, f as Le } from "./app-CUTIQqG_.js";
2
+ import { useCoreStore as Z, useI18n as ee } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as Qe, useSnackbar as he, useDialog as He, FmButtonVariant as ie, components as le } from "@feedmepos/ui-library";
4
4
  import { defineStore as ve } from "pinia";
5
- import { defineComponent as ge, resolveComponent as B, openBlock as T, createElementBlock as w, createElementVNode as $, normalizeClass as L, createTextVNode as qe, toDisplayString as I, unref as R, createCommentVNode as Q, createVNode as D, withCtx as G, Fragment as U, renderList as V, ref as k, onMounted as Ve, computed as ce, watch as je, createSlots as ze, createBlock as q, h as W } from "vue";
5
+ import { defineComponent as ge, resolveComponent as B, openBlock as T, createElementBlock as w, createElementVNode as $, normalizeClass as L, createTextVNode as qe, toDisplayString as I, unref as R, createCommentVNode as Q, createVNode as D, withCtx as G, Fragment as U, renderList as V, ref as k, onMounted as Ve, computed as ce, watch as je, createSlots as ze, createBlock as q, h as Y } from "vue";
6
6
  import { useRouter as Ke } from "vue-router";
7
- import { u as te } from "./supplier-BVdCk7nI.js";
7
+ import { u as te } from "./supplier-C877x7mU.js";
8
8
  const be = Re((e, t) => {
9
9
  function s() {
10
10
  var n;
11
- return `business_${((n = J().currentBusiness.value) == null ? void 0 : n._id) ?? ""}`;
11
+ return `business_${((n = Z().currentBusiness.value) == null ? void 0 : n._id) ?? ""}`;
12
12
  }
13
13
  return {
14
14
  async getTemplate(l) {
@@ -95,9 +95,9 @@ function Te() {
95
95
  }
96
96
  ];
97
97
  }
98
- function Ye(e) {
98
+ function We(e) {
99
99
  var i;
100
- const s = J().currentBusiness.value, o = (i = e.map((c) => {
100
+ const s = Z().currentBusiness.value, o = (i = e.map((c) => {
101
101
  var x;
102
102
  const u = c.purchaseOrder.items.map((r) => Se(r)), h = Te(), p = [
103
103
  ["Template ID", c._id],
@@ -140,8 +140,8 @@ function Ye(e) {
140
140
  )) == null ? void 0 : i.sheets, n = `${s == null ? void 0 : s.name} transfer templates (${Ne(/* @__PURE__ */ new Date())}).xlsx`, y = pe(o);
141
141
  return fe(y, n), n;
142
142
  }
143
- function We() {
144
- const e = J(), t = te(), s = z(), l = H(), o = e.currentBusiness.value, n = Se({
143
+ function Ye() {
144
+ const e = Z(), t = te(), s = z(), l = H(), o = e.currentBusiness.value, n = Se({
145
145
  sku: {
146
146
  unit: {
147
147
  _id: "",
@@ -293,7 +293,7 @@ function Ge(e, t) {
293
293
  errors: s
294
294
  };
295
295
  }
296
- function Xe(e) {
296
+ function Je(e) {
297
297
  if (!e.length || `${e[0]}`.toLocaleLowerCase() === "all")
298
298
  return [];
299
299
  const t = /(.*) \(((warehouse_|restaurant_).{24,})\)/, l = z().locationByDbName;
@@ -314,7 +314,7 @@ function Xe(e) {
314
314
  });
315
315
  });
316
316
  }
317
- function Ze(e) {
317
+ function Xe(e) {
318
318
  const [
319
319
  t,
320
320
  s,
@@ -338,7 +338,7 @@ function Ze(e) {
338
338
  remark: `${p[1] ?? ""}`.trim()
339
339
  };
340
340
  }
341
- function Je(e) {
341
+ function Ze(e) {
342
342
  const [
343
343
  t,
344
344
  s,
@@ -391,7 +391,7 @@ function et(e, t, s) {
391
391
  };
392
392
  }
393
393
  function tt(e, t, s) {
394
- const l = H(), o = X(), n = l.skuByCode[e.code], y = new Array();
394
+ const l = H(), o = J(), n = l.skuByCode[e.code], y = new Array();
395
395
  if (!n)
396
396
  return y.push(`Cannot find ingredient with code (${e.code}) ${e.name}.`), {
397
397
  index: t,
@@ -468,11 +468,11 @@ function rt(e) {
468
468
  return t.reduce(
469
469
  (n, y) => {
470
470
  var a;
471
- const i = new Array(), c = e.Sheets[y], u = Ze(c), h = Ge(u.transferFrom, u.type);
471
+ const i = new Array(), c = e.Sheets[y], u = Xe(c), h = Ge(u.transferFrom, u.type);
472
472
  i.push(...h.errors);
473
- const p = h.from, m = Xe(u.locations), v = m.filter((d) => d.location).map((d) => d.location);
473
+ const p = h.from, m = Je(u.locations), v = m.filter((d) => d.location).map((d) => d.location);
474
474
  i.push(...m.flatMap((d) => d.errors));
475
- const x = Je(c).filter((d) => d.data.code), r = x.map(
475
+ const x = Ze(c).filter((d) => d.data.code), r = x.map(
476
476
  (d, g) => tt(d.data, g, x)
477
477
  );
478
478
  i.push(
@@ -823,7 +823,7 @@ const ot = { class: "flex items-center gap-12 pl-8" }, at = { class: "flex flex-
823
823
  });
824
824
  function xt(e) {
825
825
  var n, y;
826
- const t = X();
826
+ const t = J();
827
827
  if (!t.isEnabled) return !0;
828
828
  if (!e.internal) {
829
829
  const i = t.getNetSuiteVendor(e._id), c = i == null ? void 0 : i.subsidiaryId, u = (n = t.currentVendorSubsidiary(e._id)) == null ? void 0 : n.id;
@@ -833,7 +833,7 @@ function xt(e) {
833
833
  return l && l == o;
834
834
  }
835
835
  const St = ve("transferTemplateActions", () => {
836
- const e = He(), t = he(), s = z(), l = $e(), o = be(), n = X(), y = Ke(), { t: i } = ee(), c = k({});
836
+ const e = He(), t = he(), s = z(), l = $e(), o = be(), n = J(), y = Ke(), { t: i } = ee(), c = k({});
837
837
  function u() {
838
838
  c.value = {
839
839
  mode: ae.CREATE,
@@ -903,7 +903,7 @@ const St = ve("transferTemplateActions", () => {
903
903
  m.value.show = a;
904
904
  },
905
905
  "onAction:edit"() {
906
- m.value.show = !1, h(Z(f));
906
+ m.value.show = !1, h(X(f));
907
907
  }
908
908
  };
909
909
  }
@@ -1009,7 +1009,7 @@ const St = ve("transferTemplateActions", () => {
1009
1009
  return;
1010
1010
  }
1011
1011
  e.close(), S(f);
1012
- }).onTertiary(We);
1012
+ }).onTertiary(Ye);
1013
1013
  }
1014
1014
  async function S(f) {
1015
1015
  try {
@@ -1047,7 +1047,7 @@ const St = ve("transferTemplateActions", () => {
1047
1047
  }
1048
1048
  }
1049
1049
  function _() {
1050
- const f = Ye(l.templates);
1050
+ const f = We(l.templates);
1051
1051
  t.open({
1052
1052
  title: i("inventory.ingredient.export.success"),
1053
1053
  message: i("inventory.ingredient.export.filename", [f]),
@@ -1067,7 +1067,7 @@ const St = ve("transferTemplateActions", () => {
1067
1067
  };
1068
1068
  });
1069
1069
  function de(e) {
1070
- const { skuById: t } = H(), s = Z(e);
1070
+ const { skuById: t } = H(), s = X(e);
1071
1071
  return s.purchaseOrder.items = e.purchaseOrder.items.filter((l) => t[l.sku._id]), s;
1072
1072
  }
1073
1073
  const $e = ve(
@@ -1103,7 +1103,7 @@ const $e = ve(
1103
1103
  }
1104
1104
  }
1105
1105
  function u(p, m) {
1106
- switch (m = Z(m), p) {
1106
+ switch (m = X(m), p) {
1107
1107
  case O.Details:
1108
1108
  return s.viewTemplate(m);
1109
1109
  case O.Edit:
@@ -1141,8 +1141,8 @@ const $e = ve(
1141
1141
  },
1142
1142
  cell(p) {
1143
1143
  const m = Number(p.getValue()) || 0, v = p.row.original.purchaseOrder.items.some(xe);
1144
- return m === 0 || v ? W("div", { class: "flex justify-end gap-4 items-center" }, [
1145
- W(
1144
+ return m === 0 || v ? Y("div", { class: "flex justify-end gap-4 items-center" }, [
1145
+ Y(
1146
1146
  le.FmTooltip,
1147
1147
  {},
1148
1148
  {
@@ -1150,7 +1150,7 @@ const $e = ve(
1150
1150
  return v ? "The template is invalid due to invalid unit on some of the items. Please update this template." : "The template is invalid due to deleted ingredients. Please update this template.";
1151
1151
  },
1152
1152
  default() {
1153
- return W(le.FmIcon, {
1153
+ return Y(le.FmIcon, {
1154
1154
  name: "error",
1155
1155
  color: "system-error-300",
1156
1156
  size: "sm"
@@ -1188,9 +1188,9 @@ const $e = ve(
1188
1188
  id: "action",
1189
1189
  cell(p) {
1190
1190
  const m = p.row.original, v = [
1191
- Y[O.Details],
1192
- Y[O.Edit],
1193
- Y[O.Delete]
1191
+ W[O.Details],
1192
+ W[O.Edit],
1193
+ W[O.Delete]
1194
1194
  ];
1195
1195
  return Le(v, (x) => u(x, m));
1196
1196
  },