@feedmepos/mf-inventory-portal 0.0.23-dev.42 → 0.0.23-dev.44

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 (61) hide show
  1. package/dist/{App-Cr-n7HVf.js → App-Bu28H-qV.js} +66 -63
  2. package/dist/{ApprovalView-BYHDmt9W.js → ApprovalView-Cgb6Getu.js} +20 -20
  3. package/dist/{BindingsDialog-CI0nYM1_.js → BindingsDialog-DGtPuzr1.js} +2 -2
  4. package/dist/{BindingsPicker-BVzF3C8O.js → BindingsPicker-BamL3_Vk.js} +3 -3
  5. package/dist/{BindingsTable-B21_9L2o.js → BindingsTable-C9FeglE4.js} +1 -1
  6. package/dist/{ClosingDraftView-k2Vsz8-W.js → ClosingDraftView-C_B1u3g1.js} +47 -47
  7. package/dist/{ClosingTemplateView-BLda7tYC.js → ClosingTemplateView-BxK3yAV4.js} +21 -21
  8. package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-DUDOaU6F.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-DAWPJ65s.js} +11 -11
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CXuer_x5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D1PU7pae.js} +7 -7
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Ds3yBf9U.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D1AIFe-0.js} +37 -37
  11. package/dist/{IngredientGroupView-CgZ4YT3i.js → IngredientGroupView-S7ps5Bsc.js} +1 -1
  12. package/dist/{IngredientsView-tPERrF9O.js → IngredientsView-BesGBkXM.js} +14 -15
  13. package/dist/{IntegrationView-CoF_rdWv.js → IntegrationView-Bkf7zGLw.js} +1 -1
  14. package/dist/{InventoryBindingForm-BSnofTIL.js → InventoryBindingForm-DHwTsR2G.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-4d9oz7Xh.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CseHejfD.js} +51 -51
  16. package/dist/{InventoryBindingSummary-qm9ZUFny.js → InventoryBindingSummary-COybHYsZ.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQY98Hj6.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cgv6gv2x.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-NUkiVop4.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BGJNkqYH.js} +6 -6
  19. package/dist/PublishView-2EcaLsU2.js +192 -0
  20. package/dist/{PurchaseOrderPrintPreview-CIWiq2NB.js → PurchaseOrderPrintPreview-DPFfFQQd.js} +5 -5
  21. package/dist/ReceiveRequestView-Dnl79p8h.js +1843 -0
  22. package/dist/{RecipeView-CzWlx1Xv.js → RecipeView-CmaMGv6N.js} +25 -25
  23. package/dist/{StockView-IPXGJNN8.js → StockView-CLw8un14.js} +121 -122
  24. package/dist/{SupplierView-DuL3NXc0.js → SupplierView-DLcZ6HDt.js} +11 -12
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-82Bu89OE.js → TransferDetails.vue_vue_type_script_setup_true_lang-DgwS1KTx.js} +137 -137
  26. package/dist/{TransferTemplateView-BEaRafuO.js → TransferTemplateView-BRDq2_Zw.js} +81 -82
  27. package/dist/{UnitView-Cwo0mthQ.js → UnitView-rJrXqu8W.js} +14 -14
  28. package/dist/{WarehouseView-DzjQrpyv.js → WarehouseView-BwSLmicZ.js} +33 -33
  29. package/dist/api/inventory.d.ts +4 -0
  30. package/dist/{app-CpuFfqWF.js → app-F909rQ5n.js} +12512 -11478
  31. package/dist/app.d.ts +24 -0
  32. package/dist/app.js +1 -1
  33. package/dist/{decimal-bSGrDlvd.js → decimal-0pQSNdVz.js} +1 -1
  34. package/dist/{format-unit-display-D4gi2D-O.js → format-unit-display-CM40cl03.js} +60 -60
  35. package/dist/{index-Cn1ato-l.js → index-DzA11XLY.js} +88 -88
  36. package/dist/{index-COeURijn.js → index-rBUXpqWE.js} +3 -3
  37. package/dist/layout/SingleColumnLayout.vue.d.ts +1 -0
  38. package/dist/router/name.d.ts +1 -0
  39. package/dist/{stock-B1Rchi6n.js → stock-c68S1hmD.js} +3 -3
  40. package/dist/stores/feature.d.ts +34 -2
  41. package/dist/stores/location.d.ts +29 -1
  42. package/dist/{supplier-CeY_Gro-.js → supplier-CPuz6JVf.js} +1 -1
  43. package/dist/tsconfig.app.tsbuildinfo +1 -1
  44. package/dist/{use-inventory-binding-dialog-BXqY40wn.js → use-inventory-binding-dialog-DjlU5nUb.js} +1 -1
  45. package/dist/views/adjustment-template/wastage-template/actions.d.ts +48 -0
  46. package/dist/views/adjustment-template/wastage-template/table.d.ts +48 -0
  47. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -0
  48. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -0
  49. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +48 -0
  50. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +48 -0
  51. package/dist/views/publish/PublishView.vue.d.ts +2 -0
  52. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +16 -0
  53. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +24 -0
  54. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +24 -0
  55. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +4 -0
  56. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
  57. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
  58. package/dist/vue-i18n-BiavdzKQ.js +2365 -0
  59. package/package.json +1 -1
  60. package/dist/ReceiveRequestView-Dgt3FeGb.js +0 -4205
  61. package/dist/feature-D8aRYGen.js +0 -962
@@ -1,10 +1,10 @@
1
1
  import { ref as W, defineComponent as I, watch as ee, onMounted as ae, onUnmounted as xe, openBlock as S, createElementBlock as q, toRaw as be, reactive as Fe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as x, isRef as we, normalizeClass as Se, normalizeStyle as Pe } from "vue";
2
- import { W as Re, ak as Te, al as Ue, f as Ee, D as Ve, h as J, e as O, am as Le, ac as Ne, l as E, d as T, u as Be, y as qe, _ as ze, z as Ie, B as je, E as Q } from "./app-CpuFfqWF.js";
3
- import { useCoreStore as Oe, useI18n as j } from "@feedmepos/mf-common";
4
- import { useDialogChild as Ge, useDialog as Me, useSnackbar as te, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
2
+ import { X as Re, al as Te, am as Ue, h as Ee, D as Ve, i as Z, f as G, an as Le, ad as Ne, m as E, e as T, u as Be, z as qe, _ as ze, B as Ie, E as je, G as J } from "./app-F909rQ5n.js";
3
+ import { useCoreStore as Ge, useI18n as j } from "@feedmepos/mf-common";
4
+ import { useDialogChild as Oe, useDialog as Me, useSnackbar as te, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
5
5
  import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
6
- const X = Re((m, h) => {
7
- const y = Oe();
6
+ const Q = Re((m, h) => {
7
+ const y = Ge();
8
8
  return {
9
9
  async readWarehouses() {
10
10
  var l;
@@ -45,17 +45,17 @@ function Ce() {
45
45
  },
46
46
  // actions
47
47
  async readWarehouses() {
48
- const m = X();
48
+ const m = Q();
49
49
  this.warehouses = await m.readWarehouses();
50
50
  },
51
51
  async createWarehouse(m) {
52
- await X().createWarehouse(m);
52
+ await Q().createWarehouse(m);
53
53
  },
54
54
  async updateWarehouse(m) {
55
- await X().updateWarehouse(m._id, m.profile);
55
+ await Q().updateWarehouse(m._id, m.profile);
56
56
  },
57
57
  async deleteWarehouse(m) {
58
- await X().deleteWarehouse(m._id);
58
+ await Q().deleteWarehouse(m._id);
59
59
  },
60
60
  async init() {
61
61
  const m = Te();
@@ -67,14 +67,14 @@ function Ce() {
67
67
  }
68
68
  };
69
69
  }
70
- function Ze(m, h) {
70
+ function Xe(m, h) {
71
71
  function y(p, s) {
72
- if (p === J.Edit) {
73
- m(O(s));
72
+ if (p === Z.Edit) {
73
+ m(G(s));
74
74
  return;
75
75
  }
76
- if (p === J.Delete) {
77
- h(O(s));
76
+ if (p === Z.Delete) {
77
+ h(G(s));
78
78
  return;
79
79
  }
80
80
  }
@@ -104,7 +104,7 @@ function Ze(m, h) {
104
104
  header: "",
105
105
  cell(p) {
106
106
  return Ee(
107
- [Ve[J.Edit], Ve[J.Delete]],
107
+ [Ve[Z.Edit], Ve[Z.Delete]],
108
108
  (s) => {
109
109
  y(s, p.row.original.original);
110
110
  }
@@ -139,7 +139,7 @@ function Ze(m, h) {
139
139
  }
140
140
  return { columnDefs: n, formatRowData: l };
141
141
  }
142
- const Je = /* @__PURE__ */ I({
142
+ const Ze = /* @__PURE__ */ I({
143
143
  __name: "GoogleMap",
144
144
  props: {
145
145
  markers: {
@@ -219,7 +219,7 @@ const Je = /* @__PURE__ */ I({
219
219
  n("polygon-change", { index: r, path: f });
220
220
  }
221
221
  function a(r, f) {
222
- const F = o(r).filter((D, G) => G !== f);
222
+ const F = o(r).filter((D, O) => O !== f);
223
223
  n("polygon-change", { index: r, path: F });
224
224
  }
225
225
  function B(r, f) {
@@ -265,7 +265,7 @@ const Je = /* @__PURE__ */ I({
265
265
  class: "map app-map"
266
266
  }, null, 512));
267
267
  }
268
- }), Qe = { class: "flex flex-col gap-24" }, Xe = { class: "flex flex-col gap-8" }, Ye = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, eo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ao = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = /* @__PURE__ */ I({
268
+ }), Je = { class: "flex flex-col gap-24" }, Qe = { class: "flex flex-col gap-8" }, Ye = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, eo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ao = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = /* @__PURE__ */ I({
269
269
  __name: "CoordinateDialog",
270
270
  props: {
271
271
  address: {
@@ -278,8 +278,8 @@ const Je = /* @__PURE__ */ I({
278
278
  }
279
279
  },
280
280
  setup(m) {
281
- const h = m, y = Ge(), t = se(), { t: n } = j(), l = Fe(
282
- O(h.coordinate ? h.coordinate : le.jb)
281
+ const h = m, y = Oe(), t = se(), { t: n } = j(), l = Fe(
282
+ G(h.coordinate ? h.coordinate : le.jb)
283
283
  ), p = W(""), s = Le(async function() {
284
284
  p.value = await t.getFirstMatchingAddress(
285
285
  l.lat,
@@ -287,14 +287,14 @@ const Je = /* @__PURE__ */ I({
287
287
  );
288
288
  }, 1e3);
289
289
  ae(() => {
290
- y.emitData(O(l)), s();
290
+ y.emitData(G(l)), s();
291
291
  });
292
292
  function u({ position: v }) {
293
- l.lat = v.lat, l.lng = v.lng, y.emitData(O(l)), s();
293
+ l.lat = v.lat, l.lng = v.lng, y.emitData(G(l)), s();
294
294
  }
295
295
  const _ = W();
296
- return (v, M) => (S(), q("div", Qe, [
297
- g("div", Xe, [
296
+ return (v, M) => (S(), q("div", Je, [
297
+ g("div", Qe, [
298
298
  g("div", null, [
299
299
  g("span", Ye, U(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
300
300
  g("span", eo, U(p.value), 1)
@@ -308,7 +308,7 @@ const Je = /* @__PURE__ */ I({
308
308
  g("span", lo, U(l.lat), 1)
309
309
  ])
310
310
  ]),
311
- V(Je, {
311
+ V(Ze, {
312
312
  ref_key: "gmapRef",
313
313
  ref: _,
314
314
  class: "h-[272px] sm:h-[240px] xs:h-[240px]",
@@ -892,7 +892,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
892
892
  n.close();
893
893
  }
894
894
  }
895
- const { columnDefs: C, formatRowData: P } = Ze(
895
+ const { columnDefs: C, formatRowData: P } = Xe(
896
896
  v,
897
897
  M
898
898
  );
@@ -960,31 +960,31 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
960
960
  onRowClick: (r) => v(r.original)
961
961
  }, {
962
962
  default: N((r) => {
963
- var f, b, F, D, G, re, ne, ue, K, ie, de, ce, pe, me, H, fe, he, ye, ve, Z, ge;
963
+ var f, b, F, D, O, re, ne, ue, K, ie, de, ce, pe, me, H, fe, he, ye, ve, X, ge;
964
964
  return [
965
965
  g("div", Co, [
966
966
  g("div", xo, [
967
- V(c(Q), {
967
+ V(c(J), {
968
968
  render: (F = (b = (f = r.warehouse) == null ? void 0 : f.column) == null ? void 0 : b.columnDef) == null ? void 0 : F.cell,
969
- props: (G = (D = r.warehouse) == null ? void 0 : D.getContext) == null ? void 0 : G.call(D)
969
+ props: (O = (D = r.warehouse) == null ? void 0 : D.getContext) == null ? void 0 : O.call(D)
970
970
  }, null, 8, ["render", "props"])
971
971
  ]),
972
972
  g("div", Fo, [
973
- V(c(Q), {
973
+ V(c(J), {
974
974
  render: (ue = (ne = (re = r.contact) == null ? void 0 : re.column) == null ? void 0 : ne.columnDef) == null ? void 0 : ue.cell,
975
975
  props: (ie = (K = r.contact) == null ? void 0 : K.getContext) == null ? void 0 : ie.call(K)
976
976
  }, null, 8, ["render", "props"])
977
977
  ]),
978
978
  (de = R.original) != null && de.email ? (S(), q("div", $o, [
979
- V(c(Q), {
979
+ V(c(J), {
980
980
  render: (me = (pe = (ce = r.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
981
981
  props: (fe = (H = r.email) == null ? void 0 : H.getContext) == null ? void 0 : fe.call(H)
982
982
  }, null, 8, ["render", "props"])
983
983
  ])) : Ae("", !0),
984
984
  g("div", Wo, [
985
- V(c(Q), {
985
+ V(c(J), {
986
986
  render: (ve = (ye = (he = r.address) == null ? void 0 : he.column) == null ? void 0 : ye.columnDef) == null ? void 0 : ve.cell,
987
- props: (ge = (Z = r.address) == null ? void 0 : Z.getContext) == null ? void 0 : ge.call(Z)
987
+ props: (ge = (X = r.address) == null ? void 0 : X.getContext) == null ? void 0 : ge.call(X)
988
988
  }, null, 8, ["render", "props"])
989
989
  ])
990
990
  ])
@@ -1,6 +1,10 @@
1
1
  import { type WithRev } from '@/api/type';
2
2
  export declare const useInventoryApi: () => {
3
3
  readInventoryLocations(): Promise<{
4
+ inventory?: {
5
+ _id: string;
6
+ updatedAt: string;
7
+ } | null | undefined;
4
8
  type: "restaurant" | "warehouse";
5
9
  name: string;
6
10
  acceptRequest: boolean;