@feedmepos/mf-inventory-portal 0.0.22-dev.42 → 0.0.22-dev.43

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 (44) hide show
  1. package/dist/{ApprovalView-5YpqaJKy.js → ApprovalView-1ZKaZJ2Z.js} +3 -3
  2. package/dist/{BindingsDialog-lGoLNJyU.js → BindingsDialog-CKjAs5mJ.js} +1 -1
  3. package/dist/{BindingsPicker-CdvkacXh.js → BindingsPicker-BAVZ-3dF.js} +1 -1
  4. package/dist/{BindingsTable-B8G9Ckdk.js → BindingsTable-qq8M9fzG.js} +1 -1
  5. package/dist/{ClosingTemplateView-Dcy08dPm.js → ClosingTemplateView-DOLuHmy8.js} +7 -7
  6. package/dist/{FmDroppableField-DeW5xBTW.js → FmDroppableField-BBpVEZs4.js} +1 -1
  7. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DBpTwDEI.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ChRPq-Ok.js} +3 -3
  8. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-cSTp7zUx.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BSxhRfE4.js} +1 -1
  9. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DFHzlUVu.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DrL5a2Pn.js} +1 -1
  10. package/dist/{IngredientsView-DKJjOK_4.js → IngredientsView-m5K8MlM2.js} +5 -5
  11. package/dist/{IntegrationView-CgqU4EBV.js → IntegrationView-BE5P68EJ.js} +2 -2
  12. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-gvpXGm1X.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B8cCv--C.js} +1 -1
  13. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-B3JDjoOu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CcM04Veu.js} +2 -2
  14. package/dist/{PurchaseOrderPrintPreview-olI-JfjI.js → PurchaseOrderPrintPreview-D40E9qZt.js} +1 -1
  15. package/dist/{ReceiveRequestView-flhI8D2c.js → ReceiveRequestView-Ci7FgSjU.js} +10 -10
  16. package/dist/{RecipeView-CoMyQ92u.js → RecipeView-Bp7iBiy7.js} +4 -4
  17. package/dist/{StockView-Dae47pLA.js → StockView-BzowFcFA.js} +5 -5
  18. package/dist/SupplierView-CbRnAb8G.js +3037 -0
  19. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DoEEedkk.js → TransferDetails.vue_vue_type_script_setup_true_lang-BMikyrhA.js} +5 -5
  20. package/dist/{TransferTemplateView-DdB7z0b4.js → TransferTemplateView-BwamiSyk.js} +8 -8
  21. package/dist/{UnitView-B0E2nG3J.js → UnitView-B-058oRk.js} +4 -4
  22. package/dist/{WarehouseView-NQ2JwyWK.js → WarehouseView-RtU3sWKx.js} +2 -2
  23. package/dist/api/supplier.d.ts +1 -0
  24. package/dist/{app-tiUQG6R0.js → app-By3PLx0q.js} +188 -168
  25. package/dist/app.d.ts +20 -0
  26. package/dist/app.js +1 -1
  27. package/dist/{decimal-BOvNv58m.js → decimal-CtriZ1S6.js} +1 -1
  28. package/dist/{defineDeepModel-CNgIKGt8.js → defineDeepModel-ClK3S9xx.js} +1 -1
  29. package/dist/{format-time-from-id-DWlH-AZV.js → format-time-from-id-CGLKzJJO.js} +1 -1
  30. package/dist/{format-unit-display-DIhXvTxN.js → format-unit-display-COeZSqdS.js} +5 -5
  31. package/dist/stores/supplier.d.ts +4 -1
  32. package/dist/supplier-BxBMThPQ.js +77 -0
  33. package/dist/tsconfig.app.tsbuildinfo +1 -1
  34. package/dist/{use-template-enabled-locations-2-BrK8SKvw.js → use-template-enabled-locations-2-BIgPnzRW.js} +1 -1
  35. package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
  36. package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
  37. package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
  38. package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
  39. package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
  40. package/dist/{xlsx-DGqkxpZX.js → xlsx-X_0qJPDg.js} +1 -1
  41. package/dist/{xlsx.util-CvycJwUf.js → xlsx.util-BOPzVbUa.js} +1 -1
  42. package/package.json +2 -1
  43. package/dist/SupplierView-CxYZUHrc.js +0 -827
  44. package/dist/supplier-rpkSwf7L.js +0 -70
@@ -1,70 +0,0 @@
1
- import { n as y, i as u, h as m, Z as b, $ as v } from "./app-tiUQG6R0.js";
2
- import { useCoreStore as c } from "@feedmepos/mf-common";
3
- import { defineStore as w } from "pinia";
4
- import { ref as l, computed as d } from "vue";
5
- const p = y((t, a) => {
6
- function n() {
7
- var o;
8
- const s = c(), e = u(), r = e.businessLevel, i = `business_${((o = s.currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, S = e.currentLocation.dbName;
9
- return r ? i : S;
10
- }
11
- return {
12
- async readSuppliers() {
13
- const s = n(), e = `${t.inventoryBackendUrl}/${s}/supplier`;
14
- return await a.get(e);
15
- },
16
- async readLocationSuppliers() {
17
- const e = u().currentLocation.dbName, r = `${t.inventoryBackendUrl}/${e}/supplier`;
18
- return await a.get(r);
19
- },
20
- async readBusinessSuppliers() {
21
- var i;
22
- const e = `business_${((i = c().currentBusiness.value) == null ? void 0 : i._id) ?? ""}`, r = `${t.inventoryBackendUrl}/${e}/supplier`;
23
- return await a.get(r);
24
- },
25
- async createSupplier(s) {
26
- const e = n(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
27
- return await a.post(r, s);
28
- },
29
- async updateSupplier(s) {
30
- const e = n(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
31
- return await a.put(r, s);
32
- },
33
- async deleteSupplier(s) {
34
- const e = n(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
35
- return await a.delete(r, s);
36
- }
37
- };
38
- }), f = w("supplier", () => {
39
- const t = l(new Array()), a = l(new Array()), n = d(() => [...t.value, ...a.value]), s = d(() => m(n.value, "_id"));
40
- return {
41
- async readSuppliers() {
42
- const e = p();
43
- t.value = await e.readLocationSuppliers(), a.value = await e.readBusinessSuppliers();
44
- },
45
- async createSupplier(e) {
46
- await p().createSupplier(e);
47
- },
48
- async updateSupplier(e) {
49
- await p().updateSupplier(e);
50
- },
51
- async deleteSupplier(e) {
52
- await p().deleteSupplier(e);
53
- },
54
- async init() {
55
- const e = b();
56
- try {
57
- await this.readSuppliers();
58
- } catch (r) {
59
- throw r instanceof v || e.error("Error at reading suppliers"), r;
60
- }
61
- },
62
- suppliers: n,
63
- locationSuppliers: t,
64
- businessSuppliers: a,
65
- supplierById: s
66
- };
67
- });
68
- export {
69
- f as u
70
- };