@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
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { F as y } from "./FmMultiselectDialog-7hok9sJP.js";
|
|
2
|
+
import { a as g } from "./app-GUbzqEtW.js";
|
|
3
|
+
import { useDialog as C } from "@feedmepos/ui-library";
|
|
4
|
+
function E() {
|
|
5
|
+
const c = g(), u = C();
|
|
6
|
+
async function v(e, d, s, p = []) {
|
|
7
|
+
const m = e.filter((t) => t.type === "SKU"), a = e.filter((t) => t.type === "RECIPE"), i = (s ? c.skus.filter(
|
|
8
|
+
(t) => {
|
|
9
|
+
var n, o;
|
|
10
|
+
return !p.some((r) => r === t._id) && t._id !== s && !((o = (n = t.convert) == null ? void 0 : n.inventoryBindings) != null && o.some((r) => r.id === s));
|
|
11
|
+
}
|
|
12
|
+
) : c.skus).map((t) => ({
|
|
13
|
+
label: t.name,
|
|
14
|
+
sublabel: t.code,
|
|
15
|
+
value: t
|
|
16
|
+
})), l = i.filter((t) => m.find((n) => n.id === t.value._id)).map((t) => t.value);
|
|
17
|
+
u.open({
|
|
18
|
+
title: "Select ingredients",
|
|
19
|
+
contentComponent: y,
|
|
20
|
+
contentComponentProps: {
|
|
21
|
+
items: i,
|
|
22
|
+
modelValue: l,
|
|
23
|
+
virtualScroll: !0
|
|
24
|
+
},
|
|
25
|
+
primaryActions: {
|
|
26
|
+
text: "Confirm",
|
|
27
|
+
close: !0
|
|
28
|
+
},
|
|
29
|
+
secondaryActions: {
|
|
30
|
+
text: "Close",
|
|
31
|
+
close: !0,
|
|
32
|
+
variant: "tertiary"
|
|
33
|
+
}
|
|
34
|
+
}).onPrimary((t) => {
|
|
35
|
+
const n = [
|
|
36
|
+
...a,
|
|
37
|
+
...e.filter((o) => t.find((r) => r._id === o.id)),
|
|
38
|
+
...t.filter((o) => !e.find((r) => r.id === o._id)).map((o) => ({
|
|
39
|
+
type: "SKU",
|
|
40
|
+
id: o._id,
|
|
41
|
+
amount: {
|
|
42
|
+
amount: 1,
|
|
43
|
+
precision: 0
|
|
44
|
+
}
|
|
45
|
+
}))
|
|
46
|
+
];
|
|
47
|
+
d(n);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
async function b(e, d, s = []) {
|
|
51
|
+
const p = e.filter((i) => i.type === "SKU"), m = e.filter((i) => i.type === "RECIPE"), a = c.recipes.filter((i) => !s.includes(i._id)).map((i) => ({
|
|
52
|
+
label: i.name,
|
|
53
|
+
value: i
|
|
54
|
+
})), f = a.filter((i) => m.find((l) => l.id === i.value._id)).map((i) => i.value);
|
|
55
|
+
u.open({
|
|
56
|
+
title: "Select recipes",
|
|
57
|
+
contentComponent: y,
|
|
58
|
+
contentComponentProps: {
|
|
59
|
+
items: a,
|
|
60
|
+
modelValue: f,
|
|
61
|
+
virtualScroll: !0
|
|
62
|
+
},
|
|
63
|
+
primaryActions: {
|
|
64
|
+
text: "Confirm",
|
|
65
|
+
close: !0
|
|
66
|
+
},
|
|
67
|
+
secondaryActions: {
|
|
68
|
+
text: "Close",
|
|
69
|
+
close: !0,
|
|
70
|
+
variant: "tertiary"
|
|
71
|
+
}
|
|
72
|
+
}).onPrimary((i) => {
|
|
73
|
+
const l = [
|
|
74
|
+
...e.filter((t) => i.find((n) => n._id === t.id)),
|
|
75
|
+
...i.filter((t) => !e.find((n) => n.id === t._id)).map((t) => ({
|
|
76
|
+
type: "RECIPE",
|
|
77
|
+
id: t._id,
|
|
78
|
+
amount: {
|
|
79
|
+
amount: 1,
|
|
80
|
+
precision: 0
|
|
81
|
+
}
|
|
82
|
+
})),
|
|
83
|
+
...p
|
|
84
|
+
];
|
|
85
|
+
d(l);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
promptIngredientsBinding: v,
|
|
90
|
+
promptRecipesBinding: b
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export {
|
|
94
|
+
E as u
|
|
95
|
+
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as p } from "./FmMultiselectDialog-7hok9sJP.js";
|
|
2
|
+
import { u as d } from "./app-GUbzqEtW.js";
|
|
2
3
|
import { useI18n as f } from "@feedmepos/mf-common";
|
|
3
4
|
import { useDialog as h } from "@feedmepos/ui-library";
|
|
4
|
-
import { computed as
|
|
5
|
-
function
|
|
6
|
-
const
|
|
5
|
+
import { computed as r } from "vue";
|
|
6
|
+
function D(s) {
|
|
7
|
+
const c = h(), a = d(), { t: n } = f();
|
|
7
8
|
function i() {
|
|
8
9
|
var t;
|
|
9
|
-
|
|
10
|
+
c.open({
|
|
10
11
|
title: "Select at least one location",
|
|
11
12
|
contentComponent: p,
|
|
12
13
|
contentComponentProps: {
|
|
@@ -30,11 +31,11 @@ function S(s) {
|
|
|
30
31
|
o.length ? s.setLocations(o) : s.setLocations(null);
|
|
31
32
|
});
|
|
32
33
|
}
|
|
33
|
-
const l =
|
|
34
|
+
const l = r(() => {
|
|
34
35
|
var e;
|
|
35
36
|
const t = /* @__PURE__ */ new Set([...a.locations.map((o) => o.doc._id)]);
|
|
36
37
|
return (e = s.getLocations()) == null ? void 0 : e.filter((o) => t.has(o.doc._id));
|
|
37
|
-
}), u =
|
|
38
|
+
}), u = r(() => {
|
|
38
39
|
const t = s.getLocations();
|
|
39
40
|
return t ? t.reduce(
|
|
40
41
|
(e, o) => {
|
|
@@ -81,5 +82,5 @@ function S(s) {
|
|
|
81
82
|
};
|
|
82
83
|
}
|
|
83
84
|
export {
|
|
84
|
-
|
|
85
|
+
D as u
|
|
85
86
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const t = {}, n = () => ({
|
|
2
|
+
get length() {
|
|
3
|
+
return Object.keys(t).length;
|
|
4
|
+
},
|
|
5
|
+
key(e) {
|
|
6
|
+
return Object.keys(t)[e] ?? null;
|
|
7
|
+
},
|
|
8
|
+
getItem(e) {
|
|
9
|
+
return t[e] ?? null;
|
|
10
|
+
},
|
|
11
|
+
setItem(e, r) {
|
|
12
|
+
t[e] = r;
|
|
13
|
+
},
|
|
14
|
+
removeItem(e) {
|
|
15
|
+
delete t[e];
|
|
16
|
+
},
|
|
17
|
+
clear() {
|
|
18
|
+
Object.keys(t).forEach((e) => {
|
|
19
|
+
delete t[e];
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
n as u
|
|
25
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ClosingTemplateImportItemProps } from './ClosingTemplateImportItemProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ClosingTemplateImportItemProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ClosingTemplateImportItemProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
export default _default;
|
|
4
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
5
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
6
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
7
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
8
|
+
} : {
|
|
9
|
+
type: import('vue').PropType<T[K]>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
};
|