@feedmepos/mf-inventory-portal 1.2.12-dev.3 → 1.2.12
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-D5hXQpVn.js → App-CP0Qx_82.js} +40 -44
- package/dist/{ApprovalView-B__WDklZ.js → ApprovalView-D8_PzEpZ.js} +30 -30
- package/dist/{BindingsDialog-DXdwRSnn.js → BindingsDialog-BbpKhb0L.js} +2 -2
- package/dist/{BindingsPicker-CqAD3aHc.js → BindingsPicker-DzDxisHj.js} +1 -1
- package/dist/{BindingsTable-DVNjpusl.js → BindingsTable-DCXXSY8e.js} +1 -1
- package/dist/{ClosingDraftView-DL678GBB.js → ClosingDraftView-CkF-9An8.js} +129 -129
- package/dist/{ClosingTemplateView-DThiXLtp.js → ClosingTemplateView-Ce1l7n0x.js} +28 -28
- package/dist/{DeliveryOrderPrintPreview-B2MB9S6a.js → DeliveryOrderPrintPreview-CFzsECiK.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BNxs6Bcr.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ZSERZzyn.js} +3 -3
- package/dist/{FmMultiselectDialog-B45ZLjVp.js → FmMultiselectDialog-DP992D0Q.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D8ks6AEM.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CzUvuj_c.js} +45 -45
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C5zIvG2h.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DsYwSn0d.js} +1 -1
- package/dist/{IngredientGroupView-D95dFXIZ.js → IngredientGroupView-DUiKKpvF.js} +32 -31
- package/dist/IngredientsView-C3ozIXV8.js +2475 -0
- package/dist/{IntegrationView-9m3N_9lW.js → IntegrationView-CydpIwrf.js} +57 -57
- package/dist/{InventoryBindingForm-kLoQskao.js → InventoryBindingForm-BVd2FzOW.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BytErBcK.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CYp_JSBb.js} +31 -31
- package/dist/{InventoryBindingSummary-Dg0FH7ad.js → InventoryBindingSummary-Dthool-6.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BKrUNLuG.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DR0_Qtyc.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BL1f817e.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BLfGb7mm.js} +1 -1
- package/dist/{PublishView-BcOHSAj3.js → PublishView-BE_aIhZ6.js} +15 -15
- package/dist/{PurchaseOrderPrintPreview-UfF8RVkv.js → PurchaseOrderPrintPreview-CGeqqFg-.js} +1 -1
- package/dist/{ReceiveRequestView-D_y_xNUb.js → ReceiveRequestView-Bul9Esf1.js} +63 -62
- package/dist/RecipeView-B9AGELV7.js +621 -0
- package/dist/{StockView-ciU6aAV7.js → StockView-fpJrx4Bd.js} +166 -165
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-XwDTGpR-.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeOEgJ1N.js} +1 -1
- package/dist/{SupplierView-DFwtALPg.js → SupplierView-cfZTJqef.js} +492 -490
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-m5o77oG-.js +3057 -0
- package/dist/{TransferTemplateView-BXr_GqTi.js → TransferTemplateView-PZ8Mad4D.js} +48 -48
- package/dist/UnitView-C3gJq1Mt.js +667 -0
- package/dist/{WarehouseView-BYd0bPhi.js → WarehouseView-CWGQjwJm.js} +32 -32
- package/dist/api/inventory.d.ts +0 -306
- package/dist/api/purchase-order.d.ts +0 -1
- package/dist/{app-Bb0-8bRg.js → app-D5PlbdVa.js} +11108 -11723
- package/dist/app.d.ts +0 -421
- package/dist/app.js +1 -1
- package/dist/array-Ca8T3f_G.js +44 -0
- package/dist/{closing-template-DPVNEyI7.js → closing-template-C4FizLUw.js} +1 -1
- package/dist/{decimal-BdBZYISm.js → decimal-Cv7FZ14q.js} +1 -1
- package/dist/{format-unit-display-DlmCwWo_.js → format-unit-display-B0NO6FLh.js} +25 -25
- package/dist/helper/number.d.ts +0 -1
- package/dist/{index-CqBKFj1B.js → index-BCo2jtpG.js} +1 -1
- package/dist/{index-CKFmV1Pk.js → index-DaJ92t7D.js} +1 -1
- package/dist/{purchase-order-template-CLtEYr5E.js → purchase-order-template-DLkR7Mva.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/{stock-nHQhfe2W.js → stock-AUSAF9Ij.js} +1 -1
- package/dist/stores/feature.d.ts +0 -2
- package/dist/stores/inventory.d.ts +199 -26
- package/dist/{supplier-DuOjLpOa.js → supplier-DBXoP2UX.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B-11Eqlm.js → use-ingredient-select-dialog-DZQR6jfi.js} +1 -1
- package/dist/{use-inventory-binding-dialog-DhLSdRtp.js → use-inventory-binding-dialog-8PZ37vLV.js} +1 -1
- package/dist/views/ingredients/helper/import-export.helper.d.ts +1 -3
- package/dist/views/recipe/RecipeView.vue.d.ts +0 -1
- package/dist/views/unit/UnitView.vue.d.ts +0 -1
- package/package.json +1 -1
- package/dist/ImportView-EXm_g_jD.js +0 -1303
- package/dist/IngredientsView-MF1USuZI.js +0 -2240
- package/dist/RecipeView-DOaU9GIF.js +0 -636
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CdA5_lEz.js +0 -3221
- package/dist/UnitView-CAXHvh3n.js +0 -674
- package/dist/import-export.helper-B04wszRI.js +0 -243
- package/dist/views/import/ImportView.vue.d.ts +0 -3
- package/dist/views/import/components/ImportDialog.vue.d.ts +0 -2
- package/dist/views/import/helper/import-export.helper.d.ts +0 -4
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +0 -17
- package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +0 -16
- package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +0 -2
- package/dist/views/recipe/helper/import-recipe.d.ts +0 -48
- package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +0 -12
- package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +0 -6
- package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +0 -9
- package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +0 -5
- package/dist/views/unit/helper/import-export.helper.d.ts +0 -40
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as P, h as F, defineComponent as B, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Me, toDisplayString as C, unref as y, createCommentVNode as
|
|
2
|
-
import { u as ie,
|
|
1
|
+
import { ref as P, h as F, defineComponent as B, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Me, toDisplayString as C, unref as y, createCommentVNode as G, createVNode as $, withCtx as A, Fragment as j, renderList as J, computed as E, watch as Pe, createSlots as Fe, createBlock as L, isRef as Oe, normalizeStyle as Ye, Teleport as Ke, normalizeProps as Ge, guardReactiveProps as Je, mergeProps as We } from "vue";
|
|
2
|
+
import { u as ie, an as qe, D as Z, j as V, i as Qe, f as Re, ao as Xe, ap as ae, B as Ze, aq as Ae, C as Ee, a as ce, b as et, E as tt, G as Ve, J as nt, K as ot, ar as st, e as H, V as O, X as lt, as as at, p as rt, T as Ue, A as it, at as ct, a9 as le, O as mt, P as ut, Q as dt } from "./app-D5PlbdVa.js";
|
|
3
3
|
import { useI18n as z, useCoreStore as Le } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as te, useDialogChild as pt, useSnackbar as ne, FmButtonVariant as ee, components as N, useProxiedModel as ft, useBreakpoints as vt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Ne, storeToRefs as Be } from "pinia";
|
|
6
|
-
import { u as oe } from "./closing-template-
|
|
7
|
-
import { u as gt } from "./use-ingredient-select-dialog-
|
|
6
|
+
import { u as oe } from "./closing-template-C4FizLUw.js";
|
|
7
|
+
import { u as gt } from "./use-ingredient-select-dialog-DZQR6jfi.js";
|
|
8
8
|
const se = Ne(
|
|
9
9
|
"closingTemplateTable",
|
|
10
10
|
function() {
|
|
@@ -550,13 +550,13 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
550
550
|
})
|
|
551
551
|
}, [
|
|
552
552
|
Me(C(r.name) + " ", 1),
|
|
553
|
-
r.type === "create" ? (k(), I("span", St, "(" + C(y(l)("inventory.closing.template.import.new")) + ")", 1)) :
|
|
553
|
+
r.type === "create" ? (k(), I("span", St, "(" + C(y(l)("inventory.closing.template.import.new")) + ")", 1)) : G("", !0)
|
|
554
554
|
], 2),
|
|
555
555
|
r.errors.length ? (k(), I("div", Dt, [
|
|
556
556
|
$(n, { "z-index": 50 }, {
|
|
557
557
|
content: A(() => [
|
|
558
558
|
_("ol", null, [
|
|
559
|
-
(k(!0), I(j, null,
|
|
559
|
+
(k(!0), I(j, null, J(r.errors, (a, v) => (k(), I("li", { key: v }, C(a), 1))), 128))
|
|
560
560
|
])
|
|
561
561
|
]),
|
|
562
562
|
default: A(() => [
|
|
@@ -568,7 +568,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
568
568
|
]),
|
|
569
569
|
_: 1
|
|
570
570
|
})
|
|
571
|
-
])) :
|
|
571
|
+
])) : G("", !0)
|
|
572
572
|
]),
|
|
573
573
|
_("div", {
|
|
574
574
|
class: Y([
|
|
@@ -703,7 +703,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
703
703
|
}, [
|
|
704
704
|
_("div", Et, C(l.value.name), 1)
|
|
705
705
|
], 2),
|
|
706
|
-
o.value ?
|
|
706
|
+
o.value ? G("", !0) : (k(), I("div", Vt, [
|
|
707
707
|
$(i, {
|
|
708
708
|
label: y(d)("inventory.ingredient.import.replaceFile"),
|
|
709
709
|
variant: a.value ? "destructive" : "secondary",
|
|
@@ -713,7 +713,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
713
713
|
]))
|
|
714
714
|
], 2),
|
|
715
715
|
g.value.length ? (k(), I("div", Ut, [
|
|
716
|
-
(k(!0), I(j, null,
|
|
716
|
+
(k(!0), I(j, null, J(g.value, (w, p) => (k(), I("div", {
|
|
717
717
|
key: p,
|
|
718
718
|
class: "flex gap-8 items-center"
|
|
719
719
|
}, [
|
|
@@ -724,7 +724,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
724
724
|
}),
|
|
725
725
|
_("div", Lt, C(w), 1)
|
|
726
726
|
]))), 128))
|
|
727
|
-
])) :
|
|
727
|
+
])) : G("", !0)
|
|
728
728
|
])
|
|
729
729
|
]),
|
|
730
730
|
key: "0"
|
|
@@ -732,7 +732,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
732
732
|
]), 1032, ["class", "label", "button-label"]),
|
|
733
733
|
v.value ? (k(), I("div", Nt, [
|
|
734
734
|
_("div", Bt, C(y(d)("inventory.ingredient.import.summary")), 1),
|
|
735
|
-
(k(!0), I(j, null,
|
|
735
|
+
(k(!0), I(j, null, J(m.value, (e, w) => (k(), L(De, {
|
|
736
736
|
key: w,
|
|
737
737
|
name: e.template.name,
|
|
738
738
|
locations: e.template.locations,
|
|
@@ -740,7 +740,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
740
740
|
errors: e.errors,
|
|
741
741
|
type: "create"
|
|
742
742
|
}, null, 8, ["name", "locations", "items", "errors"]))), 128)),
|
|
743
|
-
(k(!0), I(j, null,
|
|
743
|
+
(k(!0), I(j, null, J(f.value, (e) => (k(), L(De, {
|
|
744
744
|
key: e.template._id,
|
|
745
745
|
name: e.template.name,
|
|
746
746
|
locations: e.template.locations,
|
|
@@ -748,7 +748,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
748
748
|
errors: e.errors,
|
|
749
749
|
type: "update"
|
|
750
750
|
}, null, 8, ["name", "locations", "items", "errors"]))), 128))
|
|
751
|
-
])) :
|
|
751
|
+
])) : G("", !0)
|
|
752
752
|
], 64))
|
|
753
753
|
]);
|
|
754
754
|
};
|
|
@@ -992,7 +992,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
992
992
|
templateDetailsProps: x
|
|
993
993
|
};
|
|
994
994
|
});
|
|
995
|
-
var
|
|
995
|
+
var K = /* @__PURE__ */ ((u) => (u.Name = "Name", u.Unit = "Unit", u.Delete = "Delete", u))(K || {});
|
|
996
996
|
function Ht(u) {
|
|
997
997
|
return {
|
|
998
998
|
columnDefs: E(() => {
|
|
@@ -1194,7 +1194,7 @@ function Ht(u) {
|
|
|
1194
1194
|
})
|
|
1195
1195
|
};
|
|
1196
1196
|
}
|
|
1197
|
-
const jt = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, Yt = { class: "flex-1 flex flex-col" },
|
|
1197
|
+
const jt = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, Yt = { class: "flex-1 flex flex-col" }, Kt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Gt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Jt = { class: "flex flex-col gap-4" }, Wt = /* @__PURE__ */ B({
|
|
1198
1198
|
__name: "ClosingTemplateItem",
|
|
1199
1199
|
props: {
|
|
1200
1200
|
cellByColId: {},
|
|
@@ -1202,26 +1202,26 @@ const jt = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, Yt =
|
|
|
1202
1202
|
},
|
|
1203
1203
|
setup(u) {
|
|
1204
1204
|
const l = u, r = E(() => l.row), c = E(
|
|
1205
|
-
() => r.value.getVisibleCells().filter((o) => o.column.id !==
|
|
1205
|
+
() => r.value.getVisibleCells().filter((o) => o.column.id !== K.Name && o.column.id !== K.Delete)
|
|
1206
1206
|
);
|
|
1207
1207
|
return (o, n) => {
|
|
1208
1208
|
var g, m, f, a, v;
|
|
1209
1209
|
return k(), I("div", jt, [
|
|
1210
1210
|
_("div", Ot, [
|
|
1211
1211
|
_("div", Yt, [
|
|
1212
|
-
_("div",
|
|
1213
|
-
_("div",
|
|
1212
|
+
_("div", Kt, C(r.value.original.sku.name), 1),
|
|
1213
|
+
_("div", Gt, C(r.value.original.sku.code), 1)
|
|
1214
1214
|
]),
|
|
1215
1215
|
_("div", null, [
|
|
1216
1216
|
$(y(O), {
|
|
1217
|
-
render: (f = (m = (g = o.cellByColId[y(
|
|
1218
|
-
props: (v = (a = o.cellByColId[y(
|
|
1217
|
+
render: (f = (m = (g = o.cellByColId[y(K).Delete]) == null ? void 0 : g.column) == null ? void 0 : m.columnDef) == null ? void 0 : f.cell,
|
|
1218
|
+
props: (v = (a = o.cellByColId[y(K).Delete]) == null ? void 0 : a.getContext) == null ? void 0 : v.call(a)
|
|
1219
1219
|
}, null, 8, ["render", "props"])
|
|
1220
1220
|
])
|
|
1221
1221
|
]),
|
|
1222
|
-
_("div",
|
|
1222
|
+
_("div", Jt, [
|
|
1223
1223
|
n[0] || (n[0] = _("div", { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, null, -1)),
|
|
1224
|
-
(k(!0), I(j, null,
|
|
1224
|
+
(k(!0), I(j, null, J(c.value, (d) => {
|
|
1225
1225
|
var x, T, h;
|
|
1226
1226
|
return k(), I("div", {
|
|
1227
1227
|
key: d.id
|
|
@@ -1394,7 +1394,7 @@ const jt = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, Yt =
|
|
|
1394
1394
|
key: y(c).items.map((M) => M.sku._id).join(".")
|
|
1395
1395
|
}, {
|
|
1396
1396
|
default: A((M) => [
|
|
1397
|
-
$(
|
|
1397
|
+
$(Wt, {
|
|
1398
1398
|
row: D,
|
|
1399
1399
|
"cell-by-col-id": M
|
|
1400
1400
|
}, null, 8, ["row", "cell-by-col-id"])
|
|
@@ -1799,14 +1799,14 @@ const dn = /* @__PURE__ */ ct(mn, [["render", un]]), pn = { class: "flex flex-co
|
|
|
1799
1799
|
onRowClick: (U) => y(c)(U)
|
|
1800
1800
|
}, {
|
|
1801
1801
|
default: A((U) => {
|
|
1802
|
-
var ue, de, pe,
|
|
1802
|
+
var ue, de, pe, W, fe, ve, ge, ye, q, he, be, _e, xe, we, ke, Q, Te, $e, Ce, Ie, X, Se;
|
|
1803
1803
|
return [
|
|
1804
1804
|
_("div", Cn, [
|
|
1805
1805
|
_("div", In, [
|
|
1806
1806
|
_("div", Sn, [
|
|
1807
1807
|
$(y(O), {
|
|
1808
1808
|
render: (pe = (de = (ue = U._id) == null ? void 0 : ue.column) == null ? void 0 : de.columnDef) == null ? void 0 : pe.cell,
|
|
1809
|
-
props: (fe = (
|
|
1809
|
+
props: (fe = (W = U._id) == null ? void 0 : W.getContext) == null ? void 0 : fe.call(W)
|
|
1810
1810
|
}, null, 8, ["render", "props"])
|
|
1811
1811
|
]),
|
|
1812
1812
|
_("div", Dn, [
|
|
@@ -1847,9 +1847,9 @@ const dn = /* @__PURE__ */ ct(mn, [["render", un]]), pn = { class: "flex flex-co
|
|
|
1847
1847
|
]),
|
|
1848
1848
|
_: 1
|
|
1849
1849
|
}, 8, ["title", "actions"]),
|
|
1850
|
-
(k(), L(
|
|
1851
|
-
$(dn,
|
|
1852
|
-
$(cn,
|
|
1850
|
+
(k(), L(Ke, { to: "body" }, [
|
|
1851
|
+
$(dn, Ge(Je(y(m))), null, 16),
|
|
1852
|
+
$(cn, We(y(g), {
|
|
1853
1853
|
onSubmitted: S[2] || (S[2] = (M) => y(v).fetchTemplates())
|
|
1854
1854
|
}), null, 16)
|
|
1855
1855
|
]))
|
package/dist/{DeliveryOrderPrintPreview-B2MB9S6a.js → DeliveryOrderPrintPreview-CFzsECiK.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 { aG as y, at as w } from "./app-
|
|
3
|
+
import { aG as y, at as w } from "./app-D5PlbdVa.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 { l as T, t as A, aE as M, u as R, aI as B, aT as D, n as H, aU as U } from "./app-
|
|
2
|
-
import { u as z } from "./supplier-
|
|
3
|
-
import { P as C } from "./format-unit-display-
|
|
1
|
+
import { l as T, t as A, aE as M, u as R, aI as B, aT as D, n as H, aU as U } from "./app-D5PlbdVa.js";
|
|
2
|
+
import { u as z } from "./supplier-DBXoP2UX.js";
|
|
3
|
+
import { P as C } from "./format-unit-display-B0NO6FLh.js";
|
|
4
4
|
import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as w, openBlock as L, createElementBlock as O, normalizeStyle as $, createElementVNode as I, createVNode as J, withCtx as K, createBlock as V, createCommentVNode as E, Fragment as Q, renderList as X, unref as g } from "vue";
|
|
5
5
|
function Y(e, a, r) {
|
|
6
6
|
var o;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as p } from "pinia";
|
|
2
2
|
import { useDialog as v } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as y } from "@feedmepos/mf-common";
|
|
4
|
-
import { v as a } from "./app-
|
|
4
|
+
import { v as a } from "./app-D5PlbdVa.js";
|
|
5
5
|
import { h as S } from "vue";
|
|
6
6
|
const w = p("inventoryMultiSelectDialog", () => {
|
|
7
7
|
const l = v(), { t: n } = y();
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { defineComponent as ie, mergeModels as W, useModel as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as ie, mergeModels as W, useModel as ae, computed as v, ref as B, watch as E, onBeforeUnmount as le, inject as ue, resolveComponent as b, openBlock as d, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as G, normalizeClass as $, toDisplayString as _, withDirectives as re, vModelText as me, createCommentVNode as I, createTextVNode as ce, createBlock as U, Fragment as de, renderList as pe } from "vue";
|
|
2
|
+
import { a0 as D, I as R, x as j, a1 as fe, l as x, aS as ve, t as be, bc as ye, $ as he, ax as xe, aQ as Me, aP as ge } from "./app-D5PlbdVa.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
function H() {
|
|
5
5
|
return {
|
|
6
6
|
amount: D.reset()
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Z() {
|
|
10
10
|
return function(f) {
|
|
11
11
|
return R()(f.amountAsString);
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Oe(l) {
|
|
15
15
|
return function(t) {
|
|
16
|
-
return R()(t.amountAsString) !== !0 ? !0 : +t.amountAsString <
|
|
16
|
+
return R()(t.amountAsString) !== !0 ? !0 : +t.amountAsString < l ? `Must be at least ${l}` : !0;
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
function qe(
|
|
19
|
+
function qe(l) {
|
|
20
20
|
return function(t) {
|
|
21
|
-
return R()(t.amountAsString) !== !0 ? !0 : +t.amountAsString >
|
|
21
|
+
return R()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > l ? `Must be at most ${l}` : !0;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Q(l, f = !1) {
|
|
25
25
|
return function(c) {
|
|
26
|
-
const s =
|
|
26
|
+
const s = Z()(c);
|
|
27
27
|
if (s != !0)
|
|
28
28
|
return f ? s : !0;
|
|
29
|
-
const A = typeof
|
|
29
|
+
const A = typeof l == "number" ? l : j(l, c.modelValue.measurement);
|
|
30
30
|
return fe(+c.amountAsString).precision > A ? `Cannot exceed precision more than ${x({
|
|
31
31
|
amount: 1,
|
|
32
32
|
precision: A
|
|
33
33
|
})}` : !0;
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
function ze(
|
|
37
|
-
const f = ve(
|
|
36
|
+
function ze(l) {
|
|
37
|
+
const f = ve(l);
|
|
38
38
|
return function(c) {
|
|
39
39
|
return f(c.modelValue.amount);
|
|
40
40
|
};
|
|
@@ -51,7 +51,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
51
51
|
}, Ve = {
|
|
52
52
|
class: "flex items-center",
|
|
53
53
|
style: { "pointer-events": "none" }
|
|
54
|
-
},
|
|
54
|
+
}, Te = {
|
|
55
55
|
class: "flex items-center",
|
|
56
56
|
style: { "pointer-events": "none" }
|
|
57
57
|
}, We = /* @__PURE__ */ ie({
|
|
@@ -104,14 +104,14 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
104
104
|
modelModifiers: {}
|
|
105
105
|
}),
|
|
106
106
|
emits: /* @__PURE__ */ W(["update:amount", "update:measurement"], ["update:modelValue"]),
|
|
107
|
-
setup(
|
|
108
|
-
const t =
|
|
107
|
+
setup(l, { emit: f }) {
|
|
108
|
+
const t = l, c = f, s = ae(l, "modelValue"), A = R(), w = v(() => {
|
|
109
109
|
var n;
|
|
110
|
-
return
|
|
110
|
+
return j(t.unit, (n = s.value) == null ? void 0 : n.measurement);
|
|
111
111
|
}), p = B((() => {
|
|
112
112
|
var o;
|
|
113
|
-
const e = ((o = s.value) == null ? void 0 : o.amount) ?? D.reset(), n = Me(e), i = t.formatMinimumPrecision ?? n.precision,
|
|
114
|
-
return x(
|
|
113
|
+
const e = ((o = s.value) == null ? void 0 : o.amount) ?? D.reset(), n = Me(e), i = t.formatMinimumPrecision ?? n.precision, a = ge(n, i);
|
|
114
|
+
return x(a);
|
|
115
115
|
})());
|
|
116
116
|
let g = null;
|
|
117
117
|
E(p, (e) => {
|
|
@@ -127,18 +127,18 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
127
127
|
}
|
|
128
128
|
c("update:amount", e);
|
|
129
129
|
}, 500);
|
|
130
|
-
}),
|
|
130
|
+
}), le(() => {
|
|
131
131
|
g && clearTimeout(g);
|
|
132
132
|
});
|
|
133
|
-
const
|
|
134
|
-
var
|
|
133
|
+
const K = Symbol.for("fm:form-state"), C = ue(K, null), P = v(() => t.disabled ?? (C == null ? void 0 : C.getDisabled()) ?? !1), X = B(), S = B(!1), O = B(!1), Y = v(() => S.value || O.value), ee = v(() => {
|
|
134
|
+
var a;
|
|
135
135
|
const e = t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +x(o.conversion) != 1), n = ye.groupBy(
|
|
136
136
|
e,
|
|
137
137
|
(o) => `${o.abbrev}${x(o.conversion)}`
|
|
138
138
|
), i = Object.values(n).map((o) => o[0]);
|
|
139
139
|
return [
|
|
140
140
|
{
|
|
141
|
-
label: (
|
|
141
|
+
label: (a = t.unit) == null ? void 0 : a.abbrev,
|
|
142
142
|
value: null,
|
|
143
143
|
isBaseUnit: !0
|
|
144
144
|
},
|
|
@@ -172,11 +172,11 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
172
172
|
var m;
|
|
173
173
|
if (!t.convertAmountOnChangeUnit)
|
|
174
174
|
return;
|
|
175
|
-
const i = ((m = s.value) == null ? void 0 : m.amount) ?? D.reset(),
|
|
175
|
+
const i = ((m = s.value) == null ? void 0 : m.amount) ?? D.reset(), a = t.unit.measurements.find((k) => k.id === n) ?? null, o = t.unit.measurements.find((k) => k.id === e) ?? null, r = a ? he(i, a.conversion) : i, M = o ? xe(r, o.conversion) : r, T = j(t.unit, o), L = D.convertPrecision({
|
|
176
176
|
value: M,
|
|
177
|
-
precision:
|
|
177
|
+
precision: T
|
|
178
178
|
});
|
|
179
|
-
p.value = x(
|
|
179
|
+
p.value = x(L);
|
|
180
180
|
});
|
|
181
181
|
const q = v(() => {
|
|
182
182
|
var e;
|
|
@@ -192,11 +192,11 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
192
192
|
)) ?? [];
|
|
193
193
|
}
|
|
194
194
|
), ne = v(() => [...t.applyDefaultRules ? [
|
|
195
|
-
|
|
196
|
-
typeof t.precision == "number" ?
|
|
195
|
+
Z(),
|
|
196
|
+
typeof t.precision == "number" ? Q(t.precision) : Q(t.unit)
|
|
197
197
|
] : [], ...te.value]);
|
|
198
198
|
function z(e) {
|
|
199
|
-
const n = t.precision ?? w.value,
|
|
199
|
+
const n = t.precision ?? w.value, a = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, o = e.toFixed(a), r = o.includes(".") ? o.replace(/0+$/, "") : o;
|
|
200
200
|
return r.endsWith(".") ? r.slice(0, r.length - 1) : r;
|
|
201
201
|
}
|
|
202
202
|
function oe() {
|
|
@@ -212,7 +212,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
212
212
|
p.value = z(e);
|
|
213
213
|
}
|
|
214
214
|
return (e, n) => {
|
|
215
|
-
const i = b("FmLabel"),
|
|
215
|
+
const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), r = b("FmMenu"), M = b("FmTooltip"), T = b("FmField"), L = b("FmFormGroup");
|
|
216
216
|
return d(), y("div", Fe, [
|
|
217
217
|
u("div", _e, [
|
|
218
218
|
u("div", Ae, [
|
|
@@ -223,7 +223,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
223
223
|
optional: e.labelMark === "optional"
|
|
224
224
|
}, null, 8, ["label", "disabled", "required", "optional"])
|
|
225
225
|
]),
|
|
226
|
-
h(
|
|
226
|
+
h(T, { focused: Y.value }, {
|
|
227
227
|
default: F(() => [
|
|
228
228
|
u("div", Pe, [
|
|
229
229
|
G(e.$slots, "prepend"),
|
|
@@ -231,7 +231,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
231
231
|
u("div", Be, [
|
|
232
232
|
e.stepperOnly ? (d(), y("span", {
|
|
233
233
|
key: 0,
|
|
234
|
-
class:
|
|
234
|
+
class: $({
|
|
235
235
|
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
236
236
|
"text-fm-color-typo-primary": !P.value,
|
|
237
237
|
"text-fm-color-typo-disabled": P.value
|
|
@@ -240,11 +240,11 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
240
240
|
key: 1,
|
|
241
241
|
type: "text",
|
|
242
242
|
ref_key: "inputRef",
|
|
243
|
-
ref:
|
|
243
|
+
ref: X,
|
|
244
244
|
onFocus: n[0] || (n[0] = () => S.value = !0),
|
|
245
245
|
onBlur: n[1] || (n[1] = () => S.value = !1),
|
|
246
246
|
"onUpdate:modelValue": n[2] || (n[2] = (m) => p.value = m),
|
|
247
|
-
class:
|
|
247
|
+
class: $({
|
|
248
248
|
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
249
249
|
"text-fm-color-typo-primary": !P.value,
|
|
250
250
|
"text-fm-color-typo-disabled": P.value
|
|
@@ -255,7 +255,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
255
255
|
]),
|
|
256
256
|
e.separator ? (d(), y("div", Ie, _(e.separator), 1)) : I("", !0),
|
|
257
257
|
u("div", {
|
|
258
|
-
class:
|
|
258
|
+
class: $([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
|
|
259
259
|
}, [
|
|
260
260
|
h(M, { "z-index": 51 }, {
|
|
261
261
|
content: F(() => [
|
|
@@ -263,14 +263,14 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
263
263
|
]),
|
|
264
264
|
default: F(() => [
|
|
265
265
|
e.disableUnit ? (d(), y("div", Ue, [
|
|
266
|
-
q.value ? I("", !0) : (d(), U(
|
|
266
|
+
q.value ? I("", !0) : (d(), U(a, {
|
|
267
267
|
key: 0,
|
|
268
268
|
name: "square_foot"
|
|
269
269
|
})),
|
|
270
270
|
u("div", De, _(V.value), 1)
|
|
271
271
|
])) : (d(), U(r, {
|
|
272
272
|
key: 1,
|
|
273
|
-
onMenuChanged: n[3] || (n[3] = (m) =>
|
|
273
|
+
onMenuChanged: n[3] || (n[3] = (m) => O.value = m),
|
|
274
274
|
"z-index": 500,
|
|
275
275
|
placement: e.placement,
|
|
276
276
|
disabled: e.disabled
|
|
@@ -278,13 +278,13 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
278
278
|
"menu-button": F(() => [
|
|
279
279
|
u("div", Re, [
|
|
280
280
|
u("div", we, [
|
|
281
|
-
q.value ? I("", !0) : (d(), U(
|
|
281
|
+
q.value ? I("", !0) : (d(), U(a, {
|
|
282
282
|
key: 0,
|
|
283
283
|
name: "square_foot"
|
|
284
284
|
})),
|
|
285
285
|
u("div", Ce, _(V.value), 1)
|
|
286
286
|
]),
|
|
287
|
-
h(
|
|
287
|
+
h(a, { name: "keyboard_arrow_down" })
|
|
288
288
|
])
|
|
289
289
|
]),
|
|
290
290
|
default: F(() => [
|
|
@@ -310,7 +310,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
310
310
|
onClick: oe
|
|
311
311
|
}, [
|
|
312
312
|
u("div", Ve, [
|
|
313
|
-
h(
|
|
313
|
+
h(a, {
|
|
314
314
|
name: "expand_less",
|
|
315
315
|
size: "md"
|
|
316
316
|
})
|
|
@@ -320,8 +320,8 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
320
320
|
class: "w-24 h-12 flex items-center justify-center fm-corner-radius-sm bg-fm-color-neutral-gray-100 hover:bg-fm-color-neutral-gray-200",
|
|
321
321
|
onClick: se
|
|
322
322
|
}, [
|
|
323
|
-
u("div",
|
|
324
|
-
h(
|
|
323
|
+
u("div", Te, [
|
|
324
|
+
h(a, {
|
|
325
325
|
name: "expand_more",
|
|
326
326
|
size: "md"
|
|
327
327
|
})
|
|
@@ -335,7 +335,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
335
335
|
_: 3
|
|
336
336
|
}, 8, ["focused"])
|
|
337
337
|
]),
|
|
338
|
-
h(
|
|
338
|
+
h(L, {
|
|
339
339
|
class: "flex-1",
|
|
340
340
|
"model-value": { modelValue: s.value, amountAsString: String(p.value) },
|
|
341
341
|
info: e.labelInfo,
|
|
@@ -348,10 +348,10 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
348
348
|
}
|
|
349
349
|
});
|
|
350
350
|
export {
|
|
351
|
-
|
|
351
|
+
Oe as F,
|
|
352
352
|
We as _,
|
|
353
353
|
qe as a,
|
|
354
354
|
ze as b,
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
Z as c,
|
|
356
|
+
Q as d
|
|
357
357
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as i, Fragment as d, renderList as x } from "vue";
|
|
2
|
-
import { l as a,
|
|
2
|
+
import { l as a, $ as y } from "./app-D5PlbdVa.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",
|