@feedmepos/mf-inventory-portal 0.0.25-dev.51 → 0.0.25-dev.53

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 (45) hide show
  1. package/dist/{App-Bf7Ef5j4.js → App-CjqJghCI.js} +34 -34
  2. package/dist/{ApprovalView-CTKJY1vM.js → ApprovalView-C42xNBr9.js} +13 -13
  3. package/dist/{BindingsDialog-Cb7aRRNk.js → BindingsDialog-DfShaOTO.js} +2 -2
  4. package/dist/{BindingsPicker-DOI78hCt.js → BindingsPicker-BZmmKaqZ.js} +1 -1
  5. package/dist/{BindingsTable-CZE4g-lw.js → BindingsTable-Dzk1x-qi.js} +1 -1
  6. package/dist/{ClosingDraftView-ChjnuJSG.js → ClosingDraftView-DpP-cqpM.js} +153 -153
  7. package/dist/{ClosingTemplateView-gSQqeQ_q.js → ClosingTemplateView-DSo8B_Cq.js} +242 -242
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BMFxe5xn.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-JsmwiIQG.js} +3 -3
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-PmKyuRhO.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DhicQW8Q.js} +1 -1
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CnRG4x74.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-feCBwmiz.js} +1 -1
  11. package/dist/{IngredientGroupView-CaF4rmHy.js → IngredientGroupView-p1jRflBc.js} +1 -1
  12. package/dist/{IngredientsView-CX_MSjT3.js → IngredientsView-KrhaER9Y.js} +4 -4
  13. package/dist/{IntegrationView-BRkcILmI.js → IntegrationView-CFXpiR1g.js} +2 -2
  14. package/dist/{InventoryBindingForm-BK7OBXJt.js → InventoryBindingForm-CaeO-fpj.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-D81eO5Mu.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CPgkL2CW.js} +3 -3
  16. package/dist/{InventoryBindingSummary-B3m-PoE-.js → InventoryBindingSummary-NLY5i6ql.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DsTKgxFv.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BTJ4Omyi.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-8Sa_WUWa.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CEroADf4.js} +1 -1
  19. package/dist/{PublishView-DZR7-XFd.js → PublishView-DFTo5S0F.js} +54 -54
  20. package/dist/{PurchaseOrderPrintPreview-BT5Khjs6.js → PurchaseOrderPrintPreview-7YBYHbP6.js} +1 -1
  21. package/dist/{ReceiveRequestView-3nhyFqXE.js → ReceiveRequestView-BG5s-oS9.js} +11 -11
  22. package/dist/{RecipeView-R-lqVFmh.js → RecipeView-kc50YRZk.js} +3 -3
  23. package/dist/{StockView-Did7vk97.js → StockView-XymZfzq8.js} +9 -9
  24. package/dist/{SupplierView-BGHR6LD2.js → SupplierView-B2vB9f9I.js} +7 -7
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-vjDgXu5D.js → TransferDetails.vue_vue_type_script_setup_true_lang-CsQoRock.js} +5 -5
  26. package/dist/{TransferTemplateView-Dh1iZbPZ.js → TransferTemplateView-OD4SE6qf.js} +159 -159
  27. package/dist/{UnitView-DE9WIvA-.js → UnitView-Bb8gEtVh.js} +3 -3
  28. package/dist/{WarehouseView-CgurMkHh.js → WarehouseView-BeGII5M9.js} +1 -1
  29. package/dist/{app-BoT0hU4y.js → app-CvTTGb1Y.js} +11624 -10851
  30. package/dist/app.d.ts +845 -0
  31. package/dist/app.js +1 -1
  32. package/dist/{decimal-CpTYRDjJ.js → decimal-XcUTkVCR.js} +1 -1
  33. package/dist/{feature-CW1D96VL.js → feature-Bv1NYHN4.js} +415 -421
  34. package/dist/{format-unit-display-D6lsq-iX.js → format-unit-display-BsM7BR8x.js} +2 -2
  35. package/dist/{index-tTGOQaym.js → index-j3NNoa4K.js} +1 -1
  36. package/dist/{index-TqOHI1Dk.js → index-xfhlIOM0.js} +1 -1
  37. package/dist/{stock-Cnh2comB.js → stock-DgLOMQ1X.js} +1 -1
  38. package/dist/{supplier-BY8xacQQ.js → supplier-B0HyUoxP.js} +1 -1
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/{use-ingredient-select-dialog-BwbzsMlI.js → use-ingredient-select-dialog-D9arr1HY.js} +1 -1
  41. package/dist/{use-inventory-binding-dialog-3srettA-.js → use-inventory-binding-dialog-DGnSxKpE.js} +1 -1
  42. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +88 -0
  43. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +528 -0
  44. package/dist/{vue-i18n-C9tRTjjd.js → vue-i18n-BFNEEDAX.js} +397 -397
  45. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
- import { ref as U, onUnmounted as F, defineComponent as h, watch as P, onMounted as x, computed as g, resolveComponent as b, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as p, toDisplayString as w, createBlock as B, createCommentVNode as M } from "vue";
2
- import { u as k, a as D, b as H, R as e, g as s, c as W } from "./app-BoT0hU4y.js";
1
+ import { ref as U, onUnmounted as F, defineComponent as h, watch as P, onMounted as x, computed as g, resolveComponent as b, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as p, toDisplayString as w, createBlock as B, createCommentVNode as k } from "vue";
2
+ import { u as M, a as D, b as H, R as e, g as s, c as W } from "./app-CvTTGb1Y.js";
3
3
  import { useCoreStore as A, useI18n as G } from "@feedmepos/mf-common";
4
4
  import { useRouter as L, useRoute as K } from "vue-router";
5
- import { u as O } from "./feature-CW1D96VL.js";
5
+ import { u as O } from "./feature-Bv1NYHN4.js";
6
6
  import { u as $ } from "./useTabStorage-BkIVScW_.js";
7
7
  import { u as Q } from "./googlemap-Dm8ERVai.js";
8
8
  import "./array-hChJVZLE.js";
@@ -41,19 +41,19 @@ const q = {
41
41
  }, X = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Y = { class: "fm-typo-en-title-lg-600" }, Z = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ee = { class: "flex gap-16" }, te = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, oe = { href: "https://feedme.ai/form" }, ne = /* @__PURE__ */ h({
42
42
  __name: "InventoryView",
43
43
  setup(l) {
44
- const n = k(), i = D(), u = H(), r = A(), m = L(), o = z(), R = O(), { t: d } = G();
44
+ const n = M(), i = D(), u = H(), a = A(), m = L(), o = z(), R = O(), { t: d } = G();
45
45
  P(
46
- [() => r.sessionUser.value, () => r.currentBusiness.value],
47
- ([t, a]) => {
48
- f(t, a);
46
+ [() => a.sessionUser.value, () => a.currentBusiness.value],
47
+ ([t, r]) => {
48
+ f(t, r);
49
49
  }
50
50
  ), x(async () => {
51
- await R.init(), await r.readBusinesses();
52
- const t = r.sessionUser.value, a = r.currentBusiness.value;
53
- f(t, a);
51
+ await R.init(), await a.readBusinesses();
52
+ const t = a.sessionUser.value, r = a.currentBusiness.value;
53
+ f(t, r);
54
54
  });
55
- function f(t, a) {
56
- !t || !a || T();
55
+ function f(t, r) {
56
+ !t || !r || T();
57
57
  }
58
58
  async function T() {
59
59
  return await n.init(), await u.readSetting().catch((t) => {
@@ -61,7 +61,7 @@ const q = {
61
61
  }), await i.init();
62
62
  }
63
63
  const y = g(() => m.currentRoute.value.name === e.TRANSFER_TEMPLATE ? R.enablePoTemplate : !0);
64
- return (t, a) => {
64
+ return (t, r) => {
65
65
  const c = b("FmSpacer"), N = b("FmCircularProgress"), C = b("FmButton"), V = b("RouterView");
66
66
  return S(), I("div", null, [
67
67
  v(o).isLoading ? (S(), I("div", q, [
@@ -69,9 +69,9 @@ const q = {
69
69
  p("div", null, [
70
70
  _(N, { size: "xl" })
71
71
  ]),
72
- a[0] || (a[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
72
+ r[0] || (r[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
73
73
  _(c)
74
- ])) : y.value ? v(r).sessionUser.value ? (S(), B(V, { key: 2 })) : M("", !0) : (S(), I("div", J, [
74
+ ])) : y.value ? v(a).sessionUser.value ? (S(), B(V, { key: 2 })) : k("", !0) : (S(), I("div", J, [
75
75
  p("div", X, [
76
76
  p("div", Y, w(v(d)("inventory.common.proPlan.title")), 1),
77
77
  p("div", Z, w(v(d)("inventory.common.proPlan.subtitle")), 1)
@@ -94,25 +94,25 @@ const q = {
94
94
  ]);
95
95
  };
96
96
  }
97
- }), ae = { class: "h-full flex flex-col overflow-auto py-16" }, re = /* @__PURE__ */ h({
97
+ }), re = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
98
98
  __name: "NavigationTab",
99
99
  setup(l) {
100
- const n = K(), i = L(), u = A(), r = O(), m = $(), { t: o } = G();
101
- P([() => u.currentBusiness.value, () => n.name], ([t, a]) => {
102
- (t == null ? void 0 : t.menuVersion) === "v3" && (a === e.INGREDIENTS || a === e.RECIPE || a === e.UNIT) && i.push({ name: e.STOCK });
100
+ const n = K(), i = L(), u = A(), a = O(), m = $(), { t: o } = G();
101
+ P([() => u.currentBusiness.value, () => n.name], ([t, r]) => {
102
+ (t == null ? void 0 : t.menuVersion) === "v3" && (r === e.INGREDIENTS || r === e.RECIPE || r === e.UNIT) && i.push({ name: e.STOCK });
103
103
  });
104
104
  const R = g(() => {
105
- var a;
105
+ var r;
106
106
  const t = [
107
107
  {
108
108
  label: s(e.STOCK, o),
109
109
  // icon: 'inventory_2',
110
110
  children: [
111
111
  {
112
- label: "Stock balance",
112
+ label: o("inventory.stock.stock_balance.title"),
113
113
  value: e.STOCK
114
114
  },
115
- ...r.enableWastageTemplate ? [
115
+ ...a.enableWastageTemplate ? [
116
116
  {
117
117
  label: s(e.WASTAGE_TEMPLATE, o),
118
118
  value: e.WASTAGE_TEMPLATE
@@ -120,7 +120,7 @@ const q = {
120
120
  ] : []
121
121
  ]
122
122
  },
123
- ...r.enableClosingTemplate ? [
123
+ ...a.enableClosingTemplate ? [
124
124
  {
125
125
  label: "Closing",
126
126
  children: [
@@ -140,7 +140,7 @@ const q = {
140
140
  // icon: 'grocery',
141
141
  value: e.INGREDIENTS
142
142
  },
143
- ...r.enableIngredientGroup ? [
143
+ ...a.enableIngredientGroup ? [
144
144
  {
145
145
  label: s(e.INGREDIENT_GROUP, o),
146
146
  // icon: 'grocery',
@@ -169,7 +169,7 @@ const q = {
169
169
  label: s(e.APPROVAL, o),
170
170
  value: e.APPROVAL
171
171
  },
172
- ...r.enablePoTemplate ? [
172
+ ...a.enablePoTemplate ? [
173
173
  {
174
174
  label: s(e.TRANSFER_TEMPLATE, o),
175
175
  value: e.TRANSFER_TEMPLATE
@@ -197,7 +197,7 @@ const q = {
197
197
  value: e.INTEGRATION
198
198
  }
199
199
  ];
200
- return ((a = u.currentBusiness.value) == null ? void 0 : a.menuVersion) === "v3" ? t.filter(
200
+ return ((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) === "v3" ? t.filter(
201
201
  (c) => c.value !== e.INGREDIENTS && c.value !== e.RECIPE && c.value !== e.UNIT && c.value !== e.PUBLISH
202
202
  ) : t;
203
203
  }), d = g({
@@ -225,12 +225,12 @@ const q = {
225
225
  T.value = !1, setTimeout(() => {
226
226
  y.value = !m.getItem(f.value);
227
227
  }, 2e3);
228
- }), (t, a) => {
228
+ }), (t, r) => {
229
229
  const c = b("FmCollapsibleTabs");
230
- return S(), I("div", ae, [
230
+ return S(), I("div", re, [
231
231
  _(c, {
232
232
  modelValue: d.value,
233
- "onUpdate:modelValue": a[0] || (a[0] = (N) => d.value = N),
233
+ "onUpdate:modelValue": r[0] || (r[0] = (N) => d.value = N),
234
234
  items: R.value
235
235
  }, null, 8, ["modelValue", "items"])
236
236
  ]);
@@ -239,8 +239,8 @@ const q = {
239
239
  });
240
240
  typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
241
241
  let l, n;
242
- return { promise: new Promise((u, r) => {
243
- l = u, n = r;
242
+ return { promise: new Promise((u, a) => {
243
+ l = u, n = a;
244
244
  }), resolve: l, reject: n };
245
245
  });
246
246
  typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
@@ -255,13 +255,13 @@ const fe = /* @__PURE__ */ h({
255
255
  n.setEmbedded(!0);
256
256
  return;
257
257
  }
258
- n.registerSidebarComponent(re), i.initGoogleMap(u.appApi.googleMap).catch(() => {
258
+ n.registerSidebarComponent(ae), i.initGoogleMap(u.appApi.googleMap).catch(() => {
259
259
  console.error("Google map cannot be loaded");
260
260
  });
261
261
  }), P([() => n.currentCountry.value], () => {
262
- r();
262
+ a();
263
263
  });
264
- async function r() {
264
+ async function a() {
265
265
  var m;
266
266
  try {
267
267
  await n.readBusinesses(), n.currentBusiness.value = (m = n.businesses.value) == null ? void 0 : m.find((o) => o);
@@ -1,7 +1,7 @@
1
- import { defineComponent as oe, ref as g, watch as re, computed as b, resolveComponent as ne, openBlock as x, createBlock as K, unref as e, withCtx as y, createElementVNode as s, normalizeClass as se, createVNode as n, normalizeStyle as le, toDisplayString as ce, createElementBlock as ie, createCommentVNode as ue, Teleport as pe, mergeProps as me } from "vue";
2
- import { u as de, aA as _, aL as fe, ac as Q, z as _e, _ as ve, B as he, C as De, E as v } from "./app-BoT0hU4y.js";
3
- import { a as ge, P as O, b as be, _ as xe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-vjDgXu5D.js";
4
- import { useBreakpoints as ye } from "@feedmepos/ui-library";
1
+ import { defineComponent as oe, ref as g, watch as re, computed as b, resolveComponent as ne, openBlock as y, createBlock as K, unref as e, withCtx as x, createElementVNode as s, normalizeClass as se, createVNode as n, normalizeStyle as le, toDisplayString as ce, createElementBlock as ie, createCommentVNode as ue, Teleport as pe, mergeProps as me } from "vue";
2
+ import { u as de, aA as _, aL as fe, ac as Q, z as _e, _ as ve, B as he, C as De, E as v } from "./app-CvTTGb1Y.js";
3
+ import { a as ge, P as O, b as be, _ as ye } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CsQoRock.js";
4
+ import { useBreakpoints as xe } from "@feedmepos/ui-library";
5
5
  import { useI18n as Oe } from "@feedmepos/mf-common";
6
6
  const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ce = {
7
7
  key: 0,
@@ -35,9 +35,9 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
35
35
  return;
36
36
  }
37
37
  });
38
- const h = g(""), { breakpoints: w } = ye(), D = b(() => w.value.xs || w.value.sm), Z = b(() => D.value ? 10 : 20), B = _e(), { t: P } = Oe(), I = b(() => [
38
+ const h = g(""), { breakpoints: w } = xe(), D = b(() => w.value.xs || w.value.sm), Z = b(() => D.value ? 10 : 20), B = _e(), { t: P } = Oe(), I = b(() => [
39
39
  {
40
- label: P("common.refresh"),
40
+ label: P("inventory.common.refresh"),
41
41
  value: "refresh"
42
42
  }
43
43
  ]);
@@ -49,12 +49,12 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
49
49
  }
50
50
  return (c, l) => {
51
51
  const te = ne("FmTable");
52
- return x(), K(ve, {
52
+ return y(), K(ve, {
53
53
  title: e(P)("inventory.transfer.approval.title"),
54
54
  actions: I.value,
55
55
  "onClick:action": ee
56
56
  }, {
57
- default: y(() => [
57
+ default: x(() => [
58
58
  s("div", {
59
59
  class: se([
60
60
  "flex flex-col gap-8 max-h-full",
@@ -82,12 +82,12 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
82
82
  )),
83
83
  "page-size": Z.value
84
84
  }, {
85
- "list-row": y((r) => [
85
+ "list-row": x((r) => [
86
86
  n(De, {
87
87
  row: r,
88
88
  onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
89
89
  }, {
90
- default: y((t) => {
90
+ default: x((t) => {
91
91
  var k, C, S, i, A, T, L, V, u, z, M, p, $, m, E, F, Y, q, N, d, j, H, U, G, f, J;
92
92
  return [
93
93
  s("div", Re, [
@@ -104,7 +104,7 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
104
104
  }, null, 8, ["render", "props"])
105
105
  ]),
106
106
  s("div", ke, ce((E = (m = ($ = (p = (M = r.original.purchaseOrder) == null ? void 0 : M.items) == null ? void 0 : p.map) == null ? void 0 : $.call(p, (ae) => `${ae.name}`)) == null ? void 0 : m.join) == null ? void 0 : E.call(m, ", ")), 1),
107
- (F = r.original.purchaseOrder) != null && F.ref ? (x(), ie("div", Ce, [
107
+ (F = r.original.purchaseOrder) != null && F.ref ? (y(), ie("div", Ce, [
108
108
  n(e(v), {
109
109
  render: (N = (q = (Y = t.purchaseOrder_ref) == null ? void 0 : Y.column) == null ? void 0 : q.columnDef) == null ? void 0 : N.cell,
110
110
  props: (j = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : j.call(d)
@@ -125,8 +125,8 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
125
125
  _: 1
126
126
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
127
127
  ], 2),
128
- (x(), K(pe, { to: "body" }, [
129
- n(xe, me({
128
+ (y(), K(pe, { to: "body" }, [
129
+ n(ye, me({
130
130
  scope: e(O).APPROVAL
131
131
  }, e(o).transferDetailsProps.value, {
132
132
  onSubmitted: e(o).fetchData
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
2
- import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-D81eO5Mu.js";
3
- import { a as L, aT as S } from "./app-BoT0hU4y.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CPgkL2CW.js";
3
+ import { a as L, aT as S } from "./app-CvTTGb1Y.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
2
- import { a as M, aT as x, H as z } from "./app-BoT0hU4y.js";
2
+ import { a as M, aT as x, H as z } from "./app-CvTTGb1Y.js";
3
3
  const F = {
4
4
  key: 0,
5
5
  class: "flex flex-col gap-16"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
2
- import { F as v, a as E, aT as F } from "./app-BoT0hU4y.js";
2
+ import { F as v, a as E, aT as F } from "./app-CvTTGb1Y.js";
3
3
  import { components as L } from "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
5
  const P = /* @__PURE__ */ _({