@feedmepos/mf-inventory-portal 0.0.19-dev.1 → 0.0.19-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 (59) hide show
  1. package/dist/{ApprovalView-BTZwnKLf.js → ApprovalView-DU7oB2Zk.js} +42 -39
  2. package/dist/{BindingsDialog-DpC48bqK.js → BindingsDialog-BgfV0G46.js} +2 -2
  3. package/dist/{BindingsPicker-BU52g6zk.js → BindingsPicker-tUI5WYBk.js} +2 -2
  4. package/dist/{BindingsTable-aIuFdScv.js → BindingsTable-8G-Nc4pC.js} +18 -17
  5. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DaHXKF1s.js +273 -0
  6. package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-n09XXJZK.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-CxOk5ule.js} +2 -2
  7. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-B-19iYaK.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D-vJDMKb.js} +3 -3
  8. package/dist/IngredientsView-CAh7D4tL.js +1760 -0
  9. package/dist/{IntegrationView-Dn_qL_vC.js → IntegrationView-Bf7yHuS8.js} +3 -3
  10. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-BdVrpR9J.js +277 -0
  11. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BuyM580N.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BKlWhMnB.js} +1 -1
  12. package/dist/{PurchaseOrderPrintPreview-EeKhENYH.js → PurchaseOrderPrintPreview-YFcOtdfJ.js} +1 -1
  13. package/dist/ReceiveRequestView-bIXyVVX9.js +1401 -0
  14. package/dist/RecipeView-BD0mvxCg.js +575 -0
  15. package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +59 -0
  16. package/dist/StockView-BCq37bGl.js +1865 -0
  17. package/dist/SupplierView-BiSqTXnz.js +804 -0
  18. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CvbKNb0C.js +1033 -0
  19. package/dist/UnitView-DSdn__9m.js +643 -0
  20. package/dist/WarehouseView-B8UxxAL6.js +1051 -0
  21. package/dist/api/bill.d.ts +2 -2
  22. package/dist/app-RVyC2D4O.js +43892 -0
  23. package/dist/app.d.ts +1002 -0
  24. package/dist/app.js +4 -3
  25. package/dist/components/FmDroppableField.vue.d.ts +1 -1
  26. package/dist/{date2-Cvp5iJkI.js → date2-C2PfOqbB.js} +1 -1
  27. package/dist/{dayjs.min-D1_pOsO7.js → dayjs.min-0pzT_dbr.js} +1 -1
  28. package/dist/{decimal-BAZuuTcd.js → decimal-BtIn4K57.js} +1 -1
  29. package/dist/{fuzzy-0roCBvgC.js → fuzzy-yzIM5KUK.js} +1 -1
  30. package/dist/{index-B_aEOJsR.js → index-l87_vggM.js} +1 -1
  31. package/dist/{layout-BnTfCS_X.js → layout-ITqYtCVu.js} +1 -1
  32. package/dist/{number-DLj3W3RW.js → number-B5d98l0m.js} +1 -1
  33. package/dist/router/name.d.ts +2 -1
  34. package/dist/{rules-CCmXA0Yi.js → rules-CCwuHe8Y.js} +2 -2
  35. package/dist/{stock-estimate-CL4HShG8.js → stock-estimate-C4PL0Fcz.js} +2 -2
  36. package/dist/style.css +1 -1
  37. package/dist/{supplier-CjAH8O1y.js → supplier-CA0OR3DU.js} +1 -1
  38. package/dist/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/{use-inventory-binding-dialog-GkJOzE6V.js → use-inventory-binding-dialog-CTriImiV.js} +2 -2
  40. package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
  41. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  42. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  43. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  44. package/dist/{xlsx-vUzm_udV.js → xlsx-DAVatAlv.js} +660 -660
  45. package/dist/xlsx.util-BsZI2tNE.js +109 -0
  46. package/package.json +6 -5
  47. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DjgmtvXU.js +0 -268
  48. package/dist/IngredientsView-DMyEGdik.js +0 -1767
  49. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-DGTLUrb9.js +0 -276
  50. package/dist/ReceiveRequestView-BOdgbFFM.js +0 -1394
  51. package/dist/RecipeView-B1aNLDIK.js +0 -573
  52. package/dist/StockForecast.vue_vue_type_style_index_0_lang-B5EK101t.js +0 -58
  53. package/dist/StockView-C_Ur_jTg.js +0 -1862
  54. package/dist/SupplierView-CXfOoHTr.js +0 -796
  55. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-kjV5Eazv.js +0 -1028
  56. package/dist/UnitView-DHXfAsnq.js +0 -635
  57. package/dist/WarehouseView-DMwbxs1q.js +0 -1043
  58. package/dist/app-BkcO8oNJ.js +0 -66113
  59. package/dist/xlsx.util-B_bqymTM.js +0 -107
@@ -1,107 +0,0 @@
1
- import { defineComponent as _, openBlock as f, createElementBlock as u, createElementVNode as x, toDisplayString as d, Fragment as g, renderList as M, unref as v } from "vue";
2
- import { a as h, b } from "./number-DLj3W3RW.js";
3
- import { u as y, w as k, r as S } from "./xlsx-vUzm_udV.js";
4
- const A = { class: "flex flex-col" }, $ = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, B = { class: "flex-1 py-8 px-16" }, E = /* @__PURE__ */ x("div", {
5
- class: "flex-0 py-8 px-16",
6
- style: { "flex-basis": "120px" }
7
- }, "Amount", -1), I = { class: "flex-1 py-8 px-16" }, N = {
8
- key: 0,
9
- class: "flex-0 py-8 px-16",
10
- style: { "flex-basis": "120px" }
11
- }, j = {
12
- key: 1,
13
- class: "flex-0 py-8 px-16",
14
- style: { "flex-basis": "120px" }
15
- }, R = /* @__PURE__ */ _({
16
- __name: "IngredientBindedItem",
17
- props: {
18
- name: {},
19
- bindings: {}
20
- },
21
- setup(o) {
22
- function n(e, s) {
23
- var t;
24
- if (e.measurement) {
25
- const a = b(e.amount, e.measurement.conversion);
26
- return `${h(a, !1)} ${(t = e.measurement) == null ? void 0 : t.abbrev}`;
27
- }
28
- return `${h(e.amount, !1)} ${s.abbrev}`;
29
- }
30
- function r(e) {
31
- return e.unit !== void 0;
32
- }
33
- return (e, s) => (f(), u("div", A, [
34
- x("div", $, [
35
- x("div", B, d(e.name), 1),
36
- E
37
- ]),
38
- (f(!0), u(g, null, M(e.bindings, (t) => (f(), u("div", {
39
- key: t.id,
40
- class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
41
- }, [
42
- x("div", I, d(t.name), 1),
43
- r(t) ? (f(), u("div", N, d(n(t, t.unit)), 1)) : (f(), u("div", j, d(v(h)(t.amount, !1)), 1))
44
- ]))), 128))
45
- ]));
46
- }
47
- });
48
- function* C(o) {
49
- const [n, r] = o.split(":"), e = /\d+/, s = e.exec(n), t = e.exec(r);
50
- if (!s || !t)
51
- throw new Error(`Cannot parse row range for range: ${o}`);
52
- const a = Number(s[0]), l = Number(t[0]);
53
- for (let c = a; c <= l; c++)
54
- yield c;
55
- }
56
- function* F(o) {
57
- const [n, r] = o.split(":"), e = /[^\d]+/, s = e.exec(n), t = e.exec(r);
58
- if (!s || !t)
59
- throw new Error(`Cannot parse row range for range: ${o}`);
60
- let a = 0, l = "A";
61
- for (yield l; l !== t[0]; ) {
62
- a++;
63
- const c = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
64
- let i = a, m = !1, p = "";
65
- do {
66
- const w = i % c.length;
67
- i = Math.floor(i / c.length), p += c.charAt(w), m = i > 0, i -= 1;
68
- } while (m);
69
- l = p.split("").reverse().join(""), yield l;
70
- }
71
- }
72
- function T(o) {
73
- var e;
74
- const n = [], r = o["!ref"];
75
- if (!r) return n;
76
- for (const s of C(r)) {
77
- const t = [];
78
- for (const a of F(r))
79
- t.push(((e = o[`${a}${s}`]) == null ? void 0 : e.w) ?? "");
80
- n.push(t);
81
- }
82
- return n;
83
- }
84
- function X(o, n, r = "Sheet1") {
85
- const e = y.aoa_to_sheet([n, ...o]), s = o.reduce((l, c) => Math.max(l, c.length), 0), t = Array.from({ length: s }).map((l, c) => {
86
- const i = o.map((m) => `${m[c]}`).reduce((m, p) => Math.max(m, p.length + 3), 0);
87
- return {
88
- wch: Math.max(i, 5)
89
- };
90
- });
91
- e["!cols"] = t;
92
- const a = y.book_new();
93
- return y.book_append_sheet(a, e, r), a;
94
- }
95
- function U(o, n) {
96
- k(o, n, { compression: !0 });
97
- }
98
- async function V(o) {
99
- return S(await o.arrayBuffer());
100
- }
101
- export {
102
- R as _,
103
- U as d,
104
- V as r,
105
- T as s,
106
- X as t
107
- };