@feedmepos/mf-inventory-portal 0.0.23-dev.8 → 0.0.23-dev.9

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 (69) hide show
  1. package/dist/{App-PIGOcNDx.js → App-ByLgARNp.js} +37 -33
  2. package/dist/{ApprovalView-D1BiL6Eb.js → ApprovalView-e85YmdZN.js} +4 -4
  3. package/dist/{BindingsDialog-Svbe6kls.js → BindingsDialog-giBUD0IH.js} +2 -2
  4. package/dist/{BindingsPicker-CuPWowOy.js → BindingsPicker-CC4MmPbF.js} +2 -2
  5. package/dist/{BindingsTable-C0wTK7Tu.js → BindingsTable-WphZdzrA.js} +6 -6
  6. package/dist/ClosingDraftView-CQM1Sx45.js +755 -0
  7. package/dist/{ClosingTemplateView-DYB4bk26.js → ClosingTemplateView-1lzoDyet.js} +32 -31
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DApYBey2.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cv-vvzr5.js} +19 -19
  9. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BHY6DKjD.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BvkN-71q.js} +2 -2
  10. package/dist/{FmMultiselectDialog-DmiCS2MH.js → FmMultiselectDialog-DScMA6iG.js} +15 -15
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BZijME3G.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DIFQcrc0.js} +2 -2
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DEmObD4q.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-t4pim_k9.js} +1 -1
  13. package/dist/{IngredientGroupView-CwyP0VR-.js → IngredientGroupView-UegBM_JK.js} +12 -11
  14. package/dist/{IngredientsView-NtoU_ukl.js → IngredientsView-BfW-jZLM.js} +13 -12
  15. package/dist/{IntegrationView-CGBphMfH.js → IntegrationView-FYNNzKia.js} +50 -50
  16. package/dist/{InventoryBindingForm-C86nm-C1.js → InventoryBindingForm-DsHv_IHG.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B-hMO0wv.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BURSXafS.js} +13 -13
  18. package/dist/{InventoryBindingSummary-DLQRCqmv.js → InventoryBindingSummary-BLb4MRPZ.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CZsvmIju.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BG78-DHs.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BsEfEmYR.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CqID5_7v.js} +2 -2
  21. package/dist/{PurchaseOrderPrintPreview-BQ4eedE7.js → PurchaseOrderPrintPreview-BBMU3teq.js} +1 -1
  22. package/dist/{ReceiveRequestView-5CJF48wa.js → ReceiveRequestView-vbANEzne.js} +19 -19
  23. package/dist/{RecipeView-DxCEmBEs.js → RecipeView-DW4DY0C0.js} +11 -10
  24. package/dist/{StockView-DcTDvPWu.js → StockView-C5btudss.js} +1356 -1457
  25. package/dist/{SupplierView-Bz44BdU-.js → SupplierView-B2aObtwK.js} +14 -13
  26. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DpVa6Exh.js → TransferDetails.vue_vue_type_script_setup_true_lang-B2LOvVef.js} +17 -16
  27. package/dist/{TransferTemplateView-D-bEaxob.js → TransferTemplateView-BKumN_p6.js} +57 -56
  28. package/dist/{UnitView-C0BQQzCx.js → UnitView-CHLucv9s.js} +81 -80
  29. package/dist/{WarehouseView-CXZwvNvG.js → WarehouseView-G8pej6Y2.js} +25 -24
  30. package/dist/api/closing-draft.d.ts +6 -0
  31. package/dist/api/closing.d.ts +1 -0
  32. package/dist/{app-D0Gx27w2.js → app-BXjk74IB.js} +2175 -2140
  33. package/dist/app.d.ts +3 -0
  34. package/dist/app.js +1 -1
  35. package/dist/components/row-action.enum.d.ts +1 -0
  36. package/dist/{date2-Ci5ROICb.js → date2-CWAt9bRf.js} +1 -1
  37. package/dist/{dayjs.min-CHLyNvFi.js → dayjs.min-D3jPOnu6.js} +17 -17
  38. package/dist/{decimal-BfCXdz5w.js → decimal-DC07xoJW.js} +1 -1
  39. package/dist/{defineDeepModel-BUK9npmw.js → defineDeepModel-CiD4GtOw.js} +1 -1
  40. package/dist/{feature-B_jNIFmj.js → feature-6tcLMotY.js} +1 -1
  41. package/dist/form-mode.enum-BKiNVH6A.js +4 -0
  42. package/dist/{format-time-from-id-DBB6aOha.js → format-time-from-id-CYU5Z9Mt.js} +1 -1
  43. package/dist/{format-unit-display-CDJ1ljmF.js → format-unit-display-CY-0bznr.js} +83 -82
  44. package/dist/{fuzzy-t_DxwCxM.js → fuzzy-BMkhNYLR.js} +1 -1
  45. package/dist/{index-Cqh8dnaX.js → index-BXwQa14X.js} +1 -1
  46. package/dist/{index-CaC2cCOr.js → index-CRLd5xyg.js} +1 -1
  47. package/dist/{index-CEnwiSNc.js → index-DqwAtOgI.js} +1 -1
  48. package/dist/{netsuite-Amm_idsL.js → netsuite-fYUUk_ss.js} +1 -1
  49. package/dist/router/name.d.ts +1 -0
  50. package/dist/{row-action.enum-PMKMRrZR.js → row-action.enum-7rGLGZ5v.js} +10 -5
  51. package/dist/{rules-DrmWDZZ7.js → rules-BmRGm3yv.js} +39 -35
  52. package/dist/stock-CEX0DP2B.js +111 -0
  53. package/dist/stores/inventory.d.ts +1 -4
  54. package/dist/style.css +1 -1
  55. package/dist/{supplier-J8OTJPSV.js → supplier-CdJmZr7w.js} +22 -22
  56. package/dist/tsconfig.app.tsbuildinfo +1 -1
  57. package/dist/{use-inventory-binding-dialog-BYHugl4t.js → use-inventory-binding-dialog-B0G2XYSw.js} +2 -2
  58. package/dist/{use-template-enabled-locations-2-rSd9SeNy.js → use-template-enabled-locations-2-xbPJWHCs.js} +2 -2
  59. package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
  60. package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
  61. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +447 -0
  62. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +22 -0
  63. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +2601 -0
  64. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
  65. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -192
  66. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +24 -192
  67. package/dist/{xlsx-BCfGO1MX.js → xlsx-CTOKp7SQ.js} +1 -1
  68. package/dist/{xlsx.util-Bf_CCXgS.js → xlsx.util-D5NFSfDg.js} +1 -1
  69. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
- import { ref as L, onUnmounted as k, defineComponent as h, watch as b, onMounted as U, computed as R, resolveComponent as T, openBlock as S, createElementBlock as I, unref as v, createVNode as E, createElementVNode as p, toDisplayString as w, createBlock as B, createCommentVNode as F } from "vue";
2
- import { u as M, a as D, R as e, g as s, b as H } from "./app-D0Gx27w2.js";
3
- import { useCoreStore as x, useI18n as G } from "@feedmepos/mf-common";
4
- import { useRouter as A, useRoute as K } from "vue-router";
5
- import { u as V } from "./feature-B_jNIFmj.js";
6
- import { u as $ } from "./netsuite-Amm_idsL.js";
1
+ import { ref as w, onUnmounted as F, defineComponent as h, watch as b, onMounted as U, computed as R, resolveComponent as T, openBlock as S, createElementBlock as I, unref as v, createVNode as E, createElementVNode as p, toDisplayString as L, createBlock as G, createCommentVNode as k } from "vue";
2
+ import { u as M, a as D, R as e, g as s, b as H } from "./app-BXjk74IB.js";
3
+ import { useCoreStore as A, useI18n as B } from "@feedmepos/mf-common";
4
+ import { useRouter as C, useRoute as K } from "vue-router";
5
+ import { u as O } from "./feature-6tcLMotY.js";
6
+ import { u as $ } from "./netsuite-fYUUk_ss.js";
7
7
  import { u as Q } from "./useTabStorage-BkIVScW_.js";
8
8
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  import { u as j } from "./googlemap-Dm8ERVai.js";
@@ -14,9 +14,9 @@ function z() {
14
14
  isLoading: !1
15
15
  };
16
16
  }
17
- const _ = L(z());
17
+ const _ = w(z());
18
18
  function q() {
19
- const l = A();
19
+ const l = C();
20
20
  if (!_.value.loadingHookInstalled) {
21
21
  _.value.loadingHookInstalled = !0;
22
22
  const n = l.beforeEach(() => {
@@ -24,7 +24,7 @@ function q() {
24
24
  }), i = l.afterEach(() => {
25
25
  _.value.isLoading = !1;
26
26
  });
27
- k(() => {
27
+ F(() => {
28
28
  _.value.loadingHookInstalled = !1, n(), i();
29
29
  });
30
30
  }
@@ -43,17 +43,17 @@ const J = {
43
43
  }, Y = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Z = { class: "fm-typo-en-title-lg-600" }, ee = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, te = { class: "flex gap-16" }, oe = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ne = { href: "https://feedme.ai/form" }, re = /* @__PURE__ */ h({
44
44
  __name: "InventoryView",
45
45
  setup(l) {
46
- const n = M(), i = D(), u = $(), a = x(), c = A(), o = q(), y = V(), { t: f } = G();
46
+ const n = M(), i = D(), u = $(), a = A(), c = C(), o = q(), y = O(), { t: d } = B();
47
47
  b(
48
48
  [() => a.sessionUser.value, () => a.currentBusiness.value],
49
49
  ([t, r]) => {
50
- d(t, r);
50
+ f(t, r);
51
51
  }
52
52
  ), U(() => {
53
53
  const t = a.sessionUser.value, r = a.currentBusiness.value;
54
- d(t, r);
54
+ f(t, r);
55
55
  });
56
- function d(t, r) {
56
+ function f(t, r) {
57
57
  !t || !r || g();
58
58
  }
59
59
  async function g() {
@@ -63,7 +63,7 @@ const J = {
63
63
  }
64
64
  const N = R(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? y.enablePoTemplate : !0);
65
65
  return (t, r) => {
66
- const m = T("FmSpacer"), P = T("FmCircularProgress"), C = T("FmButton"), O = T("RouterView");
66
+ const m = T("FmSpacer"), P = T("FmCircularProgress"), x = T("FmButton"), V = T("RouterView");
67
67
  return S(), I("div", null, [
68
68
  v(o).isLoading ? (S(), I("div", J, [
69
69
  E(m),
@@ -72,21 +72,21 @@ const J = {
72
72
  ]),
73
73
  r[0] || (r[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
74
74
  E(m)
75
- ])) : N.value ? v(a).sessionUser.value ? (S(), B(O, { key: 2 })) : F("", !0) : (S(), I("div", X, [
75
+ ])) : N.value ? v(a).sessionUser.value ? (S(), G(V, { key: 2 })) : k("", !0) : (S(), I("div", X, [
76
76
  p("div", Y, [
77
- p("div", Z, w(v(f)("inventory.common.proPlan.title")), 1),
78
- p("div", ee, w(v(f)("inventory.common.proPlan.subtitle")), 1)
77
+ p("div", Z, L(v(d)("inventory.common.proPlan.title")), 1),
78
+ p("div", ee, L(v(d)("inventory.common.proPlan.subtitle")), 1)
79
79
  ]),
80
80
  p("div", te, [
81
81
  p("a", oe, [
82
- E(C, {
83
- label: v(f)("inventory.common.proPlan.comparePlans"),
82
+ E(x, {
83
+ label: v(d)("inventory.common.proPlan.comparePlans"),
84
84
  variant: "secondary"
85
85
  }, null, 8, ["label"])
86
86
  ]),
87
87
  p("a", ne, [
88
- E(C, {
89
- label: v(f)("inventory.common.proPlan.callUs"),
88
+ E(x, {
89
+ label: v(d)("inventory.common.proPlan.callUs"),
90
90
  "prepend-icon": "call"
91
91
  }, null, 8, ["label"])
92
92
  ])
@@ -98,7 +98,7 @@ const J = {
98
98
  }), se = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
99
99
  __name: "NavigationTab",
100
100
  setup(l) {
101
- const n = K(), i = A(), u = x(), a = V(), c = Q(), { t: o } = G();
101
+ const n = K(), i = C(), u = A(), a = O(), c = Q(), { t: o } = B();
102
102
  b([() => u.currentBusiness.value, () => n.name], ([t, r]) => {
103
103
  (t == null ? void 0 : t.menuVersion) === "v3" && (r === e.INGREDIENTS || r === e.RECIPE || r === e.UNIT) && i.push({ name: e.STOCK });
104
104
  });
@@ -116,6 +116,10 @@ const J = {
116
116
  {
117
117
  label: s(e.CLOSING_TEMPLATE, o),
118
118
  value: e.CLOSING_TEMPLATE
119
+ },
120
+ {
121
+ label: s(e.CLOSING_DRAFT, o),
122
+ value: e.CLOSING_DRAFT
119
123
  }
120
124
  ]
121
125
  },
@@ -178,7 +182,7 @@ const J = {
178
182
  return ((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) === "v3" ? t.filter(
179
183
  (m) => m.value !== e.INGREDIENTS && m.value !== e.RECIPE && m.value !== e.UNIT
180
184
  ) : t;
181
- }), f = R({
185
+ }), d = R({
182
186
  get() {
183
187
  if (n.name)
184
188
  return String(n.name);
@@ -186,35 +190,35 @@ const J = {
186
190
  set(t) {
187
191
  t && i.push({ name: t });
188
192
  }
189
- }), d = R(
193
+ }), f = R(
190
194
  () => {
191
195
  var t;
192
196
  return `NavigationTab.${(t = u.currentBusiness.value) == null ? void 0 : t._id}`;
193
197
  }
194
- ), g = L(!1), N = R({
198
+ ), g = w(!1), N = R({
195
199
  get() {
196
200
  return g.value;
197
201
  },
198
202
  set(t) {
199
- g.value = t, t || c.setItem(d.value, "true");
203
+ g.value = t, t || c.setItem(f.value, "true");
200
204
  }
201
205
  });
202
- return b([() => d.value], () => {
206
+ return b([() => f.value], () => {
203
207
  g.value = !1, setTimeout(() => {
204
- N.value = !c.getItem(d.value);
208
+ N.value = !c.getItem(f.value);
205
209
  }, 2e3);
206
210
  }), (t, r) => {
207
211
  const m = T("FmCollapsibleTabs");
208
212
  return S(), I("div", se, [
209
213
  E(m, {
210
- modelValue: f.value,
211
- "onUpdate:modelValue": r[0] || (r[0] = (P) => f.value = P),
214
+ modelValue: d.value,
215
+ "onUpdate:modelValue": r[0] || (r[0] = (P) => d.value = P),
212
216
  items: y.value
213
217
  }, null, 8, ["modelValue", "items"])
214
218
  ]);
215
219
  };
216
220
  }
217
- }), le = /* @__PURE__ */ W(ae, [["__scopeId", "data-v-0fe980e2"]]);
221
+ }), le = /* @__PURE__ */ W(ae, [["__scopeId", "data-v-070831e1"]]);
218
222
  typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
219
223
  let l, n;
220
224
  return { promise: new Promise((u, a) => {
@@ -227,7 +231,7 @@ typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async fun
227
231
  const Se = /* @__PURE__ */ h({
228
232
  __name: "App",
229
233
  setup(l) {
230
- const n = x(), i = j(), u = H();
234
+ const n = A(), i = j(), u = H();
231
235
  U(() => {
232
236
  if (window.location.href.includes("print-preview")) {
233
237
  n.setEmbedded(!0);
@@ -247,7 +251,7 @@ const Se = /* @__PURE__ */ h({
247
251
  console.error("error when trying to reset businesses:", o);
248
252
  }
249
253
  }
250
- return (c, o) => (S(), B(re));
254
+ return (c, o) => (S(), G(re));
251
255
  }
252
256
  });
253
257
  export {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as x, createBlock as J, unref as e, withCtx as y, createElementVNode as s, normalizeClass as ne, createVNode as n, normalizeStyle as se, toDisplayString as le, createElementBlock as ce, createCommentVNode as ie, Teleport as pe, mergeProps as ue } from "vue";
2
- import { u as me, w as v } from "./app-D0Gx27w2.js";
3
- import { b as de, u as fe, _ as ve, a as _e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BHY6DKjD.js";
4
- import { a as he, b as De, _ as ge } from "./TransferDetails.vue_vue_type_script_setup_true_lang-DpVa6Exh.js";
5
- import { c as K } from "./date2-Ci5ROICb.js";
2
+ import { u as me, z as v } from "./app-BXjk74IB.js";
3
+ import { b as de, u as fe, _ as ve, a as _e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BvkN-71q.js";
4
+ import { a as he, b as De, _ as ge } from "./TransferDetails.vue_vue_type_script_setup_true_lang-B2LOvVef.js";
5
+ import { c as K } from "./date2-CWAt9bRf.js";
6
6
  import { _ as be, F as _ } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
7
7
  import { useBreakpoints as xe } from "@feedmepos/ui-library";
8
8
  import { useI18n as ye } from "@feedmepos/mf-common";
@@ -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-B-hMO0wv.js";
3
- import { a as L, G as S } from "./app-D0Gx27w2.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BURSXafS.js";
3
+ import { a as L, J as S } from "./app-BXjk74IB.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -1,6 +1,6 @@
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 { F as M } from "./FmMultiselectDialog-DmiCS2MH.js";
3
- import { a as x, G as F } from "./app-D0Gx27w2.js";
2
+ import { F as M } from "./FmMultiselectDialog-DScMA6iG.js";
3
+ import { a as x, J as F } from "./app-BXjk74IB.js";
4
4
  const z = {
5
5
  key: 0,
6
6
  class: "flex flex-col gap-16"
@@ -1,11 +1,11 @@
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, G as F } from "./app-D0Gx27w2.js";
3
- import "./index-CaC2cCOr.js";
2
+ import { F as v, a as E, J as F } from "./app-BXjk74IB.js";
3
+ import "./index-CRLd5xyg.js";
4
4
  import { components as L } from "@feedmepos/ui-library";
5
- import "./fuzzy-t_DxwCxM.js";
5
+ import "./fuzzy-BMkhNYLR.js";
6
6
  /* empty css */
7
7
  import "@feedmepos/mf-common";
8
- import "./dayjs.min-CHLyNvFi.js";
8
+ import "./dayjs.min-D3jPOnu6.js";
9
9
  const P = /* @__PURE__ */ _({
10
10
  __name: "binding-ui",
11
11
  props: {
@@ -94,7 +94,7 @@ const P = /* @__PURE__ */ _({
94
94
  }), R = {
95
95
  key: 1,
96
96
  class: "p-24 flex items-center justify-center gap-16"
97
- }, K = /* @__PURE__ */ _({
97
+ }, S = /* @__PURE__ */ _({
98
98
  __name: "BindingsTable",
99
99
  setup(k) {
100
100
  const d = E(), u = c(!0), s = c(new Array()), m = f(() => d.recipes), a = f(() => d.skus), g = c(""), i = F(n), e = c();
@@ -145,5 +145,5 @@ const P = /* @__PURE__ */ _({
145
145
  }
146
146
  });
147
147
  export {
148
- K as default
148
+ S as default
149
149
  };