@feedmepos/mf-inventory-portal 0.0.19-dev.13 → 0.0.19-dev.14
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.vue.d.ts +1 -1
- package/dist/{ApprovalView-9MdmwrUz.js → ApprovalView-BY13XuOu.js} +5 -5
- package/dist/{BindingsDialog-C-q6Y04n.js → BindingsDialog-B3PP-XkE.js} +22 -22
- package/dist/{BindingsPicker-syyx9h8v.js → BindingsPicker-DL17pRty.js} +17 -17
- package/dist/{BindingsTable-CQ0WyX2i.js → BindingsTable-CjKOv7Yw.js} +29 -29
- package/dist/Entry.vue.d.ts +1 -1
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DoF7wwNT.js +306 -0
- package/dist/{IngredientsView-Ofs2UG-9.js → IngredientsView-C-rsKAsF.js} +294 -294
- package/dist/{IntegrationView-BCruLSTA.js → IntegrationView-BkhfPSjM.js} +278 -278
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bvw_BkWY.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Buc21sEN.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BLVAIHDv.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BRijSilS.js} +1 -1
- package/dist/PurchaseOrderPrintPreview-CGMMozPA.js +152 -0
- package/dist/{ReceiveRequestView-Dw-AC1Mw.js → ReceiveRequestView-Bk0pUeEm.js} +7 -7
- package/dist/{RecipeView-B5WkUzLO.js → RecipeView-kzA9kIg8.js} +181 -181
- package/dist/Standalone.vue.d.ts +1 -1
- package/dist/{StockView-CMTxj8Ly.js → StockView-DF-ucES_.js} +23 -23
- package/dist/SupplierView-XlzsU00G.js +813 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-B8IGZmDZ.js → TransferDetails.vue_vue_type_script_setup_true_lang-Bp7AJiJ-.js} +106 -106
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-D1NAkXMT.js +1690 -0
- package/dist/TransferTemplateView-CsA2SzQY.js +1279 -0
- package/dist/{UnitView-CExCsCFg.js → UnitView-9VMIlEZ_.js} +242 -242
- package/dist/{WarehouseView-DuPizg7w.js → WarehouseView-JTYLFBsu.js} +360 -362
- package/dist/api/bill.d.ts +238 -84
- package/dist/api/supplier.d.ts +4 -4
- package/dist/app-kYGuBDV8.js +68549 -0
- package/dist/app.d.ts +14 -0
- package/dist/app.js +3 -3
- package/dist/components/ChangeLocationComponent.vue.d.ts +11 -1
- package/dist/components/DeferableLoading.vue.d.ts +1 -1
- package/dist/components/DeleteDialog.vue.d.ts +1 -1
- package/dist/components/FmCoordinateInput.vue.d.ts +3 -3
- package/dist/components/FmDroppableField.vue.d.ts +6 -6
- package/dist/components/FmFilterableSelect.vue.d.ts +3 -3
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +21 -10
- package/dist/components/FmMinMaxInput.vue.d.ts +20 -0
- package/dist/components/FmMinMaxInputProps.d.ts +16 -0
- package/dist/components/FmMinMaxInputRules.d.ts +4 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +5 -5
- package/dist/components/FmMultiselectDialogProps.d.ts +3 -0
- package/dist/components/FmUnitInputRules.d.ts +1 -0
- package/dist/components/MultiSelectDialog.vue.d.ts +1 -1
- package/dist/components/NavigationTab.vue.d.ts +1 -1
- package/dist/components/NumberPrecisionInput.vue.d.ts +3 -3
- package/dist/components/PremiumBadge.vue.d.ts +3 -3
- package/dist/components/PreviewBadge.vue.d.ts +3 -3
- package/dist/components/StockForecast.vue.d.ts +1 -1
- package/dist/components/TableActionableRow.vue.d.ts +4 -4
- package/dist/components/UnitDisplayControl.vue.d.ts +1 -1
- package/dist/components/icons/IconCommunity.vue.d.ts +1 -1
- package/dist/components/icons/IconDocumentation.vue.d.ts +1 -1
- package/dist/components/icons/IconEcosystem.vue.d.ts +1 -1
- package/dist/components/icons/IconSupport.vue.d.ts +1 -1
- package/dist/components/icons/IconTooling.vue.d.ts +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
- package/dist/components/map/CoordinateDialog.vue.d.ts +4 -4
- package/dist/components/map/GoogleMap.vue.d.ts +6 -6
- package/dist/components/nested-multiselect/FmNestedMultiselectDialog.vue.d.ts +3 -3
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +3 -3
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +5 -5
- package/dist/components/ui-library/FmDateRangePickerChip.vue.d.ts +5 -5
- package/dist/composable/useIframe.d.ts +1 -1
- package/dist/composable/useSearch.d.ts +1 -1
- package/dist/{decimal-GwZ2MmM_.js → decimal-E3w4eGHF.js} +1 -1
- package/dist/helper/number.d.ts +2 -0
- package/dist/{id-to-date-CMUZ2glF.js → id-to-date-gyR82hWy.js} +1 -1
- package/dist/is-linked-ingredient-error-fJ2TJb3z.js +37 -0
- package/dist/layout/InventoryLayout.vue.d.ts +1 -1
- package/dist/layout/SingleColumnLayout.vue.d.ts +5 -5
- package/dist/layout/components/NavigationButton.vue.d.ts +4 -4
- package/dist/{layout-C3IEOm7C.js → layout-BTYR4n3X.js} +1 -1
- package/dist/{purchase-order-transaction-type-DpZQe_jA.js → purchase-order-transaction-type-CUtdDhYo.js} +2 -2
- package/dist/stores/feature.d.ts +2 -1
- package/dist/stores/location.d.ts +108 -148
- package/dist/stores/supplier.d.ts +672 -18
- package/dist/stores/warehouse.d.ts +9 -5
- package/dist/supplier-Ed-Bva_-.js +60 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/InventoryView.vue.d.ts +1 -1
- package/dist/views/SelectBussinessDialog.vue.d.ts +1 -1
- package/dist/views/approval/ApprovalView.vue.d.ts +1 -1
- package/dist/views/dev/ComponentPreview.vue.d.ts +1 -1
- package/dist/views/dev/components/CoordinateTest.vue.d.ts +1 -1
- package/dist/views/dev/components/DateRange.vue.d.ts +1 -1
- package/dist/views/dev/components/FmDecimalInputTest.vue.d.ts +1 -1
- package/dist/views/dev/components/FmMultiselectDialogGrouped.vue.d.ts +1 -1
- package/dist/views/dev/components/FmSelectTest.vue.d.ts +1 -1
- package/dist/views/dev/components/InventoryIframe.vue.d.ts +1 -1
- package/dist/views/dev/components/LayoutDev.vue.d.ts +1 -1
- package/dist/views/dev/components/MfCommontTest.vue.d.ts +1 -1
- package/dist/views/dev/components/NestedSelection.vue.d.ts +1 -1
- package/dist/views/dev/components/NumberStepper.vue.d.ts +1 -1
- package/dist/views/dev/components/TabStorageTest.vue.d.ts +1 -1
- package/dist/views/dev/components/UnitInput.vue.d.ts +1 -1
- package/dist/views/dev/helpers/pinia-test.d.ts +1 -1
- package/dist/views/home/HomeView.vue.d.ts +1 -1
- package/dist/views/iframe/inventory-bindings/bindings-dialog/BindingsDialog.vue.d.ts +1 -1
- package/dist/views/iframe/inventory-bindings/bindings-picker/BindingsPicker.vue.d.ts +1 -1
- package/dist/views/iframe/inventory-bindings/bindings-table/BindingsTable.vue.d.ts +1 -1
- package/dist/views/ingredients/IngredientsView.vue.d.ts +1 -1
- package/dist/views/ingredients/components/cannot-delete/CannotDelete.vue.d.ts +4 -4
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +3 -3
- package/dist/views/ingredients/components/import-ingredients/ImportIngredientItem.vue.d.ts +1 -1
- package/dist/views/ingredients/components/import-ingredients/ImportIngredients.vue.d.ts +1 -1
- package/dist/views/ingredients/components/ingredient-binded-item/IngredientBindedItem.vue.d.ts +1 -1
- package/dist/views/ingredients/components/ingredient-dialog/IngredientDialog.vue.d.ts +5 -5
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -4
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingSummary.vue.d.ts +3 -3
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +8 -8
- package/dist/views/integration/IntegrationView.vue.d.ts +1 -1
- package/dist/views/integration/components/ApplyAddon.vue.d.ts +5 -5
- package/dist/views/integration/components/ApplyProduct.vue.d.ts +5 -5
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +5 -5
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +5 -5
- package/dist/views/receive-request/ReceiveRequestView.vue.d.ts +1 -1
- package/dist/views/receive-request/components/supplier-price-history/SupplierPriceHistory.vue.d.ts +1 -1
- package/dist/views/receive-request/components/transfer-details/TransferDetails.vue.d.ts +3 -3
- package/dist/views/receive-request/components/transfer-dialog/TransferDialog.vue.d.ts +4 -4
- package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +4 -4
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +27 -27
- package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +4 -4
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +4 -4
- package/dist/views/receive-request/components/transfer-form/components/TransferItem.vue.d.ts +3 -3
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +3 -3
- package/dist/views/receive-request/components/transfer-form/composables/use-backdate-po.d.ts +4 -4
- package/dist/views/receive-request/components/transfer-form/composables/use-compare-price.d.ts +3 -3
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +0 -8
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1012 -66
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +24 -24
- package/dist/views/receive-request/print-preview/PurchaseOrderPrintPreview.vue.d.ts +1 -1
- package/dist/views/recipe/RecipeView.vue.d.ts +1 -1
- package/dist/views/recipe/components/recipe-dialog/RecipeDialog.vue.d.ts +5 -5
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +4 -4
- package/dist/views/recipe/composables/use-recipe-form.d.ts +8 -8
- package/dist/views/stock/StockView.vue.d.ts +1 -1
- package/dist/views/stock/components/StockHeaderPreview.vue.d.ts +1 -1
- package/dist/views/stock/components/StockHistory.vue.d.ts +3 -3
- package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +123 -46
- package/dist/views/stock/components/dialog/AdjustSkuDialog.vue.d.ts +4 -4
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +3 -3
- package/dist/views/stock/components/dialog/ConvertSkuDialog.vue.d.ts +4 -4
- package/dist/views/stock/composables/use-stock-action.d.ts +11 -11
- package/dist/views/supplier/SupplierView.vue.d.ts +1 -1
- package/dist/views/supplier/components/SupplierDialog.vue.d.ts +4 -4
- package/dist/views/supplier/components/SupplierDialogProps.d.ts +1 -0
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +10 -10
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -3
- package/dist/views/supplier/composables/use-supplier-table.d.ts +3 -3
- package/dist/views/transfer-template/TransferTemplateView.vue.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +3 -3
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +4 -4
- package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateForm.vue.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItem.vue.d.ts +3 -3
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +7 -7
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +13 -8
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1020 -79
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +309 -11
- package/dist/views/unit/UnitView.vue.d.ts +1 -1
- package/dist/views/unit/components/unit-dialog/UnitDialog.vue.d.ts +5 -5
- package/dist/views/unit/components/unit-form/UnitForm.vue.d.ts +4 -4
- package/dist/views/unit/components/unit-summary/UnitSummary.vue.d.ts +3 -3
- package/dist/views/unit/components/unit-used-by/UnitUsedBy.vue.d.ts +1 -1
- package/dist/views/unit/composables/use-unit-form.d.ts +8 -8
- package/dist/views/warehouse/WarehouseView.vue.d.ts +1 -1
- package/dist/views/warehouse/components/WarehouseDialog.vue.d.ts +4 -4
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +22 -14
- package/dist/{xlsx-CjErNF-B.js → xlsx-q6Ctgevr.js} +2759 -2759
- package/dist/{xlsx.util-CMXCCmUA.js → xlsx.util-Cvqg56mI.js} +2 -2
- package/package.json +2 -1
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DlIq3AyC.js +0 -272
- package/dist/PurchaseOrderPrintPreview-Do2KxBzF.js +0 -152
- package/dist/SupplierView-OmZ0X1E1.js +0 -801
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-BJMBsA9j.js +0 -1672
- package/dist/TransferTemplateView-Da6ehaJF.js +0 -1101
- package/dist/app-Chj8x632.js +0 -67206
- package/dist/is-linked-ingredient-error-C6AghEwR.js +0 -37
- package/dist/supplier-dG_APcwB.js +0 -54
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as Y, ref as E, onMounted as se, resolveComponent as k, openBlock as x, createElementBlock as
|
|
2
|
-
import { u as I, c as G, S as pe, a as q, R as fe, U as ve, _ as ye, A as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { i as
|
|
5
|
-
import { F as
|
|
6
|
-
import { _ as ae, t as Ce, d as Ee } from "./xlsx.util-
|
|
1
|
+
import { defineComponent as Y, ref as E, onMounted as se, resolveComponent as k, openBlock as x, createElementBlock as A, Fragment as le, createElementVNode as _, toDisplayString as re, createVNode as y, createCommentVNode as H, computed as V, watch as ie, createBlock as T, withCtx as $, unref as v, isRef as X, normalizeStyle as ce, Teleport as ue, normalizeProps as de, guardReactiveProps as me } from "vue";
|
|
2
|
+
import { u as I, c as G, S as pe, a as q, R as fe, U as ve, _ as ye, A as ge, e as Z, f as _e, j as be } from "./app-kYGuBDV8.js";
|
|
3
|
+
import { useDialog as we, useSnackbar as oe, useProxiedModel as ee, useBreakpoints as Re } from "@feedmepos/ui-library";
|
|
4
|
+
import { i as he, _ as xe } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
|
+
import { F as h, D as te, R as N } from "./row-action.enum-PMKMRrZR.js";
|
|
6
|
+
import { _ as ae, t as Ce, d as Ee } from "./xlsx.util-Cvqg56mI.js";
|
|
7
7
|
import { defineStore as Fe, storeToRefs as ke } from "pinia";
|
|
8
|
-
import { c as Ve, _ as Se, F as
|
|
8
|
+
import { c as Ve, _ as Se, F as ne, u as De } from "./layout-BTYR4n3X.js";
|
|
9
9
|
import { useI18n as j } from "@feedmepos/mf-common";
|
|
10
|
-
import { _ as
|
|
10
|
+
import { _ as Ae, a as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DoF7wwNT.js";
|
|
11
11
|
const Ie = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "flex flex-col items-center w-full h-full gap-24"
|
|
14
|
-
}, Pe =
|
|
14
|
+
}, Pe = { key: 1 }, Te = { key: 0 }, Me = /* @__PURE__ */ Y({
|
|
15
15
|
__name: "DeleteDialog",
|
|
16
16
|
props: {
|
|
17
17
|
type: {},
|
|
@@ -20,29 +20,29 @@ const Ie = {
|
|
|
20
20
|
bindedItems: {}
|
|
21
21
|
},
|
|
22
22
|
setup(b) {
|
|
23
|
-
const d = b, p = E(d.bindedItems || []),
|
|
23
|
+
const d = b, p = E(d.bindedItems || []), l = E(!1);
|
|
24
24
|
se(() => {
|
|
25
|
-
|
|
25
|
+
a();
|
|
26
26
|
});
|
|
27
|
-
async function
|
|
28
|
-
var r,
|
|
29
|
-
!
|
|
27
|
+
async function a() {
|
|
28
|
+
var r, o;
|
|
29
|
+
!l.value && ((r = d.data) != null && r._id) && (l.value = !0, p.value = await I().getAffectedMenu((o = d.data) == null ? void 0 : o._id), l.value = !1);
|
|
30
30
|
}
|
|
31
|
-
return (r,
|
|
31
|
+
return (r, o) => {
|
|
32
32
|
const c = k("FmSpacer"), f = k("FmCircularProgress");
|
|
33
|
-
return x(),
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
return x(), A(le, null, [
|
|
34
|
+
_("p", null, re(r.message), 1),
|
|
35
|
+
l.value ? (x(), A("div", Ie, [
|
|
36
36
|
y(c),
|
|
37
|
-
|
|
37
|
+
_("div", null, [
|
|
38
38
|
y(f, { size: "xl" })
|
|
39
39
|
]),
|
|
40
|
-
|
|
40
|
+
o[0] || (o[0] = _("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading...", -1)),
|
|
41
41
|
y(c)
|
|
42
|
-
])) : (x(),
|
|
43
|
-
|
|
44
|
-
p.value.length > 0 ? (x(),
|
|
45
|
-
|
|
42
|
+
])) : (x(), A("div", Pe, [
|
|
43
|
+
o[2] || (o[2] = _("br", null, null, -1)),
|
|
44
|
+
p.value.length > 0 ? (x(), A("div", Te, [
|
|
45
|
+
o[1] || (o[1] = _("p", { class: "fm-typo-en-body-lg-600" }, "Affected menu items:", -1)),
|
|
46
46
|
y(ae, {
|
|
47
47
|
name: "Menu",
|
|
48
48
|
bindings: p.value
|
|
@@ -53,11 +53,11 @@ const Ie = {
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
}), K = Fe("recipeForm", function() {
|
|
56
|
-
const d =
|
|
57
|
-
function
|
|
56
|
+
const d = we(), p = oe(), l = I(), a = E(!1), r = E();
|
|
57
|
+
function o() {
|
|
58
58
|
const t = {
|
|
59
59
|
recipe: {},
|
|
60
|
-
mode:
|
|
60
|
+
mode: h.CREATE,
|
|
61
61
|
show: !0,
|
|
62
62
|
"onUpdate:show"(u) {
|
|
63
63
|
r.value.show = u;
|
|
@@ -68,24 +68,24 @@ const Ie = {
|
|
|
68
68
|
async function c(t) {
|
|
69
69
|
const u = {
|
|
70
70
|
recipe: G(t),
|
|
71
|
-
mode:
|
|
71
|
+
mode: h.UPDATE,
|
|
72
72
|
show: !0,
|
|
73
|
-
"onUpdate:show"(
|
|
74
|
-
r.value.show =
|
|
73
|
+
"onUpdate:show"(s) {
|
|
74
|
+
r.value.show = s;
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
r.value = u;
|
|
78
78
|
}
|
|
79
79
|
async function f(t) {
|
|
80
|
-
|
|
80
|
+
a.value = !0;
|
|
81
81
|
try {
|
|
82
|
-
await
|
|
82
|
+
await l.deleteRecipe(t), p.open({
|
|
83
83
|
title: "Success",
|
|
84
84
|
message: `Deleted ${t.name}`,
|
|
85
85
|
type: "success"
|
|
86
86
|
});
|
|
87
87
|
} catch (u) {
|
|
88
|
-
u instanceof pe &&
|
|
88
|
+
u instanceof pe && he(u) ? d.open({
|
|
89
89
|
title: "Cannot delete recipe",
|
|
90
90
|
contentComponent: xe,
|
|
91
91
|
contentComponentProps: {
|
|
@@ -102,7 +102,7 @@ const Ie = {
|
|
|
102
102
|
type: "error"
|
|
103
103
|
}), console.error("failed to delete recipe", u);
|
|
104
104
|
} finally {
|
|
105
|
-
|
|
105
|
+
a.value = !1;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
function m(t) {
|
|
@@ -118,7 +118,7 @@ const Ie = {
|
|
|
118
118
|
text: "Cancel",
|
|
119
119
|
close: !0
|
|
120
120
|
},
|
|
121
|
-
contentComponent:
|
|
121
|
+
contentComponent: Me,
|
|
122
122
|
contentComponentProps: {
|
|
123
123
|
type: "menu",
|
|
124
124
|
data: t,
|
|
@@ -127,27 +127,27 @@ const Ie = {
|
|
|
127
127
|
}).onPrimary(() => f(t));
|
|
128
128
|
}
|
|
129
129
|
return {
|
|
130
|
-
createRecipe:
|
|
130
|
+
createRecipe: o,
|
|
131
131
|
updateRecipe: c,
|
|
132
132
|
deleteRecipe: m,
|
|
133
133
|
recipeDialogProps: r,
|
|
134
|
-
recipeViewLoading:
|
|
134
|
+
recipeViewLoading: a
|
|
135
135
|
};
|
|
136
136
|
});
|
|
137
|
-
function
|
|
137
|
+
function Ue() {
|
|
138
138
|
const { updateRecipe: b, deleteRecipe: d } = K(), { t: p } = j();
|
|
139
|
-
async function
|
|
139
|
+
async function l(o, c) {
|
|
140
140
|
const f = G(c);
|
|
141
|
-
if (
|
|
141
|
+
if (o === N.Edit) {
|
|
142
142
|
await b(f);
|
|
143
143
|
return;
|
|
144
144
|
}
|
|
145
|
-
if (
|
|
145
|
+
if (o === N.Delete) {
|
|
146
146
|
await d(f);
|
|
147
147
|
return;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
const
|
|
150
|
+
const a = [
|
|
151
151
|
{
|
|
152
152
|
accessorKey: "recipe",
|
|
153
153
|
header: () => p("inventory.recipe.name"),
|
|
@@ -161,11 +161,11 @@ function ze() {
|
|
|
161
161
|
{
|
|
162
162
|
id: "action",
|
|
163
163
|
header: "",
|
|
164
|
-
cell(
|
|
164
|
+
cell(o) {
|
|
165
165
|
return Ve(
|
|
166
166
|
[te[N.Edit], te[N.Delete]],
|
|
167
167
|
(c) => {
|
|
168
|
-
|
|
168
|
+
l(c, o.row.original.original);
|
|
169
169
|
}
|
|
170
170
|
);
|
|
171
171
|
},
|
|
@@ -177,27 +177,27 @@ function ze() {
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
];
|
|
180
|
-
function r(
|
|
180
|
+
function r(o) {
|
|
181
181
|
const c = I();
|
|
182
|
-
return
|
|
182
|
+
return o.map((f) => ({
|
|
183
183
|
recipe: f.name,
|
|
184
184
|
ingredients: f.contains.map((m) => {
|
|
185
|
-
var u,
|
|
185
|
+
var u, s;
|
|
186
186
|
const t = c.skuById[m.id];
|
|
187
|
-
return t ? `${t.name} (${q(m.amount)}${((u = m.measurement) == null ? void 0 : u.abbrev) ?? ((
|
|
187
|
+
return t ? `${t.name} (${q(m.amount)}${((u = m.measurement) == null ? void 0 : u.abbrev) ?? ((s = t == null ? void 0 : t.unit) == null ? void 0 : s.abbrev)})` : null;
|
|
188
188
|
}).filter((m) => m).join(", "),
|
|
189
189
|
original: f
|
|
190
190
|
}));
|
|
191
191
|
}
|
|
192
|
-
return { columnDefs:
|
|
192
|
+
return { columnDefs: a, formatRowData: r };
|
|
193
193
|
}
|
|
194
|
-
const
|
|
194
|
+
const Be = { class: "flex flex-col gap-40" }, Le = {
|
|
195
195
|
key: 0,
|
|
196
196
|
class: "col-span-2 mt-16 border-1 border-fm-color-neutral-gray-200 fm-corner-radius-lg flex flex-col p-16 gap-16"
|
|
197
|
-
},
|
|
197
|
+
}, ze = {
|
|
198
198
|
key: 0,
|
|
199
199
|
class: "flex flex-col items-center w-full h-full gap-24"
|
|
200
|
-
},
|
|
200
|
+
}, Ne = { key: 1 }, Ye = /* @__PURE__ */ Y({
|
|
201
201
|
__name: "RecipeForm",
|
|
202
202
|
props: {
|
|
203
203
|
mode: {},
|
|
@@ -207,71 +207,71 @@ const Ne = { class: "flex flex-col gap-40" }, Ye = {
|
|
|
207
207
|
emits: ["update:modelValue", "click:submit"],
|
|
208
208
|
setup(b, { expose: d, emit: p }) {
|
|
209
209
|
var F;
|
|
210
|
-
const
|
|
210
|
+
const l = b, a = p, { t: r } = j(), o = V({
|
|
211
211
|
get() {
|
|
212
212
|
var e;
|
|
213
|
-
return ((e =
|
|
213
|
+
return ((e = l.modelValue) == null ? void 0 : e.name) ?? "";
|
|
214
214
|
},
|
|
215
215
|
set(e) {
|
|
216
|
-
const
|
|
217
|
-
|
|
216
|
+
const n = l.modelValue ?? {};
|
|
217
|
+
n.name = e, a("update:modelValue", n);
|
|
218
218
|
}
|
|
219
219
|
}), c = V({
|
|
220
220
|
get() {
|
|
221
221
|
var e;
|
|
222
|
-
return ((e =
|
|
222
|
+
return ((e = l.modelValue) == null ? void 0 : e.contains) ?? [];
|
|
223
223
|
},
|
|
224
224
|
set(e) {
|
|
225
|
-
const
|
|
226
|
-
|
|
225
|
+
const n = l.modelValue ?? {};
|
|
226
|
+
n.contains = e, a("update:modelValue", n);
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
function f() {
|
|
230
|
-
|
|
230
|
+
a("click:submit");
|
|
231
231
|
}
|
|
232
232
|
const m = E();
|
|
233
233
|
d({
|
|
234
234
|
validateInputs: () => {
|
|
235
|
-
var e,
|
|
236
|
-
(
|
|
235
|
+
var e, n;
|
|
236
|
+
(n = (e = m.value) == null ? void 0 : e.validateInputs) == null || n.call(e);
|
|
237
237
|
},
|
|
238
238
|
resetInputsValidation: () => {
|
|
239
|
-
var e,
|
|
240
|
-
(
|
|
239
|
+
var e, n;
|
|
240
|
+
(n = (e = m.value) == null ? void 0 : e.resetInputsValidation) == null || n.call(e);
|
|
241
241
|
},
|
|
242
242
|
resetInputs: () => {
|
|
243
|
-
var e,
|
|
244
|
-
(
|
|
243
|
+
var e, n;
|
|
244
|
+
(n = (e = m.value) == null ? void 0 : e.resetInputs) == null || n.call(e);
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
|
-
const t = I(), u = E([]),
|
|
248
|
-
ie(
|
|
247
|
+
const t = I(), u = E([]), s = E(!1), w = E(!1);
|
|
248
|
+
ie(s, async (e) => {
|
|
249
249
|
C(e);
|
|
250
250
|
});
|
|
251
251
|
async function C(e) {
|
|
252
|
-
var
|
|
253
|
-
e && !
|
|
252
|
+
var n, P;
|
|
253
|
+
e && !w.value && ((n = l.modelValue) != null && n._id) && (w.value = !0, u.value = await t.getAffectedMenu((P = l.modelValue) == null ? void 0 : P._id), w.value = !1);
|
|
254
254
|
}
|
|
255
255
|
const i = V(
|
|
256
256
|
() => t.recipes.map((e) => ({ label: e.name, value: e.name }))
|
|
257
|
-
),
|
|
258
|
-
return (e,
|
|
257
|
+
), g = E((F = l.modelValue) == null ? void 0 : F.name);
|
|
258
|
+
return (e, n) => {
|
|
259
259
|
const P = k("FmTextField"), D = k("FmCard"), S = k("FmSwitch"), M = k("FmSpacer"), U = k("FmCircularProgress"), B = k("FmForm");
|
|
260
260
|
return x(), T(B, {
|
|
261
261
|
ref_key: "formRef",
|
|
262
262
|
ref: m,
|
|
263
263
|
onValidationSuccess: f
|
|
264
264
|
}, {
|
|
265
|
-
default:
|
|
266
|
-
|
|
265
|
+
default: $(() => [
|
|
266
|
+
_("div", Be, [
|
|
267
267
|
y(P, {
|
|
268
268
|
disabled: e.disabled,
|
|
269
269
|
label: v(r)("inventory.recipe.name"),
|
|
270
|
-
"model-value":
|
|
271
|
-
"onUpdate:modelValue":
|
|
270
|
+
"model-value": o.value,
|
|
271
|
+
"onUpdate:modelValue": n[0] || (n[0] = (R) => o.value = R),
|
|
272
272
|
rules: [
|
|
273
273
|
v(fe)(),
|
|
274
|
-
v(ve)(i.value,
|
|
274
|
+
v(ve)(i.value, g.value, (R) => `[${R.value}] already exists`)
|
|
275
275
|
],
|
|
276
276
|
"label-mark": "required"
|
|
277
277
|
}, null, 8, ["disabled", "label", "model-value", "rules"]),
|
|
@@ -279,40 +279,40 @@ const Ne = { class: "flex flex-col gap-40" }, Ye = {
|
|
|
279
279
|
variant: "outlined",
|
|
280
280
|
class: "p-16"
|
|
281
281
|
}, {
|
|
282
|
-
default:
|
|
283
|
-
var
|
|
282
|
+
default: $(() => {
|
|
283
|
+
var R;
|
|
284
284
|
return [
|
|
285
285
|
y(ye, {
|
|
286
|
-
id: (
|
|
286
|
+
id: (R = e.modelValue) == null ? void 0 : R._id,
|
|
287
287
|
disabled: e.disabled,
|
|
288
288
|
"model-value": c.value,
|
|
289
|
-
"onUpdate:modelValue":
|
|
290
|
-
rules: [v(
|
|
289
|
+
"onUpdate:modelValue": n[1] || (n[1] = (L) => c.value = L),
|
|
290
|
+
rules: [v(ge)(1)]
|
|
291
291
|
}, null, 8, ["id", "disabled", "model-value", "rules"])
|
|
292
292
|
];
|
|
293
293
|
}),
|
|
294
294
|
_: 1
|
|
295
295
|
})
|
|
296
296
|
]),
|
|
297
|
-
e.mode !== v(
|
|
298
|
-
|
|
297
|
+
e.mode !== v(h).CREATE ? (x(), A("div", Le, [
|
|
298
|
+
_("div", null, [
|
|
299
299
|
y(S, {
|
|
300
300
|
label: "Show binded items",
|
|
301
|
-
modelValue:
|
|
302
|
-
"onUpdate:modelValue":
|
|
301
|
+
modelValue: s.value,
|
|
302
|
+
"onUpdate:modelValue": n[2] || (n[2] = (R) => s.value = R),
|
|
303
303
|
"label-placement": "right",
|
|
304
|
-
disabled:
|
|
304
|
+
disabled: w.value
|
|
305
305
|
}, null, 8, ["modelValue", "disabled"])
|
|
306
306
|
]),
|
|
307
|
-
|
|
307
|
+
w.value ? (x(), A("div", ze, [
|
|
308
308
|
y(M),
|
|
309
|
-
|
|
309
|
+
_("div", null, [
|
|
310
310
|
y(U, { size: "xl" })
|
|
311
311
|
]),
|
|
312
|
-
|
|
312
|
+
n[3] || (n[3] = _("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading...", -1)),
|
|
313
313
|
y(M)
|
|
314
|
-
])) : (x(),
|
|
315
|
-
|
|
314
|
+
])) : (x(), A("div", Ne, [
|
|
315
|
+
s.value && u.value.length ? (x(), T(ae, {
|
|
316
316
|
key: 0,
|
|
317
317
|
name: "Menu",
|
|
318
318
|
bindings: u.value
|
|
@@ -324,122 +324,122 @@ const Ne = { class: "flex flex-col gap-40" }, Ye = {
|
|
|
324
324
|
}, 512);
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
|
-
}),
|
|
327
|
+
}), je = { class: "flex gap-4" }, He = /* @__PURE__ */ Y({
|
|
328
328
|
__name: "RecipeDialog",
|
|
329
329
|
props: {
|
|
330
330
|
show: { type: Boolean },
|
|
331
331
|
recipe: {},
|
|
332
|
-
mode: { default:
|
|
332
|
+
mode: { default: h.READ }
|
|
333
333
|
},
|
|
334
334
|
emits: ["update:show"],
|
|
335
335
|
setup(b) {
|
|
336
|
-
const d = b, p = I(),
|
|
336
|
+
const d = b, p = I(), l = oe(), { t: a } = j(), r = ee(d, "show"), o = ee(d, "recipe"), c = V(() => {
|
|
337
337
|
switch (d.mode) {
|
|
338
|
-
case
|
|
338
|
+
case h.READ:
|
|
339
339
|
return "";
|
|
340
|
-
case
|
|
341
|
-
return
|
|
342
|
-
case
|
|
343
|
-
return
|
|
340
|
+
case h.UPDATE:
|
|
341
|
+
return a("inventory.recipe.update.title");
|
|
342
|
+
case h.CREATE:
|
|
343
|
+
return a("inventory.recipe.create.title");
|
|
344
344
|
}
|
|
345
345
|
return "";
|
|
346
346
|
}), f = V(() => {
|
|
347
347
|
switch (d.mode) {
|
|
348
|
-
case
|
|
348
|
+
case h.READ:
|
|
349
349
|
return "";
|
|
350
|
-
case
|
|
351
|
-
return
|
|
352
|
-
case
|
|
353
|
-
return
|
|
350
|
+
case h.UPDATE:
|
|
351
|
+
return a("common.save");
|
|
352
|
+
case h.CREATE:
|
|
353
|
+
return a("common.add");
|
|
354
354
|
}
|
|
355
355
|
return "";
|
|
356
356
|
}), m = E(), t = E(!1);
|
|
357
357
|
async function u() {
|
|
358
358
|
t.value = !0;
|
|
359
359
|
try {
|
|
360
|
-
const i = G(
|
|
361
|
-
i.precision ?? (i.precision = 0), i.measurements ?? (i.measurements = []), await p.createRecipe(i), r.value = !1,
|
|
362
|
-
title:
|
|
363
|
-
message:
|
|
360
|
+
const i = G(o.value);
|
|
361
|
+
i.precision ?? (i.precision = 0), i.measurements ?? (i.measurements = []), await p.createRecipe(i), r.value = !1, l.open({
|
|
362
|
+
title: a("common.success"),
|
|
363
|
+
message: a("inventory.recipe.create.success", { name: o.value.name }),
|
|
364
364
|
type: "success"
|
|
365
365
|
});
|
|
366
366
|
} catch (i) {
|
|
367
|
-
i instanceof Z ||
|
|
368
|
-
title:
|
|
369
|
-
message:
|
|
367
|
+
i instanceof Z || l.open({
|
|
368
|
+
title: a("inventory.recipe.create.error.title"),
|
|
369
|
+
message: a("inventory.recipe.create.error.message"),
|
|
370
370
|
type: "error"
|
|
371
371
|
});
|
|
372
372
|
} finally {
|
|
373
373
|
t.value = !1;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
async function
|
|
376
|
+
async function s() {
|
|
377
377
|
t.value = !0;
|
|
378
378
|
try {
|
|
379
|
-
await p.updateRecipe(
|
|
380
|
-
title:
|
|
381
|
-
message:
|
|
379
|
+
await p.updateRecipe(o.value), r.value = !1, l.open({
|
|
380
|
+
title: a("common.success"),
|
|
381
|
+
message: a("inventory.recipe.update.success", { name: o.value.name }),
|
|
382
382
|
type: "success"
|
|
383
383
|
});
|
|
384
384
|
} catch (i) {
|
|
385
|
-
i instanceof Z ||
|
|
386
|
-
title:
|
|
387
|
-
message:
|
|
385
|
+
i instanceof Z || l.open({
|
|
386
|
+
title: a("inventory.recipe.update.error.title"),
|
|
387
|
+
message: a("inventory.recipe.update.error.message"),
|
|
388
388
|
type: "error"
|
|
389
389
|
});
|
|
390
390
|
} finally {
|
|
391
391
|
t.value = !1;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
var i,
|
|
396
|
-
(
|
|
394
|
+
function w() {
|
|
395
|
+
var i, g;
|
|
396
|
+
(g = (i = m.value) == null ? void 0 : i.validateInputs) == null || g.call(i);
|
|
397
397
|
}
|
|
398
398
|
function C() {
|
|
399
399
|
switch (d.mode) {
|
|
400
|
-
case
|
|
400
|
+
case h.READ:
|
|
401
401
|
return;
|
|
402
|
-
case
|
|
403
|
-
return
|
|
404
|
-
case
|
|
402
|
+
case h.UPDATE:
|
|
403
|
+
return s();
|
|
404
|
+
case h.CREATE:
|
|
405
405
|
return u();
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
return (i,
|
|
408
|
+
return (i, g) => {
|
|
409
409
|
const F = k("FmButton"), e = k("FmSideSheet");
|
|
410
410
|
return x(), T(e, {
|
|
411
411
|
"model-value": v(r),
|
|
412
|
-
"onUpdate:modelValue":
|
|
412
|
+
"onUpdate:modelValue": g[3] || (g[3] = (n) => X(r) ? r.value = n : null),
|
|
413
413
|
header: c.value,
|
|
414
414
|
"close-button": "",
|
|
415
415
|
"dismiss-away": "",
|
|
416
416
|
"max-width": 500
|
|
417
417
|
}, {
|
|
418
|
-
"side-sheet-footer":
|
|
419
|
-
|
|
418
|
+
"side-sheet-footer": $(() => [
|
|
419
|
+
_("div", je, [
|
|
420
420
|
y(F, {
|
|
421
421
|
loading: t.value,
|
|
422
422
|
label: f.value,
|
|
423
|
-
onClick:
|
|
423
|
+
onClick: w
|
|
424
424
|
}, null, 8, ["loading", "label"]),
|
|
425
425
|
y(F, {
|
|
426
426
|
disabled: t.value,
|
|
427
|
-
label: v(
|
|
427
|
+
label: v(a)("common.close"),
|
|
428
428
|
variant: "tertiary",
|
|
429
|
-
onClick:
|
|
429
|
+
onClick: g[2] || (g[2] = (n) => r.value = !1)
|
|
430
430
|
}, null, 8, ["disabled", "label"])
|
|
431
431
|
])
|
|
432
432
|
]),
|
|
433
|
-
default:
|
|
434
|
-
y(
|
|
433
|
+
default: $(() => [
|
|
434
|
+
y(Ye, {
|
|
435
435
|
class: "w-full",
|
|
436
436
|
ref_key: "hasValidationExpose",
|
|
437
437
|
ref: m,
|
|
438
|
-
modelValue: v(
|
|
439
|
-
"onUpdate:modelValue":
|
|
438
|
+
modelValue: v(o),
|
|
439
|
+
"onUpdate:modelValue": g[0] || (g[0] = (n) => X(o) ? o.value = n : null),
|
|
440
440
|
mode: i.mode,
|
|
441
441
|
disabled: t.value,
|
|
442
|
-
"onClick:submit":
|
|
442
|
+
"onClick:submit": g[1] || (g[1] = (n) => C())
|
|
443
443
|
}, null, 8, ["modelValue", "mode", "disabled"])
|
|
444
444
|
]),
|
|
445
445
|
_: 1
|
|
@@ -447,36 +447,36 @@ const Ne = { class: "flex flex-col gap-40" }, Ye = {
|
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
|
-
function
|
|
451
|
-
const b = I(), d = b.recipes, p = b.recipeById,
|
|
450
|
+
function qe() {
|
|
451
|
+
const b = I(), d = b.recipes, p = b.recipeById, l = b.skuById, a = d.flatMap((c, f) => {
|
|
452
452
|
var m;
|
|
453
453
|
if ((m = c.contains) != null && m.length) {
|
|
454
|
-
const t = c.contains.filter((
|
|
454
|
+
const t = c.contains.filter((s) => s.type === "RECIPE"), u = c.contains.filter((s) => s.type === "SKU");
|
|
455
455
|
return [
|
|
456
456
|
...f === 0 ? [] : [["", "", "", "", "", ""]],
|
|
457
457
|
...t.map(
|
|
458
|
-
(
|
|
458
|
+
(s, w) => {
|
|
459
459
|
var C;
|
|
460
460
|
return [
|
|
461
|
-
|
|
461
|
+
w === 0 ? c.name : "",
|
|
462
462
|
"RECIPE",
|
|
463
463
|
"",
|
|
464
|
-
(C = p[
|
|
465
|
-
q(
|
|
464
|
+
(C = p[s.id]) == null ? void 0 : C.name,
|
|
465
|
+
q(s.amount),
|
|
466
466
|
"UNIT"
|
|
467
467
|
];
|
|
468
468
|
}
|
|
469
469
|
),
|
|
470
470
|
...u.map(
|
|
471
|
-
(
|
|
472
|
-
var C, i,
|
|
471
|
+
(s, w) => {
|
|
472
|
+
var C, i, g, F;
|
|
473
473
|
return [
|
|
474
|
-
!t.length &&
|
|
474
|
+
!t.length && w === 0 ? c.name : "",
|
|
475
475
|
"INGREDIENT",
|
|
476
|
-
(C = s
|
|
477
|
-
(i = s
|
|
478
|
-
q(
|
|
479
|
-
|
|
476
|
+
(C = l[s.id]) == null ? void 0 : C.code,
|
|
477
|
+
(i = l[s.id]) == null ? void 0 : i.name,
|
|
478
|
+
q(s.amount),
|
|
479
|
+
s.measurement ? s.measurement.abbrev : (F = (g = l[s.id]) == null ? void 0 : g.unit) == null ? void 0 : F.abbrev
|
|
480
480
|
];
|
|
481
481
|
}
|
|
482
482
|
)
|
|
@@ -486,20 +486,20 @@ function Oe() {
|
|
|
486
486
|
...f === 0 ? [] : [["", "", "", "", "", ""]],
|
|
487
487
|
[c.name, "No bindings", "", "", "", ""]
|
|
488
488
|
];
|
|
489
|
-
}),
|
|
490
|
-
Ee(
|
|
489
|
+
}), o = Ce(a, ["Name", "Type", "Code", "Item", "Amount", "Unit"]);
|
|
490
|
+
Ee(o, `RECIPE_${_e(/* @__PURE__ */ new Date(), "-", "-")}.xlsx`);
|
|
491
491
|
}
|
|
492
|
-
const
|
|
492
|
+
const Ke = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, Ge = { class: "flex flex-col py-8" }, Je = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, lt = /* @__PURE__ */ Y({
|
|
493
493
|
__name: "RecipeView",
|
|
494
494
|
setup(b) {
|
|
495
|
-
const d = I(), p = V(() => d.recipes),
|
|
495
|
+
const d = I(), p = V(() => d.recipes), l = be(), { createRecipe: a, updateRecipe: r } = K(), { recipeDialogProps: o, recipeViewLoading: c } = ke(K()), { columnDefs: f, formatRowData: m } = Ue(), t = V(() => m(p.value));
|
|
496
496
|
function u(e) {
|
|
497
|
-
e === "add" &&
|
|
497
|
+
e === "add" && a();
|
|
498
498
|
}
|
|
499
|
-
const
|
|
500
|
-
return (e,
|
|
499
|
+
const s = E(""), w = V(() => c.value), { breakpoints: C } = Re(), i = V(() => C.value.xs || C.value.sm ? 10 : 20), g = De(), { t: F } = j();
|
|
500
|
+
return (e, n) => {
|
|
501
501
|
const P = k("FmTable");
|
|
502
|
-
return x(), T(
|
|
502
|
+
return x(), T(Ae, {
|
|
503
503
|
title: v(F)("inventory.recipe.title"),
|
|
504
504
|
actions: [
|
|
505
505
|
{
|
|
@@ -511,41 +511,41 @@ const Qe = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, We =
|
|
|
511
511
|
],
|
|
512
512
|
"onClick:action": u
|
|
513
513
|
}, {
|
|
514
|
-
default:
|
|
515
|
-
|
|
516
|
-
y(
|
|
514
|
+
default: $(() => [
|
|
515
|
+
_("div", Ke, [
|
|
516
|
+
y($e, {
|
|
517
517
|
searchable: "",
|
|
518
|
-
search:
|
|
519
|
-
"onUpdate:search":
|
|
520
|
-
actions: [{ icon: "ios_share", onClick: v(
|
|
518
|
+
search: s.value,
|
|
519
|
+
"onUpdate:search": n[0] || (n[0] = (D) => s.value = D),
|
|
520
|
+
actions: [{ icon: "ios_share", onClick: v(qe) }]
|
|
521
521
|
}, null, 8, ["search", "actions"]),
|
|
522
522
|
(x(), T(P, {
|
|
523
|
-
style: ce(v(
|
|
523
|
+
style: ce(v(g).tableHeight),
|
|
524
524
|
"column-defs": v(f),
|
|
525
525
|
"row-data": t.value,
|
|
526
|
-
"search-value":
|
|
527
|
-
loading: !v(
|
|
528
|
-
onRowClick:
|
|
526
|
+
"search-value": s.value,
|
|
527
|
+
loading: !v(l)._currentLocation || w.value,
|
|
528
|
+
onRowClick: n[1] || (n[1] = (D) => v(r)(D.original.original)),
|
|
529
529
|
key: p.value.length,
|
|
530
530
|
"page-size": i.value
|
|
531
531
|
}, {
|
|
532
|
-
"list-row":
|
|
532
|
+
"list-row": $((D) => [
|
|
533
533
|
y(Se, {
|
|
534
534
|
row: D,
|
|
535
535
|
onRowClick: (S) => v(r)(S.original)
|
|
536
536
|
}, {
|
|
537
|
-
default:
|
|
538
|
-
var M, U, B,
|
|
537
|
+
default: $((S) => {
|
|
538
|
+
var M, U, B, R, L, J, O, Q, z, W;
|
|
539
539
|
return [
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
y(v(
|
|
540
|
+
_("div", Ge, [
|
|
541
|
+
_("div", Je, [
|
|
542
|
+
y(v(ne), {
|
|
543
543
|
render: (B = (U = (M = S.recipe) == null ? void 0 : M.column) == null ? void 0 : U.columnDef) == null ? void 0 : B.cell,
|
|
544
|
-
props: (L = (
|
|
544
|
+
props: (L = (R = S.recipe) == null ? void 0 : R.getContext) == null ? void 0 : L.call(R)
|
|
545
545
|
}, null, 8, ["render", "props"])
|
|
546
546
|
]),
|
|
547
|
-
|
|
548
|
-
y(v(
|
|
547
|
+
_("div", Oe, [
|
|
548
|
+
y(v(ne), {
|
|
549
549
|
render: (Q = (O = (J = S.ingredients) == null ? void 0 : J.column) == null ? void 0 : O.columnDef) == null ? void 0 : Q.cell,
|
|
550
550
|
props: (W = (z = S.ingredients) == null ? void 0 : z.getContext) == null ? void 0 : W.call(z)
|
|
551
551
|
}, null, 8, ["render", "props"])
|
|
@@ -560,7 +560,7 @@ const Qe = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, We =
|
|
|
560
560
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
|
|
561
561
|
]),
|
|
562
562
|
(x(), T(ue, { to: "body" }, [
|
|
563
|
-
y(
|
|
563
|
+
y(He, de(me(v(o))), null, 16)
|
|
564
564
|
]))
|
|
565
565
|
]),
|
|
566
566
|
_: 1
|
|
@@ -569,5 +569,5 @@ const Qe = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, We =
|
|
|
569
569
|
}
|
|
570
570
|
});
|
|
571
571
|
export {
|
|
572
|
-
|
|
572
|
+
lt as default
|
|
573
573
|
};
|