@feedmepos/mf-inventory-portal 1.0.12-dev.3 → 1.0.12-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-CljcnwTp.js → App-BSxRc3JF.js} +2 -2
- package/dist/{ApprovalView-DKHAt7sK.js → ApprovalView-BBndbpnz.js} +2 -2
- package/dist/{BindingsDialog-6ugkEqMg.js → BindingsDialog-CoRPrg5b.js} +2 -2
- package/dist/{BindingsPicker-CUEp4Rya.js → BindingsPicker-DdeQ_Vkf.js} +1 -1
- package/dist/{BindingsTable-CDEEfdfm.js → BindingsTable-DPKXKRBS.js} +1 -1
- package/dist/{ClosingDraftView-l-X-AkGj.js → ClosingDraftView-CvgPVUcg.js} +2 -2
- package/dist/{ClosingTemplateView-BG_TYDpD.js → ClosingTemplateView-DRgpYBau.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-C8jN6FgI.js → DeliveryOrderPrintPreview-vqsgTn93.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bs1AUyTV.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DdI812tj.js} +3 -3
- package/dist/{FmMultiselectDialog-EdDWUr8X.js → FmMultiselectDialog-BVUqH30W.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BowjSVzo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BS9MQAVk.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DBgStPS1.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BMvpqlmN.js} +1 -1
- package/dist/{IngredientGroupView-B7xqsZxh.js → IngredientGroupView-CRuw6dRS.js} +2 -2
- package/dist/{IngredientsView-B1-n1Zuh.js → IngredientsView-5Jq2BBP0.js} +4 -4
- package/dist/{IntegrationView-DZRfJNZa.js → IntegrationView-czmiUcF5.js} +5 -5
- package/dist/{InventoryBindingForm-GMN9TPaW.js → InventoryBindingForm-C5yAvWcN.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CeYnBXsj.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DZxssaIa.js} +44 -40
- package/dist/{InventoryBindingSummary-Ik2xxLpF.js → InventoryBindingSummary-BCzKlQOY.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BVO2un0T.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-cpILSt_J.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DhaFDjSB.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CTe9q8ix.js} +1 -1
- package/dist/{PublishView-BewFP4rz.js → PublishView-DNK7vuTD.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-1bOdlac_.js → PurchaseOrderPrintPreview-BLMA9OiX.js} +1 -1
- package/dist/{ReceiveRequestView-DyDpfSKU.js → ReceiveRequestView-BHJMjLkc.js} +10 -10
- package/dist/RecipeView-0C9CbBNc.js +622 -0
- package/dist/{StockView-D_X0Cfg7.js → StockView-CwDie1br.js} +7 -7
- package/dist/{SupplierView-D2SizsKP.js → SupplierView-XBAoB_XK.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-C0Pp6j3l.js → TransferDetails.vue_vue_type_script_setup_true_lang-CES7eOyv.js} +6 -6
- package/dist/{TransferTemplateView-BryKJByH.js → TransferTemplateView-poOhQGRA.js} +7 -7
- package/dist/{UnitView-sxq1JS_q.js → UnitView-9rKtKKS2.js} +3 -3
- package/dist/{WarehouseView-CPWmY5ep.js → WarehouseView-D11X_7to.js} +1 -1
- package/dist/{app-PeqY3WSF.js → app-DEZ6FsTN.js} +130 -251
- package/dist/app.d.ts +6 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-CdkeOQTR.js → decimal-CILSyfEB.js} +1 -1
- package/dist/{feature-BByh_whS.js → feature-XuYpCuw2.js} +77 -77
- package/dist/{format-unit-display-DWnOEHsP.js → format-unit-display-OseqwGyJ.js} +2 -2
- package/dist/{index-BV_MbLKM.js → index-CAfUwIY2.js} +2 -2
- package/dist/{index-Bzox-uMM.js → index-DyW7qzn7.js} +1 -1
- package/dist/{stock-rByuoj6o.js → stock--LUa0Ilc.js} +1 -1
- package/dist/{supplier-DIWM2MFM.js → supplier-BZwFoEFa.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-dO5sLLm4.js → use-ingredient-select-dialog-Dhk2Gkur.js} +1 -1
- package/dist/{use-inventory-binding-dialog-Dnn4uY0z.js → use-inventory-binding-dialog-qzyim5Y9.js} +1 -1
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +1 -0
- package/dist/{vue-i18n-BrUAO3nM.js → vue-i18n-BMDfePe2.js} +261 -261
- package/package.json +1 -1
- package/dist/RecipeView-aa5rptHU.js +0 -620
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as U, onUnmounted as F, defineComponent as h, watch as P, onMounted as w, computed as R, resolveComponent as I, openBlock as S, createElementBlock as b, unref as v, createVNode as _, createElementVNode as p, toDisplayString as G, createBlock as x, 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-DEZ6FsTN.js";
|
|
3
3
|
import { useCoreStore as A, useI18n as B } 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-XuYpCuw2.js";
|
|
6
6
|
import { u as $ } from "./useTabStorage-BkIVScW_.js";
|
|
7
7
|
import { u as Q } from "./googlemap-Dm8ERVai.js";
|
|
8
8
|
import "./array-Ca8T3f_G.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 l, normalizeClass as se, createVNode as n, normalizeStyle as le, toDisplayString as ie, createElementBlock as ce, 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 De, C as he, E as _ } from "./app-
|
|
3
|
-
import { a as ge, P as R, 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 De, C as he, E as _ } from "./app-DEZ6FsTN.js";
|
|
3
|
+
import { a as ge, P as R, b as be, _ as ye } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CES7eOyv.js";
|
|
4
4
|
import { useBreakpoints as xe } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Re } from "@feedmepos/mf-common";
|
|
6
6
|
const Oe = { 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, b6 as S } from "./app-
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DZxssaIa.js";
|
|
3
|
+
import { a as L, b6 as S } from "./app-DEZ6FsTN.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -1,5 +1,5 @@
|
|
|
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, b6 as x, W as z } from "./app-
|
|
2
|
+
import { a as M, b6 as x, W as z } from "./app-DEZ6FsTN.js";
|
|
3
3
|
const F = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
@@ -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 z, createBlock as M } from "vue";
|
|
2
|
-
import { F as b, a as P, b6 as R } from "./app-
|
|
2
|
+
import { F as b, a as P, b6 as R } from "./app-DEZ6FsTN.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 $e, ref as z, onMounted as Ie, computed as H, resolveComponent as I, openBlock as x, createElementBlock as T, Fragment as K, createTextVNode as pe, createBlock as J, withCtx as O, createElementVNode as o, toDisplayString as V, unref as h, createVNode as w, createCommentVNode as Z, h as F, reactive as Ze, watch as Je, isRef as Ue, normalizeClass as ve, renderList as he, normalizeStyle as He, Teleport as Xe, mergeProps as Qe } from "vue";
|
|
2
|
-
import { X as et, u as je, a8 as tt, af as at, ag as G, l as nt, H as Be, i as E, t as ot, J as De, q as st, r as rt, s as lt, ah as Ee, ai as Le, a3 as ze, aj as ne, a9 as ct, ae, T as Ne, D as Me, h as ke, f as it, e as ut, a as dt, z as mt, _ as ft, B as pt, C as vt, E as we } from "./app-
|
|
2
|
+
import { X as et, u as je, a8 as tt, af as at, ag as G, l as nt, H as Be, i as E, t as ot, J as De, q as st, r as rt, s as lt, ah as Ee, ai as Le, a3 as ze, aj as ne, a9 as ct, ae, T as Ne, D as Me, h as ke, f as it, e as ut, a as dt, z as mt, _ as ft, B as pt, C as vt, E as we } from "./app-DEZ6FsTN.js";
|
|
3
3
|
import { useCoreStore as yt, useI18n as Ve } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as Te, useDialog as gt, useProxiedModel as bt, components as fe, useBreakpoints as ht } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Oe, storeToRefs as Dt } from "pinia";
|
|
6
|
-
import { a as Ye, u as Ke } from "./stock
|
|
6
|
+
import { a as Ye, u as Ke } from "./stock--LUa0Ilc.js";
|
|
7
7
|
import { E as xt } from "./empty-placeholder-wf6-BWE8.js";
|
|
8
8
|
const Fe = et((n, s) => {
|
|
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-DEZ6FsTN.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-Dhk2Gkur.js";
|
|
7
7
|
const ee = qe((i, o) => {
|
|
8
8
|
function s() {
|
|
9
9
|
var t;
|
package/dist/{DeliveryOrderPrintPreview-C8jN6FgI.js → DeliveryOrderPrintPreview-vqsgTn93.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-DEZ6FsTN.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, ao 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, ao as w, u as R, as as B, aD as H, aE as D, aF as U } from "./app-DEZ6FsTN.js";
|
|
2
|
+
import { u as z } from "./supplier-BZwFoEFa.js";
|
|
3
|
+
import { P as F } from "./format-unit-display-OseqwGyJ.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 o;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as p } from "pinia";
|
|
2
2
|
import { useDialog as y } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as v } from "@feedmepos/mf-common";
|
|
4
|
-
import { W as a } from "./app-
|
|
4
|
+
import { W as a } from "./app-DEZ6FsTN.js";
|
|
5
5
|
import { h as S } from "vue";
|
|
6
6
|
const w = p("inventoryMultiSelectDialog", () => {
|
|
7
7
|
const l = y(), { t: n } = v();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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 M, 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 h, aB as fe, t as ve, H as be, ai as ye, az as Me, ay as he } from "./app-
|
|
2
|
+
import { $ as B, I as D, O as L, J as pe, i as h, aB as fe, t as ve, H as be, ai as ye, az as Me, ay as he } from "./app-DEZ6FsTN.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
function E() {
|
|
5
5
|
return {
|
|
@@ -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, H as y } from "./app-
|
|
2
|
+
import { i as a, H as y } from "./app-DEZ6FsTN.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,10 +1,10 @@
|
|
|
1
1
|
import { ref as he, computed as je, defineComponent as He, mergeModels as rl, useModel as by, onMounted as xy, openBlock as Z, createElementBlock as ce, Fragment as Oe, unref as L, createBlock as se, createCommentVNode as Te, watch as Gn, resolveComponent as G, createElementVNode as P, renderList as Ct, withCtx as $e, createVNode as T, toDisplayString as mt, renderSlot as wy, mergeProps as ky, normalizeClass as cl, h as Gt, createTextVNode as $y, isRef as Cy, normalizeStyle as Ay, createSlots as Sy, Teleport as Vy, normalizeProps as Iy, guardReactiveProps as Ry } from "vue";
|
|
2
|
-
import { a as jr, d as ht, e as gr, f as Ty, D as al, h as Fa, G as dl, l as fl, p as il, u as jy, z as Oy, _ as Fy, B as Ey, C as Zy, E as ul } from "./app-
|
|
2
|
+
import { a as jr, d as ht, e as gr, f as Ty, D as al, h as Fa, G as dl, l as fl, p as il, u as jy, z as Oy, _ as Fy, B as Ey, C as Zy, E as ul } from "./app-DEZ6FsTN.js";
|
|
3
3
|
import { useDialog as pl, useSnackbar as xu, useBreakpoints as hl, useDialogChild as Ny, components as Ea, useProxiedModel as Py } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as Or, useCoreStore as My } from "@feedmepos/mf-common";
|
|
5
5
|
import { defineStore as ml, storeToRefs as ol } from "pinia";
|
|
6
6
|
import "./array-Ca8T3f_G.js";
|
|
7
|
-
import { u as Dy } from "./FmMultiselectDialog-
|
|
7
|
+
import { u as Dy } from "./FmMultiselectDialog-BVUqH30W.js";
|
|
8
8
|
import { r as vl } from "./random-CSbEbElR.js";
|
|
9
9
|
import { u as Uy, R as zy } from "./usePromise-CbVUCxhj.js";
|
|
10
10
|
const vu = ml(
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ref as Y, 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 Ie, toDisplayString as T, normalizeClass as ee, onMounted as st, watch as qe, 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 Me, 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 Le, p as ze, 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 Me, 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 Le, p as ze, 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-DEZ6FsTN.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 It, _ as Mt } 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-DZxssaIa.js";
|
|
9
|
+
import { _ as we } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-BMvpqlmN.js";
|
|
10
|
+
import { u as et } from "./feature-XuYpCuw2.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 { r as Tt } from "./random-CSbEbElR.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as ze, mergeModels as gh, useModel as rl, onMounted as rs, ref as Ae, computed as pe, resolveComponent as Z, openBlock as Y, createElementBlock as se, createElementVNode as V, toDisplayString as Ie, unref as W, createVNode as G, createBlock as Me, withCtx as ae, Fragment as At, renderList as Yn, normalizeClass as Zt, normalizeStyle as ph, createSlots as Tr, createCommentVNode as Ne, withModifiers as vh, reactive as os, watch as ss, isRef as Si, Teleport as as, h as _e, createTextVNode as Jt } from "vue";
|
|
2
2
|
import { E as hh } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import { aN as ol, aF as _h, e as gn, u as ei, aO as Ih, b as Ti, aP as bi, av as s, aQ as Ah, aR as yh, aS as Eh, aT as bh, aU as sl, aV as Sh, at as Qo, aW as Ye, aX as Qe, $ as fe, k as Yo, aY as fn, ar as Ct, aZ as Th, a_ as Ku, aq as nt, a$ as Dh, b0 as wh, b1 as xh, b2 as us, b3 as Ch, i as Mh, a as al, b4 as Nh, W as Lh, T as Kn, Q as Rh, b5 as Fh, aw as Uh, aI as Oh, ae as Bh, r as kh, x as Ph, _ as Vh, B as Hh } from "./app-
|
|
3
|
+
import { aN as ol, aF as _h, e as gn, u as ei, aO as Ih, b as Ti, aP as bi, av as s, aQ as Ah, aR as yh, aS as Eh, aT as bh, aU as sl, aV as Sh, at as Qo, aW as Ye, aX as Qe, $ as fe, k as Yo, aY as fn, ar as Ct, aZ as Th, a_ as Ku, aq as nt, a$ as Dh, b0 as wh, b1 as xh, b2 as us, b3 as Ch, i as Mh, a as al, b4 as Nh, W as Lh, T as Kn, Q as Rh, b5 as Fh, aw as Uh, aI as Oh, ae as Bh, r as kh, x as Ph, _ as Vh, B as Hh } from "./app-DEZ6FsTN.js";
|
|
4
4
|
import { useDialogChild as jh, useDialog as ls, useProxiedModel as Di, useSnackbar as wi, useBreakpoints as ul, components as Xn } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Mt, useCoreStore as Dr } from "@feedmepos/mf-common";
|
|
6
|
-
import { a as qh, b as zh, u as Gh } from "./index-
|
|
7
|
-
import { u as cs } from "./vue-i18n-
|
|
8
|
-
import { _ as Wh, F as Kh } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as Xh } from "./feature-
|
|
6
|
+
import { a as qh, b as zh, u as Gh } from "./index-CAfUwIY2.js";
|
|
7
|
+
import { u as cs } from "./vue-i18n-BMDfePe2.js";
|
|
8
|
+
import { _ as Wh, F as Kh } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BS9MQAVk.js";
|
|
9
|
+
import { u as Xh } from "./feature-XuYpCuw2.js";
|
|
10
10
|
const Jh = "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";
|
|
11
11
|
var ll = { exports: {} };
|
|
12
12
|
(function(c, p) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as ne, computed as _, reactive as oe, resolveComponent as B, openBlock as
|
|
2
|
-
import { a as le, N as ie, b7 as se, i as V, b8 as N, K as
|
|
3
|
-
import { u as ae } from "./use-inventory-binding-dialog-
|
|
4
|
-
import { _ as ue, c as me, d as ce } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as ne, computed as _, reactive as oe, resolveComponent as B, openBlock as d, createElementBlock as y, createVNode as u, withCtx as I, createElementVNode as n, toDisplayString as f, unref as i, createBlock as h, createCommentVNode as v, Fragment as U, renderList as C, nextTick as te } from "vue";
|
|
2
|
+
import { a as le, N as ie, b7 as se, i as V, b8 as N, K as G, J as de, F as re } from "./app-DEZ6FsTN.js";
|
|
3
|
+
import { u as ae } from "./use-inventory-binding-dialog-qzyim5Y9.js";
|
|
4
|
+
import { _ as ue, c as me, d as ce } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BS9MQAVk.js";
|
|
5
5
|
import { useI18n as pe } from "@feedmepos/mf-common";
|
|
6
6
|
const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-16" }, ve = { class: "flex items-center" }, be = { class: "flex-1 fm-typo-en-title-sm-600" }, ge = { class: "flex flex-col" }, _e = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, xe = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, he = {
|
|
7
7
|
class: "flex items-center w-full border-b border-fm-color-neutral-gray-100",
|
|
@@ -12,7 +12,10 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
12
12
|
}, Ie = { class: "w-[200px]" }, we = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "w-[52px]"
|
|
15
|
-
}, Fe = {
|
|
15
|
+
}, Fe = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "flex flex-col gap-16"
|
|
18
|
+
}, Ue = { class: "flex items-center" }, Ce = { class: "flex-1 fm-typo-en-title-sm-600" }, Ge = { class: "flex flex-col" }, Ee = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Ae = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Re = {
|
|
16
19
|
class: "flex items-center w-full border-b border-fm-color-neutral-gray-100",
|
|
17
20
|
style: { "min-height": "48px" }
|
|
18
21
|
}, Se = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Te = { class: "flex flex-col" }, Pe = {
|
|
@@ -36,11 +39,12 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
36
39
|
rules: {},
|
|
37
40
|
iframeMode: { type: Boolean },
|
|
38
41
|
disabled: { type: Boolean },
|
|
39
|
-
readonly: { type: Boolean }
|
|
42
|
+
readonly: { type: Boolean },
|
|
43
|
+
enableIngredientGroup: { type: Boolean }
|
|
40
44
|
},
|
|
41
45
|
emits: ["update:modelValue", "click:pick-inventory-bindings"],
|
|
42
46
|
setup(M, { emit: K }) {
|
|
43
|
-
const { t: m } = pe(), x = le(), D = _(() => x.recipeById), w = _(() => x.skuById), $ = _(() => x.skuGroupById), s = M, b = K,
|
|
47
|
+
const { t: m } = pe(), x = le(), D = _(() => x.recipeById), w = _(() => x.skuById), $ = _(() => x.skuGroupById), s = M, b = K, E = _(() => ie({
|
|
44
48
|
bindings: s.modelValue,
|
|
45
49
|
recipes: x.recipes.map((t) => t._id === s.id ? {
|
|
46
50
|
...t,
|
|
@@ -49,7 +53,7 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
49
53
|
skus: x.skus,
|
|
50
54
|
skuGroups: x.skuGroups
|
|
51
55
|
}).inventoryBindings.filter((t) => "error" in t && t.error).map((t) => t).filter((t) => t.reason === se.enum.circularDependency)), A = _(
|
|
52
|
-
() => new Set(
|
|
56
|
+
() => new Set(E.value.map((e) => {
|
|
53
57
|
var o;
|
|
54
58
|
return (o = e.bindingPaths[0]) == null ? void 0 : o.id;
|
|
55
59
|
}))
|
|
@@ -87,32 +91,32 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
87
91
|
);
|
|
88
92
|
}
|
|
89
93
|
function S(e, o, t) {
|
|
90
|
-
const
|
|
94
|
+
const r = +o;
|
|
91
95
|
let c = t;
|
|
92
|
-
o.length > 0 && isFinite(
|
|
96
|
+
o.length > 0 && isFinite(r) ? c = t.map((a) => (a.id !== e || (a.amount = de(r)), a)) : c = t.map((a) => (a.id !== e || (a.amount = { amount: 0, precision: 0 }), a)), b("update:modelValue", c);
|
|
93
97
|
}
|
|
94
98
|
function F(e, o) {
|
|
95
|
-
const t = o.filter((
|
|
99
|
+
const t = o.filter((r) => r.id !== e);
|
|
96
100
|
b("update:modelValue", t);
|
|
97
101
|
}
|
|
98
102
|
function T(e) {
|
|
99
|
-
var t,
|
|
103
|
+
var t, r;
|
|
100
104
|
if (e.type !== re.enum.SKU)
|
|
101
105
|
throw new Error("Non-SKU binding does not have unit");
|
|
102
106
|
if (!((t = w.value[e.id]) == null ? void 0 : t.unit))
|
|
103
107
|
throw new Error(`Cannot find ingredient: ${e.id}`);
|
|
104
|
-
return (
|
|
108
|
+
return (r = w.value[e.id]) == null ? void 0 : r.unit;
|
|
105
109
|
}
|
|
106
110
|
function H(e) {
|
|
107
111
|
return { amount: e.amount, measurement: e.measurement };
|
|
108
112
|
}
|
|
109
113
|
function Q(e, o, t) {
|
|
110
|
-
const
|
|
114
|
+
const r = t.map((c) => c.id !== e ? c : {
|
|
111
115
|
...c,
|
|
112
116
|
amount: o.amount,
|
|
113
117
|
measurement: o.measurement
|
|
114
118
|
});
|
|
115
|
-
b("update:modelValue",
|
|
119
|
+
b("update:modelValue", r);
|
|
116
120
|
}
|
|
117
121
|
const P = oe({});
|
|
118
122
|
function X(e) {
|
|
@@ -136,8 +140,8 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
136
140
|
});
|
|
137
141
|
}
|
|
138
142
|
return (e, o) => {
|
|
139
|
-
const t = B("FmFormGroup"),
|
|
140
|
-
return
|
|
143
|
+
const t = B("FmFormGroup"), r = B("FmButton"), c = B("FmIcon"), a = B("FmTextField"), ee = B("FmTooltip");
|
|
144
|
+
return d(), y("div", ye, [
|
|
141
145
|
u(t, {
|
|
142
146
|
disabled: e.disabled,
|
|
143
147
|
"model-value": e.modelValue,
|
|
@@ -151,7 +155,7 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
151
155
|
n("div", fe, [
|
|
152
156
|
n("div", ve, [
|
|
153
157
|
n("div", be, f(i(m)("inventory.inventoryBindings.recipe")), 1),
|
|
154
|
-
e.readonly ? v("", !0) : (
|
|
158
|
+
e.readonly ? v("", !0) : (d(), h(r, {
|
|
155
159
|
key: 0,
|
|
156
160
|
variant: "secondary",
|
|
157
161
|
"text-color": "primary",
|
|
@@ -167,11 +171,11 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
167
171
|
o[1] || (o[1] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
168
172
|
o[2] || (o[2] = n("div", { class: "w-[52px]" }, null, -1))
|
|
169
173
|
]),
|
|
170
|
-
(
|
|
174
|
+
(d(!0), y(U, null, C(z.value, (l) => (d(), h(t, {
|
|
171
175
|
key: l.id,
|
|
172
176
|
disabled: e.disabled,
|
|
173
177
|
modelValue: +i(V)(l.amount ?? { amount: 1, precision: 0 }),
|
|
174
|
-
rules: [i(N)(0), i(
|
|
178
|
+
rules: [i(N)(0), i(G)(0)]
|
|
175
179
|
}, {
|
|
176
180
|
default: I(({ invalid: k }) => {
|
|
177
181
|
var g;
|
|
@@ -180,7 +184,7 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
180
184
|
n("div", Ve, [
|
|
181
185
|
n("div", ke, [
|
|
182
186
|
n("div", null, f((g = D.value[l.id]) == null ? void 0 : g.name), 1),
|
|
183
|
-
A.value.has(l.id) ? (
|
|
187
|
+
A.value.has(l.id) ? (d(), y("div", Be, [
|
|
184
188
|
u(c, {
|
|
185
189
|
name: "error",
|
|
186
190
|
color: "system-error-400",
|
|
@@ -199,8 +203,8 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
199
203
|
invalid: k
|
|
200
204
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
201
205
|
]),
|
|
202
|
-
e.readonly ? v("", !0) : (
|
|
203
|
-
u(
|
|
206
|
+
e.readonly ? v("", !0) : (d(), y("div", we, [
|
|
207
|
+
u(r, {
|
|
204
208
|
disabled: e.disabled,
|
|
205
209
|
type: "button",
|
|
206
210
|
variant: "plain",
|
|
@@ -216,10 +220,10 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
216
220
|
}, 1032, ["disabled", "modelValue", "rules"]))), 128))
|
|
217
221
|
])
|
|
218
222
|
]),
|
|
219
|
-
|
|
223
|
+
e.enableIngredientGroup ? (d(), y("div", Fe, [
|
|
220
224
|
n("div", Ue, [
|
|
221
225
|
n("div", Ce, f(i(m)("inventory.inventoryBindings.ingredientGroup")), 1),
|
|
222
|
-
e.readonly ? v("", !0) : (
|
|
226
|
+
e.readonly ? v("", !0) : (d(), h(r, {
|
|
223
227
|
key: 0,
|
|
224
228
|
variant: "secondary",
|
|
225
229
|
"text-color": "primary",
|
|
@@ -229,17 +233,17 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
229
233
|
onClick: W
|
|
230
234
|
}, null, 8, ["label"]))
|
|
231
235
|
]),
|
|
232
|
-
n("div",
|
|
233
|
-
n("div",
|
|
236
|
+
n("div", Ge, [
|
|
237
|
+
n("div", Ee, [
|
|
234
238
|
n("div", Ae, f(i(m)("inventory.inventoryBindings.ingredientGroup")), 1),
|
|
235
239
|
o[4] || (o[4] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
236
240
|
o[5] || (o[5] = n("div", { class: "w-[52px]" }, null, -1))
|
|
237
241
|
]),
|
|
238
|
-
(
|
|
242
|
+
(d(!0), y(U, null, C(J.value, (l) => (d(), h(t, {
|
|
239
243
|
key: l.id,
|
|
240
244
|
disabled: e.disabled,
|
|
241
245
|
modelValue: +i(V)(l.amount ?? { amount: 1, precision: 0 }),
|
|
242
|
-
rules: [i(N)(0), i(
|
|
246
|
+
rules: [i(N)(0), i(G)(0)]
|
|
243
247
|
}, {
|
|
244
248
|
default: I(({ invalid: k }) => {
|
|
245
249
|
var g;
|
|
@@ -248,7 +252,7 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
248
252
|
n("div", Se, [
|
|
249
253
|
n("div", Te, [
|
|
250
254
|
n("div", null, f((g = $.value[l.id]) == null ? void 0 : g.name), 1),
|
|
251
|
-
A.value.has(l.id) ? (
|
|
255
|
+
A.value.has(l.id) ? (d(), y("div", Pe, [
|
|
252
256
|
u(c, {
|
|
253
257
|
name: "error",
|
|
254
258
|
color: "system-error-400",
|
|
@@ -267,8 +271,8 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
267
271
|
invalid: k
|
|
268
272
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
269
273
|
]),
|
|
270
|
-
e.readonly ? v("", !0) : (
|
|
271
|
-
u(
|
|
274
|
+
e.readonly ? v("", !0) : (d(), y("div", Me, [
|
|
275
|
+
u(r, {
|
|
272
276
|
disabled: e.disabled,
|
|
273
277
|
type: "button",
|
|
274
278
|
variant: "plain",
|
|
@@ -283,11 +287,11 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
283
287
|
_: 2
|
|
284
288
|
}, 1032, ["disabled", "modelValue", "rules"]))), 128))
|
|
285
289
|
])
|
|
286
|
-
]),
|
|
290
|
+
])) : v("", !0),
|
|
287
291
|
n("div", Ke, [
|
|
288
292
|
n("div", De, [
|
|
289
293
|
n("div", $e, f(i(m)("inventory.inventoryBindings.ingredient")), 1),
|
|
290
|
-
e.readonly ? v("", !0) : (
|
|
294
|
+
e.readonly ? v("", !0) : (d(), h(r, {
|
|
291
295
|
key: 0,
|
|
292
296
|
variant: "secondary",
|
|
293
297
|
"text-color": "primary",
|
|
@@ -303,16 +307,16 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
303
307
|
n("div", Oe, f(i(m)("inventory.inventoryBindings.amount")), 1),
|
|
304
308
|
o[7] || (o[7] = n("div", { class: "w-[52px]" }, null, -1))
|
|
305
309
|
]),
|
|
306
|
-
(
|
|
310
|
+
(d(!0), y(U, null, C(R.value, (l, k) => {
|
|
307
311
|
var g;
|
|
308
|
-
return
|
|
312
|
+
return d(), y("div", {
|
|
309
313
|
key: l.id,
|
|
310
314
|
class: "flex flex-col border-b border-fm-color-neutral-gray-100"
|
|
311
315
|
}, [
|
|
312
316
|
n("div", Ye, [
|
|
313
317
|
n("div", Je, [
|
|
314
318
|
n("span", We, f((g = w.value[l.id]) == null ? void 0 : g.name), 1),
|
|
315
|
-
|
|
319
|
+
E.value.length ? (d(), h(ee, {
|
|
316
320
|
key: 0,
|
|
317
321
|
variant: "plain",
|
|
318
322
|
placement: "bottom",
|
|
@@ -341,8 +345,8 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
341
345
|
disabled: e.readonly
|
|
342
346
|
}, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
|
|
343
347
|
]),
|
|
344
|
-
e.readonly ? v("", !0) : (
|
|
345
|
-
u(
|
|
348
|
+
e.readonly ? v("", !0) : (d(), y("div", He, [
|
|
349
|
+
u(r, {
|
|
346
350
|
disabled: e.disabled,
|
|
347
351
|
type: "button",
|
|
348
352
|
variant: "tertiary",
|
|
@@ -354,7 +358,7 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
354
358
|
n("div", Qe, [
|
|
355
359
|
u(t, {
|
|
356
360
|
modelValue: +i(V)(l.amount ?? { amount: 1, precision: 0 }),
|
|
357
|
-
rules: [i(
|
|
361
|
+
rules: [i(G)(0)]
|
|
358
362
|
}, null, 8, ["modelValue", "rules"]),
|
|
359
363
|
u(t, {
|
|
360
364
|
modelValue: X(l),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, resolveComponent as m, openBlock as c, createBlock as d, h as g } from "vue";
|
|
2
2
|
import { useI18n as p } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as u } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as r } from "./app-
|
|
4
|
+
import { F as r } from "./app-DEZ6FsTN.js";
|
|
5
5
|
const w = /* @__PURE__ */ l({
|
|
6
6
|
__name: "InventoryBindingSummary",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as y, computed as V, ref as w, watch as h, resolveComponent as u, openBlock as F, createBlock as A, withCtx as s, createVNode as g, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import { J as d } from "./app-
|
|
2
|
+
import { J as d } from "./app-DEZ6FsTN.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aw as d, ax as f, X as _, u as h } from "./app-
|
|
1
|
+
import { aw as d, ax as f, X as _, u as h } from "./app-DEZ6FsTN.js";
|
|
2
2
|
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
3
3
|
import { ref as y, defineComponent as v, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as x, createVNode as l, withCtx as S } from "vue";
|
|
4
4
|
function w(e, t) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as Q, ref as D, computed as r, resolveComponent as s, openBlock as I, createBlock as B, unref as v, createSlots as X, withCtx as u, createElementVNode as h, normalizeClass as Z, createVNode as n, normalizeStyle as ee, Teleport as te, h as f } from "vue";
|
|
2
|
-
import { u as oe, a as ne, aM as ae, z as se, _ as le, ae as H } from "./app-
|
|
2
|
+
import { u as oe, a as ne, aM as ae, z as se, _ as le, ae as H } from "./app-DEZ6FsTN.js";
|
|
3
3
|
import { useBreakpoints as ie, useDialog as re, useSnackbar as ue, components as R } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as ce } from "./vue-i18n-
|
|
4
|
+
import { u as ce } from "./vue-i18n-BMDfePe2.js";
|
|
5
5
|
const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ge = /* @__PURE__ */ Q({
|
|
6
6
|
__name: "PublishView",
|
|
7
7
|
setup(ye) {
|
package/dist/{PurchaseOrderPrintPreview-1bOdlac_.js → PurchaseOrderPrintPreview-BLMA9OiX.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import { aq as y, ad as R } from "./app-
|
|
3
|
+
import { aq as y, ad as R } from "./app-DEZ6FsTN.js";
|
|
4
4
|
const C = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "text-right" }, P = { class: "header" }, D = { class: "sub-header" }, E = { class: "caption" }, O = { class: "address" }, S = { class: "text-right" }, q = { class: "sub-header" }, T = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
|
|
5
5
|
class: "text-left",
|
|
6
6
|
style: { width: "20%" }
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { reactive as vt, onMounted as ze, watch as pe, computed as U, h as j, defineComponent as ne, openBlock as h, createElementBlock as T, Fragment as le, renderList as Ce, createElementVNode as l, toDisplayString as E, unref as t, resolveComponent as I, createVNode as d, withCtx as V, createCommentVNode as B, ref as q, createBlock as Q, normalizeClass as K, normalizeStyle as yt, createTextVNode as Fe, nextTick as St, mergeProps as Ke, isRef as ke, createSlots as Ft, Teleport as $t, normalizeProps as Dt, guardReactiveProps as It } from "vue";
|
|
2
|
-
import { b as Be, $ as bt, l as Pe, i as xe, a1 as Qe, J as Tt, ao as Vt, A as Ne, M as Rt, m as gt, a8 as Xe, E as de, af as Pt, a as Le, ap as Et, aq as At, ar as qt, G as _t, u as Ze, as as Ut, at as Mt, a0 as Ot, T as Nt, au as zt, C as ht, W as Bt, d as Re, w as Lt, x as Ht, y as jt, av as Oe, a2 as dt, z as Yt, _ as Kt, B as Qt, L as mt } from "./app-
|
|
3
|
-
import { u as We, a as Xt, P as Ye, b as Zt, _ as Wt, g as Gt } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as kt, u as Jt, i as es, e as ts } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { b as Be, $ as bt, l as Pe, i as xe, a1 as Qe, J as Tt, ao as Vt, A as Ne, M as Rt, m as gt, a8 as Xe, E as de, af as Pt, a as Le, ap as Et, aq as At, ar as qt, G as _t, u as Ze, as as Ut, at as Mt, a0 as Ot, T as Nt, au as zt, C as ht, W as Bt, d as Re, w as Lt, x as Ht, y as jt, av as Oe, a2 as dt, z as Yt, _ as Kt, B as Qt, L as mt } from "./app-DEZ6FsTN.js";
|
|
3
|
+
import { u as We, a as Xt, P as Ye, b as Zt, _ as Wt, g as Gt } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CES7eOyv.js";
|
|
4
|
+
import { _ as kt, u as Jt, i as es, e as ts } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-CTe9q8ix.js";
|
|
5
5
|
import { u as ss } from "./useTabStorage-BkIVScW_.js";
|
|
6
6
|
import { useBreakpoints as Ge, components as ce, FmButtonVariant as os, useSnackbar as $e, useDialog as as, useProxiedModel as xt } from "@feedmepos/ui-library";
|
|
7
|
-
import { P as te, u as Ct } from "./format-unit-display-
|
|
8
|
-
import { _ as ls, F as ns, a as rs, b as is } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as Je } from "./feature-
|
|
10
|
-
import { c as ye, u as us, _ as ds } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { P as te, u as Ct } from "./format-unit-display-OseqwGyJ.js";
|
|
8
|
+
import { _ as ls, F as ns, a as rs, b as is } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BS9MQAVk.js";
|
|
9
|
+
import { u as Je } from "./feature-XuYpCuw2.js";
|
|
10
|
+
import { c as ye, u as us, _ as ds } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DdI812tj.js";
|
|
11
11
|
import { useI18n as fe } from "@feedmepos/mf-common";
|
|
12
|
-
import "./FmMultiselectDialog-
|
|
13
|
-
import { u as et } from "./supplier-
|
|
12
|
+
import "./FmMultiselectDialog-BVUqH30W.js";
|
|
13
|
+
import { u as et } from "./supplier-BZwFoEFa.js";
|
|
14
14
|
import { _ as ms } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
15
|
-
import { u as cs } from "./vue-i18n-
|
|
15
|
+
import { u as cs } from "./vue-i18n-BMDfePe2.js";
|
|
16
16
|
import "./array-Ca8T3f_G.js";
|
|
17
17
|
var Z = /* @__PURE__ */ ((b) => (b.Code = "Code", b.Name = "Name", b.TemplateName = "TemplateName", b.Amount = "Amount", b.Cost = "Cost", b.TotalCost = "TotalCost", b.Delete = "Delete", b))(Z || {});
|
|
18
18
|
const ps = () => (fe(), j(
|