@feedmepos/mf-inventory-portal 0.0.13 → 0.0.14-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 (39) hide show
  1. package/dist/{ApprovalView-DLjXlfow.js → ApprovalView-DnDEDKYS.js} +6 -6
  2. package/dist/{BindingsDialog-CnIs3cmk.js → BindingsDialog-0Hsm-zjl.js} +2 -2
  3. package/dist/{BindingsPicker-DuBt8qnk.js → BindingsPicker-C1UkMY08.js} +2 -2
  4. package/dist/{BindingsTable-B6hEmwQa.js → BindingsTable-CmQZBZvc.js} +3 -3
  5. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-tztl7vrE.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-Dxr_lALV.js} +1 -1
  6. package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-CQa3cFsy.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-Ibd-h4_O.js} +2 -2
  7. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Ow5808OK.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DQG_rzLB.js} +3 -3
  8. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-fFkvXmGW.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Dn5XGQEr.js} +1 -1
  9. package/dist/{IngredientsView-DMlke0JW.js → IngredientsView-ksAilhK9.js} +6 -6
  10. package/dist/{IntegrationView-Bzl51B93.js → IntegrationView-DoXyWmK5.js} +3 -3
  11. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-a34h9DoV.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Daa_V6aD.js} +6 -6
  12. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CavE2MEL.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BlX9pv1r.js} +1 -1
  13. package/dist/{PurchaseOrderPrintPreview-D2mgXtfR.js → PurchaseOrderPrintPreview-Cx706aks.js} +1 -1
  14. package/dist/ReceiveRequestView-CvDQeTNg.js +1413 -0
  15. package/dist/{RecipeView-D0xkBYFD.js → RecipeView-B_-CA2kV.js} +106 -104
  16. package/dist/{StockView-Dckt5hb4.js → StockView-CIOMxvng.js} +505 -519
  17. package/dist/{SupplierView-DktUGCdL.js → SupplierView-YDhtUMXL.js} +7 -7
  18. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BgD5yGYC.js → TransferDetails.vue_vue_type_script_setup_true_lang-aWghADTQ.js} +5 -5
  19. package/dist/{UnitView-A6RKcw7X.js → UnitView-BSm4q8D9.js} +6 -6
  20. package/dist/{WarehouseView-mkT2e_0g.js → WarehouseView-Bv1D5yVQ.js} +3 -3
  21. package/dist/{app-DfqE4AvV.js → app-CjfxZTyC.js} +3 -3
  22. package/dist/app.js +1 -1
  23. package/dist/{date2-CX3RjG53.js → date2-B2QqVpIw.js} +1 -1
  24. package/dist/{dayjs.min-0VeWE9zr.js → dayjs.min-BW6UYMZU.js} +2 -2
  25. package/dist/{decimal-DJHERS0j.js → decimal-BJCGsaAt.js} +1 -1
  26. package/dist/extensions/array.d.ts +6 -0
  27. package/dist/{fuzzy-xbig_3gR.js → fuzzy-CIXnWcoD.js} +1 -1
  28. package/dist/{init-date-range-CafUxJtw.js → init-date-range-CPAU8nT8.js} +1 -1
  29. package/dist/{layout-xLQgiO2G.js → layout-CzT3z9f6.js} +1 -1
  30. package/dist/{rules-BTeY2ggR.js → rules-Gnrmm8b3.js} +1 -1
  31. package/dist/stock-estimate-DSnSHwHA.js +145 -0
  32. package/dist/{supplier-Dvf6jiXm.js → supplier-DZ2pG9GN.js} +1 -1
  33. package/dist/tsconfig.app.tsbuildinfo +1 -1
  34. package/dist/{use-inventory-binding-dialog-B84NLR0e.js → use-inventory-binding-dialog-heOwQ9K_.js} +2 -2
  35. package/dist/views/receive-request/ReceiveRequestView.vue.d.ts +1 -0
  36. package/dist/{xlsx-Dp5yQYnz.js → xlsx-B2I7xOFq.js} +1 -1
  37. package/package.json +3 -3
  38. package/dist/ReceiveRequestView-JCBh5F1Y.js +0 -1411
  39. package/dist/stock-estimate-iDVd6Z0l.js +0 -122
@@ -1,122 +0,0 @@
1
- import { u as l, a as f } from "./xlsx-Dp5yQYnz.js";
2
- import { defineComponent as _, resolveComponent as d, openBlock as y, createElementBlock as h, renderSlot as F, createVNode as p, withCtx as v, createElementVNode as g, ref as k } from "vue";
3
- import { f as x, e as I } from "./app-DfqE4AvV.js";
4
- import { useCoreStore as w } from "@feedmepos/mf-common";
5
- function S(e, t) {
6
- return t.map((r) => typeof r.selector == "function" ? r.selector(e) : `${e[r.selector]}`);
7
- }
8
- function b(e, t) {
9
- const r = t.map((s) => s.name), o = e.map((s) => S(s, t));
10
- return l.aoa_to_sheet([r, ...o]);
11
- }
12
- async function P(e, t) {
13
- const r = l.book_new();
14
- for (const o of e) {
15
- const s = b(
16
- o.data,
17
- o.columns.map((n) => typeof n == "string" ? {
18
- name: n,
19
- selector: n
20
- } : n)
21
- );
22
- l.book_append_sheet(r, s, o.name);
23
- }
24
- await f(r, t);
25
- }
26
- const O = { class: "flex items-center gap-8" }, E = { class: "p-4 bg-fm-color-system-warning-100 fm-corner-radius-md flex items-center" }, $ = "Experience stock lifespan estimates powered by REMY AI. Currently available as a preview, this will become a premium feature.", L = /* @__PURE__ */ _({
27
- __name: "PremiumBadge",
28
- props: {
29
- zIndex: {}
30
- },
31
- setup(e) {
32
- return (t, r) => {
33
- const o = d("FmIcon"), s = d("FmTooltip");
34
- return y(), h("div", O, [
35
- F(t.$slots, "default"),
36
- p(s, {
37
- variant: "plain",
38
- placement: "top",
39
- content: $,
40
- "z-index": t.zIndex
41
- }, {
42
- default: v(() => [
43
- g("div", E, [
44
- p(o, {
45
- name: "hotel_class",
46
- class: "text-fm-color-primary",
47
- size: "sm"
48
- })
49
- ])
50
- ]),
51
- _: 1
52
- }, 8, ["z-index"])
53
- ]);
54
- };
55
- }
56
- });
57
- function T(e) {
58
- let t = e.substring(e.indexOf("_") + 1);
59
- return t.includes("_") && (t = t.substring(0, t.lastIndexOf("_"))), Number.isNaN(Date.parse(t)) ? null : new Date(t).toISOString();
60
- }
61
- const m = x((e, t) => {
62
- const r = I(), o = w();
63
- return {
64
- async getInventoryForecast() {
65
- var a;
66
- const s = ((a = o.currentBusiness.value) == null ? void 0 : a._id) ?? "", n = r.currentLocationId ?? "", i = `${e.dataBackendUrl}/${s}/${n}/inventory-forecast`;
67
- try {
68
- return await t.get(i);
69
- } catch {
70
- return { skus: [] };
71
- }
72
- },
73
- async getPurchaseOrderForecast(s) {
74
- var u;
75
- const n = ((u = o.currentBusiness.value) == null ? void 0 : u._id) ?? "", i = r.currentLocationId ?? "", a = `${e.dataBackendUrl}/${n}/${i}/purchase-order-forecast?days=${s}`;
76
- try {
77
- return await t.get(a);
78
- } catch {
79
- return { skus: [] };
80
- }
81
- }
82
- };
83
- });
84
- function B() {
85
- return {
86
- inventoryForecast: { skus: [] },
87
- purchaseOrderForecast: { skus: [] }
88
- };
89
- }
90
- const c = k(B());
91
- function M() {
92
- return {
93
- // state
94
- get inventoryForecast() {
95
- return c.value.inventoryForecast;
96
- },
97
- set inventoryForecast(e) {
98
- c.value.inventoryForecast = e;
99
- },
100
- get purchaseOrderForecast() {
101
- return c.value.purchaseOrderForecast;
102
- },
103
- set purchaseOrderForecast(e) {
104
- c.value.purchaseOrderForecast = e;
105
- },
106
- // actions
107
- async readStockEstimateBalance() {
108
- const e = m();
109
- this.inventoryForecast = await e.getInventoryForecast();
110
- },
111
- async readPurchaseOrder(e) {
112
- const t = m();
113
- this.purchaseOrderForecast = await t.getPurchaseOrderForecast(e);
114
- }
115
- };
116
- }
117
- export {
118
- L as _,
119
- P as e,
120
- T as i,
121
- M as u
122
- };