@feedmepos/mf-inventory-portal 0.0.17-dev.1 → 0.0.17-dev.3
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.
- package/dist/{ApprovalView-NJ4FogNu.js → ApprovalView-Cro8o8Th.js} +9 -9
- package/dist/{BindingsDialog-B-j1k1SE.js → BindingsDialog-C_6Sc7QV.js} +5 -5
- package/dist/{BindingsPicker-CEi3jyh0.js → BindingsPicker-97PCPC7b.js} +6 -6
- package/dist/{BindingsTable-DHYJ2Eqm.js → BindingsTable-Hneu1zEK.js} +26 -26
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-1XPAzm5R.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-euQmNhYq.js} +1 -1
- package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-DL98UqsQ.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-B1dIpiBE.js} +9 -9
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DqD-jNxc.js → FmUnitInput.vue_vue_type_script_setup_true_lang-RrTqtrzn.js} +3 -3
- package/dist/IngredientsView-Chl_Nwza.js +1633 -0
- package/dist/{IntegrationView-DxqyRxVR.js → IntegrationView-B1FJBf5V.js} +4 -4
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang--KLpvU2e.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-B1O2tP3s.js} +6 -6
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-HpuL5QhV.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C7p4N-ql.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-BGbCA7Al.js → PurchaseOrderPrintPreview-Q6w-mECy.js} +4 -4
- package/dist/{ReceiveRequestView-C1ae5dRi.js → ReceiveRequestView-DT5pFuLm.js} +13 -13
- package/dist/RecipeView-B0B9AjMs.js +581 -0
- package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-Dov3Uq2z.js +64 -0
- package/dist/{StockView-Pyk4MBIQ.js → StockView-Dnz7Q5u_.js} +13 -13
- package/dist/{SupplierView-CVZ7bOgA.js → SupplierView-DYUSnY0W.js} +8 -8
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Ctqjw3f1.js → TransferDetails.vue_vue_type_script_setup_true_lang-DG7IgsfE.js} +5 -5
- package/dist/{UnitView-DVauPXKw.js → UnitView-CdAqOSI4.js} +7 -7
- package/dist/{WarehouseView-BYivsQgQ.js → WarehouseView-AJTCViDZ.js} +4 -4
- package/dist/api/inventory.d.ts +102 -0
- package/dist/{app-DXqS7qYg.js → app-De0b6M_S.js} +2690 -2664
- package/dist/app.js +1 -1
- package/dist/components/FmDroppableField.vue.d.ts +75 -0
- package/dist/{date2-B96h4mWb.js → date2-DsZfEweX.js} +1 -1
- package/dist/{dayjs.min-CQkpEWlm.js → dayjs.min-C3MlIeO6.js} +2 -2
- package/dist/{decimal-DQOX97fs.js → decimal-CIfto74W.js} +1 -1
- package/dist/{fuzzy-Dr-kBYFA.js → fuzzy-DfJ2CA7_.js} +1 -1
- package/dist/helper/random.d.ts +2 -0
- package/dist/helper/xlsx.util.d.ts +1 -0
- package/dist/{init-date-range-6CJBD0GL.js → init-date-range-DVsJ_QSu.js} +1 -1
- package/dist/{layout-CVjYEZxq.js → layout-BrQ7Xgxg.js} +12 -12
- package/dist/{rules-B_-yQn9M.js → rules-B32JlLGo.js} +1 -1
- package/dist/{stock-estimate-DoU-A7bG.js → stock-estimate-CWilasb_.js} +2 -2
- package/dist/stores/inventory.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-D2Wuv0oV.js → supplier-BGVPsv_7.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-Bc0Yx1fK.js → use-inventory-binding-dialog-iyYqvDqU.js} +2 -2
- package/dist/views/ingredients/components/import-ingredients/ImportIngredientItem.vue.d.ts +12 -0
- package/dist/views/ingredients/components/import-ingredients/ImportIngredientItemProps.d.ts +6 -0
- package/dist/views/ingredients/components/import-ingredients/ImportIngredients.vue.d.ts +2 -0
- package/dist/views/ingredients/components/import-ingredients/ImportIngredientsProps.d.ts +5 -0
- package/dist/views/ingredients/helper/import-export.helper.d.ts +45 -0
- package/dist/views/ingredients/helper/sku-id.helper.d.ts +1 -0
- package/dist/xlsx-CRnWVsKF.js +24004 -0
- package/dist/xlsx.util-BSemF6vC.js +107 -0
- package/package.json +4 -4
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-BYi6BUwT.js +0 -49
- package/dist/IngredientsView-DNbppADe.js +0 -973
- package/dist/RecipeView-BwP8jlG0.js +0 -596
- package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js +0 -53
- package/dist/xlsx-Vw9D2Jo4.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-DsZfEweX.js";
|
|
3
|
+
import { u as y, w as k, r as S } from "./xlsx-CRnWVsKF.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.17-dev.
|
|
3
|
+
"version": "0.0.17-dev.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -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/
|
|
41
|
-
"@feedmepos/inventory
|
|
42
|
-
"@feedmepos/inventory-core": "^0.
|
|
40
|
+
"@feedmepos/inventory-core": "^0.2.15-alpha.9",
|
|
41
|
+
"@feedmepos/zod-inventory": "^1.0.9",
|
|
42
|
+
"@feedmepos/inventory-core-js": "^1.0.0"
|
|
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-B96h4mWb.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
|
-
};
|