@feedmepos/mf-inventory-portal 1.2.12-dev.3 → 1.2.13

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 (74) hide show
  1. package/dist/{App-D5hXQpVn.js → App-ZoXow3DD.js} +40 -44
  2. package/dist/{ApprovalView-B__WDklZ.js → ApprovalView-BWX6xBQs.js} +30 -30
  3. package/dist/{BindingsDialog-DXdwRSnn.js → BindingsDialog-CuwkcDKX.js} +2 -2
  4. package/dist/{BindingsPicker-CqAD3aHc.js → BindingsPicker-BibFsY0g.js} +1 -1
  5. package/dist/{BindingsTable-DVNjpusl.js → BindingsTable-AdjKwSPH.js} +1 -1
  6. package/dist/{ClosingDraftView-DL678GBB.js → ClosingDraftView-DWFHP9nE.js} +129 -129
  7. package/dist/{ClosingTemplateView-DThiXLtp.js → ClosingTemplateView-DOCF5f_u.js} +28 -28
  8. package/dist/{DeliveryOrderPrintPreview-B2MB9S6a.js → DeliveryOrderPrintPreview-DNDtL_Vo.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BNxs6Bcr.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BWhINOE8.js} +3 -3
  10. package/dist/{FmMultiselectDialog-B45ZLjVp.js → FmMultiselectDialog-Dfo04ak5.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D8ks6AEM.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DGVs4zLl.js} +45 -45
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C5zIvG2h.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BESx2u4Y.js} +1 -1
  13. package/dist/{IngredientGroupView-D95dFXIZ.js → IngredientGroupView-M9sXlnE0.js} +32 -31
  14. package/dist/IngredientsView-DUwhH3j1.js +2475 -0
  15. package/dist/{IntegrationView-9m3N_9lW.js → IntegrationView-BlUNz1yc.js} +57 -57
  16. package/dist/{InventoryBindingForm-kLoQskao.js → InventoryBindingForm-CvQ5zh6v.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BytErBcK.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BEAEmPsU.js} +31 -31
  18. package/dist/{InventoryBindingSummary-Dg0FH7ad.js → InventoryBindingSummary-CsJ-6G2P.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BKrUNLuG.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DjN_ktl1.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BL1f817e.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BN_e7k7U.js} +1 -1
  21. package/dist/{PublishView-BcOHSAj3.js → PublishView-DZgCyLK2.js} +15 -15
  22. package/dist/{PurchaseOrderPrintPreview-UfF8RVkv.js → PurchaseOrderPrintPreview-CB2xvQ33.js} +1 -1
  23. package/dist/{ReceiveRequestView-D_y_xNUb.js → ReceiveRequestView-DgDHOS-Y.js} +63 -62
  24. package/dist/RecipeView-DQDfwCJd.js +621 -0
  25. package/dist/{StockView-ciU6aAV7.js → StockView-eJOngk08.js} +166 -165
  26. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-XwDTGpR-.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BMFfegsk.js} +1 -1
  27. package/dist/{SupplierView-DFwtALPg.js → SupplierView-BS8rBAKC.js} +492 -490
  28. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-w98ibfql.js +3060 -0
  29. package/dist/{TransferTemplateView-BXr_GqTi.js → TransferTemplateView-By5Ci4Yg.js} +48 -48
  30. package/dist/UnitView-DmuWMFlA.js +667 -0
  31. package/dist/{WarehouseView-BYd0bPhi.js → WarehouseView-4ZLSJXYc.js} +32 -32
  32. package/dist/api/inventory.d.ts +0 -306
  33. package/dist/api/purchase-order.d.ts +0 -1
  34. package/dist/{app-Bb0-8bRg.js → app-D2lun71R.js} +11108 -11723
  35. package/dist/app.d.ts +0 -421
  36. package/dist/app.js +1 -1
  37. package/dist/array-Ca8T3f_G.js +44 -0
  38. package/dist/{closing-template-DPVNEyI7.js → closing-template-Cm1TtVzm.js} +1 -1
  39. package/dist/{decimal-BdBZYISm.js → decimal-eeicE4jp.js} +1 -1
  40. package/dist/{format-unit-display-DlmCwWo_.js → format-unit-display-vHKazw0l.js} +25 -25
  41. package/dist/helper/number.d.ts +0 -1
  42. package/dist/{index-CqBKFj1B.js → index-C5s-1g7c.js} +1 -1
  43. package/dist/{index-CKFmV1Pk.js → index-DvX9cMJV.js} +1 -1
  44. package/dist/{purchase-order-template-CLtEYr5E.js → purchase-order-template-uTs7bR89.js} +1 -1
  45. package/dist/router/name.d.ts +0 -1
  46. package/dist/{stock-nHQhfe2W.js → stock-CL2LNdXp.js} +1 -1
  47. package/dist/stores/feature.d.ts +0 -2
  48. package/dist/stores/inventory.d.ts +199 -26
  49. package/dist/{supplier-DuOjLpOa.js → supplier-CuzoW2k4.js} +1 -1
  50. package/dist/tsconfig.app.tsbuildinfo +1 -1
  51. package/dist/{use-ingredient-select-dialog-B-11Eqlm.js → use-ingredient-select-dialog-Cpg4lHHC.js} +1 -1
  52. package/dist/{use-inventory-binding-dialog-DhLSdRtp.js → use-inventory-binding-dialog-h4M4ICQK.js} +1 -1
  53. package/dist/views/ingredients/helper/import-export.helper.d.ts +1 -3
  54. package/dist/views/recipe/RecipeView.vue.d.ts +0 -1
  55. package/dist/views/unit/UnitView.vue.d.ts +0 -1
  56. package/package.json +2 -2
  57. package/dist/ImportView-EXm_g_jD.js +0 -1303
  58. package/dist/IngredientsView-MF1USuZI.js +0 -2240
  59. package/dist/RecipeView-DOaU9GIF.js +0 -636
  60. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CdA5_lEz.js +0 -3221
  61. package/dist/UnitView-CAXHvh3n.js +0 -674
  62. package/dist/import-export.helper-B04wszRI.js +0 -243
  63. package/dist/views/import/ImportView.vue.d.ts +0 -3
  64. package/dist/views/import/components/ImportDialog.vue.d.ts +0 -2
  65. package/dist/views/import/helper/import-export.helper.d.ts +0 -4
  66. package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +0 -17
  67. package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +0 -16
  68. package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +0 -2
  69. package/dist/views/recipe/helper/import-recipe.d.ts +0 -48
  70. package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +0 -12
  71. package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +0 -6
  72. package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +0 -9
  73. package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +0 -5
  74. package/dist/views/unit/helper/import-export.helper.d.ts +0 -40
@@ -1,15 +1,16 @@
1
1
  import { ref as A, computed as F, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as G, createElementBlock as B, createVNode as b, unref as l, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
2
- import { a as P, e as S, f as L, i as Re, D as oe, j as K, L as Ie, A as Se, U as Ge, O as ue, P as Fe, N as Ve, p as de, Q as Ce, w as ae, u as De, C as Ae, E as $e, G as Te, I as Ee, J as le } from "./app-Bb0-8bRg.js";
3
- import { useDialog as Me, useSnackbar as J, components as U, useProxiedModel as Ue, useBreakpoints as Be } from "@feedmepos/ui-library";
4
- import { useI18n as z, useCoreStore as Le } from "@feedmepos/mf-common";
2
+ import { a as z, e as S, f as P, i as Re, D as oe, j as K, I as Ie, A as Se, U as Ge, X as ue, Y as Fe, N as Ve, p as de, Z as Ce, w as ae, u as De, O as Ae, P as $e, Q as Te, T as Ee, V as le } from "./app-D2lun71R.js";
3
+ import { useDialog as Me, useSnackbar as Y, components as U, useProxiedModel as Ue, useBreakpoints as Be } from "@feedmepos/ui-library";
4
+ import { useI18n as L, useCoreStore as Pe } from "@feedmepos/mf-common";
5
5
  import { defineStore as ce, storeToRefs as ie } from "pinia";
6
- import { u as Pe } from "./FmMultiselectDialog-B45ZLjVp.js";
6
+ import "./array-Ca8T3f_G.js";
7
+ import { u as ze } from "./FmMultiselectDialog-Dfo04ak5.js";
7
8
  import { r as me } from "./random-CSbEbElR.js";
8
- import { u as ze, R as Ne } from "./usePromise-CbVUCxhj.js";
9
+ import { u as Le, R as Ne } from "./usePromise-CbVUCxhj.js";
9
10
  const H = ce(
10
11
  "ingredientGroupactions",
11
12
  function() {
12
- const _ = Me(), f = J(), k = P(), { t: i } = z(), v = A();
13
+ const _ = Me(), f = Y(), k = z(), { t: i } = L(), v = A();
13
14
  function e() {
14
15
  const u = {
15
16
  modelValue: {},
@@ -23,7 +24,7 @@ const H = ce(
23
24
  }
24
25
  async function a(u) {
25
26
  const m = {
26
- modelValue: L(u),
27
+ modelValue: P(u),
27
28
  mode: S.UPDATE,
28
29
  show: !0,
29
30
  "onUpdate:show"(r) {
@@ -82,7 +83,7 @@ const H = ce(
82
83
  ), Oe = ce(
83
84
  "ingredientGroupTable",
84
85
  function() {
85
- const _ = A(!1), f = J(), k = P(), i = H();
86
+ const _ = A(!1), f = Y(), k = z(), i = H();
86
87
  async function v() {
87
88
  _.value = !0;
88
89
  try {
@@ -98,7 +99,7 @@ const H = ce(
98
99
  }
99
100
  }
100
101
  function e(t, n) {
101
- switch (n = L(n), t) {
102
+ switch (n = P(n), t) {
102
103
  case K.Edit:
103
104
  return i.updateIngredientGroup(n);
104
105
  case K.Delete:
@@ -165,7 +166,7 @@ function qe(o) {
165
166
  };
166
167
  }
167
168
  function fe(o) {
168
- const _ = Pe(), f = P(), k = F(() => [
169
+ const _ = ze(), f = z(), k = F(() => [
169
170
  {
170
171
  id: "delete",
171
172
  header: "",
@@ -396,14 +397,14 @@ function fe(o) {
396
397
  }
397
398
  };
398
399
  }
399
- const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, He = { class: "flex flex-col gap-4" }, Je = { class: "flex flex-col gap-16" }, Qe = { class: "flex flex-col" }, Ye = { class: "flex flex-col gap-4" }, We = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xe = /* @__PURE__ */ j({
400
+ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, He = { class: "flex flex-col gap-4" }, Ye = { class: "flex flex-col gap-16" }, Qe = { class: "flex flex-col" }, Xe = { class: "flex flex-col gap-4" }, Ze = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Je = /* @__PURE__ */ j({
400
401
  __name: "IngredientGroupRuleField",
401
402
  props: {
402
403
  disabled: { type: Boolean },
403
404
  modelValue: {}
404
405
  },
405
406
  setup(o) {
406
- const _ = o, { t: f } = z(), k = Le(), i = F(() => {
407
+ const _ = o, { t: f } = L(), k = Pe(), i = F(() => {
407
408
  var g;
408
409
  const n = /* @__PURE__ */ new Map(), s = k.restaurants.value.map((u) => u.customAttributes ?? {});
409
410
  for (const u of s)
@@ -480,9 +481,9 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
480
481
  ]
481
482
  }, null, 8, ["model-value", "rules"])
482
483
  ]),
483
- c("div", Je, [
484
+ c("div", Ye, [
484
485
  c("div", Qe, [
485
- c("div", Ye, [
486
+ c("div", Xe, [
486
487
  c("div", null, [
487
488
  b(u, {
488
489
  label: l(f)("inventory.ingredientGroup.form.rules.ingredients"),
@@ -506,11 +507,11 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
506
507
  "hide-footer": ""
507
508
  }, null, 8, ["row-data", "column-defs", "page-size", "column-visibility"])
508
509
  ]),
509
- c("div", We, $(l(f)("inventory.ingredientGroup.form.defaultRule.defaultCheckbox")), 1)
510
+ c("div", Ze, $(l(f)("inventory.ingredientGroup.form.defaultRule.defaultCheckbox")), 1)
510
511
  ]);
511
512
  };
512
513
  }
513
- }), Ze = { class: "flex flex-col gap-16" }, et = { class: "flex flex-col gap-16" }, tt = { class: "flex flex-col" }, nt = { class: "flex items-center" }, st = { class: "flex-1" }, ot = { class: "flex flex-col gap-8" }, at = { class: "flex-1 fm-typo-en-title-sm-600" }, lt = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary px-4" }, it = { class: "flex flex-col gap-16" }, rt = { class: "flex flex-col gap-8" }, ut = { class: "flex-1 fm-typo-en-title-sm-600" }, dt = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ct = { class: "flex flex-col gap-12" }, mt = { class: "flex items-center" }, ft = { class: "flex-1 fm-typo-en-body-lg-600 line-clamp-1" }, pt = { key: 0 }, vt = {
514
+ }), We = { class: "flex flex-col gap-16" }, et = { class: "flex flex-col gap-16" }, tt = { class: "flex flex-col" }, nt = { class: "flex items-center" }, st = { class: "flex-1" }, ot = { class: "flex flex-col gap-8" }, at = { class: "flex-1 fm-typo-en-title-sm-600" }, lt = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary px-4" }, it = { class: "flex flex-col gap-16" }, rt = { class: "flex flex-col gap-8" }, ut = { class: "flex-1 fm-typo-en-title-sm-600" }, dt = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ct = { class: "flex flex-col gap-12" }, mt = { class: "flex items-center" }, ft = { class: "flex-1 fm-typo-en-body-lg-600 line-clamp-1" }, pt = { key: 0 }, vt = {
514
515
  key: 1,
515
516
  class: "fm-typo-en-body-lg-400"
516
517
  }, yt = /* @__PURE__ */ j({
@@ -525,7 +526,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
525
526
  setup(o, { expose: _, emit: f }) {
526
527
  const k = o, i = ue("modelValue", {
527
528
  watchProps: !0
528
- }), v = f, { t: e } = z(), a = qe({
529
+ }), v = f, { t: e } = L(), a = qe({
529
530
  get items() {
530
531
  return i.rules ?? [];
531
532
  },
@@ -599,7 +600,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
599
600
  default: T(() => {
600
601
  var I;
601
602
  return [
602
- c("div", Ze, [
603
+ c("div", We, [
603
604
  b(u, {
604
605
  label: l(e)("inventory.ingredientGroup.form.name"),
605
606
  "label-mark": "required",
@@ -678,7 +679,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
678
679
  }, null, 8, ["onClick"])
679
680
  ]),
680
681
  c("div", null, [
681
- (G(), M(Xe, {
682
+ (G(), M(Je, {
682
683
  key: d._id,
683
684
  "model-value": d,
684
685
  "onUpdate:modelValue": l(a).updateItem,
@@ -717,9 +718,9 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
717
718
  },
718
719
  emits: ["update:show"],
719
720
  setup(o) {
720
- const _ = o, f = P(), k = ze(() => f.readCachedMenu()), i = F(
721
+ const _ = o, f = z(), k = Le(() => f.readCachedMenu()), i = F(
721
722
  () => k.result.value.state === Ne.success ? k.result.value.data : void 0
722
- ), v = J(), { t: e } = z(), a = Ue(_, "show");
723
+ ), v = Y(), { t: e } = L(), a = Ue(_, "show");
723
724
  function t() {
724
725
  return {
725
726
  _id: "",
@@ -732,7 +733,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
732
733
  () => _.show,
733
734
  (d) => {
734
735
  if (!d) return;
735
- let p = L(_.modelValue ?? t());
736
+ let p = P(_.modelValue ?? t());
736
737
  p.defaultSkuRefs && (p.defaultSkuRefs = p.defaultSkuRefs.map((h, V) => ({
737
738
  ...h,
738
739
  priority: h.priority ?? V + 1
@@ -770,7 +771,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
770
771
  }), m = A(), r = A(!1);
771
772
  async function y() {
772
773
  r.value = !0;
773
- const d = L(n.value);
774
+ const d = P(n.value);
774
775
  try {
775
776
  await f.createSkuGroup(d), a.value = !1, v.open({
776
777
  title: e("inventory.common.success"),
@@ -789,7 +790,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
789
790
  }
790
791
  async function w() {
791
792
  r.value = !0;
792
- const d = L(n.value);
793
+ const d = P(n.value);
793
794
  try {
794
795
  await f.updateSkuGroup(d), r.value = !1, a.value = !1, v.open({
795
796
  title: e("inventory.common.success"),
@@ -863,10 +864,10 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
863
864
  }, 8, ["model-value", "header"]);
864
865
  };
865
866
  }
866
- }), kt = { class: "flex flex-col py-8" }, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ht = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Dt = /* @__PURE__ */ j({
867
+ }), kt = { class: "flex flex-col py-8" }, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ht = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, At = /* @__PURE__ */ j({
867
868
  __name: "IngredientGroupView",
868
869
  setup(o) {
869
- const _ = P(), f = F(() => _.skuGroups), k = De(), { t: i } = z(), {
870
+ const _ = z(), f = F(() => _.skuGroups), k = De(), { t: i } = L(), {
870
871
  createIngredientGroup: v,
871
872
  updateIngredientGroup: e,
872
873
  importIngredientGroups: a,
@@ -930,18 +931,18 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
930
931
  onRowClick: l(e)
931
932
  }, ke({
932
933
  default: T((N) => {
933
- var Q, Y, W, O, X, Z, ee, te, q, ne;
934
+ var Q, X, Z, O, J, W, ee, te, q, ne;
934
935
  return [
935
936
  c("div", kt, [
936
937
  c("div", xt, [
937
938
  b(l(le), {
938
- render: (W = (Y = (Q = N.code) == null ? void 0 : Q.column) == null ? void 0 : Y.columnDef) == null ? void 0 : W.cell,
939
- props: (X = (O = N.code) == null ? void 0 : O.getContext) == null ? void 0 : X.call(O)
939
+ render: (Z = (X = (Q = N.code) == null ? void 0 : Q.column) == null ? void 0 : X.columnDef) == null ? void 0 : Z.cell,
940
+ props: (J = (O = N.code) == null ? void 0 : O.getContext) == null ? void 0 : J.call(O)
940
941
  }, null, 8, ["render", "props"])
941
942
  ]),
942
943
  c("div", ht, [
943
944
  b(l(le), {
944
- render: (te = (ee = (Z = N.name) == null ? void 0 : Z.column) == null ? void 0 : ee.columnDef) == null ? void 0 : te.cell,
945
+ render: (te = (ee = (W = N.name) == null ? void 0 : W.column) == null ? void 0 : ee.columnDef) == null ? void 0 : te.cell,
945
946
  props: (ne = (q = N.name) == null ? void 0 : q.getContext) == null ? void 0 : ne.call(q)
946
947
  }, null, 8, ["render", "props"])
947
948
  ])
@@ -972,5 +973,5 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
972
973
  }
973
974
  });
974
975
  export {
975
- Dt as default
976
+ At as default
976
977
  };