@feedmepos/mf-inventory-portal 0.0.25-dev.45 → 0.0.25-dev.48

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 (62) hide show
  1. package/dist/{App-pkjhXf9g.js → App-z3cF2vOR.js} +54 -54
  2. package/dist/{ApprovalView-1a_56XYs.js → ApprovalView-3TqCsant.js} +2 -2
  3. package/dist/{BindingsDialog-DLu9QHGD.js → BindingsDialog-p0t1BImD.js} +2 -2
  4. package/dist/{BindingsPicker-DXmMOIwl.js → BindingsPicker-D2O9vrb-.js} +1 -1
  5. package/dist/{BindingsTable-CAUD4hZv.js → BindingsTable-YiH5giKF.js} +1 -1
  6. package/dist/{ClosingDraftView-DdooG5iI.js → ClosingDraftView-BDtJbp0c.js} +2 -2
  7. package/dist/{ClosingTemplateView-BD4XHuGK.js → ClosingTemplateView-DGr_mABm.js} +2 -2
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CX6E3y7e.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C4xIw22x.js} +3 -3
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DMBch-HK.js → FmUnitInput.vue_vue_type_script_setup_true_lang-IaN8x-cZ.js} +1 -1
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bf416BWy.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BMOWjN8z.js} +1 -1
  11. package/dist/{IngredientGroupView-D8dTmPiL.js → IngredientGroupView-BML9pLXL.js} +1 -1
  12. package/dist/{IngredientsView-BqwnH9Ae.js → IngredientsView-zBM-140W.js} +4 -4
  13. package/dist/{IntegrationView-B9ihVgaE.js → IntegrationView-B6N3Jk7y.js} +569 -635
  14. package/dist/{InventoryBindingForm-7RQ9q3SN.js → InventoryBindingForm-DPOQUN3O.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bdmd5l0w.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BnNenp5W.js} +3 -3
  16. package/dist/{InventoryBindingSummary-CSF2fzjd.js → InventoryBindingSummary-Cfh7oeoL.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Dv-SSF1r.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DgPktdQY.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DyDwJIAd.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CrOTsKEc.js} +1 -1
  19. package/dist/{PublishView-DZwVo4uk.js → PublishView-dXx1GKmb.js} +2 -2
  20. package/dist/{PurchaseOrderPrintPreview-CnxE4Wfw.js → PurchaseOrderPrintPreview-DZM1BPnX.js} +1 -1
  21. package/dist/{ReceiveRequestView-zFdXAq6L.js → ReceiveRequestView-BFSVwoeR.js} +57 -57
  22. package/dist/{RecipeView-C2DZ6M6k.js → RecipeView-DHCJJeQ8.js} +3 -3
  23. package/dist/{StockView-DFM-trvP.js → StockView-CAM7J99l.js} +2027 -1994
  24. package/dist/{SupplierView-DHffdoW_.js → SupplierView-DZIp5gUF.js} +4 -4
  25. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-E9HQg9pO.js +1605 -0
  26. package/dist/{TransferTemplateView-CHZPysze.js → TransferTemplateView-Brenq6bs.js} +7 -7
  27. package/dist/{UnitView-Dk6PMBes.js → UnitView-DqgK1JS-.js} +3 -3
  28. package/dist/{WarehouseView-7NkgjnAg.js → WarehouseView-DKx9cqNi.js} +1 -1
  29. package/dist/api/netsuite.d.ts +1 -1
  30. package/dist/{app-1AEJE-GS.js → app-DcP9Ie47.js} +21856 -20896
  31. package/dist/app.js +1 -1
  32. package/dist/{decimal-DDfoHLmD.js → decimal-CcU8ZP9G.js} +1 -1
  33. package/dist/{feature-Dpqq9nbO.js → feature-CMMaH6tc.js} +1 -1
  34. package/dist/{format-unit-display-RiOciSmt.js → format-unit-display-j4W6e0q7.js} +2 -2
  35. package/dist/index-BI7obD5h.js +77 -0
  36. package/dist/index-BgDKu-m1.js +12197 -0
  37. package/dist/{stock-Dulvtkjj.js → stock-BbT0pmws.js} +1 -1
  38. package/dist/stores/integration/index.d.ts +1 -0
  39. package/dist/stores/integration/netsuite.d.ts +1 -1
  40. package/dist/stores/inventory.d.ts +6 -0
  41. package/dist/stores/stock.d.ts +5 -0
  42. package/dist/stores/warehouse.d.ts +4 -7
  43. package/dist/{supplier-DAIl-nmu.js → supplier-D3UdV0GZ.js} +1 -1
  44. package/dist/tsconfig.app.tsbuildinfo +1 -1
  45. package/dist/{use-ingredient-select-dialog-C5P_xPWH.js → use-ingredient-select-dialog-nEfqry__.js} +1 -1
  46. package/dist/{use-inventory-binding-dialog-DrwdGL7H.js → use-inventory-binding-dialog-DmHGIstk.js} +1 -1
  47. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +18 -16
  48. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
  49. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +4 -4
  50. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
  51. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +30 -24
  52. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +30 -24
  53. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +2 -2
  54. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
  55. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +12 -12
  56. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +12 -12
  57. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +3 -3
  58. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -14
  59. package/dist/{vue-i18n-uuPt2QY7.js → vue-i18n-BIOqWBa0.js} +359 -359
  60. package/package.json +2 -2
  61. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DseAaTbl.js +0 -1615
  62. package/dist/index-CKWrNwz7.js +0 -35546
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { aZ as s, a_ as e, a$ as o, aY as t, b0 as i, a as m } from "./app-1AEJE-GS.js";
2
+ import { a_ as s, a$ as e, b0 as o, aZ as t, b1 as i, a as m } from "./app-DcP9Ie47.js";
3
3
  export {
4
4
  s as FmApp,
5
5
  e as InventoryBindingForm,
@@ -1,4 +1,4 @@
1
- import "./app-1AEJE-GS.js";
1
+ import "./app-DcP9Ie47.js";
2
2
  function m(a) {
3
3
  function t(o, n = !0) {
4
4
  const e = Math.round(Math.log10(o));
@@ -2,7 +2,7 @@ var fe = Object.defineProperty;
2
2
  var pe = (p, l, v) => l in p ? fe(p, l, { enumerable: !0, configurable: !0, writable: !0, value: v }) : p[l] = v;
3
3
  var ht = (p, l, v) => pe(p, typeof l != "symbol" ? l + "" : l, v);
4
4
  import { useCoreStore as vt } from "@feedmepos/mf-common";
5
- import { a4 as dt, u as Dt, aG as re, a as ye } from "./app-1AEJE-GS.js";
5
+ import { a4 as dt, u as Dt, aG as re, a as ye } from "./app-DcP9Ie47.js";
6
6
  import { ref as gt, readonly as Kt } from "vue";
7
7
  var Gt = { exports: {} };
8
8
  (function(p, l) {
@@ -1,10 +1,10 @@
1
- import { W as Ee, a as q, K as Ie, ad as U, r as Ae, ae as fe, s as ye, u as W, i as B, v as Ne, aG as ae, w as he, b as J, t as V, O as j, aF as Oe, ay as De, T as Fe, x as Pe, y as Ue, d as se, e as X, R as ie, H as Be, ac as Me, D as G, h as D, f as Le } from "./app-1AEJE-GS.js";
1
+ import { W as Ee, a as q, K as Ie, ad as U, r as Ae, ae as fe, s as ye, u as W, i as B, v as Ne, aG as ae, w as he, b as J, t as V, O as j, aF as Oe, ay as De, T as Fe, x as Pe, y as Ue, d as se, e as X, R as ie, H as Be, ac as Me, D as G, h as D, f as Le } from "./app-DcP9Ie47.js";
2
2
  import { useCoreStore as ee, useI18n as te } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as Qe, useSnackbar as ve, useDialog as He, FmButtonVariant as le, components as ce } from "@feedmepos/ui-library";
4
4
  import { defineStore as ge } from "pinia";
5
5
  import { defineComponent as be, resolveComponent as L, openBlock as T, createElementBlock as w, createElementVNode as $, normalizeClass as Q, createTextVNode as qe, toDisplayString as I, unref as E, createCommentVNode as H, createVNode as F, withCtx as Z, Fragment as M, renderList as K, ref as C, onMounted as Ve, computed as me, watch as je, createSlots as ze, createBlock as z, h as Y } from "vue";
6
6
  import { useRouter as Ke } from "vue-router";
7
- import { u as re } from "./supplier-DAIl-nmu.js";
7
+ import { u as re } from "./supplier-D3UdV0GZ.js";
8
8
  const Se = Ee((e, t) => {
9
9
  function a() {
10
10
  var n;
@@ -0,0 +1,77 @@
1
+ import { ref as c, computed as l } from "vue";
2
+ import { u as g, aR as d, b as m } from "./app-DcP9Ie47.js";
3
+ import { useSnackbar as f } from "@feedmepos/ui-library";
4
+ function b() {
5
+ return {
6
+ setting: {
7
+ _id: "",
8
+ enable: !1,
9
+ bindings: [],
10
+ uniqueCode: "",
11
+ branchCode: "",
12
+ server: {
13
+ password: "",
14
+ host: "",
15
+ username: "",
16
+ port: "",
17
+ directory: ""
18
+ },
19
+ histories: [],
20
+ modifiers: [],
21
+ exportAsJson: !1
22
+ },
23
+ menu: [],
24
+ group: [],
25
+ variants: [],
26
+ categories: []
27
+ };
28
+ }
29
+ const e = c(b());
30
+ function p() {
31
+ return {
32
+ // state
33
+ get isEnabled() {
34
+ return e.value.setting.enable;
35
+ },
36
+ get isBusinessLocation() {
37
+ return g().businessLevel;
38
+ },
39
+ get state() {
40
+ return e.value;
41
+ },
42
+ async init() {
43
+ var a, r, o, s;
44
+ const n = d();
45
+ try {
46
+ const t = await n.readMenu();
47
+ e.value.menu = ((a = t.modules) == null ? void 0 : a.item) ?? [], e.value.group = ((r = t.modules) == null ? void 0 : r.group) ?? [], e.value.variants = ((o = t.modules) == null ? void 0 : o.variant) ?? [];
48
+ const u = (((s = t.modules) == null ? void 0 : s.category) ?? []).map((i) => ({
49
+ ...i,
50
+ _id: i._id === void 0 ? null : i._id
51
+ }));
52
+ e.value.categories = u, e.value.setting = await n.readSetting();
53
+ } catch (t) {
54
+ f().open({
55
+ title: "Something went wrong",
56
+ message: "Cannot fetch integration info. Please try again.",
57
+ type: "error"
58
+ }), console.error("Error at fetching integration info", t);
59
+ }
60
+ }
61
+ };
62
+ }
63
+ function y() {
64
+ const n = m(), a = p(), r = l(() => n.isEnabled), o = l(() => a.isEnabled);
65
+ return {
66
+ get enabledIntegrations() {
67
+ return [r.value, o.value].filter((s) => s).length;
68
+ },
69
+ get isNetSuiteEnabled() {
70
+ return r.value;
71
+ }
72
+ };
73
+ }
74
+ export {
75
+ p as a,
76
+ y as u
77
+ };