@feedmepos/mf-inventory-portal 0.0.16 → 0.0.17-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 (61) hide show
  1. package/dist/{ApprovalView-UPMlfF5g.js → ApprovalView-DuDqkTeC.js} +9 -9
  2. package/dist/{BindingsDialog-DLiropIq.js → BindingsDialog-0Q6o47Up.js} +5 -5
  3. package/dist/{BindingsPicker-DhCy4s2z.js → BindingsPicker-k4drpC9m.js} +6 -6
  4. package/dist/{BindingsTable-Dhps_Bmp.js → BindingsTable-B5hZHvuD.js} +26 -26
  5. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DaGRG8JZ.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CoiUbqV-.js} +1 -1
  6. package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-C4CDnbbR.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-C1TGiM-x.js} +9 -9
  7. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BOH3bs27.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DsjnPaTj.js} +3 -3
  8. package/dist/IngredientsView-D3uTxXqO.js +1637 -0
  9. package/dist/{IntegrationView-CzsOzr40.js → IntegrationView-B1iYpADR.js} +4 -4
  10. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-mXNWcOA1.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-GinKxaoG.js} +6 -6
  11. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BurvAmK1.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BDznyTkG.js} +1 -1
  12. package/dist/{PurchaseOrderPrintPreview-ClzPjQT5.js → PurchaseOrderPrintPreview-BJ4uktza.js} +4 -4
  13. package/dist/{ReceiveRequestView-DMwEXkO8.js → ReceiveRequestView-BOvNswDa.js} +13 -13
  14. package/dist/RecipeView-4I-OWCb6.js +581 -0
  15. package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-Dov3Uq2z.js +64 -0
  16. package/dist/StockForecast.vue_vue_type_style_index_0_lang-B5EK101t.js +58 -0
  17. package/dist/StockView-D2cS56Qi.js +1960 -0
  18. package/dist/{SupplierView-mKXvaKxV.js → SupplierView-CZPwQkMt.js} +8 -8
  19. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CGQsxC-o.js → TransferDetails.vue_vue_type_script_setup_true_lang-CqKi2NMD.js} +5 -5
  20. package/dist/{UnitView-Blc7xGVs.js → UnitView-CV7Od1Jw.js} +7 -7
  21. package/dist/{WarehouseView-Bto12ePn.js → WarehouseView-BtQJYBl0.js} +4 -4
  22. package/dist/api/inventory.d.ts +102 -0
  23. package/dist/api/stock.d.ts +8 -0
  24. package/dist/{app-6F9Nq1nz.js → app-B4nF7QvC.js} +1037 -1019
  25. package/dist/app.js +1 -1
  26. package/dist/components/FmDroppableField.vue.d.ts +75 -0
  27. package/dist/components/StockForecast.vue.d.ts +1 -1
  28. package/dist/components/StockForecastProps.d.ts +7 -0
  29. package/dist/{date2-BfJmVTjj.js → date2-BwR5G9qy.js} +4 -4
  30. package/dist/{dayjs.min-fpInHghy.js → dayjs.min-DGsqRPL2.js} +171 -136
  31. package/dist/{decimal-CCOpA0Pu.js → decimal-DGwTROX2.js} +1 -1
  32. package/dist/{fuzzy-5KUpKfV-.js → fuzzy-D903uHSq.js} +1 -1
  33. package/dist/helper/random.d.ts +2 -0
  34. package/dist/helper/xlsx.util.d.ts +1 -0
  35. package/dist/{init-date-range-BFXfLRPQ.js → init-date-range-CWbgpQ8e.js} +1 -1
  36. package/dist/{layout-17a6ifdn.js → layout-8DgajRcn.js} +12 -12
  37. package/dist/{rules-lFRUMKT0.js → rules-Dq4Ee_PT.js} +1 -1
  38. package/dist/{stock-estimate-BpYbGfCv.js → stock-estimate-4jgl53Nk.js} +2 -2
  39. package/dist/stores/inventory.d.ts +1 -0
  40. package/dist/style.css +1 -1
  41. package/dist/{supplier-DcmzVKNJ.js → supplier-Bv4RiUno.js} +1 -1
  42. package/dist/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/{use-inventory-binding-dialog-CGJklwZu.js → use-inventory-binding-dialog-h8HlGzcz.js} +2 -2
  44. package/dist/views/ingredients/components/import-ingredients/ImportIngredientItem.vue.d.ts +12 -0
  45. package/dist/views/ingredients/components/import-ingredients/ImportIngredientItemProps.d.ts +6 -0
  46. package/dist/views/ingredients/components/import-ingredients/ImportIngredients.vue.d.ts +2 -0
  47. package/dist/views/ingredients/components/import-ingredients/ImportIngredientsProps.d.ts +5 -0
  48. package/dist/views/ingredients/helper/import-export.helper.d.ts +45 -0
  49. package/dist/views/ingredients/helper/sku-days-threshold.helper.d.ts +1 -0
  50. package/dist/views/ingredients/helper/sku-id.helper.d.ts +1 -0
  51. package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +9 -0
  52. package/dist/xlsx-wBLs03H5.js +24004 -0
  53. package/dist/xlsx.util-DxDZloWT.js +107 -0
  54. package/package.json +6 -6
  55. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-pxmVRIYW.js +0 -49
  56. package/dist/IngredientsView-BugOG1Jr.js +0 -832
  57. package/dist/RecipeView-DueXRRaL.js +0 -596
  58. package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js +0 -53
  59. package/dist/StockView-BN5rzuO5.js +0 -1887
  60. package/dist/util-CEVKTbZD.js +0 -18
  61. package/dist/xlsx-Cm2_c_X-.js +0 -15510
@@ -0,0 +1,107 @@
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 "./date2-BwR5G9qy.js";
3
+ import { u as y, w as k, r as S } from "./xlsx-wBLs03H5.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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-inventory-portal",
3
- "version": "0.0.16",
3
+ "version": "0.0.17-dev.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -16,8 +16,8 @@
16
16
  "dependencies": {
17
17
  "@feedmepos/core": "^2.9.3",
18
18
  "@feedmepos/menu": "1.0.34",
19
- "@feedmepos/mf-common": "1.8.33",
20
- "@feedmepos/ui-library": "1.2.54",
19
+ "@feedmepos/mf-common": "1.8.38-beta.1",
20
+ "@feedmepos/ui-library": "1.2.56",
21
21
  "@tanstack/vue-table": "^8.17.3",
22
22
  "@types/dinero.js": "^1.9.4",
23
23
  "@vue/cli-service": "^5.0.8",
@@ -37,9 +37,9 @@
37
37
  "vue-router": "^4.3.2",
38
38
  "xlsx": "^0.18.5",
39
39
  "zod": "3.17.9",
40
- "@feedmepos/zod-inventory": "^1.0.7",
41
- "@feedmepos/inventory-core": "^0.2.15-alpha.9",
42
- "@feedmepos/inventory-core-js": "^1.0.0"
40
+ "@feedmepos/zod-inventory": "^1.0.9",
41
+ "@feedmepos/inventory-core-js": "^1.0.0",
42
+ "@feedmepos/inventory-core": "^0.2.15-alpha.9"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@rushstack/eslint-patch": "^1.10.3",
@@ -1,49 +0,0 @@
1
- import { defineComponent as f, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, Fragment as u, renderList as p, unref as x } from "vue";
2
- import { a, b as d } from "./date2-BfJmVTjj.js";
3
- const y = { 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" }, v = { class: "flex-1 py-8 px-16" }, h = /* @__PURE__ */ r("div", {
4
- class: "flex-0 py-8 px-16",
5
- style: { "flex-basis": "120px" }
6
- }, "Amount", -1), b = { class: "flex-1 py-8 px-16" }, g = {
7
- key: 0,
8
- class: "flex-0 py-8 px-16",
9
- style: { "flex-basis": "120px" }
10
- }, k = {
11
- key: 1,
12
- class: "flex-0 py-8 px-16",
13
- style: { "flex-basis": "120px" }
14
- }, I = /* @__PURE__ */ f({
15
- __name: "IngredientBindedItem",
16
- props: {
17
- name: {},
18
- bindings: {}
19
- },
20
- setup(B) {
21
- function m(e, l) {
22
- var t;
23
- if (e.measurement) {
24
- const c = d(e.amount, e.measurement.conversion);
25
- return `${a(c, !1)} ${(t = e.measurement) == null ? void 0 : t.abbrev}`;
26
- }
27
- return `${a(e.amount, !1)} ${l.abbrev}`;
28
- }
29
- function i(e) {
30
- return e.unit !== void 0;
31
- }
32
- return (e, l) => (s(), n("div", y, [
33
- r("div", _, [
34
- r("div", v, o(e.name), 1),
35
- h
36
- ]),
37
- (s(!0), n(u, null, p(e.bindings, (t) => (s(), n("div", {
38
- key: t.id,
39
- class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
40
- }, [
41
- r("div", b, o(t.name), 1),
42
- i(t) ? (s(), n("div", g, o(m(t, t.unit)), 1)) : (s(), n("div", k, o(x(a)(t.amount, !1)), 1))
43
- ]))), 128))
44
- ]));
45
- }
46
- });
47
- export {
48
- I as _
49
- };