@feedmepos/mf-inventory-portal 1.2.38 → 1.2.40-dev.1

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 (90) hide show
  1. package/dist/{App-CONrAP7y.js → App-0DyZL1Fq.js} +3 -3
  2. package/dist/{ApprovalView-Cn9_7xk9.js → ApprovalView-BmBq5TGO.js} +5 -5
  3. package/dist/{BindingsDialog-L7mP6sx9.js → BindingsDialog-DtBdmYMs.js} +11 -11
  4. package/dist/{BindingsPicker-DZqBMDUg.js → BindingsPicker-BAGxi1ZC.js} +9 -9
  5. package/dist/{BindingsTable-DHkFDwiH.js → BindingsTable-DKlb_qiS.js} +24 -24
  6. package/dist/{ClosingDraftView-BtSmlj0J.js → ClosingDraftView-CEmvLMPP.js} +8 -8
  7. package/dist/{ClosingHistoryView-j83Wuxis.js → ClosingHistoryView-DOmSMiGH.js} +22 -22
  8. package/dist/{ClosingTemplateView-ZubBNFCd.js → ClosingTemplateView-Bd1KfJL3.js} +14 -14
  9. package/dist/{DeliveryOrderPrintPreview-DfS2E2tl.js → DeliveryOrderPrintPreview-DoE0Bmx4.js} +9 -9
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CoO6g5B9.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-20eCsiTr.js} +60 -61
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnMjbyPc.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B05RFZv-.js} +2 -2
  12. package/dist/{FmMultiselectDialog-8_qMKCPt.js → FmMultiselectDialog-ChsBeANW.js} +2 -2
  13. package/dist/{FmMultiselectDialog-vj94RVLU.js → FmMultiselectDialog-i1uk7uNx.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Dihv3KTq.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BpT8OBQX.js} +3 -3
  15. package/dist/{ImportView--0ZbHtb9.js → ImportView-CCLgSwn2.js} +6 -6
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bosdu_28.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-EHwf-vCH.js} +1 -1
  17. package/dist/{IngredientGroupView-D937cHah.js → IngredientGroupView-BnEyAtcY.js} +49 -49
  18. package/dist/{IngredientsView-BNdvTpOT.js → IngredientsView-DEN_EqXP.js} +14 -14
  19. package/dist/{IntegrationView-Dm3Eur8-.js → IntegrationView-Cu_gMMz_.js} +1663 -1572
  20. package/dist/{InventoryBindingForm-rBhW4Snl.js → InventoryBindingForm-COw2tcQC.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Cvpi7GQx.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DIv_DrTj.js} +14 -14
  22. package/dist/{InventoryBindingSummary-emUM5QuA.js → InventoryBindingSummary-Csajkxbi.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DFW-jg1P.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BE9UFVFI.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BOxIYl0Z.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Da6ffJym.js} +2 -2
  25. package/dist/{PublishView-CXRBcsxc.js → PublishView-qCcwOaJ8.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-BvjDpyrq.js → PurchaseOrderPrintPreview-m2n6OT7Z.js} +9 -9
  27. package/dist/ReceiveRequestView-fhTKkIJA.js +2866 -0
  28. package/dist/{RecipeView-dggwqURE.js → RecipeView-Bp_59G4J.js} +8 -8
  29. package/dist/{StockView-Cml9AuXX.js → StockView-Co_sOnjs.js} +15 -15
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BTZa1E_o.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Npu98N-x.js} +1 -1
  31. package/dist/{SupplierView-CnD2QpE7.js → SupplierView-Bp4ez39s.js} +11 -11
  32. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DIbaHfbR.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-JTXbmabq.js} +2 -2
  33. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DeD1jiXL.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Dn2j9Xls.js} +1 -1
  34. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Y0eaTjgd.js → TransferDetails.vue_vue_type_script_setup_true_lang-BSOi6Bbh.js} +374 -374
  35. package/dist/{TransferTemplateView-DytfORlu.js → TransferTemplateView-C5jzqjPy.js} +354 -354
  36. package/dist/{UnitView-ZUo-3Em1.js → UnitView-XcXvbWUz.js} +6 -6
  37. package/dist/{WarehouseView-DlZirt8V.js → WarehouseView-B37E963Z.js} +5 -5
  38. package/dist/{WastageTemplateView-5Qvs2GZC.js → WastageTemplateView-Dn2vSoCa.js} +14 -14
  39. package/dist/api/netsuite.d.ts +2 -0
  40. package/dist/{app-xCn1wZY9.js → app-CaXDnJ-Z.js} +1517 -1479
  41. package/dist/app.js +1 -1
  42. package/dist/{closing-template-DS8zFVJt.js → closing-template-CgLIA5Fw.js} +1 -1
  43. package/dist/{date2-hHwvNr68.js → date2-Dc5sFY0E.js} +1 -1
  44. package/dist/{dayjs.min-PqgQ_K75.js → dayjs.min-B-H7eU1F.js} +12 -12
  45. package/dist/{decimal-DOCxaZjf.js → decimal-BEqE-6GW.js} +2 -2
  46. package/dist/{defineDeepModel-CTlh0zvq.js → defineDeepModel-CXxtm-xp.js} +1 -1
  47. package/dist/{duplicate-template-F8fz-36_.js → duplicate-template-BX6XhNvd.js} +1 -1
  48. package/dist/feature-BsDnCbpL.js +25312 -0
  49. package/dist/{format-time-from-id-DTsuaGJG.js → format-time-from-id-Dhlv9sZk.js} +1 -1
  50. package/dist/{format-unit-display-DS3MzSfd.js → format-unit-display-B1WhMzNf.js} +246 -247
  51. package/dist/helper/reactivity.d.ts +11 -0
  52. package/dist/helper/reactivity.spec.d.ts +1 -0
  53. package/dist/{import-export.helper-BAUfb01o.js → import-export.helper-DaGtyevy.js} +5 -5
  54. package/dist/{index-CYZHYBBP.js → index-B2ziwUTD.js} +1 -1
  55. package/dist/{index-BX9ig-2t.js → index-CikPk76E.js} +3 -3
  56. package/dist/{index-D_kOnYds.js → index-CqbsiJk1.js} +60 -60
  57. package/dist/{lodash-Cqi23PoA.js → lodash-rwAZ9bXl.js} +1 -1
  58. package/dist/{netsuite-Cg_AEH3H.js → netsuite-SdH9FL9h.js} +254 -239
  59. package/dist/{purchase-order-template-Dh3D_2Tz.js → purchase-order-template-Daxs7lNG.js} +1 -1
  60. package/dist/{rules-C_FnXd1e.js → rules-81GqVkEm.js} +3 -3
  61. package/dist/{stock-DJDm1iIR.js → stock-BEmy7_Qs.js} +1 -1
  62. package/dist/{stock-BPdGitCC.js → stock-CpYHrEjC.js} +3 -3
  63. package/dist/stores/integration/netsuite.d.ts +86 -0
  64. package/dist/stores/inventory.d.ts +10 -669
  65. package/dist/{supplier-BtZVHCAl.js → supplier-Bw4fRGiq.js} +2 -2
  66. package/dist/tsconfig.app.tsbuildinfo +1 -1
  67. package/dist/{use-ingredient-select-dialog-n26Kr4C5.js → use-ingredient-select-dialog-CGTZ9UUP.js} +2 -2
  68. package/dist/{use-inventory-binding-dialog-kkpC2Tzi.js → use-inventory-binding-dialog-CUh7aMb7.js} +2 -2
  69. package/dist/{use-template-enabled-locations-2-4ou70XAL.js → use-template-enabled-locations-2-2oPspMus.js} +2 -2
  70. package/dist/views/receive-request/components/netsuite/NetSuitePanel.vue.d.ts +3 -2
  71. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +3 -2
  72. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +518 -2225
  73. package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +1430 -0
  74. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
  75. package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.d.ts +13974 -0
  76. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +3 -2
  77. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +1 -1
  78. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +6 -6
  79. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +7 -7
  80. package/dist/views/receive-request/helper/get-transfer-type.d.ts +1 -2
  81. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +3 -2
  82. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +3 -2
  83. package/dist/views/transfer-template/helpers/import-export.helper.d.ts +4 -3
  84. package/dist/{vue-i18n-A7TH-x17.js → vue-i18n-Di6nYtv0.js} +378 -378
  85. package/dist/{xlsx-DRYtBAdX.js → xlsx-DXn_bv49.js} +1 -1
  86. package/dist/{xlsx.util-DGBUU4BN.js → xlsx.util-BawfHUuI.js} +1 -1
  87. package/package.json +3 -3
  88. package/dist/ReceiveRequestView-TwL3yVCN.js +0 -2821
  89. package/dist/feature-UnTx1VJG.js +0 -20162
  90. package/dist/views/receive-request/constants/purchase-order-transaction-type.d.ts +0 -4
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Recursively unwraps Vue reactive proxies to plain objects.
3
+ * Vue's `toRaw` only unwraps the immediate wrapper, not nested reactive objects.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * const reactive = ref({ nested: reactive({ value: 1 }) })
8
+ * const plain = deepToRaw(reactive.value) // { nested: { value: 1 } }
9
+ * ```
10
+ */
11
+ export declare function deepToRaw<T>(value: T): T;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,9 @@
1
- import { a as w, t as H, i as T, I as P } from "./rules-C_FnXd1e.js";
2
- import { u as j } from "./feature-UnTx1VJG.js";
1
+ import { a as w, t as H, i as T, I as P } from "./rules-81GqVkEm.js";
2
+ import { u as j } from "./feature-BsDnCbpL.js";
3
3
  import { useCoreStore as g } from "@feedmepos/mf-common";
4
- import { a as y, d as k, n as I, e as S } from "./app-xCn1wZY9.js";
5
- import { b as N, d as $, s as _ } from "./xlsx.util-DGBUU4BN.js";
6
- import { f as O } from "./date2-hHwvNr68.js";
4
+ import { a as y, d as k, n as I, e as S } from "./app-CaXDnJ-Z.js";
5
+ import { b as N, d as $, s as _ } from "./xlsx.util-BawfHUuI.js";
6
+ import { f as O } from "./date2-Dc5sFY0E.js";
7
7
  function R() {
8
8
  return {
9
9
  low: 6,
@@ -1,4 +1,4 @@
1
- import { w as x, af as V, ag as q, ah as Ne, a4 as cl, ac as sr, ai as Lt, aj as fl, ak as $l } from "./app-xCn1wZY9.js";
1
+ import { x, ag as V, ah as q, ai as Ne, a5 as cl, ad as sr, aj as Lt, ak as fl, al as $l } from "./app-CaXDnJ-Z.js";
2
2
  function vl(t, e) {
3
3
  for (var r = 0; r < e.length; r++) {
4
4
  const n = e[r];
@@ -1,4 +1,4 @@
1
- import { w as h } from "./app-xCn1wZY9.js";
1
+ import { x as h } from "./app-CaXDnJ-Z.js";
2
2
  var a = { exports: {} };
3
3
  function x(r, s = 100, u = {}) {
4
4
  if (typeof r != "function")
@@ -38,8 +38,8 @@ function x(r, s = 100, u = {}) {
38
38
  }
39
39
  a.exports.debounce = x;
40
40
  a.exports = x;
41
- var w = a.exports;
42
- const y = /* @__PURE__ */ h(w);
41
+ var g = a.exports;
42
+ const y = /* @__PURE__ */ h(g);
43
43
  export {
44
44
  y as d
45
45
  };
@@ -1,9 +1,9 @@
1
- import { ref as b, computed as u } from "vue";
2
- import { u as p } from "./netsuite-Cg_AEH3H.js";
3
- import { u as d, y as h, C as v } from "./app-xCn1wZY9.js";
4
- import { useSnackbar as E } from "@feedmepos/ui-library";
5
- import { u as m } from "./feature-UnTx1VJG.js";
6
- function I() {
1
+ import { ref as v, computed as c } from "vue";
2
+ import { u as p } from "./netsuite-SdH9FL9h.js";
3
+ import { u as g, z as h, a as E, D as b } from "./app-CaXDnJ-Z.js";
4
+ import { useSnackbar as I } from "@feedmepos/ui-library";
5
+ import { u as m } from "./feature-BsDnCbpL.js";
6
+ function C() {
7
7
  return {
8
8
  setting: {
9
9
  _id: "",
@@ -28,137 +28,137 @@ function I() {
28
28
  categories: []
29
29
  };
30
30
  }
31
- const i = b(I());
32
- function C() {
31
+ const i = v(C());
32
+ function w() {
33
33
  return {
34
34
  // state
35
35
  get isEnabled() {
36
36
  return i.value.setting.enable;
37
37
  },
38
38
  get isBusinessLocation() {
39
- return d().businessLevel;
39
+ return g().businessLevel;
40
40
  },
41
41
  get state() {
42
42
  return i.value;
43
43
  },
44
44
  async init() {
45
- var n, e, t, a;
46
- const o = h();
45
+ var e, t, n, d;
46
+ const o = h(), a = E();
47
47
  try {
48
- const s = await o.readMenu();
49
- i.value.menu = ((n = s.modules) == null ? void 0 : n.item) ?? [], i.value.group = ((e = s.modules) == null ? void 0 : e.group) ?? [], i.value.variants = ((t = s.modules) == null ? void 0 : t.variant) ?? [];
50
- const f = (((a = s.modules) == null ? void 0 : a.category) ?? []).map((c) => ({
51
- ...c,
52
- _id: c._id === void 0 ? null : c._id
48
+ const r = await a.readCachedMenu();
49
+ i.value.menu = ((e = r.modules) == null ? void 0 : e.item) ?? [], i.value.group = ((t = r.modules) == null ? void 0 : t.group) ?? [], i.value.variants = ((n = r.modules) == null ? void 0 : n.variant) ?? [];
50
+ const f = (((d = r.modules) == null ? void 0 : d.category) ?? []).map((s) => ({
51
+ ...s,
52
+ _id: s._id === void 0 ? null : s._id
53
53
  }));
54
54
  i.value.categories = f, i.value.setting = await o.readSetting();
55
- } catch (s) {
56
- E().open({
55
+ } catch (r) {
56
+ I().open({
57
57
  title: "Something went wrong",
58
58
  message: "Cannot fetch integration info. Please try again.",
59
59
  type: "error"
60
- }), console.error("Error at fetching integration info", s);
60
+ }), console.error("Error at fetching integration info", r);
61
61
  }
62
62
  }
63
63
  };
64
64
  }
65
- function y() {
65
+ function S() {
66
66
  return {
67
67
  locationId: ""
68
68
  };
69
69
  }
70
- const r = b(y());
71
- function w() {
72
- const o = d(), n = v();
70
+ const l = v(S());
71
+ function x() {
72
+ const o = g(), a = b();
73
73
  return o.watchLocation(async (e) => {
74
74
  if (m().enabledXilnexOpeningMigration) {
75
75
  if (!e) {
76
- r.value = y();
76
+ l.value = S();
77
77
  return;
78
78
  }
79
- r.value.locationId = e.dbName;
80
- const a = await n.readLastClosing(e.dbName);
81
- a ? r.value.closingDocumentId = a._id : r.value.closingDocumentId = "";
79
+ l.value.locationId = e.dbName;
80
+ const n = await a.readLastClosing(e.dbName);
81
+ n ? l.value.closingDocumentId = n._id : l.value.closingDocumentId = "";
82
82
  }
83
83
  }), {
84
84
  get isEnabled() {
85
85
  const e = m();
86
- return u(() => e.enabledXilnexOpeningMigration).value;
86
+ return c(() => e.enabledXilnexOpeningMigration).value;
87
87
  },
88
88
  get state() {
89
- return r.value;
89
+ return l.value;
90
90
  },
91
91
  async fetchClosingDocumentId() {
92
- const e = d(), t = await n.readLastClosing(e.currentLocationDBName);
93
- t ? r.value.closingDocumentId = t._id : r.value.closingDocumentId = "";
92
+ const e = g(), t = await a.readLastClosing(e.currentLocationDBName);
93
+ t ? l.value.closingDocumentId = t._id : l.value.closingDocumentId = "";
94
94
  }
95
95
  };
96
96
  }
97
- function S() {
97
+ function y() {
98
98
  return {
99
99
  locationId: ""
100
100
  };
101
101
  }
102
- const l = b(S());
103
- function x() {
104
- const o = d(), n = v();
102
+ const u = v(y());
103
+ function D() {
104
+ const o = g(), a = b();
105
105
  return o.watchLocation(async (e) => {
106
106
  if (m()) {
107
107
  if (!e) {
108
- l.value = S();
108
+ u.value = y();
109
109
  return;
110
110
  }
111
- l.value.locationId = e.dbName;
112
- const a = await n.readLastClosing(e.dbName);
113
- a ? l.value.closingDocumentId = a._id : l.value.closingDocumentId = "";
111
+ u.value.locationId = e.dbName;
112
+ const n = await a.readLastClosing(e.dbName);
113
+ n ? u.value.closingDocumentId = n._id : u.value.closingDocumentId = "";
114
114
  }
115
115
  }), {
116
116
  get isEnabled() {
117
117
  const e = m();
118
- return u(() => e.enabledSynergyOpeningMigration).value;
118
+ return c(() => e.enabledSynergyOpeningMigration).value;
119
119
  },
120
120
  get state() {
121
- return l.value;
121
+ return u.value;
122
122
  },
123
123
  async fetchClosingDocumentId() {
124
- const e = d(), t = await n.readLastClosing(e.currentLocationDBName);
125
- t ? l.value.closingDocumentId = t._id : l.value.closingDocumentId = "";
124
+ const e = g(), t = await a.readLastClosing(e.currentLocationDBName);
125
+ t ? u.value.closingDocumentId = t._id : u.value.closingDocumentId = "";
126
126
  }
127
127
  };
128
128
  }
129
- function _() {
130
- const o = p(), n = C(), e = w(), t = x(), a = u(() => o.isEnabled), s = u(() => n.isEnabled), f = u(() => e.isEnabled), c = u(() => t.isEnabled);
129
+ function A() {
130
+ const o = p(), a = w(), e = x(), t = D(), n = c(() => o.isEnabled), d = c(() => a.isEnabled), r = c(() => e.isEnabled), f = c(() => t.isEnabled);
131
131
  return {
132
132
  get enabledIntegrations() {
133
133
  return [
134
- a.value,
135
- s.value,
136
- f.value,
137
- c.value
138
- ].filter((g) => g).length;
134
+ n.value,
135
+ d.value,
136
+ r.value,
137
+ f.value
138
+ ].filter((s) => s).length;
139
139
  },
140
140
  get isNetSuiteEnabled() {
141
- return a.value;
141
+ return n.value;
142
142
  },
143
143
  async fetchFoodMarketHubSetting() {
144
144
  try {
145
- await n.init();
146
- } catch (g) {
147
- console.error("Error fetching FoodMarketHub setting:", g);
145
+ await a.init();
146
+ } catch (s) {
147
+ console.error("Error fetching FoodMarketHub setting:", s);
148
148
  }
149
149
  },
150
150
  async fetchNetSuiteSetting() {
151
151
  try {
152
152
  await o.readSetting();
153
- } catch (g) {
154
- console.error("Error fetching NetSuite setting:", g);
153
+ } catch (s) {
154
+ console.error("Error fetching NetSuite setting:", s);
155
155
  }
156
156
  }
157
157
  };
158
158
  }
159
159
  export {
160
- w as a,
161
- x as b,
162
- _ as c,
163
- C as u
160
+ x as a,
161
+ D as b,
162
+ A as c,
163
+ w as u
164
164
  };
@@ -1,4 +1,4 @@
1
- import { ac as jt, w as ep } from "./app-xCn1wZY9.js";
1
+ import { ad as jt, x as ep } from "./app-CaXDnJ-Z.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license