@feedmepos/mf-inventory-portal 1.0.9-dev.3 → 1.0.9-dev.4
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-C6gg2tff.js → App-BOKGVcoO.js} +2 -2
- package/dist/{ApprovalView-DZifohZp.js → ApprovalView-Bo-4fnEU.js} +2 -2
- package/dist/{BindingsDialog-D-NE4sbz.js → BindingsDialog-DM2b4GN4.js} +2 -2
- package/dist/{BindingsPicker-BP5HkQhe.js → BindingsPicker-CJKBXA0c.js} +3 -3
- package/dist/{BindingsTable-DCLu2260.js → BindingsTable-BxCEEJfb.js} +1 -1
- package/dist/{ClosingDraftView-CF1WvxPK.js → ClosingDraftView-bQxPF18V.js} +2 -2
- package/dist/{ClosingTemplateView-BTAwwKIK.js → ClosingTemplateView-DLkp9Qt8.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-C0ornFrS.js → DeliveryOrderPrintPreview-CK3HdYVb.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C5aDXHfX.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DvCBsPdI.js} +3 -3
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DMHC_WQn.js → FmUnitInput.vue_vue_type_script_setup_true_lang-R8f-Q9Nk.js} +20 -20
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CDB7BLGo.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BOyqgaik.js} +1 -1
- package/dist/{IngredientsView-Cw9hWci5.js → IngredientsView-DmKCy_JQ.js} +4 -4
- package/dist/{IntegrationView-Af4yE6YN.js → IntegrationView-B1dzt8WK.js} +4 -4
- package/dist/{InventoryBindingForm-CKNE-9XF.js → InventoryBindingForm-CeTlH0U1.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DXGno3jm.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DsM2bCNe.js} +92 -87
- package/dist/{InventoryBindingSummary-DeNGAysn.js → InventoryBindingSummary-QVSD87YL.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BiB8cZwH.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C-lgLo2e.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CriwQBvl.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CEMRfo1C.js} +1 -1
- package/dist/{PublishView-CXRCoNai.js → PublishView-BYGKLC9D.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-C02inqk2.js → PurchaseOrderPrintPreview-CEVjGeom.js} +1 -1
- package/dist/{ReceiveRequestView-B7S4pKgp.js → ReceiveRequestView-D5PcGCLv.js} +42 -42
- package/dist/RecipeView-DmTDCsvk.js +8493 -0
- package/dist/{StockView-C7X97PgJ.js → StockView-EmTqUcP1.js} +7 -7
- package/dist/{SupplierView-DSD56NEd.js → SupplierView-BaLnW761.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-COa-ENT_.js → TransferDetails.vue_vue_type_script_setup_true_lang-B3ew6mc5.js} +36 -36
- package/dist/{TransferTemplateView-D76GtJPP.js → TransferTemplateView-DoeLAFmJ.js} +114 -114
- package/dist/{UnitView-DjrfCvNG.js → UnitView-6Kobe5di.js} +18 -18
- package/dist/{WarehouseView-BenlwQj0.js → WarehouseView-BBMS14jU.js} +1 -1
- package/dist/api/inventory.d.ts +66 -207
- package/dist/{app-Cn649AKe.js → app-CUTIQqG_.js} +7318 -7360
- package/dist/app.js +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +22 -0
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +22 -0
- package/dist/{decimal-B_2tpC5T.js → decimal-Bb7Chjpr.js} +1 -1
- package/dist/{feature-C3tkzv_R.js → feature-D5GLIW5h.js} +143 -148
- package/dist/{format-unit-display-CUjVAExM.js → format-unit-display-CqqBiewI.js} +29 -29
- package/dist/{index-WEO-tzBF.js → index-B7QMXzGe.js} +2739 -2823
- package/dist/{index-C8N0qnaj.js → index-DiEdX1Bs.js} +2 -2
- package/dist/main.d.ts +1 -0
- package/dist/{stock-D5ctHplB.js → stock-CO0XWh8j.js} +1 -1
- package/dist/stores/feature.d.ts +0 -2
- package/dist/stores/inventory.d.ts +89 -211
- package/dist/{supplier-CnlrJD2z.js → supplier-C877x7mU.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-DnG7HGSX.js → use-ingredient-select-dialog-ClufUFeU.js} +1 -1
- package/dist/{use-inventory-binding-dialog-sALJ--xH.js → use-inventory-binding-dialog-BuRe6QNp.js} +1 -1
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +44 -0
- package/dist/views/recipe/components/recipe-override-form-field/RecipeOverrideFormField.vue.d.ts +61 -0
- package/dist/views/recipe/composables/use-recipe-overrides-form-field.d.ts +10 -0
- package/dist/{vue-i18n-B_Hl3d6o.js → vue-i18n-CxuQa0ds.js} +401 -401
- package/package.json +6 -5
- package/dist/IngredientGroupView-DwUeV_bZ.js +0 -604
- package/dist/RecipeView-dUKMM9iC.js +0 -616
- package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +0 -3
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +0 -31
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +0 -12
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +0 -20
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +0 -12
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +0 -24
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +0 -218
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as U, onUnmounted as F, defineComponent as h, watch as P, onMounted as x, computed as g, resolveComponent as b, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as p, toDisplayString as w, createBlock as B, createCommentVNode as k } from "vue";
|
|
2
|
-
import { u as M, a as D, b as H, R as e, g as s, c as W } from "./app-
|
|
2
|
+
import { u as M, a as D, b as H, R as e, g as s, c as W } from "./app-CUTIQqG_.js";
|
|
3
3
|
import { useCoreStore as A, useI18n as G } from "@feedmepos/mf-common";
|
|
4
4
|
import { useRouter as L, useRoute as K } from "vue-router";
|
|
5
|
-
import { u as O } from "./feature-
|
|
5
|
+
import { u as O } from "./feature-D5GLIW5h.js";
|
|
6
6
|
import { u as $ } from "./useTabStorage-BkIVScW_.js";
|
|
7
7
|
import { u as Q } from "./googlemap-Dm8ERVai.js";
|
|
8
8
|
import "./array-hChJVZLE.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as oe, ref as g, watch as re, computed as b, resolveComponent as ne, openBlock as y, createBlock as K, unref as e, withCtx as x, createElementVNode as s, normalizeClass as se, createVNode as n, normalizeStyle as le, toDisplayString as ce, createElementBlock as ie, createCommentVNode as ue, Teleport as pe, mergeProps as me } from "vue";
|
|
2
|
-
import { u as de, av as v, aG as fe, a8 as Q, z as ve, _ as _e, B as he, C as De, E as _ } from "./app-
|
|
3
|
-
import { a as ge, P as O, b as be, _ as ye } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as de, av as v, aG as fe, a8 as Q, z as ve, _ as _e, B as he, C as De, E as _ } from "./app-CUTIQqG_.js";
|
|
3
|
+
import { a as ge, P as O, b as be, _ as ye } from "./TransferDetails.vue_vue_type_script_setup_true_lang-B3ew6mc5.js";
|
|
4
4
|
import { useBreakpoints as xe } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Oe } from "@feedmepos/mf-common";
|
|
6
6
|
const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ce = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
|
|
2
|
-
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { a as L, aR as S } from "./app-
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DsM2bCNe.js";
|
|
3
|
+
import { a as L, aR as S } from "./app-CUTIQqG_.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
|
|
2
|
-
import { a as M, aR as x,
|
|
2
|
+
import { a as M, aR as x, W as z } from "./app-CUTIQqG_.js";
|
|
3
3
|
const F = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
6
6
|
}, K = { class: "flex justify-end gap-8 items-center" }, w = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "p-24 flex items-center justify-center gap-16"
|
|
9
|
-
},
|
|
9
|
+
}, N = /* @__PURE__ */ S({
|
|
10
10
|
__name: "BindingsPicker",
|
|
11
11
|
setup(L) {
|
|
12
12
|
const d = M(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
|
|
@@ -119,5 +119,5 @@ const F = {
|
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
export {
|
|
122
|
-
|
|
122
|
+
N as default
|
|
123
123
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, openBlock as l, createElementBlock as u, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as R, createBlock as z } from "vue";
|
|
2
|
-
import { F as b, a as M, aR as P } from "./app-
|
|
2
|
+
import { F as b, a as M, aR as P } from "./app-CUTIQqG_.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as Fe, ref as O, resolveComponent as U, openBlock as h, createBlock as W, withCtx as Y, createElementVNode as o, createTextVNode as Be, toDisplayString as N, unref as g, createVNode as w, h as S, reactive as We, computed as E, onMounted as Ze, watch as Je, isRef as Ie, createElementBlock as P, Fragment as q, createCommentVNode as ee, normalizeClass as pe, renderList as be, normalizeStyle as Ue, Teleport as Xe, mergeProps as Qe } from "vue";
|
|
2
|
-
import { X as et, u as Se, af as Z, l as tt,
|
|
2
|
+
import { X as et, u as Se, af as Z, l as tt, H as $e, i as M, t as at, J as he, q as nt, r as ot, s as st, ag as Ee, ah as He, a3 as Le, ai as ne, a9 as rt, ae, T as ze, D as Pe, h as _e, f as lt, e as ct, a as it, z as ut, _ as dt, B as mt, C as ft, E as ke } from "./app-CUTIQqG_.js";
|
|
3
3
|
import { useCoreStore as pt, useI18n as Ne } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as Re, useDialog as vt, useProxiedModel as yt, components as fe, useBreakpoints as gt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Oe, storeToRefs as bt } from "pinia";
|
|
6
|
-
import { a as Ve, u as Ye } from "./stock-
|
|
6
|
+
import { a as Ve, u as Ye } from "./stock-CO0XWh8j.js";
|
|
7
7
|
import { E as ht } from "./empty-placeholder-wf6-BWE8.js";
|
|
8
8
|
const je = et((n, r) => {
|
|
9
9
|
function e() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as D, h as F, defineComponent as O, resolveComponent as R, openBlock as T, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Fe, toDisplayString as C, unref as v, createCommentVNode as K, createVNode as $, withCtx as P, Fragment as H, renderList as J, computed as E, watch as Re, createSlots as Pe, createBlock as V, isRef as je, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as Je, mergeProps as We } from "vue";
|
|
2
|
-
import { X as qe, u as le, a9 as Xe, D as Se, h as N, f as Qe, e as Ae, aa as oe, r as Ze, ab as Ee, s as Ue, a as ae, b as et, v as tt, w as Ve, x as nt, y as ot, d as z, E as j, G as st, ac as lt, l as at, C as Ne, A as rt, ad as it, ae as ne, z as ct, _ as mt, B as ut } from "./app-
|
|
2
|
+
import { X as qe, u as le, a9 as Xe, D as Se, h as N, f as Qe, e as Ae, aa as oe, r as Ze, ab as Ee, s as Ue, a as ae, b as et, v as tt, w as Ve, x as nt, y as ot, d as z, E as j, G as st, ac as lt, l as at, C as Ne, A as rt, ad as it, ae as ne, z as ct, _ as mt, B as ut } from "./app-CUTIQqG_.js";
|
|
3
3
|
import { useCoreStore as re, useI18n as B } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as dt, useSnackbar as Z, useDialog as ie, FmButtonVariant as De, components as L, useProxiedModel as pt, useBreakpoints as ft } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Be, storeToRefs as Le } from "pinia";
|
|
6
|
-
import { u as vt } from "./use-ingredient-select-dialog-
|
|
6
|
+
import { u as vt } from "./use-ingredient-select-dialog-ClufUFeU.js";
|
|
7
7
|
const ee = qe((i, o) => {
|
|
8
8
|
function s() {
|
|
9
9
|
var t;
|
package/dist/{DeliveryOrderPrintPreview-C0ornFrS.js → DeliveryOrderPrintPreview-CK3HdYVb.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as x, computed as f, ref as h, onMounted as g, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as _ } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import { aq as y, ad as w } from "./app-
|
|
3
|
+
import { aq as y, ad as w } from "./app-CUTIQqG_.js";
|
|
4
4
|
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "subtitle"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as T, t as I, an as w, u as R, as as B, aD as H, aE as D, aF as U } from "./app-
|
|
2
|
-
import { u as z } from "./supplier-
|
|
3
|
-
import { P as F } from "./format-unit-display-
|
|
1
|
+
import { i as T, t as I, an as w, u as R, as as B, aD as H, aE as D, aF as U } from "./app-CUTIQqG_.js";
|
|
2
|
+
import { u as z } from "./supplier-C877x7mU.js";
|
|
3
|
+
import { P as F } from "./format-unit-display-CqqBiewI.js";
|
|
4
4
|
import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as V, openBlock as S, createElementBlock as N, normalizeStyle as $, createElementVNode as O, createVNode as J, withCtx as K, createBlock as g, createCommentVNode as A, Fragment as Q, renderList as X, unref as M } from "vue";
|
|
5
5
|
function Y(t, i, a) {
|
|
6
6
|
var s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as se, mergeModels as
|
|
2
|
-
import { $ as B, I as D,
|
|
1
|
+
import { defineComponent as se, mergeModels as j, useModel as ie, computed as v, ref as k, watch as z, onBeforeUnmount as le, inject as ae, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as q, normalizeClass as T, toDisplayString as A, withDirectives as ue, vModelText as re, createCommentVNode as W, createTextVNode as me, createBlock as H, Fragment as ce, renderList as de } from "vue";
|
|
2
|
+
import { $ as B, I as D, O as L, J as pe, i as M, aB as fe, t as ve, H as be, ah as ye, az as he, ay as Me } from "./app-CUTIQqG_.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
|
-
function
|
|
4
|
+
function E() {
|
|
5
5
|
return {
|
|
6
6
|
amount: B.reset()
|
|
7
7
|
};
|
|
@@ -21,7 +21,7 @@ function Le(l) {
|
|
|
21
21
|
return D()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > l ? `Must be at most ${l}` : !0;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function G(l, p = !1) {
|
|
25
25
|
return function(m) {
|
|
26
26
|
const s = J()(m);
|
|
27
27
|
if (s != !0)
|
|
@@ -54,9 +54,9 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
54
54
|
}, Ce = {
|
|
55
55
|
class: "flex items-center",
|
|
56
56
|
style: { "pointer-events": "none" }
|
|
57
|
-
},
|
|
57
|
+
}, Oe = /* @__PURE__ */ se({
|
|
58
58
|
__name: "FmUnitInput",
|
|
59
|
-
props: /* @__PURE__ */
|
|
59
|
+
props: /* @__PURE__ */ j({
|
|
60
60
|
modelValue: {},
|
|
61
61
|
unit: {},
|
|
62
62
|
rules: {},
|
|
@@ -103,7 +103,7 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
103
103
|
modelValue: {},
|
|
104
104
|
modelModifiers: {}
|
|
105
105
|
}),
|
|
106
|
-
emits: /* @__PURE__ */
|
|
106
|
+
emits: /* @__PURE__ */ j(["update:amount", "update:measurement"], ["update:modelValue"]),
|
|
107
107
|
setup(l, { emit: p }) {
|
|
108
108
|
const t = l, m = p, s = ie(l, "modelValue"), _ = D(), R = v(() => {
|
|
109
109
|
var n;
|
|
@@ -114,7 +114,7 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
114
114
|
return M(a);
|
|
115
115
|
})());
|
|
116
116
|
let x = null;
|
|
117
|
-
|
|
117
|
+
z(d, (e) => {
|
|
118
118
|
x && clearTimeout(x), x = setTimeout(() => {
|
|
119
119
|
var r;
|
|
120
120
|
const n = _(e), i = t.precision ?? R.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
|
|
@@ -130,7 +130,7 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
130
130
|
}), le(() => {
|
|
131
131
|
x && clearTimeout(x);
|
|
132
132
|
});
|
|
133
|
-
const
|
|
133
|
+
const K = Symbol.for("fm:form-state"), U = ae(K, null), P = v(() => t.disabled ?? (U == null ? void 0 : U.getDisabled()) ?? !1), Q = k(), w = k(!1), $ = k(!1), X = v(() => w.value || $.value), Y = v(() => {
|
|
134
134
|
var a;
|
|
135
135
|
const i = [...t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +M(o.conversion) != 1).groupBy(
|
|
136
136
|
(o) => `${o.abbrev}${M(o.conversion)}`
|
|
@@ -153,19 +153,19 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
153
153
|
set(e) {
|
|
154
154
|
if (e == null)
|
|
155
155
|
s.value = {
|
|
156
|
-
...s.value ??
|
|
156
|
+
...s.value ?? E(),
|
|
157
157
|
measurement: null
|
|
158
158
|
}, m("update:measurement", null);
|
|
159
159
|
else {
|
|
160
160
|
const n = t.unit.measurements.find((i) => i.id === e) ?? null;
|
|
161
161
|
s.value = {
|
|
162
|
-
...s.value ??
|
|
162
|
+
...s.value ?? E(),
|
|
163
163
|
measurement: n
|
|
164
164
|
}, m("update:measurement", n);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
|
-
|
|
168
|
+
z(C, (e, n) => {
|
|
169
169
|
var c;
|
|
170
170
|
if (!t.convertAmountOnChangeUnit)
|
|
171
171
|
return;
|
|
@@ -187,9 +187,9 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
187
187
|
}
|
|
188
188
|
), te = v(() => [...t.applyDefaultRules ? [
|
|
189
189
|
J(),
|
|
190
|
-
typeof t.precision == "number" ?
|
|
190
|
+
typeof t.precision == "number" ? G(t.precision) : G(t.unit)
|
|
191
191
|
] : [], ...ee.value]);
|
|
192
|
-
function
|
|
192
|
+
function O(e) {
|
|
193
193
|
const n = t.precision ?? R.value, a = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, o = e.toFixed(a), r = o.includes(".") ? o.replace(/0+$/, "") : o;
|
|
194
194
|
return r.endsWith(".") ? r.slice(0, r.length - 1) : r;
|
|
195
195
|
}
|
|
@@ -197,13 +197,13 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
197
197
|
if (!t.stepper)
|
|
198
198
|
return;
|
|
199
199
|
const e = +d.value + +M(t.stepper);
|
|
200
|
-
d.value =
|
|
200
|
+
d.value = O(e);
|
|
201
201
|
}
|
|
202
202
|
function oe() {
|
|
203
203
|
if (!t.stepper)
|
|
204
204
|
return;
|
|
205
205
|
const e = +d.value - +M(t.stepper);
|
|
206
|
-
d.value =
|
|
206
|
+
d.value = O(e);
|
|
207
207
|
}
|
|
208
208
|
return (e, n) => {
|
|
209
209
|
const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), r = b("FmMenu"), g = b("FmTooltip"), S = b("FmField"), V = b("FmFormGroup");
|
|
@@ -256,7 +256,7 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
256
256
|
me(A(N.value), 1)
|
|
257
257
|
]),
|
|
258
258
|
default: F(() => [
|
|
259
|
-
e.disableUnit ? (f(), y("div", ke, A(N.value), 1)) : (f(),
|
|
259
|
+
e.disableUnit ? (f(), y("div", ke, A(N.value), 1)) : (f(), H(r, {
|
|
260
260
|
key: 1,
|
|
261
261
|
onMenuChanged: n[3] || (n[3] = (c) => $.value = c),
|
|
262
262
|
"z-index": 500,
|
|
@@ -271,7 +271,7 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
271
271
|
]),
|
|
272
272
|
default: F(() => [
|
|
273
273
|
u("div", Re, [
|
|
274
|
-
(f(!0), y(ce, null, de(Y.value, (c) => (f(),
|
|
274
|
+
(f(!0), y(ce, null, de(Y.value, (c) => (f(), H(o, {
|
|
275
275
|
key: c.value ?? void 0,
|
|
276
276
|
label: c.label,
|
|
277
277
|
"model-value": c.value == C.value,
|
|
@@ -330,9 +330,9 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
330
330
|
});
|
|
331
331
|
export {
|
|
332
332
|
Te as F,
|
|
333
|
-
|
|
333
|
+
Oe as _,
|
|
334
334
|
Le as a,
|
|
335
335
|
$e as b,
|
|
336
336
|
J as c,
|
|
337
|
-
|
|
337
|
+
G as d
|
|
338
338
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
|
|
2
|
-
import { i as a,
|
|
2
|
+
import { i as a, H as y } from "./app-CUTIQqG_.js";
|
|
3
3
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
4
4
|
const v = { class: "flex flex-col" }, g = { 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" }, h = { class: "flex-1 py-8 px-16" }, b = {
|
|
5
5
|
class: "flex-0 py-8 px-16",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ref as q, defineComponent as te, computed as S, resolveComponent as w, openBlock as f, createBlock as B, withCtx as V, createVNode as c, unref as d, createElementBlock as A, Fragment as X, createElementVNode as m, createCommentVNode as j, renderSlot as ce, createTextVNode as Me, toDisplayString as T, normalizeClass as ee, onMounted as st, watch as Ye, renderList as se, isRef as De, createSlots as Ge, normalizeStyle as rt, Teleport as Pe, normalizeProps as it, guardReactiveProps as ut } from "vue";
|
|
2
|
-
import { a as ne, d as K, e as We, S as dt, f as mt, D as Be, h as be, A as _e, b as Ie, i as Ke, j as xe, t as Ze, k as ve, l as Ve, U as ct, m as pt, M as vt, n as Ne, o as ze, p as Le, q as Je, r as ft, s as Qe, v as yt, w as gt, I as bt, x as ht, y as _t, u as xt, z as kt, _ as Vt, B as St, C as Ct, E as He } from "./app-
|
|
2
|
+
import { a as ne, d as K, e as We, S as dt, f as mt, D as Be, h as be, A as _e, b as Ie, i as Ke, j as xe, t as Ze, k as ve, l as Ve, U as ct, m as pt, M as vt, n as Ne, o as ze, p as Le, q as Je, r as ft, s as Qe, v as yt, w as gt, I as bt, x as ht, y as _t, u as xt, z as kt, _ as Vt, B as St, C as Ct, E as He } from "./app-CUTIQqG_.js";
|
|
3
3
|
import { useDialog as Xe, useSnackbar as ke, useProxiedModel as Oe, useDialogChild as wt, useBreakpoints as Ft } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Mt, _ as It } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { useI18n as oe, useCoreStore as fe } from "@feedmepos/mf-common";
|
|
6
6
|
import { defineStore as $t, storeToRefs as Et } from "pinia";
|
|
7
7
|
import { g as Ut, _ as Se, S as Ce } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
8
|
-
import { _ as Rt } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as we } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as et } from "./feature-
|
|
8
|
+
import { _ as Rt } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DsM2bCNe.js";
|
|
9
|
+
import { _ as we } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-BOyqgaik.js";
|
|
10
|
+
import { u as et } from "./feature-D5GLIW5h.js";
|
|
11
11
|
import { _ as he } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
12
12
|
import { _ as At } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
13
13
|
import "./array-hChJVZLE.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as J, mergeModels as xe, useModel as Ee, onMounted as ae, ref as j, computed as R, resolveComponent as k, openBlock as S, createElementBlock as N, createElementVNode as r, toDisplayString as H, unref as E, createVNode as B, createBlock as Q, withCtx as O, Fragment as Z, renderList as W, normalizeClass as G, normalizeStyle as Be, createSlots as le, createCommentVNode as T, withModifiers as Ce, reactive as re, watch as ue, isRef as te, Teleport as de, h as z, createTextVNode as pe } from "vue";
|
|
2
2
|
import { E as Se } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import { aN as we, aF as ke, e as q, u as $, aO as Ve, b as ce, $ as _,
|
|
3
|
+
import { aN as we, aF as ke, e as q, u as $, aO as Ve, b as ce, $ as _, Q as Fe, aP as Le, aw as Ne, a as Me, aI as Re, ae as Oe, r as He, ar as ze, x as je, T as ee, _ as De, B as Xe } from "./app-CUTIQqG_.js";
|
|
4
4
|
import { useDialogChild as Te, useDialog as me, useProxiedModel as ne, useSnackbar as fe, useBreakpoints as oe, components as se } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as U, useCoreStore as Ae } from "@feedmepos/mf-common";
|
|
6
|
-
import { a as Qe, b as Je, u as Ye } from "./index-
|
|
7
|
-
import { u as Ke } from "./feature-
|
|
8
|
-
import { u as Ze } from "./vue-i18n-
|
|
6
|
+
import { a as Qe, b as Je, u as Ye } from "./index-DiEdX1Bs.js";
|
|
7
|
+
import { u as Ke } from "./feature-D5GLIW5h.js";
|
|
8
|
+
import { u as Ze } from "./vue-i18n-CxuQa0ds.js";
|
|
9
9
|
const Ue = "data:image/svg+xml,%3csvg%20width='200'%20height='101'%20viewBox='0%200%20200%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M98.9161%2038.4456V24.1772H108.527V27.1988H102.12V30.2202H107.347V32.7382H102.12V38.4456H98.9161Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.382%2031.2276C110.382%2027.5345%20113.249%2024.1772%20117.127%2024.1772C121.174%2024.1772%20123.872%2027.7024%20123.872%2031.3953C123.872%2035.0884%20121.005%2038.6133%20117.127%2038.6133C113.08%2038.4456%20110.382%2034.9204%20110.382%2031.2276ZM117.127%2035.5919C119.487%2035.5919%20120.499%2033.4096%20120.499%2031.2276C120.499%2029.0452%20119.319%2027.0309%20117.127%2027.0309C114.935%2027.0309%20113.754%2029.213%20113.754%2031.2276C113.754%2033.5776%20114.935%2035.5919%20117.127%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M126.232%2031.2276C126.232%2027.5345%20129.099%2024.1772%20132.977%2024.1772C137.024%2024.1772%20139.722%2027.7024%20139.722%2031.3953C139.722%2035.0884%20136.855%2038.6133%20132.977%2038.6133C128.93%2038.4456%20126.232%2034.9204%20126.232%2031.2276ZM132.977%2035.5919C135.337%2035.5919%20136.349%2033.4096%20136.349%2031.2276C136.349%2029.0452%20135.169%2027.0309%20132.977%2027.0309C130.785%2027.0309%20129.604%2029.213%20129.604%2031.2276C129.604%2033.5776%20130.785%2035.5919%20132.977%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M142.926%2038.4455V24.345H148.153C152.874%2024.345%20155.235%2027.5343%20155.235%2031.3952C155.235%2035.5918%20152.368%2038.4455%20148.153%2038.4455H142.926ZM148.153%2027.0308H146.129V35.4238H148.153C150.513%2035.4238%20151.862%2033.5775%20151.862%2031.2272C151.862%2028.8773%20150.513%2027.0308%20148.153%2027.0308Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.045%2057.5607V49.1676L107.009%2055.2107H105.324L102.12%2049.1676V57.5607H98.9161V43.4604H102.457L106.167%2050.8465L109.876%2043.4604H113.417V57.5607H110.045Z'%20fill='%235D5359'/%3e%3cpath%20d='M115.947%2057.5607L121.342%2043.4604H124.04L129.436%2057.5607H125.895L124.715%2054.3716H120.331L119.319%2057.5607H115.947ZM122.691%2046.9856L121.005%2052.1893H124.378L122.691%2046.9856Z'%20fill='%235D5359'/%3e%3cpath%20d='M131.965%2057.5607V43.4604H138.373C141.07%2043.4604%20142.925%2045.8105%20142.925%2048.1605C142.925%2049.8393%20142.082%2051.5179%20140.565%2052.1893L143.768%2057.393H140.059L137.192%2052.8607H135V57.393H131.965V57.5607ZM135.169%2050.175H138.204C139.047%2050.175%20139.553%2049.3356%20139.553%2048.1605C139.553%2046.9856%20138.71%2046.3142%20138.035%2046.3142H135.169V50.175Z'%20fill='%235D5359'/%3e%3cpath%20d='M146.635%2057.5607V43.4604H150.007V49.8393L155.403%2043.4604H158.776L153.548%2049.6713L159.281%2057.5607H155.74L151.693%2051.5179L150.007%2053.3642V57.5607H146.635Z'%20fill='%235D5359'/%3e%3cpath%20d='M171.422%2054.7073V57.5607H161.474V43.4604H171.253V46.3142H164.677V48.9999H170.242V51.6856H164.677V54.7073H171.422Z'%20fill='%235D5359'/%3e%3cpath%20d='M185.417%2046.3142H181.202V57.5607H177.829V46.3142H173.614V43.4604H185.417V46.3142Z'%20fill='%235D5359'/%3e%3cpath%20d='M111.057%2062.5967V76.6973H107.853V70.9898H102.12V76.6973H98.9161V62.5967H102.12V68.1361H107.853V62.5967H111.057Z'%20fill='%235D5359'/%3e%3cpath%20d='M124.04%2069.815V62.5967H127.244V69.815C127.244%2073.6758%20125.389%2076.865%20121.005%2076.865C116.453%2076.865%20114.766%2073.5078%20114.766%2069.815V62.5967H117.97V69.815C117.97%2071.997%20118.813%2074.0115%20121.005%2074.0115C123.366%2074.0115%20124.04%2071.997%20124.04%2069.815Z'%20fill='%235D5359'/%3e%3cpath%20d='M138.036%2076.6973H131.122V62.5967H139.047C141.071%2062.5967%20142.251%2064.4433%20142.251%2066.2898C142.251%2067.6327%20141.576%2068.9755%20140.228%2069.4793C141.914%2069.9827%20142.926%2071.1578%20142.926%2073.1721C142.757%2075.5221%20140.733%2076.6973%20138.036%2076.6973ZM134.326%2065.4504V68.3041H137.53C138.204%2068.3041%20138.879%2067.8004%20138.879%2066.7933C138.879%2065.7861%20138.373%2065.2827%20137.698%2065.2827H134.326V65.4504ZM138.204%2070.8221H134.494V73.8435H138.204C139.047%2073.8435%20139.722%2073.1721%20139.722%2072.3327C139.553%2071.6613%20138.879%2070.8221%20138.204%2070.8221Z'%20fill='%235D5359'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M73.4753%2051.4994C78.7281%2050.5396%2082.8911%2046.4891%2083.9954%2041.3137L84.1232%2040.7134L83.9445%2040.1256C80.5804%2029.066%2071.9945%2020.2704%2061.0373%2016.5726C57.4%2015.3451%2053.5046%2014.6804%2049.458%2014.6804C45.4112%2014.6804%2041.5158%2015.3451%2037.8784%2016.5726C26.9214%2020.2704%2018.3354%2029.066%2014.9712%2040.1256L14.7924%2040.7134L14.9206%2041.3137C16.0247%2046.4891%2020.1875%2050.5396%2025.4405%2051.4994V58.8839H14.4183C14.6758%2059.9557%2014.9818%2061.0088%2015.3337%2062.0411C20.1553%2076.1811%2033.6083%2086.3619%2049.458%2086.3619C65.3074%2086.3619%2078.7606%2076.1811%2083.5822%2062.0411C83.9342%2061.0088%2084.2399%2059.9557%2084.4974%2058.8839H73.4753V51.4994ZM41.0517%2020.5973V38.5742C41.0517%2043.1931%2044.8155%2046.9371%2049.458%2046.9371C54.1005%2046.9371%2057.8641%2043.1931%2057.8641%2038.5742V20.5973C55.1919%2019.856%2052.3732%2019.4592%2049.458%2019.4592C46.5428%2019.4592%2043.7241%2019.856%2041.0517%2020.5973ZM62.6675%2022.3673V38.5742C62.6675%2043.1931%2066.431%2046.9371%2071.0735%2046.9371C74.9051%2046.9371%2078.1425%2044.3848%2079.1528%2040.8942C76.4672%2032.6902%2070.4379%2025.9824%2062.6675%2022.3673ZM60.2658%2046.1322C57.8753%2049.5094%2053.9255%2051.7159%2049.458%2051.7159C44.9902%2051.7159%2041.0408%2049.5094%2038.65%2046.1322C36.6982%2048.8894%2033.7074%2050.8662%2030.2439%2051.4994V58.8839H68.6718V51.4994C65.2083%2050.8662%2062.2175%2048.8894%2060.2658%2046.1322ZM21.1583%2063.6628C26.1349%2074.2514%2036.9382%2081.5834%2049.458%2081.5834C61.9776%2081.5834%2072.781%2074.2514%2077.7574%2063.6628H21.1583ZM36.2482%2038.5742V22.3673C28.4779%2025.9824%2022.4486%2032.6902%2019.7631%2040.8942C20.7733%2044.3848%2024.0106%2046.9371%2027.8422%2046.9371C32.4847%2046.9371%2036.2482%2043.1931%2036.2482%2038.5742Z'%20fill='%23FFC35D'/%3e%3c/svg%3e";
|
|
10
10
|
var ye = { exports: {} };
|
|
11
11
|
(function(C, g) {
|