@feedmepos/mf-inventory-portal 1.0.3 → 1.0.5-dev

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 (68) hide show
  1. package/dist/{App-C1VupiZY.js → App-HiQFjdJ-.js} +1 -1
  2. package/dist/{ApprovalView-DplI9cBD.js → ApprovalView-CynLDEVc.js} +2 -2
  3. package/dist/{BindingsDialog-BRODuQYW.js → BindingsDialog-Bnp9wpfo.js} +2 -2
  4. package/dist/{BindingsPicker-BQJeW4T5.js → BindingsPicker-d0mYW8dg.js} +5 -5
  5. package/dist/{BindingsTable-DdPACqSs.js → BindingsTable-DTqY2ksc.js} +5 -5
  6. package/dist/ClosingDraftView-CWioP0pS.js +1394 -0
  7. package/dist/{ClosingTemplateView-BONrPuvT.js → ClosingTemplateView-BQrAl5fV.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-C9ZT6Hlg.js → DeliveryOrderPrintPreview-BDF8lY7Y.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-YdcIpvT7.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BN_xp-N6.js} +3 -3
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-B0cMgy-R.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BWUrzPyM.js} +1 -1
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DbCkYQRx.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-XhFhN0MD.js} +1 -1
  12. package/dist/{IngredientGroupView-K00nLk1c.js → IngredientGroupView-CyjtkSE4.js} +1 -1
  13. package/dist/{IngredientsView-B6Yu-gfy.js → IngredientsView-DcTIYA5r.js} +3 -3
  14. package/dist/IntegrationView-Jeh9aw2u.js +2148 -0
  15. package/dist/{InventoryBindingForm-Ck3YkMP8.js → InventoryBindingForm-dlNXDnnO.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Z0ofZoa5.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BeUd7kC6.js} +3 -3
  17. package/dist/{InventoryBindingSummary-mDDEGGrj.js → InventoryBindingSummary-BPvSql2a.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-p1otjx3-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DFofvMkD.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Q7bKAXW1.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CaBtx2ad.js} +1 -1
  20. package/dist/{PublishView-DIGrMK7M.js → PublishView-4Mh9EtfQ.js} +2 -2
  21. package/dist/{PurchaseOrderPrintPreview-CIvH6ak4.js → PurchaseOrderPrintPreview-DFNVxR7Q.js} +1 -1
  22. package/dist/{ReceiveRequestView-Do8YpHUz.js → ReceiveRequestView-DGfyfwbS.js} +8 -8
  23. package/dist/{RecipeView-D87QEyUM.js → RecipeView-D-M9rodW.js} +3 -3
  24. package/dist/{StockView-BlAsmxkM.js → StockView-Dmy2nTn9.js} +6 -6
  25. package/dist/{SupplierView-CJW6pqqq.js → SupplierView-dwayUuSs.js} +3 -3
  26. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-QGPSA275.js → TransferDetails.vue_vue_type_script_setup_true_lang-DtrWgdXq.js} +6 -6
  27. package/dist/{TransferTemplateView-Ufv0RRVH.js → TransferTemplateView-zl-E8FWk.js} +6 -6
  28. package/dist/{UnitView-CRJGTNRn.js → UnitView-DlgkMRfA.js} +3 -3
  29. package/dist/{WarehouseView-D_iqmtil.js → WarehouseView-Cwm2w_Li.js} +1 -1
  30. package/dist/api/closing.d.ts +7 -1
  31. package/dist/api/netsuite.d.ts +82 -0
  32. package/dist/api/stock.d.ts +44 -0
  33. package/dist/{app-DUVoMWjT.js → app-7jcARtWe.js} +2150 -2098
  34. package/dist/app.js +1 -1
  35. package/dist/{decimal-C2cu01Ty.js → decimal-Df15BvRp.js} +1 -1
  36. package/dist/{format-unit-display-BhApyqDh.js → format-unit-display-CEjqAYMQ.js} +2 -2
  37. package/dist/index-D1mi5w82.js +125 -0
  38. package/dist/{index-CzrCaC5N.js → index-D76OeHWL.js} +1 -1
  39. package/dist/{stock-BRe9UgbU.js → stock-C2o7RYsv.js} +35 -31
  40. package/dist/stores/feature.d.ts +4 -1
  41. package/dist/stores/integration/index.d.ts +1 -0
  42. package/dist/stores/integration/netsuite.d.ts +11 -0
  43. package/dist/stores/integration/xilnex.d.ts +12 -0
  44. package/dist/stores/inventory.d.ts +12 -12
  45. package/dist/stores/stock.d.ts +12 -12
  46. package/dist/{supplier-CjOLvGsU.js → supplier-DX4BGHJ3.js} +1 -1
  47. package/dist/tsconfig.app.tsbuildinfo +1 -1
  48. package/dist/{use-ingredient-select-dialog-316K96zh.js → use-ingredient-select-dialog-BQq-zLGA.js} +1 -1
  49. package/dist/{use-inventory-binding-dialog-fGBCj6Ba.js → use-inventory-binding-dialog-NM2fZkBw.js} +1 -1
  50. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +40 -40
  51. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +240 -240
  52. package/dist/views/integration/XilnexView.vue.d.ts +2 -0
  53. package/dist/views/integration/components/Xilnex/XilnexOpeningImport.vue.d.ts +2 -0
  54. package/dist/views/integration/components/Xilnex/XilnexProps.d.ts +7 -0
  55. package/dist/views/integration/components/Xilnex/XilnexSideSheet.vue.d.ts +24 -0
  56. package/dist/views/integration/components/Xilnex/importFn.d.ts +16 -0
  57. package/dist/views/integration/components/netsuite/AddLocationDialog.vue.d.ts +1334 -0
  58. package/dist/views/integration/components/netsuite/LocationConfigurationDialog.vue.d.ts +174 -0
  59. package/dist/views/integration/components/netsuite/LocationConfigurationDialogProps.d.ts +16 -0
  60. package/dist/views/integration/components/netsuite/NetSuiteLocationField.vue.d.ts +71 -0
  61. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +32 -32
  62. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +66 -66
  63. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +66 -66
  64. package/dist/{vue-i18n-DCtJpaCZ.js → vue-i18n-BRmzzMWS.js} +2 -2
  65. package/package.json +3 -2
  66. package/dist/ClosingDraftView-wCIesJUP.js +0 -1348
  67. package/dist/IntegrationView-CX3c7RQq.js +0 -1197
  68. package/dist/index-CrxvXOng.js +0 -84
@@ -1,84 +0,0 @@
1
- import { ref as l, computed as c } from "vue";
2
- import { u as g, aP as d, b as m } from "./app-DUVoMWjT.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 = l(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, o, i, t;
44
- const r = d();
45
- try {
46
- const n = await r.readMenu();
47
- e.value.menu = ((a = n.modules) == null ? void 0 : a.item) ?? [], e.value.group = ((o = n.modules) == null ? void 0 : o.group) ?? [], e.value.variants = ((i = n.modules) == null ? void 0 : i.variant) ?? [];
48
- const u = (((t = n.modules) == null ? void 0 : t.category) ?? []).map((s) => ({
49
- ...s,
50
- _id: s._id === void 0 ? null : s._id
51
- }));
52
- e.value.categories = u, e.value.setting = await r.readSetting();
53
- } catch (n) {
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", n);
59
- }
60
- }
61
- };
62
- }
63
- function y() {
64
- const r = m(), a = p(), o = c(() => r.isEnabled), i = c(() => a.isEnabled);
65
- return {
66
- get enabledIntegrations() {
67
- return [o.value, i.value].filter((t) => t).length;
68
- },
69
- get isNetSuiteEnabled() {
70
- return o.value;
71
- },
72
- async fetchFoodMarketHubSetting() {
73
- try {
74
- await a.init();
75
- } catch (t) {
76
- console.error("Error fetching FoodMarketHub setting:", t);
77
- }
78
- }
79
- };
80
- }
81
- export {
82
- p as a,
83
- y as u
84
- };