@feedmepos/mf-inventory-portal 1.5.12-dev.0 → 1.5.13

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 (111) hide show
  1. package/dist/{App-ym7zoIt4.js → App-DqGcS6Gm.js} +4 -4
  2. package/dist/{ApprovalView-DS1cgEM3.js → ApprovalView-BpLssvwC.js} +7 -7
  3. package/dist/{BindingsDialog-pA-lQ0Qx.js → BindingsDialog-Bjca56rZ.js} +2 -2
  4. package/dist/{BindingsPicker-D-lS8rtE.js → BindingsPicker-D3bSjNn3.js} +2 -2
  5. package/dist/{BindingsTable-CCG83TCM.js → BindingsTable-b8uwBXvE.js} +3 -3
  6. package/dist/{ClosingDraftView-BI6RvZMJ.js → ClosingDraftView-DufSupv2.js} +15 -15
  7. package/dist/{ClosingHistoryView-CzSQ7tNH.js → ClosingHistoryView-C3V5brh9.js} +86 -85
  8. package/dist/{ClosingTemplateView-By2oAuyO.js → ClosingTemplateView-B6hpp5B8.js} +14 -14
  9. package/dist/{DefaultView-eHfv7jOS.js → DefaultView-DeN96J1z.js} +2 -2
  10. package/dist/{DeliveryOrderPrintPreview-59gPCEN9.js → DeliveryOrderPrintPreview-EnFKjxtA.js} +2 -2
  11. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DJnbYUPk.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-6M_CG9Xi.js} +2 -2
  12. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BmoeRycM.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-RH37--FG.js} +2 -2
  13. package/dist/{FmMultiselectDialog-y6iFhI-b.js → FmMultiselectDialog-6mShWQom.js} +1 -1
  14. package/dist/{FmMultiselectDialog-BQct_7_1.js → FmMultiselectDialog-CfjwOjv0.js} +2 -2
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-5FB2Q2M7.js → FmUnitInput.vue_vue_type_script_setup_true_lang-ILexyjQI.js} +5 -5
  16. package/dist/{ImportView-CFhTlC6A.js → ImportView-Aksgpj3u.js} +6 -6
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang--lvhU0IL.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BVa8U4y-.js} +1 -1
  18. package/dist/{IngredientGroupView-98vFl0cv.js → IngredientGroupView-BbJFosjR.js} +5 -5
  19. package/dist/{IngredientsView-DOyC-80n.js → IngredientsView-CN933oCR.js} +15 -15
  20. package/dist/{IntegrationExplorerView-yqqhYVKa.js → IntegrationExplorerView-CAjxn-PC.js} +352 -352
  21. package/dist/IntegrationView-w4fp4oT4.js +4586 -0
  22. package/dist/{InventoryBindingForm-TOMIZzTV.js → InventoryBindingForm-EBJ3QGaU.js} +1 -1
  23. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CCwsG2nZ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CoUtIP_H.js} +5 -5
  24. package/dist/{InventoryBindingSummary-Kq71Npw5.js → InventoryBindingSummary-DqplMp3W.js} +1 -1
  25. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BpqRkOKa.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DtBoicPG.js} +1 -1
  26. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BXQXxebS.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DsYsq73l.js} +1 -1
  27. package/dist/{PublishView-B3iAIUeC.js → PublishView-BJIsXl8d.js} +3 -3
  28. package/dist/{PurchaseOrderPrintPreview-C7BYCDq4.js → PurchaseOrderPrintPreview-C7HgcwTx.js} +2 -2
  29. package/dist/{ReceiveRequestView-C0RZHVVz.js → ReceiveRequestView-BKfE6CFa.js} +26 -26
  30. package/dist/{RecipeView-CGMCm-6C.js → RecipeView-CIcat7Oq.js} +1117 -1104
  31. package/dist/{SettingsView-Dy36ihuC.js → SettingsView-DAg0_Cxw.js} +4 -4
  32. package/dist/{StockView-DG8gGcR6.js → StockView-DkkBhXdb.js} +19 -19
  33. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-7jJ-_TKD.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B_7-SpUx.js} +1 -1
  34. package/dist/{SupplierView-DkXdKVSS.js → SupplierView-DdBM6_mn.js} +12 -12
  35. package/dist/{SurchargeView-CnQFI8Np.js → SurchargeView-DO7ccJw4.js} +6 -6
  36. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CjxxSwOw.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CnmxlHSe.js} +2 -2
  37. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CgxcV8uB.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CsxPLRxW.js} +1 -1
  38. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-P4wynSco.js → TransferDetails.vue_vue_type_script_setup_true_lang-UAe7BwyU.js} +20 -20
  39. package/dist/TransferTemplateView-DwNMWpQG.js +1564 -0
  40. package/dist/{UnitCostHistoryView-lq-q2AHS.js → UnitCostHistoryView-BR_DzquD.js} +4 -4
  41. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DSlyQqSb.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-1frVLUSk.js} +5 -5
  42. package/dist/{UnitView-d_Imf603.js → UnitView-DHhs6eAM.js} +7 -7
  43. package/dist/{WarehouseView-61nx-AdI.js → WarehouseView-BncF3L-E.js} +5 -5
  44. package/dist/{WastageTemplateView-CjFGIKQo.js → WastageTemplateView-e3ixwHt1.js} +14 -14
  45. package/dist/api/inventory.d.ts +0 -1
  46. package/dist/api/netsuite.d.ts +4 -5
  47. package/dist/api/surcharge.d.ts +0 -1
  48. package/dist/{app-vpgIgmf7.js → app-BM6mngFA.js} +4141 -4438
  49. package/dist/app.d.ts +0 -268
  50. package/dist/app.js +1 -1
  51. package/dist/{closing-template-Dq6tC4Zx.js → closing-template-BD6V7qLl.js} +1 -1
  52. package/dist/{date2-Bdr9V2CH.js → date2-DDlrt2dw.js} +1 -1
  53. package/dist/{dayjs.min-DyMZZmIx.js → dayjs.min-CRtl6lAo.js} +1 -1
  54. package/dist/{decimal-naJvMnG2.js → decimal-C05Zbycy.js} +2 -2
  55. package/dist/{defineDeepModel-33cmeIFu.js → defineDeepModel-B0S3YXv1.js} +1 -1
  56. package/dist/{duplicate-template-DSu6924D.js → duplicate-template-DLoKowb8.js} +1 -1
  57. package/dist/{feature-yi8Tnb7H.js → feature-Hkq4qHGO.js} +2 -2
  58. package/dist/{format-time-from-id-Dq0qIwbK.js → format-time-from-id-BsGskcws.js} +1 -1
  59. package/dist/format-unit-display-Dbb2764O.js +1268 -0
  60. package/dist/{import-export.helper-DDiyb9cx.js → import-export.helper-CwHS2Pr0.js} +6 -6
  61. package/dist/{index-B4vbL-WN.js → index-BosCKut7.js} +1 -1
  62. package/dist/index-C-Z_O_57.js +164 -0
  63. package/dist/{index-Dmrgz0N_.js → index-DOZ0kYer.js} +1 -1
  64. package/dist/{inventory-core-dart.default-DzEwllSu.js → inventory-core-dart.default-DsrlA0VP.js} +1 -1
  65. package/dist/{lz-string-DECQ92Sb.js → lz-string-jug66pQ2.js} +1 -1
  66. package/dist/modules/print-template/api/print-template.d.ts +0 -1
  67. package/dist/{netsuite-CKOqNFIz.js → netsuite-CM1xsb3Q.js} +2 -2
  68. package/dist/{number-CwVsldWr.js → number-B1kR4U7C.js} +3 -3
  69. package/dist/{predefined-templates-7P8LQiMs.js → predefined-templates-B3VXqLxq.js} +1 -1
  70. package/dist/{purchase-order-template-CFGG5iZS.js → purchase-order-template-BZ7ubNPM.js} +1 -1
  71. package/dist/{recalculationUtils-CxUnAgYt.js → recalculationUtils-DT_K_oBV.js} +1 -1
  72. package/dist/{rules-C-5mKwH6.js → rules-DXN5yNM9.js} +2 -2
  73. package/dist/{stock-B_XDv328.js → stock-Cwp99-w7.js} +1 -1
  74. package/dist/stores/api.d.ts +0 -1
  75. package/dist/stores/helper/generate-backend-urls.d.ts +0 -1
  76. package/dist/stores/integration/index.d.ts +1 -4
  77. package/dist/{supplier-BDDyN8pD.js → supplier-CNblYzcC.js} +2 -2
  78. package/dist/{surcharge-9qVO99TB.js → surcharge-DiXkOxK8.js} +1 -1
  79. package/dist/tsconfig.app.tsbuildinfo +1 -1
  80. package/dist/{uom-rules-2xdoSjfc.js → uom-rules-B0cj4nFH.js} +1 -1
  81. package/dist/{use-ingredient-select-dialog-BHgTuz0K.js → use-ingredient-select-dialog-CHqjDEzy.js} +2 -2
  82. package/dist/{use-inventory-binding-dialog-CVpVEZ-n.js → use-inventory-binding-dialog-CqKj6_hT.js} +2 -2
  83. package/dist/use-template-enabled-locations-CZf0oezR.js +146 -0
  84. package/dist/{use-transfer-locations-CMPfQCpO.js → use-transfer-locations-BTRfRrp8.js} +2 -2
  85. package/dist/{useHrmPermission-BfjsEgXe.js → useHrmPermission-CYeY_uQ0.js} +1 -1
  86. package/dist/{useNavigationMenu-DQV4rPXu.js → useNavigationMenu-D2DBZszb.js} +2 -2
  87. package/dist/{useSseClient-DyY87MX7.js → useSseClient-DNe-54JD.js} +3 -3
  88. package/dist/views/recipe/composables/use-recipe-bulk-editor.d.ts +3 -3
  89. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1 -4
  90. package/dist/{vue-i18n-WjLZbUYJ.js → vue-i18n-CRix8f2i.js} +419 -419
  91. package/dist/{xlsx-BoG4Nhqx.js → xlsx-4npyDw84.js} +398 -398
  92. package/dist/{xlsx.util-BSJ5fdz4.js → xlsx.util-C-DEH9b0.js} +3 -3
  93. package/package.json +4 -4
  94. package/dist/IntegrationView-BR7yLMpk.js +0 -5100
  95. package/dist/TransferTemplateView-D6dO4-GT.js +0 -2327
  96. package/dist/api/codemax.d.ts +0 -11
  97. package/dist/format-unit-display-dtvjecol.js +0 -1432
  98. package/dist/index-B4O6YlPQ.js +0 -257
  99. package/dist/stores/integration/codemax.d.ts +0 -432
  100. package/dist/use-template-enabled-locations-esKf16CY.js +0 -132
  101. package/dist/views/integration/Codemax.vue.d.ts +0 -2
  102. package/dist/views/integration/components/ApplyProductCodemax.vue.d.ts +0 -341
  103. package/dist/views/integration/components/ApplyProductDialogCodemax.vue.d.ts +0 -298
  104. package/dist/views/integration/components/ApplyProductDialogPropsCodemax.d.ts +0 -17
  105. package/dist/views/integration/components/CodemaxDialog.vue.d.ts +0 -519
  106. package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorDialog.vue.d.ts +0 -2
  107. package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorStep1.vue.d.ts +0 -2
  108. package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorStep2.vue.d.ts +0 -8
  109. package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorStep3.vue.d.ts +0 -2
  110. package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +0 -3225
  111. package/dist/views/transfer-template/helpers/template-item-bulk-editor-export.d.ts +0 -9
@@ -1,257 +0,0 @@
1
- import { ref as p, computed as m } from "vue";
2
- import { u as C } from "./netsuite-CKOqNFIz.js";
3
- import { u as f, A as $, a as S, m as L, E as h } from "./app-vpgIgmf7.js";
4
- import { useSnackbar as x } from "@feedmepos/ui-library";
5
- import { u as b } from "./feature-yi8Tnb7H.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
- };