@feedmepos/mf-inventory-portal 1.7.2-dev.4 → 1.7.2-dev.6

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-DiF4c1Pl.js → App-CjE7AF-_.js} +4 -4
  2. package/dist/{ApprovalView-JAFPOcnS.js → ApprovalView-A5MgSn_N.js} +8 -8
  3. package/dist/{BindingsDialog-DWpPZeWQ.js → BindingsDialog-Cnx2s6z0.js} +2 -2
  4. package/dist/{BindingsPicker-DWMyAS2_.js → BindingsPicker-DM_iJGgj.js} +2 -2
  5. package/dist/{BindingsTable-Cbw9E-XB.js → BindingsTable-BBFr5770.js} +3 -3
  6. package/dist/{BulkReceiveRequestView-j09ZhvlW.js → BulkReceiveRequestView-CQumN3_G.js} +19 -19
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CPHH05yH.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BDKM1_Nb.js} +1 -1
  8. package/dist/{ClosingDraftView-Bpm0GgHT.js → ClosingDraftView-M_cn9fpa.js} +19 -19
  9. package/dist/{ClosingHistoryView-BrrVi3wb.js → ClosingHistoryView-gUVVlC1k.js} +5 -5
  10. package/dist/{ClosingTemplateView-Bz9ykdHd.js → ClosingTemplateView-C_rAqvEE.js} +16 -16
  11. package/dist/{DefaultView-CNneufCx.js → DefaultView-D4mJa9Fg.js} +2 -2
  12. package/dist/{DeliveryOrderPrintPreview-B6MFsb5t.js → DeliveryOrderPrintPreview-DClk6C2U.js} +2 -2
  13. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-DX2LuUAx.js → EmailDialog.vue_vue_type_script_setup_true_lang-BtkGDm9K.js} +23 -23
  14. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-D5-SkMBv.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CLG-5olj.js} +1 -1
  15. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DfmAPISD.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-vfDT_U53.js} +2 -2
  16. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Cw1Z7af8.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DaUKlYc8.js} +2 -2
  17. package/dist/{FmMultiselectDialog-Cqi87K9H.js → FmMultiselectDialog-BMQ3v2m8.js} +1 -1
  18. package/dist/{FmMultiselectDialog-4GVBOBvP.js → FmMultiselectDialog-C2rrLE_o.js} +2 -2
  19. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-OBtdTVHl.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BPzJIz9E.js} +5 -5
  20. package/dist/{ImportView-C7YYBgeJ.js → ImportView-BR7Ig73y.js} +6 -6
  21. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BZm96iYr.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DX2PoJHt.js} +1 -1
  22. package/dist/{IngredientGroupView-DLfhlHlQ.js → IngredientGroupView-kx4gEJOT.js} +5 -5
  23. package/dist/{IngredientsView-BgJORcI2.js → IngredientsView-abNzcv1n.js} +15 -15
  24. package/dist/{IntegrationExplorerView-D8bPwLab.js → IntegrationExplorerView-BK29Up2Y.js} +4 -4
  25. package/dist/{IntegrationView-20s4aS3T.js → IntegrationView-BqpNCXaM.js} +2323 -2182
  26. package/dist/{InventoryBindingForm-BHa6zXRI.js → InventoryBindingForm-C8ai2E5D.js} +1 -1
  27. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CnvNx2VS.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-IviBfgqG.js} +5 -5
  28. package/dist/{InventoryBindingSummary-DQjlXzWK.js → InventoryBindingSummary-Brto8NyF.js} +1 -1
  29. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CpuBqVq9.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CvMsWXqJ.js} +1 -1
  30. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BJzBe9KZ.js → PremiumBadge.vue_vue_type_script_setup_true_lang-1IKD29KD.js} +1 -1
  31. package/dist/{ProductionView-CeAXbgm0.js → ProductionView-DmUpqDI0.js} +7 -7
  32. package/dist/{PublishView-BJZmy8OM.js → PublishView-BAf3aaJM.js} +3 -3
  33. package/dist/{PurchaseOrderPrintPreview-C9WMm_3l.js → PurchaseOrderPrintPreview-DFlxzaUt.js} +2 -2
  34. package/dist/{ReceiveRequestView-BVUNDl05.js → ReceiveRequestView-AMczrIBs.js} +13 -13
  35. package/dist/{RecipeView-D0BBuYdo.js → RecipeView-BeYpj5_f.js} +17 -17
  36. package/dist/{SettingsView-C3eyQlAb.js → SettingsView-DU1yvgju.js} +4 -4
  37. package/dist/{StockView-eBZya8kq.js → StockView-DEDkcL86.js} +21 -21
  38. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BHEXI6qV.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BxB7394D.js} +1 -1
  39. package/dist/{SupplierView-DT3rdkF6.js → SupplierView-DZ1BSTrr.js} +12 -12
  40. package/dist/{SurchargeView-BieCgpkV.js → SurchargeView-CKmoud0p.js} +6 -6
  41. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-lTTnxxuy.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-5jXhg7G0.js} +2 -2
  42. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BpABqvC4.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CmuVr_a6.js} +1 -1
  43. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Cs6FiHqS.js → TransferDetails.vue_vue_type_script_setup_true_lang-BNC40qos.js} +20 -20
  44. package/dist/{TransferTemplateView-DvAnCJ3n.js → TransferTemplateView-BuF7BKs9.js} +20 -20
  45. package/dist/{UnitCostHistoryView-fJYWQV24.js → UnitCostHistoryView-D7rmkck_.js} +4 -4
  46. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CqcnSS8K.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-V1oe1x1E.js} +4 -4
  47. package/dist/{UnitView-BcYABxfz.js → UnitView-DplBGIw7.js} +7 -7
  48. package/dist/{WarehouseView-DZqd6Eje.js → WarehouseView-DS6bDFfT.js} +5 -5
  49. package/dist/{WastageTemplateView-Cm3Kxsrb.js → WastageTemplateView-CHduTDxY.js} +14 -14
  50. package/dist/{app-DmTX7X-m.js → app-CnmoBLyB.js} +15 -15
  51. package/dist/app.js +1 -1
  52. package/dist/{closing-template-DmDxzDXS.js → closing-template-9iA11Xcn.js} +1 -1
  53. package/dist/{date2-Bd2UQ1xw.js → date2-WmzN-K_v.js} +1 -1
  54. package/dist/{dayjs.min-F_Uyq1c-.js → dayjs.min-BUkwNfCm.js} +1 -1
  55. package/dist/{decimal-eJ-sJu54.js → decimal-BRBzPFUs.js} +2 -2
  56. package/dist/{defineDeepModel-CId2ET8s.js → defineDeepModel-BspKTibw.js} +1 -1
  57. package/dist/{duplicate-template-D8R9k-y3.js → duplicate-template-CxTmU0GU.js} +1 -1
  58. package/dist/{feature-DddwwADd.js → feature-BjPzDeBm.js} +2 -2
  59. package/dist/{format-time-from-id-DOSli3Ar.js → format-time-from-id-IFZ651um.js} +1 -1
  60. package/dist/{format-unit-display-BCABLh5x.js → format-unit-display-r-e4ypIU.js} +12 -12
  61. package/dist/{import-export.helper-Ccdq7_dv.js → import-export.helper-sH01hKVg.js} +6 -6
  62. package/dist/{index-Cfqr4xj8.js → index-BD3W6QzL.js} +1 -1
  63. package/dist/{index-Dkqy1Ac2.js → index-BGKeX_Pa.js} +1 -1
  64. package/dist/index-Bx3k2hKT.js +290 -0
  65. package/dist/{inventory-core-dart.default-DHytwZG9.js → inventory-core-dart.default-BGJXETRk.js} +1 -1
  66. package/dist/{jszip.min-C8Gqyuj1.js → jszip.min-6oVDXapl.js} +2 -2
  67. package/dist/{lz-string-CBzWRYQ0.js → lz-string-Bpixn-zG.js} +1 -1
  68. package/dist/{netsuite-Rc6Awh_Q.js → netsuite-C-jHVHsj.js} +2 -2
  69. package/dist/{number-Bs1CtQ0c.js → number-Ba1TCDyL.js} +3 -3
  70. package/dist/{predefined-templates-DhGdZhm4.js → predefined-templates-IzCv5sHl.js} +1 -1
  71. package/dist/{purchase-order-template-DeEAMSYE.js → purchase-order-template-CbmIJYfG.js} +1 -1
  72. package/dist/{recalculationUtils-BGO8rgXY.js → recalculationUtils-BSh3n38u.js} +1 -1
  73. package/dist/{rules-DSxhClg6.js → rules-CrKou0N_.js} +2 -2
  74. package/dist/{stock-VMsVCN0k.js → stock-BC9oX5iT.js} +3 -3
  75. package/dist/{stock-D8BZYq3I.js → stock-BHKZdgAs.js} +1 -1
  76. package/dist/{supplier-_O-QAlUI.js → supplier-CGtgR99U.js} +2 -2
  77. package/dist/{surcharge-C44-agPa.js → surcharge-SF8G98bS.js} +1 -1
  78. package/dist/tsconfig.app.tsbuildinfo +1 -1
  79. package/dist/{uom-rules-Ce-drFDk.js → uom-rules-BTOi9Ohy.js} +1 -1
  80. package/dist/{use-ingredient-select-dialog-DQMydzDs.js → use-ingredient-select-dialog-BLnMPbjx.js} +2 -2
  81. package/dist/{use-inventory-binding-dialog-BbPTjV2e.js → use-inventory-binding-dialog-sEF6dBrk.js} +2 -2
  82. package/dist/{use-template-enabled-locations-CAzmyDz4.js → use-template-enabled-locations-BjK7Ew7d.js} +2 -2
  83. package/dist/{use-transfer-locations--mX23ycc.js → use-transfer-locations-BCb4Zhh1.js} +2 -2
  84. package/dist/{useHrmPermission-DFWt_8cx.js → useHrmPermission-C9Qy2u9S.js} +1 -1
  85. package/dist/{useNavigationMenu-B7lJT5jE.js → useNavigationMenu-By79hpaX.js} +2 -2
  86. package/dist/{useSseClient-DnTLcycQ.js → useSseClient-CAVdYs-6.js} +1 -1
  87. package/dist/{vue-i18n-GIX6puKF.js → vue-i18n-DD_u3tFd.js} +127 -127
  88. package/dist/{xlsx.util-v75Y4vgZ.js → xlsx.util-C_wchWnu.js} +2 -2
  89. package/package.json +2 -2
  90. package/dist/index-CX-lMWO9.js +0 -286
@@ -1,5 +1,5 @@
1
- import "./dayjs.min-F_Uyq1c-.js";
2
- import "./app-DmTX7X-m.js";
1
+ import "./dayjs.min-BUkwNfCm.js";
2
+ import "./app-CnmoBLyB.js";
3
3
  var Fn = {};
4
4
  /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
5
5
  var cn = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-inventory-portal",
3
- "version": "1.7.2-dev.4",
3
+ "version": "1.7.2-dev.6",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -52,9 +52,9 @@
52
52
  "vue-i18n": "^10.0.5",
53
53
  "vue-router": "^4.4.0",
54
54
  "xlsx": "^0.18.5",
55
- "@feedmepos/inventory-core": "^1.0.2-dev.8",
56
55
  "@feedmepos/codemax-dto": "^1.0.0",
57
56
  "@feedmepos/inventory-core-2": "^2.0.0",
57
+ "@feedmepos/inventory-core": "^1.0.2-dev.8",
58
58
  "@feedmepos/inventory-core-dart": "^1.0.0",
59
59
  "@feedmepos/inventory-core-js": "^1.0.1",
60
60
  "@feedmepos/netsuite-core": "^1.0.0",
@@ -1,286 +0,0 @@
1
- import { ref as v, computed as m } from "vue";
2
- import { u as L } from "./netsuite-Rc6Awh_Q.js";
3
- import { A as C, a as I, u as f, m as E, G as h } from "./app-DmTX7X-m.js";
4
- import { useSnackbar as p } from "@feedmepos/ui-library";
5
- import { u as b } from "./feature-DddwwADd.js";
6
- function k() {
7
- return {
8
- setting: {
9
- _id: "",
10
- enable: !1,
11
- bindings: [],
12
- uniqueCode: "",
13
- branchCode: "",
14
- server: {
15
- password: "",
16
- host: "",
17
- username: "",
18
- port: "",
19
- directory: ""
20
- },
21
- histories: [],
22
- modifiers: [],
23
- exportAsJson: !1
24
- },
25
- menu: [],
26
- group: [],
27
- variants: [],
28
- categories: []
29
- };
30
- }
31
- const l = v(k());
32
- function B() {
33
- return {
34
- // state
35
- get isEnabled() {
36
- return l.value.setting.enable;
37
- },
38
- get isBusinessLocation() {
39
- return f().businessLevel;
40
- },
41
- get state() {
42
- return l.value;
43
- },
44
- async init() {
45
- var n, e, t, a;
46
- const r = C(), o = I();
47
- try {
48
- const s = await o.readCachedMenu();
49
- l.value.menu = ((n = s.modules) == null ? void 0 : n.item) ?? [], l.value.group = ((e = s.modules) == null ? void 0 : e.group) ?? [], l.value.variants = ((t = s.modules) == null ? void 0 : t.variant) ?? [];
50
- const i = (((a = s.modules) == null ? void 0 : a.category) ?? []).map((y) => ({
51
- ...y,
52
- _id: y._id === void 0 ? null : y._id
53
- }));
54
- l.value.categories = i, l.value.setting = await r.readSetting();
55
- } catch (s) {
56
- p().open({
57
- title: "Something went wrong",
58
- message: "Cannot fetch integration info. Please try again.",
59
- type: "error"
60
- }), console.error("Error at fetching integration info", s);
61
- }
62
- }
63
- };
64
- }
65
- const S = E((r, o) => {
66
- const n = f();
67
- return {
68
- async readSetting() {
69
- const e = n.currentLocationId, t = `${r.codemaxBackendUrl}/${e}/setting`;
70
- return await o.get(t);
71
- },
72
- async updateSetting(e) {
73
- const t = n.currentLocationId, a = `${r.codemaxBackendUrl}/${t}/setting`;
74
- return await o.put(a, e);
75
- },
76
- async authenticate() {
77
- const e = n.currentLocationId, t = `${r.codemaxBackendUrl}/${e}/auth`;
78
- return await o.post(t);
79
- },
80
- async refreshAuth() {
81
- const e = n.currentLocationId, t = `${r.codemaxBackendUrl}/${e}/refresh-auth`;
82
- return await o.post(t);
83
- },
84
- async reupload(e) {
85
- const t = n.currentLocationId, a = `${r.codemaxBackendUrl}/${t}/reupload`;
86
- return await o.post(a, e);
87
- },
88
- async syncInvoice(e) {
89
- const t = n.currentLocationId, a = `${r.codemaxBackendUrl}/${t}/sync-invoice`;
90
- return await o.post(a, { billId: e });
91
- },
92
- async readBills(e) {
93
- const t = n.currentLocationId, a = `${r.codemaxBackendUrl}/${t}/bills?start=${e.start}&end=${e.end}`;
94
- return await o.get(a);
95
- },
96
- async readLatestSyncStatus(e, t) {
97
- const a = n.currentLocationId, s = `${r.codemaxBackendUrl}/${a}/sync-log/latest`;
98
- return await o.post(s, {
99
- billIds: e,
100
- includePayload: (t == null ? void 0 : t.includePayload) === !0
101
- });
102
- },
103
- async readSyncLogsForBills(e) {
104
- const t = n.currentLocationId, a = `${r.codemaxBackendUrl}/${t}/sync-log/for-bills`;
105
- return await o.post(a, { billIds: e });
106
- },
107
- async readSyncRuns(e = 30) {
108
- const t = n.currentLocationId, a = `${r.codemaxBackendUrl}/${t}/sync-runs?limit=${e}`;
109
- return await o.get(a);
110
- },
111
- async readSyncLog(e) {
112
- const t = n.currentLocationId, a = new URLSearchParams();
113
- e.billId && a.set("billId", e.billId), e.billSeq && a.set("billSeq", e.billSeq), e.includePayload && a.set("includePayload", "true"), e.limit != null && a.set("limit", String(e.limit)), e.offset != null && a.set("offset", String(e.offset));
114
- const s = a.toString(), i = `${r.codemaxBackendUrl}/${t}/sync-log${s ? `?${s}` : ""}`;
115
- return await o.get(i);
116
- },
117
- async reuploadBills(e) {
118
- const t = n.currentLocationId, a = `${r.codemaxBackendUrl}/${t}/reupload-bills`;
119
- return await o.post(a, { billIds: e });
120
- }
121
- };
122
- });
123
- function A() {
124
- return {
125
- setting: {
126
- _id: "",
127
- enable: !1,
128
- credentials: {
129
- loginId: "",
130
- password: "",
131
- branchCode: ""
132
- },
133
- tokens: null,
134
- bindings: []
135
- },
136
- menu: [],
137
- group: [],
138
- variants: [],
139
- categories: []
140
- };
141
- }
142
- const c = v(A());
143
- function U() {
144
- const r = I();
145
- return {
146
- get isEnabled() {
147
- return c.value.setting.enable;
148
- },
149
- get state() {
150
- return c.value;
151
- },
152
- async init() {
153
- var n, e, t, a;
154
- const o = S();
155
- try {
156
- const s = await r.readCachedMenu();
157
- c.value.menu = ((n = s.modules) == null ? void 0 : n.item) ?? [], c.value.group = ((e = s.modules) == null ? void 0 : e.group) ?? [], c.value.variants = ((t = s.modules) == null ? void 0 : t.variant) ?? [], c.value.categories = (((a = s.modules) == null ? void 0 : a.category) ?? []).map((i) => ({
158
- ...i,
159
- _id: i._id ?? null
160
- })), c.value.setting = await o.readSetting();
161
- } catch (s) {
162
- throw p().open({
163
- title: "Something went wrong",
164
- message: "Cannot fetch Codemax integration info. Please try again.",
165
- type: "error"
166
- }), console.error("Error at fetching Codemax integration info", s), s;
167
- }
168
- },
169
- async save(o) {
170
- await S().updateSetting(o), c.value.setting = o;
171
- }
172
- };
173
- }
174
- function x() {
175
- return {
176
- locationId: ""
177
- };
178
- }
179
- const d = v(x());
180
- function D() {
181
- const r = f(), o = h();
182
- return r.watchLocation(async (n) => {
183
- if (b().enabledXilnexOpeningMigration) {
184
- if (!n) {
185
- d.value = x();
186
- return;
187
- }
188
- d.value.locationId = n.dbName;
189
- const t = await o.readLastClosing(n.dbName);
190
- t ? d.value.closingDocumentId = t._id : d.value.closingDocumentId = "";
191
- }
192
- }), {
193
- get isEnabled() {
194
- const n = b();
195
- return m(() => n.enabledXilnexOpeningMigration).value;
196
- },
197
- get state() {
198
- return d.value;
199
- },
200
- async fetchClosingDocumentId() {
201
- const n = f(), e = await o.readLastClosing(n.currentLocationDBName);
202
- e ? d.value.closingDocumentId = e._id : d.value.closingDocumentId = "";
203
- }
204
- };
205
- }
206
- function $() {
207
- return {
208
- locationId: ""
209
- };
210
- }
211
- const g = v($());
212
- function F() {
213
- const r = f(), o = h();
214
- return r.watchLocation(async (n) => {
215
- if (b()) {
216
- if (!n) {
217
- g.value = $();
218
- return;
219
- }
220
- g.value.locationId = n.dbName;
221
- const t = await o.readLastClosing(n.dbName);
222
- t ? g.value.closingDocumentId = t._id : g.value.closingDocumentId = "";
223
- }
224
- }), {
225
- get isEnabled() {
226
- const n = b();
227
- return m(() => n.enabledSynergyOpeningMigration).value;
228
- },
229
- get state() {
230
- return g.value;
231
- },
232
- async fetchClosingDocumentId() {
233
- const n = f(), e = await o.readLastClosing(n.currentLocationDBName);
234
- e ? g.value.closingDocumentId = e._id : g.value.closingDocumentId = "";
235
- }
236
- };
237
- }
238
- function R() {
239
- const r = L(), o = B(), n = U(), e = D(), t = F(), a = m(() => r.isEnabled), s = m(() => o.isEnabled), i = m(() => n.isEnabled), y = m(() => e.isEnabled), w = m(() => t.isEnabled);
240
- return {
241
- get enabledIntegrations() {
242
- return [
243
- a.value,
244
- s.value,
245
- i.value,
246
- y.value,
247
- w.value
248
- ].filter((u) => u).length;
249
- },
250
- get isNetSuiteEnabled() {
251
- return a.value;
252
- },
253
- get isCodemaxEnabled() {
254
- return i.value;
255
- },
256
- async fetchFoodMarketHubSetting() {
257
- try {
258
- await o.init();
259
- } catch (u) {
260
- console.error("Error fetching FoodMarketHub setting:", u);
261
- }
262
- },
263
- async fetchNetSuiteSetting() {
264
- try {
265
- await r.readSetting();
266
- } catch (u) {
267
- console.error("Error fetching NetSuite setting:", u);
268
- }
269
- },
270
- async fetchCodemaxSetting() {
271
- try {
272
- await n.init();
273
- } catch (u) {
274
- console.error("Error fetching Codemax setting:", u);
275
- }
276
- }
277
- };
278
- }
279
- export {
280
- S as a,
281
- U as b,
282
- D as c,
283
- F as d,
284
- R as e,
285
- B as u
286
- };