@feedmepos/mf-inventory-portal 0.0.22-dev.5 → 0.0.22-dev.50
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-CyIOcyG5.js +140 -0
- package/dist/{BindingsDialog-DQJhC3Mo.js → BindingsDialog-BXePN5iL.js} +10 -10
- package/dist/{BindingsPicker-YfbPb_dG.js → BindingsPicker-Bd_qb0aO.js} +15 -15
- package/dist/{BindingsTable-D3MVcHXZ.js → BindingsTable-BV-nP9HU.js} +4 -4
- package/dist/ClosingTemplateView-CSvWLccZ.js +1829 -0
- package/dist/FmDroppableField-DwZ6ujPh.js +154 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DpCoW_-F.js +266 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BpzreBHD.js +435 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-C8k7pSPT.js +51 -0
- package/dist/IngredientGroupView-C0hPeD41.js +608 -0
- package/dist/IngredientsView-CpwVIGXd.js +1608 -0
- package/dist/IntegrationView-Bt8pGAHS.js +1225 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-wsBLYBpB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yA-qJUUz.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BqcqoKyN.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-BcAmgmD8.js → PurchaseOrderPrintPreview-D3ugzCW_.js} +7 -7
- package/dist/ReceiveRequestView-D14YTEEe.js +4073 -0
- package/dist/RecipeView-D0WsMfKm.js +594 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-sxI0L6MP.js +7770 -0
- package/dist/SupplierView-clAkARuW.js +1468 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9NU1m6S.js +1150 -0
- package/dist/TransferTemplateView-DpI6kVqX.js +1258 -0
- package/dist/{UnitView-B95q8Xrj.js → UnitView-CneJsDum.js} +18 -18
- package/dist/{WarehouseView-CHGXvyeS.js → WarehouseView-DYbFWTlh.js} +176 -177
- package/dist/api/bill.d.ts +84 -238
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +282 -91
- package/dist/api/netsuite.d.ts +71 -0
- package/dist/api/purchase-order-template.d.ts +4 -6
- package/dist/api/supplier.d.ts +1 -0
- package/dist/{app-CfXF4jdF.js → app-B4pi48sM.js} +26414 -24985
- package/dist/app.d.ts +88 -3
- package/dist/app.js +3 -3
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
- package/dist/components/map/GoogleMap.vue.d.ts +4 -4
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
- package/dist/{decimal-BZ7tX47r.js → decimal-C8O2p3Sg.js} +1 -1
- package/dist/defineDeepModel-BXP1vLGf.js +13 -0
- package/dist/extensions/array.d.ts +1 -0
- package/dist/format-time-from-id-DgW7OJL_.js +15 -0
- package/dist/format-unit-display-BP4O0Pym.js +1195 -0
- package/dist/helper/rules.d.ts +7 -0
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/stores/api.d.ts +1 -0
- package/dist/stores/feature.d.ts +0 -1
- package/dist/stores/helper/core-store-proxy.d.ts +3 -0
- package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
- package/dist/stores/integration/foodmarkethub.d.ts +391 -0
- package/dist/stores/integration/index.d.ts +7 -0
- package/dist/stores/integration/netsuite.d.ts +102 -0
- package/dist/stores/inventory.d.ts +294 -9
- package/dist/stores/location.d.ts +508 -503
- package/dist/stores/supplier.d.ts +124 -4
- package/dist/style.css +1 -1
- package/dist/supplier-D-8XhuF_.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-template-enabled-locations-2-C2E4j3k-.js +85 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +877 -1038
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1049
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
- package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
- package/dist/views/integration/NetSuite.vue.d.ts +2 -0
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +49 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1961 -87
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2377 -292
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2329 -244
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.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/components/dialog/AdjustedItemForm.vue.d.ts +32 -2
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
- package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
- package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
- 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 +1277 -1478
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1697 -906
- 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 -247
- package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/{xlsx-BtP1Qjj6.js → xlsx-Dsy-fxZw.js} +1525 -1525
- package/dist/xlsx.util-CxGmvsp9.js +78 -0
- package/package.json +10 -7
- package/dist/ApprovalView-BdaNwUBc.js +0 -129
- package/dist/ClosingTemplateView-BpErgepi.js +0 -1030
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D3B7kOlU.js +0 -372
- package/dist/IngredientsView-GqrkpCm5.js +0 -1758
- package/dist/IntegrationView-7c3MpUzS.js +0 -1141
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BIwdObb1.js +0 -88
- package/dist/ReceiveRequestView-BAuXvzQW.js +0 -215
- package/dist/RecipeView-C6tZPQ-K.js +0 -581
- package/dist/StockView-4uXHYz4E.js +0 -1892
- package/dist/SupplierView-CuWvKCWY.js +0 -827
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CTQ9HIqf.js +0 -740
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang--6JoXOLD.js +0 -1409
- package/dist/TransferTemplateView-D1Lfi3aW.js +0 -1230
- package/dist/defineDeepModel-BKAs9qN6.js +0 -13
- package/dist/format-time-from-id-B7ZE4sdX.js +0 -15
- package/dist/id-to-date-D1lOqIir.js +0 -30
- package/dist/purchase-order-transaction-type-tZ7cj1dz.js +0 -702
- package/dist/supplier-BIDBk5S6.js +0 -69
- package/dist/use-template-enabled-locations-DlMnS9WJ.js +0 -57
- package/dist/xlsx.util-BKFiH-ig.js +0 -109
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { n as S, j as u, T as m, V as y } from "./app-CfXF4jdF.js";
|
|
2
|
-
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
3
|
-
import { defineStore as b } from "pinia";
|
|
4
|
-
import { ref as l, computed as v } from "vue";
|
|
5
|
-
const p = S((s, n) => {
|
|
6
|
-
function a() {
|
|
7
|
-
var o;
|
|
8
|
-
const e = c(), r = u(), t = r.businessLevel, i = `business_${((o = e.currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, d = r.currentLocation.dbName;
|
|
9
|
-
return t ? i : d;
|
|
10
|
-
}
|
|
11
|
-
return {
|
|
12
|
-
async readSuppliers() {
|
|
13
|
-
const e = a(), r = `${s.inventoryBackendUrl}/${e}/supplier`;
|
|
14
|
-
return await n.get(r);
|
|
15
|
-
},
|
|
16
|
-
async readLocationSuppliers() {
|
|
17
|
-
const r = u().currentLocation.dbName, t = `${s.inventoryBackendUrl}/${r}/supplier`;
|
|
18
|
-
return await n.get(t);
|
|
19
|
-
},
|
|
20
|
-
async readBusinessSuppliers() {
|
|
21
|
-
var i;
|
|
22
|
-
const r = `business_${((i = c().currentBusiness.value) == null ? void 0 : i._id) ?? ""}`, t = `${s.inventoryBackendUrl}/${r}/supplier`;
|
|
23
|
-
return await n.get(t);
|
|
24
|
-
},
|
|
25
|
-
async createSupplier(e) {
|
|
26
|
-
const r = a(), t = `${s.inventoryBackendUrl}/${r}/supplier`;
|
|
27
|
-
return await n.post(t, e);
|
|
28
|
-
},
|
|
29
|
-
async updateSupplier(e) {
|
|
30
|
-
const r = a(), t = `${s.inventoryBackendUrl}/${r}/supplier`;
|
|
31
|
-
return await n.put(t, e);
|
|
32
|
-
},
|
|
33
|
-
async deleteSupplier(e) {
|
|
34
|
-
const r = a(), t = `${s.inventoryBackendUrl}/${r}/supplier`;
|
|
35
|
-
return await n.delete(t, e);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
}), f = b("supplier", () => {
|
|
39
|
-
const s = l(new Array()), n = l(new Array()), a = v(() => [...s.value, ...n.value]);
|
|
40
|
-
return {
|
|
41
|
-
async readSuppliers() {
|
|
42
|
-
const e = p();
|
|
43
|
-
s.value = await e.readLocationSuppliers(), n.value = await e.readBusinessSuppliers();
|
|
44
|
-
},
|
|
45
|
-
async createSupplier(e) {
|
|
46
|
-
await p().createSupplier(e);
|
|
47
|
-
},
|
|
48
|
-
async updateSupplier(e) {
|
|
49
|
-
await p().updateSupplier(e);
|
|
50
|
-
},
|
|
51
|
-
async deleteSupplier(e) {
|
|
52
|
-
await p().deleteSupplier(e);
|
|
53
|
-
},
|
|
54
|
-
async init() {
|
|
55
|
-
const e = m();
|
|
56
|
-
try {
|
|
57
|
-
await this.readSuppliers();
|
|
58
|
-
} catch (r) {
|
|
59
|
-
throw r instanceof y || e.error("Error at reading suppliers"), r;
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
suppliers: a,
|
|
63
|
-
locationSuppliers: s,
|
|
64
|
-
businessSuppliers: n
|
|
65
|
-
};
|
|
66
|
-
});
|
|
67
|
-
export {
|
|
68
|
-
f as u
|
|
69
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { j as u, y as p } from "./app-CfXF4jdF.js";
|
|
2
|
-
import { useI18n as L } from "@feedmepos/mf-common";
|
|
3
|
-
import { useDialog as f } from "@feedmepos/ui-library";
|
|
4
|
-
import { computed as c } from "vue";
|
|
5
|
-
function S(e) {
|
|
6
|
-
const m = f(), i = u(), { t: a } = L(), l = c({
|
|
7
|
-
get() {
|
|
8
|
-
return Array.isArray(e.getLocations());
|
|
9
|
-
},
|
|
10
|
-
set(t) {
|
|
11
|
-
t ? e.setLocations([]) : e.setLocations(null);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
function r() {
|
|
15
|
-
var t;
|
|
16
|
-
m.open({
|
|
17
|
-
title: "Select at least one location",
|
|
18
|
-
contentComponent: p,
|
|
19
|
-
contentComponentProps: {
|
|
20
|
-
modelValue: ((t = s.value) == null ? void 0 : t.map((o) => o.doc._id)) ?? [],
|
|
21
|
-
items: i.locations.map((o) => ({
|
|
22
|
-
label: o.name,
|
|
23
|
-
sublabel: o.type,
|
|
24
|
-
value: o.doc._id
|
|
25
|
-
}))
|
|
26
|
-
},
|
|
27
|
-
primaryActions: {
|
|
28
|
-
text: a("common.confirm"),
|
|
29
|
-
close: !0
|
|
30
|
-
},
|
|
31
|
-
secondaryActions: {
|
|
32
|
-
text: a("common.close"),
|
|
33
|
-
close: !0
|
|
34
|
-
}
|
|
35
|
-
}).onPrimary((o) => {
|
|
36
|
-
e.setLocations(i.locations.filter((n) => o.includes(n.doc._id)));
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
const s = c(() => {
|
|
40
|
-
var o;
|
|
41
|
-
const t = /* @__PURE__ */ new Set([...i.locations.map((n) => n.doc._id)]);
|
|
42
|
-
return (o = e.getLocations()) == null ? void 0 : o.filter((n) => t.has(n.doc._id));
|
|
43
|
-
});
|
|
44
|
-
function d(t) {
|
|
45
|
-
var o;
|
|
46
|
-
e.setLocations((o = e.getLocations()) == null ? void 0 : o.filter((n) => n.doc._id !== t));
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
enabledLocations: s,
|
|
50
|
-
enabledLocationsSwitch: l,
|
|
51
|
-
promptSelectLocations: r,
|
|
52
|
-
removeLocation: d
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export {
|
|
56
|
-
S as u
|
|
57
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { defineComponent as g, openBlock as f, createElementBlock as u, createElementVNode as x, toDisplayString as d, unref as w, Fragment as M, renderList as v } from "vue";
|
|
2
|
-
import { a as h, k as b } from "./app-CfXF4jdF.js";
|
|
3
|
-
import { useI18n as k } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as y, w as S, r as $ } from "./xlsx-BtP1Qjj6.js";
|
|
5
|
-
const A = { class: "flex flex-col" }, B = { 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" }, E = { class: "flex-1 py-8 px-16" }, I = {
|
|
6
|
-
class: "flex-0 py-8 px-16",
|
|
7
|
-
style: { "flex-basis": "120px" }
|
|
8
|
-
}, N = { class: "flex-1 py-8 px-16" }, j = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "flex-0 py-8 px-16",
|
|
11
|
-
style: { "flex-basis": "120px" }
|
|
12
|
-
}, C = {
|
|
13
|
-
key: 1,
|
|
14
|
-
class: "flex-0 py-8 px-16",
|
|
15
|
-
style: { "flex-basis": "120px" }
|
|
16
|
-
}, X = /* @__PURE__ */ g({
|
|
17
|
-
__name: "IngredientBindedItem",
|
|
18
|
-
props: {
|
|
19
|
-
name: {},
|
|
20
|
-
bindings: {}
|
|
21
|
-
},
|
|
22
|
-
setup(o) {
|
|
23
|
-
const { t: n } = k();
|
|
24
|
-
function a(e, s) {
|
|
25
|
-
var t;
|
|
26
|
-
if (e.measurement) {
|
|
27
|
-
const c = b(e.amount, e.measurement.conversion);
|
|
28
|
-
return `${h(c, !1)} ${(t = e.measurement) == null ? void 0 : t.abbrev}`;
|
|
29
|
-
}
|
|
30
|
-
return `${h(e.amount, !1)} ${s.abbrev}`;
|
|
31
|
-
}
|
|
32
|
-
function r(e) {
|
|
33
|
-
return e.unit !== void 0;
|
|
34
|
-
}
|
|
35
|
-
return (e, s) => (f(), u("div", A, [
|
|
36
|
-
x("div", B, [
|
|
37
|
-
x("div", E, d(e.name), 1),
|
|
38
|
-
x("div", I, d(w(n)("inventory.ingredient.bindedItems.amount")), 1)
|
|
39
|
-
]),
|
|
40
|
-
(f(!0), u(M, null, v(e.bindings, (t) => (f(), u("div", {
|
|
41
|
-
key: t.id,
|
|
42
|
-
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
43
|
-
}, [
|
|
44
|
-
x("div", N, d(t.name), 1),
|
|
45
|
-
r(t) ? (f(), u("div", j, d(a(t, t.unit)), 1)) : (f(), u("div", C, d(w(h)(t.amount, !1)), 1))
|
|
46
|
-
]))), 128))
|
|
47
|
-
]));
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
function* F(o) {
|
|
51
|
-
const [n, a] = o.split(":"), r = /\d+/, e = r.exec(n), s = r.exec(a);
|
|
52
|
-
if (!e || !s)
|
|
53
|
-
throw new Error(`Cannot parse row range for range: ${o}`);
|
|
54
|
-
const t = Number(e[0]), c = Number(s[0]);
|
|
55
|
-
for (let l = t; l <= c; l++)
|
|
56
|
-
yield l;
|
|
57
|
-
}
|
|
58
|
-
function* L(o) {
|
|
59
|
-
const [n, a] = o.split(":"), r = /[^\d]+/, e = r.exec(n), s = r.exec(a);
|
|
60
|
-
if (!e || !s)
|
|
61
|
-
throw new Error(`Cannot parse row range for range: ${o}`);
|
|
62
|
-
let t = 0, c = "A";
|
|
63
|
-
for (yield c; c !== s[0]; ) {
|
|
64
|
-
t++;
|
|
65
|
-
const l = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
66
|
-
let i = t, m = !1, p = "";
|
|
67
|
-
do {
|
|
68
|
-
const _ = i % l.length;
|
|
69
|
-
i = Math.floor(i / l.length), p += l.charAt(_), m = i > 0, i -= 1;
|
|
70
|
-
} while (m);
|
|
71
|
-
c = p.split("").reverse().join(""), yield c;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function U(o) {
|
|
75
|
-
var r;
|
|
76
|
-
const n = [], a = o["!ref"];
|
|
77
|
-
if (!a) return n;
|
|
78
|
-
for (const e of F(a)) {
|
|
79
|
-
const s = [];
|
|
80
|
-
for (const t of L(a))
|
|
81
|
-
s.push(((r = o[`${t}${e}`]) == null ? void 0 : r.w) ?? "");
|
|
82
|
-
n.push(s);
|
|
83
|
-
}
|
|
84
|
-
return n;
|
|
85
|
-
}
|
|
86
|
-
function V(o, n, a = "Sheet1") {
|
|
87
|
-
const r = y.aoa_to_sheet([n, ...o]), e = o.reduce((c, l) => Math.max(c, l.length), 0), s = Array.from({ length: e }).map((c, l) => {
|
|
88
|
-
const i = o.map((m) => `${m[l]}`).reduce((m, p) => Math.max(m, p.length + 3), 0);
|
|
89
|
-
return {
|
|
90
|
-
wch: Math.max(i, 5)
|
|
91
|
-
};
|
|
92
|
-
});
|
|
93
|
-
r["!cols"] = s;
|
|
94
|
-
const t = y.book_new();
|
|
95
|
-
return y.book_append_sheet(t, r, a), t;
|
|
96
|
-
}
|
|
97
|
-
function H(o, n) {
|
|
98
|
-
S(o, n, { compression: !0 });
|
|
99
|
-
}
|
|
100
|
-
async function J(o) {
|
|
101
|
-
return $(await o.arrayBuffer());
|
|
102
|
-
}
|
|
103
|
-
export {
|
|
104
|
-
X as _,
|
|
105
|
-
H as d,
|
|
106
|
-
J as r,
|
|
107
|
-
U as s,
|
|
108
|
-
V as t
|
|
109
|
-
};
|