@feedmepos/mf-inventory-portal 0.0.19-dev.15 → 0.0.19-dev.17

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 (48) hide show
  1. package/dist/{ApprovalView-CRHU3Bv0.js → ApprovalView-YVJ8rI2M.js} +5 -5
  2. package/dist/{BindingsDialog-ChIRg0d3.js → BindingsDialog-C7ZO5bXe.js} +9 -9
  3. package/dist/{BindingsPicker-BJAbeiDf.js → BindingsPicker-BDsVbM3L.js} +1 -1
  4. package/dist/{BindingsTable-5MxWD_qa.js → BindingsTable-BiVQ4mvK.js} +1 -1
  5. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-vuSl8LVG.js +308 -0
  6. package/dist/{IngredientsView-qXrDtzSK.js → IngredientsView-CKDZsR2e.js} +5 -5
  7. package/dist/{IntegrationView-D6yFqod1.js → IntegrationView-DQZeJKul.js} +2 -2
  8. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGurlvYg.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DDcFEUcz.js} +1 -1
  9. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-2Ady4pB4.js → PremiumBadge.vue_vue_type_script_setup_true_lang-6plo8rnV.js} +1 -1
  10. package/dist/{PurchaseOrderPrintPreview-BWwjMRqb.js → PurchaseOrderPrintPreview-Df-gYZFA.js} +1 -1
  11. package/dist/{ReceiveRequestView-C94SWDaj.js → ReceiveRequestView-CxW1ONAk.js} +8 -8
  12. package/dist/{RecipeView-CG9H_ZOo.js → RecipeView-B8eIaR2f.js} +4 -4
  13. package/dist/{StockView-BdXGfDNl.js → StockView-CqgqPyvI.js} +8 -8
  14. package/dist/SupplierView-CPHQT1Hn.js +817 -0
  15. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DktBkwCx.js → TransferDetails.vue_vue_type_script_setup_true_lang-CBmoU3pN.js} +4 -4
  16. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DV6IxKMM.js +1435 -0
  17. package/dist/TransferTemplateView-BR2-tTiQ.js +1290 -0
  18. package/dist/{UnitView-Dx2vWJXi.js → UnitView-vUCf46QM.js} +5 -5
  19. package/dist/{WarehouseView-UkmUZnqH.js → WarehouseView-B3D5kkAU.js} +3 -3
  20. package/dist/api/purchase-order-template.d.ts +4 -0
  21. package/dist/api/supplier.d.ts +6 -4
  22. package/dist/{app-BLzTa0Ut.js → app-Ds9lsiAo.js} +5542 -5522
  23. package/dist/app.js +1 -1
  24. package/dist/{array-AvWd53LI.js → array-ClJzD_Lt.js} +3 -3
  25. package/dist/components/ChangeLocationComponent.vue.d.ts +14 -11
  26. package/dist/components/FmInventoryTableToolbar.vue.d.ts +0 -2
  27. package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
  28. package/dist/{decimal-DLYVb_I_.js → decimal-BZJuYjv-.js} +1 -1
  29. package/dist/format-unit-display-Dw4iQUDG.js +707 -0
  30. package/dist/{id-to-date-CKplrnj_.js → id-to-date-CLG4t5Zp.js} +1 -1
  31. package/dist/layout/SingleColumnLayout.vue.d.ts +1 -0
  32. package/dist/{layout-B9sdKjL9.js → layout-b03Lvqhx.js} +1 -1
  33. package/dist/stores/feature.d.ts +1 -0
  34. package/dist/stores/location.d.ts +1 -0
  35. package/dist/stores/supplier.d.ts +9 -9
  36. package/dist/supplier-C9OQNEl0.js +69 -0
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/views/supplier/components/SupplierDialogProps.d.ts +0 -1
  39. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +583 -1
  40. package/dist/{xlsx-C3AV6UrJ.js → xlsx-B5RUBjKV.js} +1209 -1209
  41. package/dist/{xlsx.util-slrhXhsk.js → xlsx.util-H2UkpLte.js} +4 -4
  42. package/package.json +3 -3
  43. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0j4VOis.js +0 -306
  44. package/dist/SupplierView-ClL2oc8K.js +0 -813
  45. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-BE95F9r1.js +0 -1437
  46. package/dist/TransferTemplateView-BXrNS8pg.js +0 -1279
  47. package/dist/format-unit-display-D_Z4TNZd.js +0 -668
  48. package/dist/supplier-BZ6HZcYB.js +0 -60
@@ -1,60 +0,0 @@
1
- import { n as c, j as d, Q as S, T as f } from "./app-BLzTa0Ut.js";
2
- import { useCoreStore as m } from "@feedmepos/mf-common";
3
- import { defineStore as y } from "pinia";
4
- import { ref as u, computed as w } from "vue";
5
- const n = c((s, a) => {
6
- function i(e) {
7
- var o;
8
- const r = d(), p = `business_${((o = m().currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, l = r.currentLocation.dbName;
9
- return e ? p : l;
10
- }
11
- return {
12
- async readSuppliers(e = !1) {
13
- const r = i(e), t = `${s.inventoryBackendUrl}/${r}/supplier`;
14
- return await a.get(t);
15
- },
16
- async createSupplier(e, r = !1) {
17
- const t = i(r), p = `${s.inventoryBackendUrl}/${t}/supplier`;
18
- return await a.post(p, e);
19
- },
20
- async updateSupplier(e, r = !1) {
21
- const t = i(r), p = `${s.inventoryBackendUrl}/${t}/supplier`;
22
- return await a.put(p, e);
23
- },
24
- async deleteSupplier(e, r = !1) {
25
- const t = i(r), p = `${s.inventoryBackendUrl}/${t}/supplier`;
26
- return await a.delete(p, e);
27
- }
28
- };
29
- }), N = y("supplier", () => {
30
- const s = u(new Array()), a = u(new Array()), i = w(() => [...s.value, ...a.value]);
31
- return {
32
- async readSuppliers() {
33
- const e = n();
34
- s.value = await e.readSuppliers(), a.value = await e.readSuppliers(!0);
35
- },
36
- async createSupplier(e, r = !1) {
37
- await n().createSupplier(e, r);
38
- },
39
- async updateSupplier(e, r = !1) {
40
- await n().updateSupplier(e, r);
41
- },
42
- async deleteSupplier(e, r = !1) {
43
- await n().deleteSupplier(e, r);
44
- },
45
- async init() {
46
- const e = S();
47
- try {
48
- await this.readSuppliers();
49
- } catch (r) {
50
- throw r instanceof f || e.error("Error at reading suppliers"), r;
51
- }
52
- },
53
- suppliers: i,
54
- locationSuppliers: s,
55
- businessSuppliers: a
56
- };
57
- });
58
- export {
59
- N as u
60
- };