@feedmepos/mf-inventory-portal 0.0.25-dev.12 → 0.0.25-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-PehI6qSK.js → App-6g25LiMb.js} +2 -2
- package/dist/{ApprovalView-a6tbFyO2.js → ApprovalView-D1QD09Yc.js} +2 -2
- package/dist/{BindingsDialog-BNco1Vhd.js → BindingsDialog-eUQ1_YJ6.js} +2 -2
- package/dist/{BindingsPicker-Dns2kFS-.js → BindingsPicker-CG9yJgeU.js} +1 -1
- package/dist/{BindingsTable-DTrXzYzr.js → BindingsTable-BVRcqAy9.js} +1 -1
- package/dist/{ClosingDraftView-BXBkI6WL.js → ClosingDraftView-BBASz7i8.js} +2 -2
- package/dist/{ClosingTemplateView-BiAGOmVg.js → ClosingTemplateView-Bax4L6YF.js} +2 -2
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-IlN0Uj04.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CqU3Pubo.js} +3 -3
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-JDL6LVAb.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BBaQYJia.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DR5ewA1c.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DrZCk-3P.js} +1 -1
- package/dist/{IngredientGroupView-Bci0qysG.js → IngredientGroupView-Cs5ZJb3h.js} +1 -1
- package/dist/{IngredientsView-Dpc_GncE.js → IngredientsView-DrRbwLdZ.js} +4 -4
- package/dist/{IntegrationView-DCWg-DR4.js → IntegrationView-CF-K0lEk.js} +1 -1
- package/dist/{InventoryBindingForm-BwwF-2NM.js → InventoryBindingForm-Kq7F7Hxw.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-1BVSUfuT.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-djscF-a_.js} +54 -54
- package/dist/{InventoryBindingSummary-DgoHed7T.js → InventoryBindingSummary-9iGC54ax.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bu4Dw_6P.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CSVc9YqP.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CW7-Eu69.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C0liINI-.js} +1 -1
- package/dist/{PublishView-DVYBAYBI.js → PublishView-DSkvsS-T.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-Dp2v_J3o.js → PurchaseOrderPrintPreview-BZjkqH8w.js} +1 -1
- package/dist/ReceiveRequestView-DUmyosqT.js +2239 -0
- package/dist/{RecipeView-Cv5EH2Ah.js → RecipeView-B3mlZR2U.js} +3 -3
- package/dist/{StockView-B7x9Pywp.js → StockView-DS8W3pK-.js} +7 -7
- package/dist/{SupplierView-BgyqCgOQ.js → SupplierView-Pm-PoUsN.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-ByAN3s-h.js → TransferDetails.vue_vue_type_script_setup_true_lang-DTKXMB4E.js} +204 -197
- package/dist/TransferTemplateView-CEJK7_3f.js +1660 -0
- package/dist/{UnitView-IUEnJvH0.js → UnitView-CaA3eoV3.js} +3 -3
- package/dist/{WarehouseView-Bcwta2ui.js → WarehouseView-uL4l-lXl.js} +1 -1
- package/dist/{app-BKrf9Qul.js → app-DLF5oQUX.js} +4494 -4276
- package/dist/app.js +1 -1
- package/dist/components/FmMultiselectDialog.d.ts +23 -0
- package/dist/{decimal-pm1D555G.js → decimal-BfL1Dfin.js} +1 -1
- package/dist/{feature-IIGwFZ6m.js → feature-D67-S0RZ.js} +7 -2
- package/dist/{format-unit-display-DAzCcqoK.js → format-unit-display-e9wEtPRW.js} +2 -2
- package/dist/{index-phCfzXTb.js → index-mvz-S4fO.js} +2 -2
- package/dist/{stock-B9Im7AGF.js → stock-Bh8xDSyj.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-D5z7EqEg.js → supplier-BTSc7hfQ.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-QJXtuwbP.js → use-ingredient-select-dialog-BBI1-Yt3.js} +1 -1
- package/dist/{use-inventory-binding-dialog-DbK__hMV.js → use-inventory-binding-dialog-B06jZrl3.js} +1 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +370 -0
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +46 -0
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +490 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferSubItemTable.vue.d.ts +72 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +24 -0
- package/dist/views/receive-request/components/transfer-form/helpers/calculate-sub-item-total.helper.d.ts +4 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +624 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +624 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItem.vue.d.ts +270 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +286 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateSubItem.vue.d.ts +74 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateSubItemTable.vue.d.ts +92 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +35 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +420 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +420 -0
- package/dist/{vue-i18n-sbiTSWWp.js → vue-i18n-Dy5gAXv-.js} +209 -209
- package/package.json +3 -3
- package/dist/ReceiveRequestView-DVq8tkzd.js +0 -1885
- package/dist/TransferTemplateView-C30bwI6y.js +0 -1371
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as x, onUnmounted as F, defineComponent as h, watch as P, onMounted as U, 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 G, createCommentVNode as M } from "vue";
|
|
2
|
-
import { u as k, a as D, b as H, R as e, g as s, c as W } from "./app-
|
|
2
|
+
import { u as k, a as D, b as H, R as e, g as s, c as W } from "./app-DLF5oQUX.js";
|
|
3
3
|
import { useCoreStore as A, useI18n as B } from "@feedmepos/mf-common";
|
|
4
4
|
import { useRouter as C, useRoute as K } from "vue-router";
|
|
5
|
-
import { u as O } from "./feature-
|
|
5
|
+
import { u as O } from "./feature-D67-S0RZ.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 J, 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, az as _, aK as fe, ab as Q, y as _e, _ as ve, z as he, B as De, E as v } 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, az as _, aK as fe, ab as Q, y as _e, _ as ve, z as he, B as De, E as v } from "./app-DLF5oQUX.js";
|
|
3
|
+
import { a as ge, P as O, b as be, _ as ye } from "./TransferDetails.vue_vue_type_script_setup_true_lang-DTKXMB4E.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" }, Se = {
|
|
@@ -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, aQ as S } from "./app-
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-djscF-a_.js";
|
|
3
|
+
import { a as L, aQ as S } from "./app-DLF5oQUX.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, aQ as x, H as z } from "./app-
|
|
2
|
+
import { a as M, aQ as x, H as z } from "./app-DLF5oQUX.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 _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
|
|
2
|
-
import { F as v, a as E, aQ as F } from "./app-
|
|
2
|
+
import { F as v, a as E, aQ as F } from "./app-DLF5oQUX.js";
|
|
3
3
|
import { components as L } from "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
const P = /* @__PURE__ */ _({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as ye, ref as O, resolveComponent as E, openBlock as _, createBlock as ne, withCtx as N, createElementVNode as o, createTextVNode as ge, toDisplayString as L, unref as h, createVNode as D, h as $, computed as M, onMounted as He, watch as ze, isRef as _e, createElementBlock as F, Fragment as Z, createCommentVNode as le, normalizeClass as ie, renderList as ue, normalizeStyle as we, Teleport as Ee, mergeProps as Le } from "vue";
|
|
2
|
-
import { W as Ne, u as be, aj as q, l as Oe, J as he, i as C, t as Ve, K as ce, p as Ke, q as Ye, r as Ge, ak as ke, al as je, a6 as Ce, am as Se, an as oe, ac as qe, ai as J, T as Be, D as De, h as de, f as We, e as Ze, a as Je, y as Qe, _ as Xe, z as et, B as tt, E as me } from "./app-
|
|
2
|
+
import { W as Ne, u as be, aj as q, l as Oe, J as he, i as C, t as Ve, K as ce, p as Ke, q as Ye, r as Ge, ak as ke, al as je, a6 as Ce, am as Se, an as oe, ac as qe, ai as J, T as Be, D as De, h as de, f as We, e as Ze, a as Je, y as Qe, _ as Xe, z as et, B as tt, E as me } from "./app-DLF5oQUX.js";
|
|
3
3
|
import { useCoreStore as at, useI18n as Fe } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as Ae, useDialog as nt, useProxiedModel as ot, components as ae, useBreakpoints as st } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Re, storeToRefs as rt } from "pinia";
|
|
6
|
-
import { u as $e } from "./stock-
|
|
6
|
+
import { u as $e } from "./stock-Bh8xDSyj.js";
|
|
7
7
|
import { E as lt } from "./empty-placeholder-wf6-BWE8.js";
|
|
8
8
|
const Te = Ne((n, d) => {
|
|
9
9
|
function e() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as R, h as A, defineComponent as W, resolveComponent as E, openBlock as w, createElementBlock as I, createElementVNode as b, normalizeClass as q, createTextVNode as Fe, toDisplayString as C, unref as i, createCommentVNode as Q, createVNode as T, withCtx as P, Fragment as j, renderList as X, computed as U, watch as Re, createSlots as ie, createBlock as N, isRef as Pe, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as We, mergeProps as Je } from "vue";
|
|
2
|
-
import { W as qe, u as ue, ac as Qe, D as Se, h as O, f as Xe, e as Ae, ad as ce, q as Ze, ae as Ee, r as Ue, a as de, b as et, s as tt, v as Ve, w as nt, x as ot, d as K, E as J, G as st, af as lt, l as at, ag as rt, B as Ne, A as it, ah as ct, ai as re, y as mt, _ as ut, z as dt } from "./app-
|
|
2
|
+
import { W as qe, u as ue, ac as Qe, D as Se, h as O, f as Xe, e as Ae, ad as ce, q as Ze, ae as Ee, r as Ue, a as de, b as et, s as tt, v as Ve, w as nt, x as ot, d as K, E as J, G as st, af as lt, l as at, ag as rt, B as Ne, A as it, ah as ct, ai as re, y as mt, _ as ut, z as dt } from "./app-DLF5oQUX.js";
|
|
3
3
|
import { useCoreStore as pe, useI18n as Y } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as pt, useSnackbar as se, useDialog as Be, FmButtonVariant as De, components as G, useProxiedModel as ft, useBreakpoints as gt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Le, storeToRefs as ze } from "pinia";
|
|
6
|
-
import { u as vt } from "./use-ingredient-select-dialog-
|
|
6
|
+
import { u as vt } from "./use-ingredient-select-dialog-BBI1-Yt3.js";
|
|
7
7
|
const le = qe((l, o) => {
|
|
8
8
|
function n() {
|
|
9
9
|
var t;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as T, t as R, as as w, u as B, ax as E, aH as H, aI as z, aJ as U } from "./app-
|
|
2
|
-
import { u as D } from "./supplier-
|
|
3
|
-
import { P as F } from "./format-unit-display-
|
|
1
|
+
import { i as T, t as R, as as w, u as B, ax as E, aH as H, aI as z, aJ as U } from "./app-DLF5oQUX.js";
|
|
2
|
+
import { u as D } from "./supplier-BTSc7hfQ.js";
|
|
3
|
+
import { P as F } from "./format-unit-display-e9wEtPRW.js";
|
|
4
4
|
import { computed as f, defineComponent as x, mergeModels as j, useModel as q, ref as W, resolveComponent as V, openBlock as S, createElementBlock as I, normalizeStyle as $, createElementVNode as N, createVNode as J, withCtx as K, createBlock as g, createCommentVNode as O, Fragment as Q, renderList as X, unref as M } from "vue";
|
|
5
5
|
function Y(t, i, a) {
|
|
6
6
|
var s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as oe, mergeModels as j, useModel as se, computed as v, ref as P, watch as z, inject as ie, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as u, createVNode as M, withCtx as g, renderSlot as T, normalizeClass as V, toDisplayString as F, withDirectives as le, vModelText as ae, createCommentVNode as q, createTextVNode as ue, createBlock as W, Fragment as re, renderList as me } from "vue";
|
|
2
|
-
import { Z as I, I as k, O as L, K as ce, i as h, aF as de, t as pe, J as fe, al as ve, aD as be, aC as ye } from "./app-
|
|
2
|
+
import { Z as I, I as k, O as L, K as ce, i as h, aF as de, t as pe, J as fe, al as ve, aD as be, aC as ye } from "./app-DLF5oQUX.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, J as y } from "./app-
|
|
2
|
+
import { i as a, J as y } from "./app-DLF5oQUX.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,5 +1,5 @@
|
|
|
1
1
|
import { ref as C, computed as F, defineComponent as Y, resolveComponent as S, openBlock as M, createBlock as O, withCtx as R, createElementVNode as x, createVNode as g, unref as l, createElementBlock as ee, toDisplayString as j, createTextVNode as te, watch as ue, isRef as ce, normalizeClass as de, normalizeStyle as me, createSlots as pe, Teleport as fe, normalizeProps as ve, guardReactiveProps as ge } from "vue";
|
|
2
|
-
import { a as J, d as h, e as B, f as ye, D as oe, h as Q, G as be, l as _e, A as xe, H as ne, o as se, u as ke, y as he, _ as we, z as Se, B as Ie, E as ae } from "./app-
|
|
2
|
+
import { a as J, d as h, e as B, f as ye, D as oe, h as Q, G as be, l as _e, A as xe, H as ne, o as se, u as ke, y as he, _ as we, z as Se, B as Ie, E as ae } from "./app-DLF5oQUX.js";
|
|
3
3
|
import { useDialog as le, useSnackbar as Z, useProxiedModel as Fe, useBreakpoints as Ce } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as W } from "@feedmepos/mf-common";
|
|
5
5
|
import { defineStore as ie, storeToRefs as re } from "pinia";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ref as j, defineComponent as oe, computed as S, resolveComponent as C, openBlock as f, createBlock as B, withCtx as V, createVNode as p, unref as m, createElementBlock as A, Fragment as Q, createElementVNode as u, createCommentVNode as Y, renderSlot as ce, createTextVNode as Ie, toDisplayString as D, normalizeClass as X, onMounted as ot, watch as Oe, renderList as de, isRef as De, createSlots as qe, normalizeStyle as lt, Teleport as Pe, normalizeProps as at, guardReactiveProps as rt } from "vue";
|
|
2
|
-
import { a as le, d as K, e as Ge, S as st, f as it, D as Be, h as fe, A as ge, b as Me, i as We, j as be, t as Ke, k as pe, l as xe, U as dt, m as ut, M as mt, n as Ne, C as ke, o as Le, p as Ze, q as ct, r as Je, s as pt, v as vt, I as ft, w as yt, x as gt, u as bt, y as ht, _ as _t, z as xt, B as kt, E as ze } from "./app-
|
|
2
|
+
import { a as le, d as K, e as Ge, S as st, f as it, D as Be, h as fe, A as ge, b as Me, i as We, j as be, t as Ke, k as pe, l as xe, U as dt, m as ut, M as mt, n as Ne, C as ke, o as Le, p as Ze, q as ct, r as Je, s as pt, v as vt, I as ft, w as yt, x as gt, u as bt, y as ht, _ as _t, z as xt, B as kt, E as ze } from "./app-DLF5oQUX.js";
|
|
3
3
|
import { useDialog as Qe, useSnackbar as he, useProxiedModel as He, useDialogChild as Vt, useBreakpoints as St } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Ct, _ as wt } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { useI18n as ae, useCoreStore as ve } from "@feedmepos/mf-common";
|
|
6
6
|
import { defineStore as Ft, storeToRefs as It } from "pinia";
|
|
7
7
|
import { g as Mt, _ as Ve, S as Se } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
8
|
-
import { _ as $t } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as Ce } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as Xe } from "./feature-
|
|
8
|
+
import { _ as $t } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-djscF-a_.js";
|
|
9
|
+
import { _ as Ce } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DrZCk-3P.js";
|
|
10
|
+
import { u as Xe } from "./feature-D67-S0RZ.js";
|
|
11
11
|
import { _ as we } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
12
12
|
import { _ as Et } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
13
13
|
import "./array-hChJVZLE.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as Q, computed as H, defineComponent as Z, mergeModels as ve, useModel as pe, onMounted as Ie, resolveComponent as O, openBlock as k, createElementBlock as z, createElementVNode as f, toDisplayString as L, unref as b, createVNode as V, createBlock as K, withCtx as J, Fragment as G, renderList as U, normalizeClass as q, normalizeStyle as ye, createSlots as be, createCommentVNode as F, withModifiers as Ee, reactive as te, watch as ne, isRef as ie, Teleport as oe } from "vue";
|
|
2
2
|
import { E as he } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import { u as _, aO as se, b as re, aP as Be, aJ as Ce, e as T, _ as Se, z as ke } from "./app-
|
|
3
|
+
import { u as _, aO as se, b as re, aP as Be, aJ as Ce, e as T, _ as Se, z as ke } from "./app-DLF5oQUX.js";
|
|
4
4
|
import { useSnackbar as le, useDialogChild as xe, useDialog as ae, useProxiedModel as ue, useBreakpoints as $ } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Y, useCoreStore as we } from "@feedmepos/mf-common";
|
|
6
6
|
function Me() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as J, computed as _, reactive as Q, resolveComponent as x, openBlock as m, createElementBlock as y, createVNode as c, createElementVNode as n, toDisplayString as v, unref as l, createBlock as V, createCommentVNode as g, Fragment as R, renderList as S, withCtx as T, nextTick as X } from "vue";
|
|
2
|
-
import { a as Z, aR as ee, aS as ne, i as B, aT as oe, L as N, K as te, F as ie } from "./app-
|
|
3
|
-
import { u as le } from "./use-inventory-binding-dialog-
|
|
4
|
-
import { _ as
|
|
2
|
+
import { a as Z, aR as ee, aS as ne, i as B, aT as oe, L as N, K as te, F as ie } from "./app-DLF5oQUX.js";
|
|
3
|
+
import { u as le } from "./use-inventory-binding-dialog-B06jZrl3.js";
|
|
4
|
+
import { _ as re, c as se, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BBaQYJia.js";
|
|
5
5
|
import { useI18n as ae } from "@feedmepos/mf-common";
|
|
6
6
|
const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-16" }, ce = { class: "flex items-center" }, pe = { class: "flex-1 fm-typo-en-title-sm-600" }, fe = { class: "flex flex-col" }, ye = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, ve = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, _e = {
|
|
7
7
|
class: "flex items-center w-full border-b border-fm-color-neutral-gray-100",
|
|
@@ -31,70 +31,70 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["update:modelValue", "click:pick-inventory-bindings"],
|
|
33
33
|
setup(P, { emit: M }) {
|
|
34
|
-
const { t: p } = ae(), F = Z(), I = _(() => F.inventory.recipe ?? []), h = _(() => F.inventory.sku ?? []),
|
|
35
|
-
bindings:
|
|
36
|
-
recipes: I.value.map((
|
|
37
|
-
...
|
|
38
|
-
contains:
|
|
39
|
-
} :
|
|
34
|
+
const { t: p } = ae(), F = Z(), I = _(() => F.inventory.recipe ?? []), h = _(() => F.inventory.sku ?? []), r = P, f = M, w = _(() => ee({
|
|
35
|
+
bindings: r.modelValue,
|
|
36
|
+
recipes: I.value.map((o) => o._id === r.id ? {
|
|
37
|
+
...o,
|
|
38
|
+
contains: r.modelValue
|
|
39
|
+
} : o),
|
|
40
40
|
skus: h.value
|
|
41
|
-
}).inventoryBindings.filter((
|
|
41
|
+
}).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === ne.enum.circularDependency)), K = _(
|
|
42
42
|
() => new Set(w.value.map((e) => {
|
|
43
|
-
var
|
|
44
|
-
return (
|
|
43
|
+
var t;
|
|
44
|
+
return (t = e.bindingPaths[0]) == null ? void 0 : t.id;
|
|
45
45
|
}))
|
|
46
|
-
), D = _(() =>
|
|
46
|
+
), D = _(() => r.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: $, promptRecipesBinding: z } = le();
|
|
47
47
|
async function G() {
|
|
48
|
-
if (
|
|
48
|
+
if (r.iframeMode) {
|
|
49
49
|
f("click:pick-inventory-bindings", "RECIPE");
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
52
|
z(
|
|
53
|
-
|
|
53
|
+
r.modelValue,
|
|
54
54
|
(e) => f("update:modelValue", e),
|
|
55
|
-
|
|
55
|
+
r.id ? [r.id] : []
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
|
-
const U = _(() =>
|
|
58
|
+
const U = _(() => r.modelValue.filter((e) => e.type === "SKU") ?? []);
|
|
59
59
|
async function L() {
|
|
60
|
-
if (
|
|
60
|
+
if (r.iframeMode) {
|
|
61
61
|
f("click:pick-inventory-bindings", "SKU");
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
64
|
$(
|
|
65
|
-
|
|
65
|
+
r.modelValue,
|
|
66
66
|
(e) => f("update:modelValue", e),
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
r.excludeBindingId,
|
|
68
|
+
r.id ? [r.id] : []
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
|
-
function j(e,
|
|
72
|
-
const
|
|
73
|
-
let d =
|
|
74
|
-
|
|
71
|
+
function j(e, t, o) {
|
|
72
|
+
const s = +t;
|
|
73
|
+
let d = o;
|
|
74
|
+
t.length > 0 && isFinite(s) ? d = o.map((a) => (a.id !== e || (a.amount = te(s)), a)) : d = o.map((a) => (a.id !== e || (a.amount = { amount: 0, precision: 0 }), a)), f("update:modelValue", d);
|
|
75
75
|
}
|
|
76
|
-
function E(e,
|
|
77
|
-
const
|
|
78
|
-
f("update:modelValue",
|
|
76
|
+
function E(e, t) {
|
|
77
|
+
const o = t.filter((s) => s.id !== e);
|
|
78
|
+
f("update:modelValue", o);
|
|
79
79
|
}
|
|
80
80
|
function C(e) {
|
|
81
|
-
var
|
|
81
|
+
var o, s;
|
|
82
82
|
if (e.type !== ie.enum.SKU)
|
|
83
83
|
throw new Error("Non-SKU binding does not have unit");
|
|
84
|
-
if (!((
|
|
84
|
+
if (!((o = h.value.find((d) => d._id === e.id)) == null ? void 0 : o.unit))
|
|
85
85
|
throw new Error(`Cannot find ingredient: ${e.id}`);
|
|
86
|
-
return (
|
|
86
|
+
return (s = h.value.find((d) => d._id === e.id)) == null ? void 0 : s.unit;
|
|
87
87
|
}
|
|
88
88
|
function Y(e) {
|
|
89
89
|
return { amount: e.amount, measurement: e.measurement };
|
|
90
90
|
}
|
|
91
|
-
function O(e,
|
|
92
|
-
const
|
|
91
|
+
function O(e, t, o) {
|
|
92
|
+
const s = o.map((d) => d.id !== e ? d : {
|
|
93
93
|
...d,
|
|
94
|
-
amount:
|
|
95
|
-
measurement:
|
|
94
|
+
amount: t.amount,
|
|
95
|
+
measurement: t.measurement
|
|
96
96
|
});
|
|
97
|
-
f("update:modelValue",
|
|
97
|
+
f("update:modelValue", s);
|
|
98
98
|
}
|
|
99
99
|
const A = Q({});
|
|
100
100
|
function W(e) {
|
|
@@ -106,21 +106,21 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
106
106
|
amountAsString: B(e.amount)
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
function q(e,
|
|
109
|
+
function q(e, t) {
|
|
110
110
|
X(() => {
|
|
111
111
|
A[e.id] = {
|
|
112
112
|
modelValue: {
|
|
113
113
|
amount: e.amount,
|
|
114
114
|
measurement: e.measurement
|
|
115
115
|
},
|
|
116
|
-
amountAsString:
|
|
116
|
+
amountAsString: t
|
|
117
117
|
};
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
return (e,
|
|
121
|
-
const
|
|
120
|
+
return (e, t) => {
|
|
121
|
+
const o = x("FmFormGroup"), s = x("FmButton"), d = x("FmIcon"), a = x("FmTextField"), H = x("FmTooltip");
|
|
122
122
|
return m(), y("div", ue, [
|
|
123
|
-
c(
|
|
123
|
+
c(o, {
|
|
124
124
|
disabled: e.disabled,
|
|
125
125
|
"model-value": e.modelValue,
|
|
126
126
|
rules: e.rules
|
|
@@ -128,7 +128,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
128
128
|
n("div", me, [
|
|
129
129
|
n("div", ce, [
|
|
130
130
|
n("div", pe, v(l(p)("inventory.inventoryBindings.recipe")), 1),
|
|
131
|
-
e.readonly ? g("", !0) : (m(), V(
|
|
131
|
+
e.readonly ? g("", !0) : (m(), V(s, {
|
|
132
132
|
key: 0,
|
|
133
133
|
variant: "secondary",
|
|
134
134
|
"text-color": "primary",
|
|
@@ -141,10 +141,10 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
141
141
|
n("div", fe, [
|
|
142
142
|
n("div", ye, [
|
|
143
143
|
n("div", ve, v(l(p)("inventory.inventoryBindings.recipe")), 1),
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
t[0] || (t[0] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
145
|
+
t[1] || (t[1] = n("div", { class: "w-[52px]" }, null, -1))
|
|
146
146
|
]),
|
|
147
|
-
(m(!0), y(R, null, S(D.value, (i) => (m(), V(
|
|
147
|
+
(m(!0), y(R, null, S(D.value, (i) => (m(), V(o, {
|
|
148
148
|
key: i.id,
|
|
149
149
|
disabled: e.disabled,
|
|
150
150
|
modelValue: +l(B)(i.amount ?? { amount: 1, precision: 0 }),
|
|
@@ -163,7 +163,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
163
163
|
color: "system-error-400",
|
|
164
164
|
size: "sm"
|
|
165
165
|
}),
|
|
166
|
-
|
|
166
|
+
t[2] || (t[2] = n("div", null, "There is circular linking in your binding.", -1))
|
|
167
167
|
])) : g("", !0)
|
|
168
168
|
])
|
|
169
169
|
]),
|
|
@@ -177,7 +177,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
177
177
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
178
178
|
]),
|
|
179
179
|
e.readonly ? g("", !0) : (m(), y("div", Ve, [
|
|
180
|
-
c(
|
|
180
|
+
c(s, {
|
|
181
181
|
disabled: e.disabled,
|
|
182
182
|
type: "button",
|
|
183
183
|
variant: "plain",
|
|
@@ -196,7 +196,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
196
196
|
n("div", Be, [
|
|
197
197
|
n("div", ke, [
|
|
198
198
|
n("div", Fe, v(l(p)("inventory.inventoryBindings.ingredient")), 1),
|
|
199
|
-
e.readonly ? g("", !0) : (m(), V(
|
|
199
|
+
e.readonly ? g("", !0) : (m(), V(s, {
|
|
200
200
|
key: 0,
|
|
201
201
|
variant: "secondary",
|
|
202
202
|
"text-color": "primary",
|
|
@@ -210,7 +210,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
210
210
|
n("div", we, [
|
|
211
211
|
n("div", Ue, v(l(p)("inventory.inventoryBindings.ingredient")), 1),
|
|
212
212
|
n("div", Ee, v(l(p)("inventory.inventoryBindings.amount")), 1),
|
|
213
|
-
|
|
213
|
+
t[3] || (t[3] = n("div", { class: "w-[52px]" }, null, -1))
|
|
214
214
|
]),
|
|
215
215
|
(m(!0), y(R, null, S(U.value, (i, k) => {
|
|
216
216
|
var b;
|
|
@@ -240,7 +240,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
240
240
|
}, 8, ["content"])) : g("", !0)
|
|
241
241
|
]),
|
|
242
242
|
n("div", Se, [
|
|
243
|
-
c(
|
|
243
|
+
c(re, {
|
|
244
244
|
"model-value": Y(i),
|
|
245
245
|
"onUpdate:modelValue": (u) => O(i.id, u, e.modelValue),
|
|
246
246
|
"onUpdate:amount": (u) => q(i, u),
|
|
@@ -251,7 +251,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
251
251
|
}, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
|
|
252
252
|
]),
|
|
253
253
|
e.readonly ? g("", !0) : (m(), y("div", Te, [
|
|
254
|
-
c(
|
|
254
|
+
c(s, {
|
|
255
255
|
disabled: e.disabled,
|
|
256
256
|
type: "button",
|
|
257
257
|
variant: "tertiary",
|
|
@@ -261,14 +261,14 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
261
261
|
]))
|
|
262
262
|
]),
|
|
263
263
|
n("div", Ne, [
|
|
264
|
-
c(
|
|
264
|
+
c(o, {
|
|
265
265
|
modelValue: +l(B)(i.amount ?? { amount: 1, precision: 0 }),
|
|
266
266
|
rules: [l(N)(0)]
|
|
267
267
|
}, null, 8, ["modelValue", "rules"]),
|
|
268
|
-
c(
|
|
268
|
+
c(o, {
|
|
269
269
|
modelValue: W(i),
|
|
270
270
|
rules: [
|
|
271
|
-
l(
|
|
271
|
+
l(se)(),
|
|
272
272
|
l(de)(C(i))
|
|
273
273
|
]
|
|
274
274
|
}, null, 8, ["modelValue", "rules"])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as s, resolveComponent as c, openBlock as m, 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-DLF5oQUX.js";
|
|
5
5
|
const B = /* @__PURE__ */ s({
|
|
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 { K as d } from "./app-
|
|
2
|
+
import { K as d } from "./app-DLF5oQUX.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aA as d, aB as f, W as _, u as h } from "./app-
|
|
1
|
+
import { aA as d, aB as f, W as _, u as h } from "./app-DLF5oQUX.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 S, createVNode as l, withCtx as x } from "vue";
|
|
4
4
|
function I(e, t) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as j, computed as i, ref as q, resolveComponent as a, openBlock as z, createBlock as D, unref as p, createSlots as G, withCtx as r, createElementVNode as b, normalizeClass as J, createVNode as n, normalizeStyle as Q, Teleport as W, h } from "vue";
|
|
2
|
-
import { u as X, a as Z, y as ee, _ as te, ai as P } from "./app-
|
|
2
|
+
import { u as X, a as Z, y as ee, _ as te, ai as P } from "./app-DLF5oQUX.js";
|
|
3
3
|
import { useBreakpoints as oe, components as ne } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as le } from "./vue-i18n-
|
|
4
|
+
import { u as le } from "./vue-i18n-Dy5gAXv-.js";
|
|
5
5
|
const ae = { class: "flex flex-col py-8" }, se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ie = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, pe = /* @__PURE__ */ j({
|
|
6
6
|
__name: "PublishView",
|
|
7
7
|
setup(re) {
|
package/dist/{PurchaseOrderPrintPreview-Dp2v_J3o.js → PurchaseOrderPrintPreview-BZjkqH8w.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 { av as y, ah as C } from "./app-
|
|
3
|
+
import { av as y, ah as C } from "./app-DLF5oQUX.js";
|
|
4
4
|
const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, D = { class: "text-right" }, T = { class: "sub-header" }, q = { 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%" }
|