@feedmepos/mf-inventory-portal 1.7.2-dev.0 → 1.7.2-dev.2

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 (96) hide show
  1. package/dist/{App-GsVnjJ5M.js → App-U_SxtEh_.js} +4 -4
  2. package/dist/{ApprovalView-DSPu2Gk5.js → ApprovalView-CyhDIhx6.js} +11 -11
  3. package/dist/{BindingsDialog-B9_lCD9R.js → BindingsDialog-UKwDQASZ.js} +2 -2
  4. package/dist/{BindingsPicker-ZKl53ZBk.js → BindingsPicker-D_gWDb-t.js} +2 -2
  5. package/dist/{BindingsTable-CLtS3u8f.js → BindingsTable-8xXu28BV.js} +3 -3
  6. package/dist/{BulkReceiveRequestView-BbHwEPzW.js → BulkReceiveRequestView-D2Cq7J2t.js} +19 -19
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-KgqYNGrB.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BI6mOIWO.js} +1 -1
  8. package/dist/{ClosingDraftView-Ctc6-1-J.js → ClosingDraftView-C-sh4dbM.js} +19 -19
  9. package/dist/{ClosingHistoryView-CX9xtMvI.js → ClosingHistoryView-B342r8aV.js} +32 -32
  10. package/dist/{ClosingTemplateView-BuoQegZF.js → ClosingTemplateView-LJ1QSFzA.js} +16 -16
  11. package/dist/{DefaultView-BltV37jK.js → DefaultView-DP3AFLXr.js} +2 -2
  12. package/dist/{DeliveryOrderPrintPreview-CxzgxTJk.js → DeliveryOrderPrintPreview-C8JUgk0S.js} +2 -2
  13. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-5Hhoj-yj.js → EmailDialog.vue_vue_type_script_setup_true_lang-B4_buziB.js} +23 -23
  14. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-jTZNZIrW.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Duu8Xq9x.js} +1 -1
  15. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BYTn-hpQ.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DB-xTIYI.js} +2 -2
  16. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLYrZfPo.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-i6bgYKcA.js} +2 -2
  17. package/dist/{FmMultiselectDialog-BxAfKkDh.js → FmMultiselectDialog-CSZLfKrO.js} +2 -2
  18. package/dist/{FmMultiselectDialog-DF_inpi2.js → FmMultiselectDialog-CbtU2ORO.js} +1 -1
  19. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BYhQBazV.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BAiEy0ua.js} +5 -5
  20. package/dist/{ImportView-C76r6and.js → ImportView-BXpgzHCJ.js} +6 -6
  21. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-By-9uV57.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CrpMfG2Q.js} +1 -1
  22. package/dist/{IngredientGroupView-vRbMzHBS.js → IngredientGroupView-tl8A0Xzn.js} +5 -5
  23. package/dist/{IngredientsView-GMSV1cL0.js → IngredientsView-DXvKsV6G.js} +15 -15
  24. package/dist/{IntegrationExplorerView-ClhCRTC-.js → IntegrationExplorerView-DmVuoHPY.js} +4 -4
  25. package/dist/IntegrationView-Cnngpb6f.js +6271 -0
  26. package/dist/{InventoryBindingForm-CpY3n5Ug.js → InventoryBindingForm-DxkoGcVR.js} +1 -1
  27. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CEF1D6bJ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-TKj55KJb.js} +5 -5
  28. package/dist/{InventoryBindingSummary-CYOt-E-3.js → InventoryBindingSummary-B8rYYrV9.js} +1 -1
  29. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-jZHUuEoU.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DfdYHoFm.js} +1 -1
  30. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Bw1xCASs.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BH2yrzkP.js} +1 -1
  31. package/dist/{ProductionView-D6UC_XqI.js → ProductionView-CGMZecWe.js} +7 -7
  32. package/dist/{PublishView-CuDaby-H.js → PublishView-BTISRgUo.js} +3 -3
  33. package/dist/{PurchaseOrderPrintPreview-DcSuomzT.js → PurchaseOrderPrintPreview-BI3HFmWy.js} +2 -2
  34. package/dist/{ReceiveRequestView-CMywjm4H.js → ReceiveRequestView-BPemdRUQ.js} +22 -22
  35. package/dist/{RecipeView-BAcLGUEw.js → RecipeView-CKZ18kwH.js} +17 -17
  36. package/dist/{SettingsView-Dy3VaVP2.js → SettingsView-B1YkBG8O.js} +4 -4
  37. package/dist/{StockView-BFSFWXEY.js → StockView-DMvqoF9Q.js} +21 -21
  38. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B5qk8k2h.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BCsMlGyf.js} +1 -1
  39. package/dist/{SupplierView-BvZ4bdjb.js → SupplierView-CPg4hWVn.js} +12 -12
  40. package/dist/{SurchargeView-DEx1ncN0.js → SurchargeView-B9fN_Fi5.js} +6 -6
  41. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DvjxSkiV.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DGCivXse.js} +2 -2
  42. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-raGPvWWz.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-JWniWB_s.js} +1 -1
  43. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Dqn_ArEw.js → TransferDetails.vue_vue_type_script_setup_true_lang-CHNq5bH9.js} +20 -20
  44. package/dist/{TransferTemplateView-DqwLSixK.js → TransferTemplateView-BWRheR6f.js} +20 -20
  45. package/dist/{UnitCostHistoryView-BwuW604u.js → UnitCostHistoryView-BQ_wZPr4.js} +4 -4
  46. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DI4MfA6h.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-Dcfesg0R.js} +4 -4
  47. package/dist/{UnitView-DBSX7myc.js → UnitView-wb4WJr3z.js} +7 -7
  48. package/dist/{WarehouseView-D9BLSUaw.js → WarehouseView-DdMiB1mB.js} +5 -5
  49. package/dist/{WastageTemplateView-BV98TGlI.js → WastageTemplateView-Bamayt8h.js} +60 -60
  50. package/dist/api/codemax.d.ts +19 -0
  51. package/dist/{app-D_Ym25tG.js → app-qwJVwq2l.js} +1248 -1249
  52. package/dist/app.js +1 -1
  53. package/dist/{closing-template-CgZ_4k-K.js → closing-template-DAp9kYJX.js} +1 -1
  54. package/dist/{date2-BJDb1yuY.js → date2-DBkK81Nl.js} +1 -1
  55. package/dist/{dayjs.min-DaQY5dXC.js → dayjs.min-DLGgN_v6.js} +1 -1
  56. package/dist/{decimal-D7kHeIBp.js → decimal-BnO8izTx.js} +2 -2
  57. package/dist/{defineDeepModel-C6b9BBLr.js → defineDeepModel-DvV4X8-b.js} +1 -1
  58. package/dist/{duplicate-template-B3efBcsm.js → duplicate-template-DlzorcMa.js} +1 -1
  59. package/dist/{feature-8uw1BmnH.js → feature-NCkTx8nZ.js} +2 -2
  60. package/dist/{format-time-from-id-DLNUrReR.js → format-time-from-id-BIbXbn1x.js} +1 -1
  61. package/dist/{format-unit-display-dedOq7Rd.js → format-unit-display-CtM8JmEA.js} +12 -12
  62. package/dist/{import-export.helper-CLJoNMDx.js → import-export.helper-BpVJxhqC.js} +6 -6
  63. package/dist/{index-BzcCCKB7.js → index-B8xG5q19.js} +1 -1
  64. package/dist/{index-K8Z-b9IK.js → index-CCMIvmic.js} +1 -1
  65. package/dist/index-CxI3S5Zw.js +278 -0
  66. package/dist/{inventory-core-dart.default-DD-U6dYG.js → inventory-core-dart.default-D3eNj5mW.js} +1 -1
  67. package/dist/{jszip.min-D6DuQ9eP.js → jszip.min-Da4KZ1Eo.js} +2 -2
  68. package/dist/{lz-string-DPtdOdTM.js → lz-string-De3Ad7Or.js} +1 -1
  69. package/dist/{netsuite-6tmjDviW.js → netsuite-BJ2iu_mz.js} +2 -2
  70. package/dist/{number-CMVOg7m3.js → number-B_FUhq8c.js} +3 -3
  71. package/dist/{predefined-templates-DfSWTcww.js → predefined-templates-BfuWE-x4.js} +1 -1
  72. package/dist/{purchase-order-template-GCzUtb6y.js → purchase-order-template-JoiZd_ds.js} +1 -1
  73. package/dist/{recalculationUtils-CSBScoyF.js → recalculationUtils-HHFhfIeI.js} +1 -1
  74. package/dist/{rules-pC-W9ghI.js → rules-Cft1gCcq.js} +2 -2
  75. package/dist/{stock-CIpjxe6A.js → stock-CdPtE1IH.js} +3 -3
  76. package/dist/{stock-C0lKfZnz.js → stock-Ey_V3Oj_.js} +1 -1
  77. package/dist/stores/integration/codemax.d.ts +0 -7
  78. package/dist/{supplier-eYlqSO4X.js → supplier-DEUPiLQ_.js} +2 -2
  79. package/dist/{surcharge-CX5M8xDS.js → surcharge-DaT6Cu7U.js} +1 -1
  80. package/dist/tsconfig.app.tsbuildinfo +1 -1
  81. package/dist/{uom-rules-CfUOdeZ4.js → uom-rules-Bn_GfC82.js} +1 -1
  82. package/dist/{use-ingredient-select-dialog-DYRHuZLi.js → use-ingredient-select-dialog-DPw8cVk_.js} +2 -2
  83. package/dist/{use-inventory-binding-dialog-CQahb9Rn.js → use-inventory-binding-dialog-n5AyYlZF.js} +2 -2
  84. package/dist/{use-template-enabled-locations-BOO-eQch.js → use-template-enabled-locations-D9zP8Ujl.js} +2 -2
  85. package/dist/{use-transfer-locations-Ffdy6Z9C.js → use-transfer-locations-Cc2lnWxt.js} +2 -2
  86. package/dist/{useHrmPermission-CXSUDdlQ.js → useHrmPermission-DCViJxSf.js} +1 -1
  87. package/dist/{useNavigationMenu-DfW5RBKu.js → useNavigationMenu-5tm4KA5Z.js} +2 -2
  88. package/dist/{useSseClient-Bl-WWwFk.js → useSseClient-DdODeGFt.js} +1 -1
  89. package/dist/views/integration/components/ApplyProductDialogCodemax.vue.d.ts +0 -14
  90. package/dist/views/integration/components/CodemaxDialog.vue.d.ts +0 -14
  91. package/dist/views/integration/components/CodemaxSyncStatusDialog.vue.d.ts +19 -0
  92. package/dist/{vue-i18n-BAu5G_RB.js → vue-i18n-Wqtbyw1M.js} +217 -217
  93. package/dist/{xlsx.util-BgM338n0.js → xlsx.util-B3VrVFTR.js} +2 -2
  94. package/package.json +4 -3
  95. package/dist/IntegrationView-DM-TvYjd.js +0 -5791
  96. package/dist/index-D0IvVK8C.js +0 -257
@@ -1,257 +0,0 @@
1
- import { ref as p, computed as m } from "vue";
2
- import { u as C } from "./netsuite-6tmjDviW.js";
3
- import { A as $, a as S, u as f, m as L, E as h } from "./app-D_Ym25tG.js";
4
- import { useSnackbar as x } from "@feedmepos/ui-library";
5
- import { u as b } from "./feature-8uw1BmnH.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 = p(k());
32
- function A() {
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 e, t, n, s;
46
- const o = $(), a = S();
47
- try {
48
- const r = await a.readCachedMenu();
49
- l.value.menu = ((e = r.modules) == null ? void 0 : e.item) ?? [], l.value.group = ((t = r.modules) == null ? void 0 : t.group) ?? [], l.value.variants = ((n = r.modules) == null ? void 0 : n.variant) ?? [];
50
- const i = (((s = r.modules) == null ? void 0 : s.category) ?? []).map((v) => ({
51
- ...v,
52
- _id: v._id === void 0 ? null : v._id
53
- }));
54
- l.value.categories = i, l.value.setting = await o.readSetting();
55
- } catch (r) {
56
- x().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", r);
61
- }
62
- }
63
- };
64
- }
65
- const y = L((o, a) => {
66
- const e = f();
67
- return {
68
- async readSetting() {
69
- const t = e.currentLocationId, n = `${o.codemaxBackendUrl}/${t}/setting`;
70
- return await a.get(n);
71
- },
72
- async updateSetting(t) {
73
- const n = e.currentLocationId, s = `${o.codemaxBackendUrl}/${n}/setting`;
74
- return await a.put(s, t);
75
- },
76
- async authenticate() {
77
- const t = e.currentLocationId, n = `${o.codemaxBackendUrl}/${t}/auth`;
78
- return await a.post(n);
79
- },
80
- async refreshAuth() {
81
- const t = e.currentLocationId, n = `${o.codemaxBackendUrl}/${t}/refresh-auth`;
82
- return await a.post(n);
83
- },
84
- async reupload(t) {
85
- const n = e.currentLocationId, s = `${o.codemaxBackendUrl}/${n}/reupload`;
86
- return await a.post(s, t);
87
- },
88
- async syncInvoice(t) {
89
- const n = e.currentLocationId, s = `${o.codemaxBackendUrl}/${n}/sync-invoice`;
90
- return await a.post(s, { billId: t });
91
- }
92
- };
93
- });
94
- function D() {
95
- return {
96
- setting: {
97
- _id: "",
98
- enable: !1,
99
- credentials: {
100
- loginId: "",
101
- password: "",
102
- branchCode: ""
103
- },
104
- tokens: null,
105
- bindings: [],
106
- histories: []
107
- },
108
- menu: [],
109
- group: [],
110
- variants: [],
111
- categories: []
112
- };
113
- }
114
- const c = p(D());
115
- function F() {
116
- const o = S();
117
- return {
118
- get isEnabled() {
119
- return c.value.setting.enable;
120
- },
121
- get state() {
122
- return c.value;
123
- },
124
- async init() {
125
- var e, t, n, s;
126
- const a = y();
127
- try {
128
- const r = await o.readCachedMenu();
129
- c.value.menu = ((e = r.modules) == null ? void 0 : e.item) ?? [], c.value.group = ((t = r.modules) == null ? void 0 : t.group) ?? [], c.value.variants = ((n = r.modules) == null ? void 0 : n.variant) ?? [], c.value.categories = (((s = r.modules) == null ? void 0 : s.category) ?? []).map((i) => ({
130
- ...i,
131
- _id: i._id ?? null
132
- })), c.value.setting = await a.readSetting();
133
- } catch (r) {
134
- throw x().open({
135
- title: "Something went wrong",
136
- message: "Cannot fetch Codemax integration info. Please try again.",
137
- type: "error"
138
- }), console.error("Error at fetching Codemax integration info", r), r;
139
- }
140
- },
141
- async save(a) {
142
- await y().updateSetting(a), c.value.setting = a;
143
- }
144
- };
145
- }
146
- function I() {
147
- return {
148
- locationId: ""
149
- };
150
- }
151
- const d = p(I());
152
- function _() {
153
- const o = f(), a = h();
154
- return o.watchLocation(async (e) => {
155
- if (b().enabledXilnexOpeningMigration) {
156
- if (!e) {
157
- d.value = I();
158
- return;
159
- }
160
- d.value.locationId = e.dbName;
161
- const n = await a.readLastClosing(e.dbName);
162
- n ? d.value.closingDocumentId = n._id : d.value.closingDocumentId = "";
163
- }
164
- }), {
165
- get isEnabled() {
166
- const e = b();
167
- return m(() => e.enabledXilnexOpeningMigration).value;
168
- },
169
- get state() {
170
- return d.value;
171
- },
172
- async fetchClosingDocumentId() {
173
- const e = f(), t = await a.readLastClosing(e.currentLocationDBName);
174
- t ? d.value.closingDocumentId = t._id : d.value.closingDocumentId = "";
175
- }
176
- };
177
- }
178
- function w() {
179
- return {
180
- locationId: ""
181
- };
182
- }
183
- const g = p(w());
184
- function N() {
185
- const o = f(), a = h();
186
- return o.watchLocation(async (e) => {
187
- if (b()) {
188
- if (!e) {
189
- g.value = w();
190
- return;
191
- }
192
- g.value.locationId = e.dbName;
193
- const n = await a.readLastClosing(e.dbName);
194
- n ? g.value.closingDocumentId = n._id : g.value.closingDocumentId = "";
195
- }
196
- }), {
197
- get isEnabled() {
198
- const e = b();
199
- return m(() => e.enabledSynergyOpeningMigration).value;
200
- },
201
- get state() {
202
- return g.value;
203
- },
204
- async fetchClosingDocumentId() {
205
- const e = f(), t = await a.readLastClosing(e.currentLocationDBName);
206
- t ? g.value.closingDocumentId = t._id : g.value.closingDocumentId = "";
207
- }
208
- };
209
- }
210
- function O() {
211
- const o = C(), a = A(), e = F(), t = _(), n = N(), s = m(() => o.isEnabled), r = m(() => a.isEnabled), i = m(() => e.isEnabled), v = m(() => t.isEnabled), E = m(() => n.isEnabled);
212
- return {
213
- get enabledIntegrations() {
214
- return [
215
- s.value,
216
- r.value,
217
- i.value,
218
- v.value,
219
- E.value
220
- ].filter((u) => u).length;
221
- },
222
- get isNetSuiteEnabled() {
223
- return s.value;
224
- },
225
- get isCodemaxEnabled() {
226
- return i.value;
227
- },
228
- async fetchFoodMarketHubSetting() {
229
- try {
230
- await a.init();
231
- } catch (u) {
232
- console.error("Error fetching FoodMarketHub setting:", u);
233
- }
234
- },
235
- async fetchNetSuiteSetting() {
236
- try {
237
- await o.readSetting();
238
- } catch (u) {
239
- console.error("Error fetching NetSuite setting:", u);
240
- }
241
- },
242
- async fetchCodemaxSetting() {
243
- try {
244
- await e.init();
245
- } catch (u) {
246
- console.error("Error fetching Codemax setting:", u);
247
- }
248
- }
249
- };
250
- }
251
- export {
252
- F as a,
253
- _ as b,
254
- N as c,
255
- O as d,
256
- A as u
257
- };