@feedmepos/mf-inventory-portal 0.0.22-dev.9 → 0.0.23-dev.1
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/App-Y3Ez8Rjf.js +255 -0
- package/dist/ApprovalView-BUU1G4Q2.js +141 -0
- package/dist/{BindingsDialog-GzX9Bo2g.js → BindingsDialog-8wc4Q0JQ.js} +13 -12
- package/dist/{BindingsPicker-SbOetc0-.js → BindingsPicker-DGWN1LQc.js} +19 -18
- package/dist/{BindingsTable-CAcE5y8U.js → BindingsTable-7NJP2jT6.js} +20 -16
- package/dist/ClosingTemplateView-9s7vmwaT.js +1833 -0
- package/dist/FmDroppableField-8RzKjEdL.js +154 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B4DDh9-a.js +267 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-5DINn0ZB.js +436 -0
- package/dist/FmMultiselectDialog-7hok9sJP.js +411 -0
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CxR1FCft.js +326 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-FQ0HjuL3.js +51 -0
- package/dist/IngredientGroupView-C3maHTCg.js +610 -0
- package/dist/IngredientsView-DCR3IBkR.js +1613 -0
- package/dist/IntegrationView-gO4h89Wj.js +1227 -0
- package/dist/InventoryBindingForm-dh3GeyG-.js +4 -0
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJuo3i7W.js +278 -0
- package/dist/InventoryBindingSummary-BPoPcEoe.js +75 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1FCwvO8A.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-olm8sZKt.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BezTV43V.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-5HIWHR_f.js → PurchaseOrderPrintPreview-Dix_fIoo.js} +14 -13
- package/dist/ReceiveRequestView-DdPiYb2P.js +4082 -0
- package/dist/RecipeView-C4-a4IEW.js +597 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-Du2txrIP.js +7778 -0
- package/dist/SupplierView-D_09FbQh.js +1474 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9MOos--.js +1144 -0
- package/dist/TransferTemplateView-j3CRy6Lc.js +1262 -0
- package/dist/{UnitView-BpU0Yk7X.js → UnitView-BXw2Vwq1.js} +30 -29
- package/dist/{WarehouseView-DqxWgogc.js → WarehouseView-CKamiETC.js} +205 -202
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/api/bill.d.ts +86 -240
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +281 -88
- package/dist/api/netsuite.d.ts +32 -1
- package/dist/api/purchase-order-template.d.ts +4 -2
- package/dist/api/supplier.d.ts +1 -0
- package/dist/app-GUbzqEtW.js +33456 -0
- package/dist/app.d.ts +259 -6
- package/dist/app.js +8 -7
- package/dist/array-hChJVZLE.js +43 -0
- 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/date2-CLE9fB2R.js +117 -0
- package/dist/dayjs.min-CY1d38w7.js +282 -0
- package/dist/{decimal-DWbwRn_v.js → decimal-SIjO6Mjw.js} +1 -1
- package/dist/defineDeepModel-l40rX7kr.js +13 -0
- package/dist/extensions/array.d.ts +1 -0
- package/dist/feature-BXruKUhX.js +78 -0
- package/dist/{format-time-from-id-BnmaRuab.js → format-time-from-id-CcFsBXmk.js} +1 -1
- package/dist/format-unit-display-DEKg8cJm.js +1198 -0
- package/dist/fuzzy-CVOV9zJc.js +41 -0
- package/dist/googlemap-Dm8ERVai.js +97 -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/index-BX5KZXhI.js +22279 -0
- package/dist/index-CVsyOEb1.js +10545 -0
- package/dist/index-m9e9nYfl.js +45 -0
- package/dist/netsuite-DAKRv7zr.js +146 -0
- package/dist/normalizeArguments-DP7Hrren.js +1552 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/rules-DlnN8IP3.js +198 -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 +295 -9
- package/dist/stores/location.d.ts +508 -485
- package/dist/stores/supplier.d.ts +124 -4
- package/dist/stores/warehouse.d.ts +7 -4
- package/dist/style.css +1 -1
- package/dist/supplier-B21WlSAM.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-inventory-binding-dialog-D3x6xj2O.js +95 -0
- package/dist/{use-template-enabled-locations-2-ClBq9FjN.js → use-template-enabled-locations-2-z-b-UXef.js} +9 -8
- package/dist/useTabStorage-BkIVScW_.js +25 -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 -1002
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1013
- 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 +1913 -53
- 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 +2370 -327
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2304 -261
- 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 +43 -120
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +34 -4
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.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.d.ts +71 -82
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +38 -1
- 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 +1279 -1528
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +2207 -446
- 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 -251
- 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/views/warehouse/components/WarehouseForm.vue.d.ts +14 -8
- package/dist/{xlsx-DiOKvJ6l.js → xlsx-6mM1eNiL.js} +1525 -1525
- package/dist/xlsx.util-BLftcF4q.js +78 -0
- package/package.json +7 -4
- package/dist/ApprovalView-BPsScR5_.js +0 -129
- package/dist/ClosingTemplateView-DECwEnlK.js +0 -1066
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnogYrRE.js +0 -372
- package/dist/IngredientsView-8fT1Ljd5.js +0 -1758
- package/dist/IntegrationView-CjGLRM78.js +0 -1141
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DlhNc8Vk.js +0 -88
- package/dist/ReceiveRequestView-CXZv8g5U.js +0 -215
- package/dist/RecipeView-sB0Lgmob.js +0 -581
- package/dist/StockView-CY2kNohB.js +0 -1892
- package/dist/SupplierView-DTqeZPts.js +0 -827
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BBby29tW.js +0 -762
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-ByNQap9n.js +0 -1498
- package/dist/TransferTemplateView-DkRVfAox.js +0 -1277
- package/dist/app-BuyAj4kw.js +0 -69068
- package/dist/defineDeepModel-DuVmbMwq.js +0 -13
- package/dist/id-to-date-CI5Vv0Ji.js +0 -30
- package/dist/purchase-order-transaction-type-DrFJFvtK.js +0 -676
- package/dist/stores/netsuite.d.ts +0 -49
- package/dist/supplier-BQyK2eSZ.js +0 -69
- package/dist/xlsx.util-CZ7zYxdP.js +0 -109
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export interface NetSuiteState {
|
|
2
|
-
setting: Omit<FdoNetSuiteSetting, 'realm' | 'accessToken'>;
|
|
3
|
-
subsidiaryOptions: NetSuiteSubsidiaryDto[];
|
|
4
|
-
}
|
|
5
|
-
export declare function useNetSuiteStore(): {
|
|
6
|
-
readonly isEnabled: boolean;
|
|
7
|
-
readonly state: {
|
|
8
|
-
setting: {
|
|
9
|
-
_id: string;
|
|
10
|
-
items: {
|
|
11
|
-
id: string;
|
|
12
|
-
netSuiteId: string;
|
|
13
|
-
unitTypeId: string;
|
|
14
|
-
unitOfMeasureId: string;
|
|
15
|
-
subsidiaryIds: string[];
|
|
16
|
-
}[];
|
|
17
|
-
syncedAt?: string | null | undefined;
|
|
18
|
-
enable: boolean;
|
|
19
|
-
locations: {
|
|
20
|
-
type: "restaurant" | "warehouse";
|
|
21
|
-
id: string;
|
|
22
|
-
name: string;
|
|
23
|
-
netSuiteId: string;
|
|
24
|
-
}[];
|
|
25
|
-
units: {
|
|
26
|
-
id: string;
|
|
27
|
-
measurements: {
|
|
28
|
-
id: string;
|
|
29
|
-
netSuiteId: string;
|
|
30
|
-
}[];
|
|
31
|
-
netSuiteId: string;
|
|
32
|
-
}[];
|
|
33
|
-
};
|
|
34
|
-
subsidiaryOptions: {
|
|
35
|
-
id: string;
|
|
36
|
-
name: string;
|
|
37
|
-
country: string;
|
|
38
|
-
currency: string;
|
|
39
|
-
parentId?: string | undefined;
|
|
40
|
-
children: any[];
|
|
41
|
-
}[];
|
|
42
|
-
};
|
|
43
|
-
readonly subsidiaryOptions: {
|
|
44
|
-
label: string;
|
|
45
|
-
value: FdoPurchaseOrderSubsidiaryNetSuiteSetting;
|
|
46
|
-
}[];
|
|
47
|
-
readSetting(): Promise<void>;
|
|
48
|
-
readSubsidiaryOptions(): Promise<void>;
|
|
49
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { n as S, j as u, T as m, V as y } from "./app-BuyAj4kw.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,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-BuyAj4kw.js";
|
|
3
|
-
import { useI18n as k } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as y, w as S, r as $ } from "./xlsx-DiOKvJ6l.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
|
-
};
|