@feedmepos/mf-inventory-portal 0.0.25-dev.7 → 0.0.25-dev.8
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-qJehfAde.js → App-CKLQeRNl.js} +1 -1
- package/dist/{ApprovalView-BuqKIEPL.js → ApprovalView-BWO2tkbO.js} +6 -6
- package/dist/{BindingsDialog-BrF-YAJ2.js → BindingsDialog-C0kTZLOn.js} +9 -9
- package/dist/{BindingsPicker-DK41dcoG.js → BindingsPicker-DjcS3uTL.js} +10 -10
- package/dist/{BindingsTable-DxlRhKzN.js → BindingsTable-Ctpv958D.js} +10 -10
- package/dist/{ClosingDraftView-CpGQMN37.js → ClosingDraftView-CsAPSZPc.js} +2 -2
- package/dist/{ClosingTemplateView-4l891KsC.js → ClosingTemplateView-D0HWVhk3.js} +477 -492
- package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-CyHyOhG6.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-BF0lKP9Y.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DJfBmiRt.js +211 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-3LU_3Y8h.js → FmUnitInput.vue_vue_type_script_setup_true_lang-qZ7Kx-KR.js} +1 -1
- package/dist/{IngredientGroupView-Bjv9Kih7.js → IngredientGroupView-Dc3glXN3.js} +1 -1
- package/dist/{IngredientsView-ChJbe-U_.js → IngredientsView-btzrUQ1-.js} +392 -382
- package/dist/{IntegrationView-Cmh47qP7.js → IntegrationView-DO1SF1Ca.js} +660 -623
- package/dist/{InventoryBindingForm-GmcCTBqN.js → InventoryBindingForm-_2p-YetL.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CQrjMOFh.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7ump1tl.js} +5 -5
- package/dist/{InventoryBindingSummary-w1pFGR3C.js → InventoryBindingSummary-CEdLu3d9.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cxr2xhRR.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-kLdZ5acK.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CzxVUAC8.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Da0gmGST.js} +1 -1
- package/dist/{PublishView-pWAEdGLi.js → PublishView-CXTiPWIx.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-CZczBXL2.js → PurchaseOrderPrintPreview-DBviMTyA.js} +1 -1
- package/dist/{ReceiveRequestView-tWyQCrIN.js → ReceiveRequestView-Ct1AQDGK.js} +8 -8
- package/dist/{RecipeView-Dy1BBW3o.js → RecipeView-C0HiPNvf.js} +3 -3
- package/dist/{StockView-B0c0FiPr.js → StockView-BG8jsV_X.js} +7 -7
- package/dist/{SupplierView-BUs8xZPq.js → SupplierView-th75_ohq.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BA0HIuSW.js → TransferDetails.vue_vue_type_script_setup_true_lang-n7fH8GRs.js} +19 -19
- package/dist/{TransferTemplateView-MSbvSo96.js → TransferTemplateView-Dcz6xGR_.js} +443 -460
- package/dist/{UnitView-GBK0ovxt.js → UnitView-lnoMsoBN.js} +3 -3
- package/dist/{WarehouseView-CXoj99HO.js → WarehouseView-ChXcNnmp.js} +1 -1
- package/dist/{app-Du-JrqLm.js → app-B4RHEuan.js} +6283 -6208
- package/dist/app.js +1 -1
- package/dist/components/FmLockableField.vue.d.ts +3 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +9 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +2 -0
- package/dist/{decimal-BXePRNLM.js → decimal-BocxWSo6.js} +1 -1
- package/dist/{format-unit-display-BdC0fMRb.js → format-unit-display-E_NtfEtV.js} +2 -2
- package/dist/helper/fuzzy.d.ts +10 -0
- package/dist/{index-irnhqIWw.js → index-B-MhJgPv.js} +3 -3
- package/dist/{index-cY9fiIBU.js → index-ro6xANOo.js} +1 -1
- package/dist/{stock-CE5Qq59r.js → stock-DpmweZQd.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-Cy-jlD0j.js → supplier--P-eubcS.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-ingredient-select-dialog-C7WZf5D4.js +52 -0
- package/dist/{use-inventory-binding-dialog-nHDQBRL3.js → use-inventory-binding-dialog-DW_kAtLh.js} +1 -1
- package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +16 -0
- package/dist/{vue-i18n-DIA7c33f.js → vue-i18n-SeWrkOlu.js} +134 -134
- package/package.json +3 -3
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DRqpc9k0.js +0 -286
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineStore as y } from "pinia";
|
|
2
|
+
import { a as S, J as b } from "./app-B4RHEuan.js";
|
|
3
|
+
import { useDialog as A } from "@feedmepos/ui-library";
|
|
4
|
+
import { useI18n as I } from "@feedmepos/mf-common";
|
|
5
|
+
import "vue";
|
|
6
|
+
const B = y(
|
|
7
|
+
"ingredientSelectDialog",
|
|
8
|
+
function() {
|
|
9
|
+
const { t: s } = I(), n = S(), m = A();
|
|
10
|
+
async function a(l, u) {
|
|
11
|
+
const p = n.skus, g = u ?? ((t) => n.skuByCode[t]), d = p.map(
|
|
12
|
+
(t) => {
|
|
13
|
+
var e, o, i, c;
|
|
14
|
+
return {
|
|
15
|
+
label: t.name,
|
|
16
|
+
sublabel: t.code,
|
|
17
|
+
value: t._id,
|
|
18
|
+
searchKeys: (e = t.customAttributes) != null && e.tag ? [(o = t.customAttributes) == null ? void 0 : o.tag] : void 0,
|
|
19
|
+
tags: (i = t.customAttributes) != null && i.tag ? [(c = t.customAttributes) == null ? void 0 : c.tag] : void 0
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
), f = l, { promise: v, resolve: r } = Promise.withResolvers();
|
|
23
|
+
return m.open({
|
|
24
|
+
title: s("inventory.transfer.form.items.selectItem"),
|
|
25
|
+
closeButton: !0,
|
|
26
|
+
contentComponent: b,
|
|
27
|
+
contentComponentProps: {
|
|
28
|
+
modelValue: f,
|
|
29
|
+
items: d,
|
|
30
|
+
virtualScroll: !0,
|
|
31
|
+
onClose: () => r(null)
|
|
32
|
+
},
|
|
33
|
+
primaryActions: {
|
|
34
|
+
text: s("common.confirm"),
|
|
35
|
+
close: !0
|
|
36
|
+
},
|
|
37
|
+
secondaryActions: {
|
|
38
|
+
text: s("common.close"),
|
|
39
|
+
close: !0,
|
|
40
|
+
variant: "tertiary"
|
|
41
|
+
}
|
|
42
|
+
}).onPrimary((t) => {
|
|
43
|
+
const e = t.map((o) => g(o));
|
|
44
|
+
r(e);
|
|
45
|
+
}), v;
|
|
46
|
+
}
|
|
47
|
+
return { promptSelectIngredients: a };
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
export {
|
|
51
|
+
B as u
|
|
52
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const useIngredientSelectDialog: import("pinia").StoreDefinition<"ingredientSelectDialog", import("pinia")._UnwrapAll<Pick<{
|
|
2
|
+
promptSelectIngredients: {
|
|
3
|
+
(skuIds: string[]): Promise<FdoInventorySku[] | null>;
|
|
4
|
+
<T>(skuIds: string[], mapper?: ((e: string) => T) | undefined): Promise<T[] | null>;
|
|
5
|
+
};
|
|
6
|
+
}, never>>, Pick<{
|
|
7
|
+
promptSelectIngredients: {
|
|
8
|
+
(skuIds: string[]): Promise<FdoInventorySku[] | null>;
|
|
9
|
+
<T>(skuIds: string[], mapper?: ((e: string) => T) | undefined): Promise<T[] | null>;
|
|
10
|
+
};
|
|
11
|
+
}, never>, Pick<{
|
|
12
|
+
promptSelectIngredients: {
|
|
13
|
+
(skuIds: string[]): Promise<FdoInventorySku[] | null>;
|
|
14
|
+
<T>(skuIds: string[], mapper?: ((e: string) => T) | undefined): Promise<T[] | null>;
|
|
15
|
+
};
|
|
16
|
+
}, "promptSelectIngredients">>;
|