@feedmepos/mf-inventory-portal 0.0.22-dev.36 → 0.0.22-dev.38
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-av_qng0N.js → ApprovalView-B1EiHn4f.js} +8 -8
- package/dist/{BindingsDialog-VZ6YelwP.js → BindingsDialog-DmYWCMdc.js} +9 -9
- package/dist/{BindingsPicker-BFYv2ftI.js → BindingsPicker-B35A7Px5.js} +17 -17
- package/dist/{BindingsTable-DFowW8vT.js → BindingsTable-CtN6XTmL.js} +1 -1
- package/dist/{ClosingTemplateView-DNcgyBVw.js → ClosingTemplateView-Ch8hg35a.js} +15 -15
- package/dist/FmDroppableField-DK78vkN3.js +152 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CAZ4P0Ax.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-0p8dn-rc.js} +76 -76
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DqOb7e4M.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DSQW1Ayz.js} +20 -20
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bb0W0wUH.js +51 -0
- package/dist/IngredientsView-C47jIp0f.js +1611 -0
- package/dist/{IntegrationView-DT5F9V0h.js → IntegrationView-Dulaskd9.js} +71 -71
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CXw4tAI_.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-btsYefZJ.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C6a6F_jD.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BGLxTaW8.js} +16 -16
- package/dist/{PurchaseOrderPrintPreview-BMCy5C1z.js → PurchaseOrderPrintPreview-BtDEZAgl.js} +7 -7
- package/dist/{ReceiveRequestView-DBU59iYm.js → ReceiveRequestView-Cf6UV1Gz.js} +1042 -1029
- package/dist/{RecipeView-Brnk8Ar7.js → RecipeView-MagbCdki.js} +30 -29
- package/dist/StockView-D1TK5omK.js +7762 -0
- package/dist/{SupplierView-C0GT_JzY.js → SupplierView-CIUY0y12.js} +11 -11
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BzJ8TnL_.js → TransferDetails.vue_vue_type_script_setup_true_lang-CacJUhOj.js} +99 -101
- package/dist/TransferTemplateView-CetnHs4Q.js +2054 -0
- package/dist/{UnitView-Dw2xLWy4.js → UnitView-BDZRBWlk.js} +16 -16
- package/dist/{WarehouseView-Cgf1mP8s.js → WarehouseView-DtUxLB_u.js} +20 -20
- package/dist/api/bill.d.ts +84 -238
- package/dist/api/purchase-order-template.d.ts +4 -2
- package/dist/{app-Iz-opVBA.js → app-BGqgEJv-.js} +18166 -18188
- package/dist/app.js +2 -2
- package/dist/{decimal-ffsKJesh.js → decimal-NPqoitzq.js} +1 -1
- package/dist/defineDeepModel-C4ebJegy.js +13 -0
- package/dist/format-time-from-id-DkB5tphe.js +15 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/purchase-order-transaction-type-ag48uMYt.js +348 -0
- package/dist/stores/inventory.d.ts +63 -0
- package/dist/stores/location.d.ts +89 -0
- package/dist/stores/supplier.d.ts +120 -3
- package/dist/stores/warehouse.d.ts +7 -4
- package/dist/supplier-CBaaZ4vA.js +70 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-template-enabled-locations-2-BSLLHtkm.js → use-template-enabled-locations-2-CYsM7ABF.js} +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +2 -2
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +10 -6
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1850 -5
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -230
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +14 -8
- package/dist/{xlsx-C8qXPxB4.js → xlsx-DQC0TWcU.js} +651 -651
- package/dist/xlsx.util-N5bu_PXw.js +78 -0
- package/package.json +3 -3
- package/dist/IngredientsView-afICUj_U.js +0 -1755
- package/dist/StockView-BtTZNhlp.js +0 -1909
- package/dist/TransferTemplateView-SrBMTzU-.js +0 -1237
- package/dist/defineDeepModel-CDrYKSnU.js +0 -13
- package/dist/format-time-from-id-e9QU46u4.js +0 -15
- package/dist/purchase-order-transaction-type-DN3Czz6K.js +0 -338
- package/dist/supplier-DdJIh1nj.js +0 -69
- package/dist/xlsx.util-DGLr1W_5.js +0 -109
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { u, a as m, r as d } from "./xlsx-DQC0TWcU.js";
|
|
2
|
+
function* x(o) {
|
|
3
|
+
const [e, n] = o.split(":"), t = /\d+/, l = t.exec(e), c = t.exec(n);
|
|
4
|
+
if (!l || !c)
|
|
5
|
+
throw new Error(`Cannot parse row range for range: ${o}`);
|
|
6
|
+
const s = Number(l[0]), a = Number(c[0]);
|
|
7
|
+
for (let r = s; r <= a; r++)
|
|
8
|
+
yield r;
|
|
9
|
+
}
|
|
10
|
+
function* p(o) {
|
|
11
|
+
const [e, n] = o.split(":"), t = /[^\d]+/, l = t.exec(e), c = t.exec(n);
|
|
12
|
+
if (!l || !c)
|
|
13
|
+
throw new Error(`Cannot parse row range for range: ${o}`);
|
|
14
|
+
let s = 0, a = "A";
|
|
15
|
+
for (yield a; a !== c[0]; ) {
|
|
16
|
+
s++;
|
|
17
|
+
const r = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
18
|
+
let i = s, h = !1, f = "";
|
|
19
|
+
do {
|
|
20
|
+
const w = i % r.length;
|
|
21
|
+
i = Math.floor(i / r.length), f += r.charAt(w), h = i > 0, i -= 1;
|
|
22
|
+
} while (h);
|
|
23
|
+
a = f.split("").reverse().join(""), yield a;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function g(o) {
|
|
27
|
+
var t;
|
|
28
|
+
const e = [], n = o["!ref"];
|
|
29
|
+
if (!n) return e;
|
|
30
|
+
for (const l of x(n)) {
|
|
31
|
+
const c = [];
|
|
32
|
+
for (const s of p(n))
|
|
33
|
+
c.push(((t = o[`${s}${l}`]) == null ? void 0 : t.w) ?? "");
|
|
34
|
+
e.push(c);
|
|
35
|
+
}
|
|
36
|
+
return e;
|
|
37
|
+
}
|
|
38
|
+
function k(o, e, n = "Sheet1") {
|
|
39
|
+
const t = u.aoa_to_sheet([e, ...o]), l = o.reduce((a, r) => Math.max(a, r.length), 0), c = Array.from({ length: l }).map((a, r) => {
|
|
40
|
+
const i = o.map((h) => `${h[r]}`).reduce((h, f) => Math.max(h, f.length + 3), 0);
|
|
41
|
+
return {
|
|
42
|
+
wch: Math.max(i, 5)
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
t["!cols"] = c;
|
|
46
|
+
const s = u.book_new();
|
|
47
|
+
return u.book_append_sheet(s, t, n), s;
|
|
48
|
+
}
|
|
49
|
+
function y(o, e) {
|
|
50
|
+
const n = u.aoa_to_sheet([e, ...o]), t = o.reduce((c, s) => Math.max(c, s.length), 0), l = Array.from({ length: t }).map((c, s) => {
|
|
51
|
+
const a = o.map((r) => `${r[s]}`).reduce((r, i) => Math.max(r, i.length + 3), 0);
|
|
52
|
+
return {
|
|
53
|
+
wch: Math.max(a, 5)
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
return n["!cols"] = l, n;
|
|
57
|
+
}
|
|
58
|
+
function _(o, e) {
|
|
59
|
+
const n = u.book_new();
|
|
60
|
+
e ?? (e = Object.keys(o));
|
|
61
|
+
for (const t of e)
|
|
62
|
+
u.book_append_sheet(n, o[t], String(t));
|
|
63
|
+
return n;
|
|
64
|
+
}
|
|
65
|
+
function S(o, e) {
|
|
66
|
+
m(o, e, { compression: !0 });
|
|
67
|
+
}
|
|
68
|
+
async function b(o) {
|
|
69
|
+
return d(await o.arrayBuffer());
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
y as a,
|
|
73
|
+
_ as b,
|
|
74
|
+
S as d,
|
|
75
|
+
b as r,
|
|
76
|
+
g as s,
|
|
77
|
+
k as t
|
|
78
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-inventory-portal",
|
|
3
|
-
"version": "0.0.22-dev.
|
|
3
|
+
"version": "0.0.22-dev.38",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"vue-router": "^4.4.0",
|
|
39
39
|
"xlsx": "^0.18.5",
|
|
40
40
|
"zod": "3.17.9",
|
|
41
|
-
"@feedmepos/inventory-core": "^0.
|
|
41
|
+
"@feedmepos/inventory-core-js": "^1.0.0",
|
|
42
42
|
"@feedmepos/zod-inventory": "^1.0.10",
|
|
43
|
-
"@feedmepos/inventory-core
|
|
43
|
+
"@feedmepos/inventory-core": "^0.2.18"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@rushstack/eslint-patch": "^1.10.3",
|