@feedmepos/mf-inventory-portal 1.2.5-dev.1 → 1.2.5
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-plHMDZk7.js → App-BkpSG-20.js} +1 -1
- package/dist/{ApprovalView-CChHxp4X.js → ApprovalView-B7GuyNL8.js} +49 -50
- package/dist/{BindingsDialog-CU-u0hJx.js → BindingsDialog-DU7WwMQQ.js} +2 -2
- package/dist/{BindingsPicker-BpbNVNQQ.js → BindingsPicker-DoikTRt9.js} +1 -1
- package/dist/{BindingsTable-v1QcskCd.js → BindingsTable-CR_HLrBt.js} +1 -1
- package/dist/ClosingDraftView-B-zuhr0m.js +1739 -0
- package/dist/{ClosingTemplateView-ancesrdQ.js → ClosingTemplateView-BXnzvooK.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-DLSzR6HB.js → DeliveryOrderPrintPreview-BGii4E5k.js} +8 -8
- package/dist/{FmAdminBadge-Cb9aT29U.js → FmAdminBadge-C7SFFAsw.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CLSMS6lS.js +227 -0
- package/dist/{FmMultiselectDialog-SoaYz3_K.js → FmMultiselectDialog-DxrZDApl.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D5k7Xk3M.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CG8hJ9BY.js} +15 -15
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-NY7TPnoY.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CaW3WMvN.js} +1 -1
- package/dist/{IngredientGroupView-DmbPHuWG.js → IngredientGroupView-CZXIEHF9.js} +2 -2
- package/dist/{IngredientsView-Bxb_BeyP.js → IngredientsView-BsD9bz4s.js} +61 -71
- package/dist/{IntegrationView-B8mnGO1_.js → IntegrationView-BwZLCHKQ.js} +84 -84
- package/dist/{InventoryBindingForm-B2tlc3uk.js → InventoryBindingForm-D1DjZ8GU.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-C-qi9Mri.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-977ZTGqB.js} +3 -3
- package/dist/{InventoryBindingSummary-BUkLwuPN.js → InventoryBindingSummary-DzTHC4EA.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-4W5T_8W7.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CVjIweiD.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DCtPbVFp.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BOynbtg3.js} +7 -7
- package/dist/{PublishView-Dkq9VZOG.js → PublishView-Qpnsfl9u.js} +7 -7
- package/dist/{PurchaseOrderPrintPreview-C-jyn09w.js → PurchaseOrderPrintPreview-Cu0Huq0q.js} +8 -8
- package/dist/{ReceiveRequestView-V4YNI_Jd.js → ReceiveRequestView-4-0jJ5tI.js} +79 -82
- package/dist/{RecipeView-Ck3RZRhC.js → RecipeView-CkzCMbst.js} +3 -3
- package/dist/{StockView-nstUyEXe.js → StockView-C2GZw_2q.js} +7 -7
- package/dist/{SupplierView-eXyZsmHQ.js → SupplierView-BMBCSjIF.js} +831 -862
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CNfrMUvj.js +2494 -0
- package/dist/{TransferTemplateView-DZG_UCWg.js → TransferTemplateView-BpGi9pYo.js} +57 -57
- package/dist/{UnitView-COiitpcS.js → UnitView-CyelRDgW.js} +3 -3
- package/dist/WarehouseView-CB1LmtPm.js +1034 -0
- package/dist/api/inventory.d.ts +0 -8
- package/dist/api/warehouse.d.ts +1 -3
- package/dist/{app-DayXXH4q.js → app-DLJ3tarV.js} +15279 -15838
- package/dist/app.d.ts +9 -24
- package/dist/app.js +1 -1
- package/dist/{decimal-CFYWiBC2.js → decimal-Y-vsqUV6.js} +1 -1
- package/dist/{format-unit-display-DIr9pTFo.js → format-unit-display-52tZYV50.js} +21 -21
- package/dist/{index-DLOpJmH-.js → index-PtOchBO2.js} +1 -1
- package/dist/{index-tQKFc6GI.js → index-Z9YSq95U.js} +1 -1
- package/dist/{stock-DeAkNJnm.js → stock-CN530yZJ.js} +1 -1
- package/dist/stores/feature.d.ts +0 -2
- package/dist/stores/inventory.d.ts +0 -1
- package/dist/stores/location.d.ts +1 -57
- package/dist/stores/supplier.d.ts +0 -96
- package/dist/stores/warehouse.d.ts +0 -4
- package/dist/{supplier-C4DAoZrI.js → supplier-B5VFlEyS.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CV7X8z4O.js → use-ingredient-select-dialog-CrLCvhtp.js} +1 -1
- package/dist/{use-inventory-binding-dialog-nuT-Ptlx.js → use-inventory-binding-dialog-zoNELf20.js} +1 -1
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +3 -3
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +0 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -60
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +0 -10
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -94
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1 -72
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +0 -8
- package/dist/views/supplier/composables/use-supplier-table.d.ts +0 -4
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +0 -8
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +0 -16
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +0 -48
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +0 -48
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +0 -8
- package/package.json +2 -2
- package/dist/ClosingDraftView-D9HwfK7e.js +0 -1687
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cp0j6Sx0.js +0 -230
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-OCR95cDM.js +0 -2578
- package/dist/WarehouseView-DhBpkfGm.js +0 -1066
- package/dist/api/shipment.d.ts +0 -11
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as P, h as F, defineComponent as L, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Pe, toDisplayString as C, unref as y, createCommentVNode as K, createVNode as $, withCtx as A, Fragment as j, renderList as J, computed as E, watch as Fe, createSlots as Re, createBlock as V, isRef as Oe, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as Je, mergeProps as We } from "vue";
|
|
2
|
-
import { a4 as qe, u as ie, aj as Qe, D as Z, i as N, h as Xe, f as Ae, ak as Ze, al as ae, v as et, am as Ee, w as Ne, a as ce, b as tt, x as nt, y as Ue, z as ot, B as st, an as lt, e as H, J as O, L as at, ao as rt, n as it, G as Ve, A as ct, ap as mt, a5 as le, C as ut, _ as dt, E as pt } from "./app-
|
|
2
|
+
import { a4 as qe, u as ie, aj as Qe, D as Z, i as N, h as Xe, f as Ae, ak as Ze, al as ae, v as et, am as Ee, w as Ne, a as ce, b as tt, x as nt, y as Ue, z as ot, B as st, an as lt, e as H, J as O, L as at, ao as rt, n as it, G as Ve, A as ct, ap as mt, a5 as le, C as ut, _ as dt, E as pt } from "./app-DLJ3tarV.js";
|
|
3
3
|
import { useCoreStore as me, useI18n as z } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as te, useDialogChild as ft, useSnackbar as ne, FmButtonVariant as ee, components as B, useProxiedModel as vt, useBreakpoints as gt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Be, storeToRefs as Le } from "pinia";
|
|
6
|
-
import { u as yt } from "./use-ingredient-select-dialog-
|
|
6
|
+
import { u as yt } from "./use-ingredient-select-dialog-CrLCvhtp.js";
|
|
7
7
|
const oe = qe((c, o) => {
|
|
8
8
|
function l() {
|
|
9
9
|
var t;
|
package/dist/{DeliveryOrderPrintPreview-DLSzR6HB.js → DeliveryOrderPrintPreview-BGii4E5k.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
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 {
|
|
4
|
-
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" },
|
|
3
|
+
import { aB as y, ap as w } from "./app-DLJ3tarV.js";
|
|
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"
|
|
7
|
-
}, S = { class: "sub-header" }, E = { class: "caption" }, T = { class: "address" }, q = { class: "text-right" }, F = { class: "sub-header" }, I = { class: "address" },
|
|
7
|
+
}, S = { class: "sub-header" }, E = { class: "caption" }, T = { class: "address" }, q = { class: "text-right" }, F = { class: "sub-header" }, I = { class: "address" }, B = { class: "purchase-body" }, U = { class: "text-left" }, H = { class: "text-left" }, L = { class: "text-left" }, M = { class: "text-left" }, V = { class: "text-left" }, J = { class: "text-right" }, j = { key: 0 }, z = {
|
|
8
8
|
key: 1,
|
|
9
9
|
style: { "padding-top": "30px" }
|
|
10
10
|
}, G = { valign: "bottom" }, Q = { class: "header" }, K = { class: "caption" }, W = {
|
|
@@ -41,12 +41,12 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
41
41
|
class: "logo",
|
|
42
42
|
src: s.value.logo,
|
|
43
43
|
alt: "logo"
|
|
44
|
-
}, null, 8,
|
|
44
|
+
}, null, 8, O)
|
|
45
45
|
])
|
|
46
46
|
]),
|
|
47
47
|
t("td", null, [
|
|
48
|
-
t("div",
|
|
49
|
-
t("div",
|
|
48
|
+
t("div", P, [
|
|
49
|
+
t("div", C, [
|
|
50
50
|
t("div", null, [
|
|
51
51
|
n(e(s.value.businessName), 1),
|
|
52
52
|
l[0] || (l[0] = t("br", null, null, -1)),
|
|
@@ -106,7 +106,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
106
106
|
])
|
|
107
107
|
])
|
|
108
108
|
]),
|
|
109
|
-
t("div",
|
|
109
|
+
t("div", B, [
|
|
110
110
|
t("table", null, [
|
|
111
111
|
l[19] || (l[19] = t("thead", { class: "item-header" }, [
|
|
112
112
|
t("tr", null, [
|
|
@@ -126,7 +126,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
126
126
|
], -1)),
|
|
127
127
|
t("tbody", null, [
|
|
128
128
|
t("tr", null, [
|
|
129
|
-
t("td",
|
|
129
|
+
t("td", U, e(s.value.orderNumber), 1),
|
|
130
130
|
t("td", H, e(s.value.ref), 1),
|
|
131
131
|
t("td", L, e(s.value.supplier.phoneNumber), 1)
|
|
132
132
|
])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, resolveComponent as i, unref as p, openBlock as l, createElementBlock as d, renderSlot as t, createElementVNode as s, normalizeClass as u, createVNode as f } from "vue";
|
|
2
2
|
import { useCoreStore as _ } from "@feedmepos/mf-common";
|
|
3
|
-
import { ap as v } from "./app-
|
|
3
|
+
import { ap as v } from "./app-DLJ3tarV.js";
|
|
4
4
|
const g = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "group gap-8 inline-flex items-center relative select-none"
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { j as C, t as R, az as w, u as B, aD as D, aP as E, l as H, aQ as U } from "./app-DLJ3tarV.js";
|
|
2
|
+
import { u as z } from "./supplier-B5VFlEyS.js";
|
|
3
|
+
import { P as L } from "./format-unit-display-52tZYV50.js";
|
|
4
|
+
import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as V, openBlock as T, createElementBlock as O, normalizeStyle as $, createElementVNode as N, createVNode as Q, withCtx as J, createBlock as g, createCommentVNode as A, Fragment as K, renderList as X, unref as M } from "vue";
|
|
5
|
+
function Y(t, i, l) {
|
|
6
|
+
var o;
|
|
7
|
+
if (!!i.measurement === !!l && ((o = i.measurement) == null ? void 0 : o.id) === l)
|
|
8
|
+
return i;
|
|
9
|
+
if (!l)
|
|
10
|
+
return {
|
|
11
|
+
costPerUnit: i.costPerUnit
|
|
12
|
+
};
|
|
13
|
+
const n = t.measurements.find((p) => p.id === l);
|
|
14
|
+
return n ? {
|
|
15
|
+
costPerUnit: i.costPerUnit,
|
|
16
|
+
measurement: n
|
|
17
|
+
} : {
|
|
18
|
+
costPerUnit: i.costPerUnit
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function oe(t, i, l, u) {
|
|
22
|
+
var P, _, s;
|
|
23
|
+
const a = (s = (_ = (P = u == null ? void 0 : u.supplier) == null ? void 0 : P.supplyItems) == null ? void 0 : _.find(
|
|
24
|
+
(e) => e.skuId === t._id
|
|
25
|
+
)) == null ? void 0 : s.defaultCost;
|
|
26
|
+
if (u != null && u.manualTotalCost)
|
|
27
|
+
return {
|
|
28
|
+
cost: u.manualTotalCost,
|
|
29
|
+
skuDefaultCost: t.defaultCost ?? void 0,
|
|
30
|
+
supplierOverrideCost: a ?? void 0
|
|
31
|
+
};
|
|
32
|
+
const n = t.defaultCost ? Y(t.unit, t.defaultCost, t.trackingMeasurement) : void 0, o = a ?? n, p = o == null ? void 0 : o.costPerUnit, v = p ? o != null && o.measurement ? +C(p) / +C(o == null ? void 0 : o.measurement.conversion) : +C(p) : void 0, b = v ? l ? v * +C(l.conversion) : v : void 0, h = b ? +C(i) * b : void 0;
|
|
33
|
+
return {
|
|
34
|
+
cost: h ? {
|
|
35
|
+
...R(h ?? 0, 2),
|
|
36
|
+
currency: w()
|
|
37
|
+
} : {
|
|
38
|
+
amount: 0,
|
|
39
|
+
precision: 0,
|
|
40
|
+
currency: w()
|
|
41
|
+
},
|
|
42
|
+
skuDefaultCost: t.defaultCost ?? void 0,
|
|
43
|
+
supplierOverrideCost: a ?? void 0
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function k(t) {
|
|
47
|
+
return E.parse(t);
|
|
48
|
+
}
|
|
49
|
+
function F(t) {
|
|
50
|
+
return {
|
|
51
|
+
_id: t.doc._id,
|
|
52
|
+
internal: t.type,
|
|
53
|
+
contactName: t.doc.profile.name,
|
|
54
|
+
name: t.doc.profile.name ?? "",
|
|
55
|
+
email: t.doc.profile.email,
|
|
56
|
+
phoneNumber: t.doc.profile.phoneNo,
|
|
57
|
+
registrationNumber: t.doc.profile.regNo,
|
|
58
|
+
address: t.doc.profile.address ?? {
|
|
59
|
+
line1: "",
|
|
60
|
+
state: "",
|
|
61
|
+
city: "",
|
|
62
|
+
postcode: "",
|
|
63
|
+
country: ""
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function ne(t, i, l = !1, u = !1) {
|
|
68
|
+
const a = z(), n = B();
|
|
69
|
+
n.watchLocation(async () => {
|
|
70
|
+
var y;
|
|
71
|
+
await a.readSuppliers();
|
|
72
|
+
const s = t();
|
|
73
|
+
if ((y = s.supplier) != null && y._id) return;
|
|
74
|
+
const e = u ? a.suppliers[0] : a.businessSuppliers[0], r = (l ? n.locations.filter((d) => d.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
|
|
75
|
+
i({
|
|
76
|
+
...s,
|
|
77
|
+
supplier: e ? k(e) : r ? F(r) : s.supplier
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
const o = f(
|
|
81
|
+
() => {
|
|
82
|
+
var s, e;
|
|
83
|
+
return typeof ((e = (s = t()) == null ? void 0 : s.supplier) == null ? void 0 : e.internal) == "string" ? L.TRANSFER : L.PURCHASE;
|
|
84
|
+
}
|
|
85
|
+
), p = f({
|
|
86
|
+
get() {
|
|
87
|
+
var s, e;
|
|
88
|
+
return (e = (s = t()) == null ? void 0 : s.supplier) == null ? void 0 : e._id;
|
|
89
|
+
},
|
|
90
|
+
set(s) {
|
|
91
|
+
const e = t() ?? {};
|
|
92
|
+
if (o.value === L.PURCHASE) {
|
|
93
|
+
const S = (u ? a.suppliers : a.businessSuppliers).find((I) => I._id === s);
|
|
94
|
+
i({
|
|
95
|
+
...e,
|
|
96
|
+
supplier: S ? k(S) : e.supplier
|
|
97
|
+
});
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const y = (l ? n.allLocations.filter(
|
|
101
|
+
(d) => d.doc._id !== n.currentLocation.doc._id
|
|
102
|
+
) : n.allLocations).find((d) => d.doc._id === s);
|
|
103
|
+
i({
|
|
104
|
+
...e,
|
|
105
|
+
supplier: y ? F(y) : e.supplier
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}), v = f(() => a.locationSuppliers.map(k)), b = f(() => a.businessSuppliers.map(k)), h = f(() => {
|
|
109
|
+
const s = [...v.value], e = [...b.value];
|
|
110
|
+
return u ? [...e, ...s] : e;
|
|
111
|
+
}), c = f(() => {
|
|
112
|
+
var m;
|
|
113
|
+
const s = ((m = n._currentLocation) == null ? void 0 : m.type) === D.warehouse;
|
|
114
|
+
return (l ? n.allLocations.filter(
|
|
115
|
+
(r) => r.doc._id !== n.currentLocation.doc._id
|
|
116
|
+
) : n.allLocations).filter((r) => s || r.acceptRequest).map(F);
|
|
117
|
+
}), P = f(() => {
|
|
118
|
+
if (o.value === L.PURCHASE) {
|
|
119
|
+
const e = v.value.map((r) => ({
|
|
120
|
+
label: r.name,
|
|
121
|
+
value: r._id
|
|
122
|
+
})), m = b.value.map((r) => ({
|
|
123
|
+
label: r.name,
|
|
124
|
+
sublabel: "Business supplier",
|
|
125
|
+
value: r._id
|
|
126
|
+
}));
|
|
127
|
+
return u ? [...e, ...m] : m;
|
|
128
|
+
}
|
|
129
|
+
return c.value.map((e) => ({
|
|
130
|
+
label: e.name,
|
|
131
|
+
sublabel: e.internal ? `${e.internal}` : void 0,
|
|
132
|
+
value: e._id
|
|
133
|
+
}));
|
|
134
|
+
}), _ = f(() => {
|
|
135
|
+
var r, y;
|
|
136
|
+
const s = (y = (r = t()) == null ? void 0 : r.supplier) == null ? void 0 : y._id;
|
|
137
|
+
if (o.value === L.PURCHASE) {
|
|
138
|
+
const d = a.suppliers.find((S) => S._id === s);
|
|
139
|
+
return d ? k(d) : null;
|
|
140
|
+
}
|
|
141
|
+
const m = n.allLocations.find((d) => d.doc._id);
|
|
142
|
+
return m ? F(m) : null;
|
|
143
|
+
});
|
|
144
|
+
return {
|
|
145
|
+
transferLocationModel: p,
|
|
146
|
+
transferLocationOptions: P,
|
|
147
|
+
locationOptionsTypePurchase: h,
|
|
148
|
+
locationOptionsTypePurchaseLocationLevel: v,
|
|
149
|
+
locationOptionsTypeTransfer: c,
|
|
150
|
+
selectedLocation: _
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
const Z = { class: "overflow-y-auto h-full pb-8" }, le = /* @__PURE__ */ j({
|
|
154
|
+
__name: "FmFilterableMenuOptions",
|
|
155
|
+
props: /* @__PURE__ */ q({
|
|
156
|
+
modelValue: {},
|
|
157
|
+
maxHeight: {},
|
|
158
|
+
width: {},
|
|
159
|
+
handleItemChange: { type: Function },
|
|
160
|
+
items: {},
|
|
161
|
+
options: {}
|
|
162
|
+
}, {
|
|
163
|
+
search: {},
|
|
164
|
+
searchModifiers: {}
|
|
165
|
+
}),
|
|
166
|
+
emits: ["update:search"],
|
|
167
|
+
setup(t) {
|
|
168
|
+
const i = t, l = x(t, "search"), u = f(
|
|
169
|
+
() => new H(i.items, ["label", "sublabel"], {
|
|
170
|
+
caseSensitive: !1,
|
|
171
|
+
sort: !0
|
|
172
|
+
})
|
|
173
|
+
), a = f(() => u.value.search(l.value)), n = W();
|
|
174
|
+
return console.log({ stickyRef: n }), (o, p) => {
|
|
175
|
+
const v = V("FmButton"), b = V("FmTextField"), h = V("FmMenuItem");
|
|
176
|
+
return T(), O("div", {
|
|
177
|
+
class: "relative",
|
|
178
|
+
style: $({ width: o.width })
|
|
179
|
+
}, [
|
|
180
|
+
N("div", {
|
|
181
|
+
class: "sticky top-0 bg-white mb-8",
|
|
182
|
+
ref_key: "stickyRef",
|
|
183
|
+
ref: n
|
|
184
|
+
}, [
|
|
185
|
+
Q(b, {
|
|
186
|
+
modelValue: l.value,
|
|
187
|
+
"onUpdate:modelValue": p[1] || (p[1] = (c) => l.value = c),
|
|
188
|
+
placeholder: "Filter options"
|
|
189
|
+
}, {
|
|
190
|
+
append: J(() => [
|
|
191
|
+
l.value ? (T(), g(v, {
|
|
192
|
+
key: 0,
|
|
193
|
+
variant: "tertiary",
|
|
194
|
+
"prepend-icon": "close",
|
|
195
|
+
onClick: p[0] || (p[0] = (c) => l.value = "")
|
|
196
|
+
})) : A("", !0)
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
}, 8, ["modelValue"])
|
|
200
|
+
], 512),
|
|
201
|
+
N("div", Z, [
|
|
202
|
+
(T(!0), O(K, null, X(a.value, (c, P) => (T(), g(h, {
|
|
203
|
+
key: P,
|
|
204
|
+
label: c.label,
|
|
205
|
+
sublabel: c.sublabel,
|
|
206
|
+
"model-value": M(U)(o.modelValue, c.value),
|
|
207
|
+
onClick: () => o.handleItemChange(M(U)(o.modelValue, c.value), c),
|
|
208
|
+
onVnodeMounted: (_) => {
|
|
209
|
+
var s, e;
|
|
210
|
+
return M(U)(o.modelValue, c.value) && ((s = _.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (e = _.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
211
|
+
}
|
|
212
|
+
}, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
|
|
213
|
+
a.value.length ? A("", !0) : (T(), g(h, {
|
|
214
|
+
key: 0,
|
|
215
|
+
disabled: "",
|
|
216
|
+
label: "No options available"
|
|
217
|
+
}))
|
|
218
|
+
])
|
|
219
|
+
], 4);
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
export {
|
|
224
|
+
le as _,
|
|
225
|
+
oe as c,
|
|
226
|
+
ne as u
|
|
227
|
+
};
|
|
@@ -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 { a3 as a } from "./app-
|
|
4
|
+
import { a3 as a } from "./app-DLJ3tarV.js";
|
|
5
5
|
import { h as S } from "vue";
|
|
6
6
|
const w = p("inventoryMultiSelectDialog", () => {
|
|
7
7
|
const l = y(), { t: n } = v();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
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 j, 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 { T as D, I as R, Z as O, V as fe, j as M,
|
|
2
|
+
import { T as D, I as R, Z as O, V as fe, j as M, aN as ve, t as be, b7 as ye, Q as he, at as Me, aL as ge, aK as xe } from "./app-DLJ3tarV.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 K() {
|
|
10
10
|
return function(f) {
|
|
11
11
|
return R()(f.amountAsString);
|
|
12
12
|
};
|
|
@@ -23,7 +23,7 @@ function qe(l) {
|
|
|
23
23
|
}
|
|
24
24
|
function Z(l, f = !1) {
|
|
25
25
|
return function(c) {
|
|
26
|
-
const s =
|
|
26
|
+
const s = K()(c);
|
|
27
27
|
if (s != !0)
|
|
28
28
|
return f ? s : !0;
|
|
29
29
|
const A = typeof l == "number" ? l : O(l, c.modelValue.measurement);
|
|
@@ -45,7 +45,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
45
45
|
}, Ue = {
|
|
46
46
|
key: 0,
|
|
47
47
|
class: "flex"
|
|
48
|
-
}, De = { class: "line-clamp-1 text-ellipsis break-all" }, Re = { class: "flex items-center gap-4" }, we = { class: "flex items-center" }, Ce = { class: "line-clamp-1 text-ellipsis break-all" },
|
|
48
|
+
}, De = { class: "line-clamp-1 text-ellipsis break-all" }, Re = { class: "flex items-center gap-4" }, we = { class: "flex items-center" }, Ce = { class: "line-clamp-1 text-ellipsis break-all" }, Ne = { class: "max-w-[200px] flex flex-col gap-[1px]" }, Se = {
|
|
49
49
|
key: 1,
|
|
50
50
|
class: "flex flex-col gap-4 pl-8 shrink-0"
|
|
51
51
|
}, Ve = {
|
|
@@ -130,7 +130,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
130
130
|
}), le(() => {
|
|
131
131
|
x && clearTimeout(x);
|
|
132
132
|
});
|
|
133
|
-
const
|
|
133
|
+
const J = Symbol.for("fm:form-state"), C = ue(J, null), P = v(() => t.disabled ?? (C == null ? void 0 : C.getDisabled()) ?? !1), X = B(), N = B(!1), $ = B(!1), Y = v(() => N.value || $.value), ee = v(() => {
|
|
134
134
|
var a;
|
|
135
135
|
const e = t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +M(o.conversion) != 1), n = ye.groupBy(
|
|
136
136
|
e,
|
|
@@ -148,7 +148,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
148
148
|
isBaseUnit: !1
|
|
149
149
|
}))
|
|
150
150
|
];
|
|
151
|
-
}),
|
|
151
|
+
}), S = v({
|
|
152
152
|
get() {
|
|
153
153
|
var e, n;
|
|
154
154
|
return ((n = (e = s.value) == null ? void 0 : e.measurement) == null ? void 0 : n.id) ?? null;
|
|
@@ -168,7 +168,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
|
-
E(
|
|
171
|
+
E(S, (e, n) => {
|
|
172
172
|
var m;
|
|
173
173
|
if (!t.convertAmountOnChangeUnit)
|
|
174
174
|
return;
|
|
@@ -192,7 +192,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
192
192
|
)) ?? [];
|
|
193
193
|
}
|
|
194
194
|
), ne = v(() => [...t.applyDefaultRules ? [
|
|
195
|
-
|
|
195
|
+
K(),
|
|
196
196
|
typeof t.precision == "number" ? Z(t.precision) : Z(t.unit)
|
|
197
197
|
] : [], ...te.value]);
|
|
198
198
|
function z(e) {
|
|
@@ -241,8 +241,8 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
241
241
|
type: "text",
|
|
242
242
|
ref_key: "inputRef",
|
|
243
243
|
ref: X,
|
|
244
|
-
onFocus: n[0] || (n[0] = () =>
|
|
245
|
-
onBlur: n[1] || (n[1] = () =>
|
|
244
|
+
onFocus: n[0] || (n[0] = () => N.value = !0),
|
|
245
|
+
onBlur: n[1] || (n[1] = () => N.value = !1),
|
|
246
246
|
"onUpdate:modelValue": n[2] || (n[2] = (m) => p.value = m),
|
|
247
247
|
class: j({
|
|
248
248
|
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
@@ -288,13 +288,13 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
288
288
|
])
|
|
289
289
|
]),
|
|
290
290
|
default: F(() => [
|
|
291
|
-
u("div",
|
|
291
|
+
u("div", Ne, [
|
|
292
292
|
(d(!0), y(de, null, pe(ee.value, (m) => (d(), U(o, {
|
|
293
293
|
key: m.value ?? void 0,
|
|
294
294
|
label: m.label,
|
|
295
295
|
icon: m.isBaseUnit ? void 0 : "square_foot",
|
|
296
|
-
"model-value": m.value ==
|
|
297
|
-
onClick: (k) =>
|
|
296
|
+
"model-value": m.value == S.value,
|
|
297
|
+
onClick: (k) => S.value = m.value
|
|
298
298
|
}, null, 8, ["label", "icon", "model-value", "onClick"]))), 128))
|
|
299
299
|
])
|
|
300
300
|
]),
|
|
@@ -304,7 +304,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
304
304
|
_: 1
|
|
305
305
|
})
|
|
306
306
|
], 2),
|
|
307
|
-
e.stepper ? (d(), y("div",
|
|
307
|
+
e.stepper ? (d(), y("div", Se, [
|
|
308
308
|
u("div", {
|
|
309
309
|
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",
|
|
310
310
|
onClick: oe
|
|
@@ -352,6 +352,6 @@ export {
|
|
|
352
352
|
We as _,
|
|
353
353
|
qe as a,
|
|
354
354
|
ze as b,
|
|
355
|
-
|
|
355
|
+
K as c,
|
|
356
356
|
Z 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 l, Fragment as d, renderList as x } from "vue";
|
|
2
|
-
import { j as a, Q as y } from "./app-
|
|
2
|
+
import { j as a, Q as y } from "./app-DLJ3tarV.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 A, computed as F, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as G, createElementBlock as B, createVNode as b, unref as l, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
|
|
2
|
-
import { a as P, e as S, f as L, h as Re, D as oe, i as K, I as Ie, A as Se, U as Ge, L as ue, O as Fe, N as Ve, n as de, P as Ce, r as ae, u as De, C as Ae, _ as $e, E as Te, G as Ee, J as le } from "./app-
|
|
2
|
+
import { a as P, e as S, f as L, h as Re, D as oe, i as K, I as Ie, A as Se, U as Ge, L as ue, O as Fe, N as Ve, n as de, P as Ce, r as ae, u as De, C as Ae, _ as $e, E as Te, G as Ee, J as le } from "./app-DLJ3tarV.js";
|
|
3
3
|
import { useDialog as Me, useSnackbar as J, components as U, useProxiedModel as Ue, useBreakpoints as Be } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as z, useCoreStore as Le } from "@feedmepos/mf-common";
|
|
5
5
|
import { defineStore as ce, storeToRefs as ie } from "pinia";
|
|
6
6
|
import "./array-Ca8T3f_G.js";
|
|
7
|
-
import { u as Pe } from "./FmMultiselectDialog-
|
|
7
|
+
import { u as Pe } from "./FmMultiselectDialog-DxrZDApl.js";
|
|
8
8
|
import { r as me } from "./random-CSbEbElR.js";
|
|
9
9
|
import { u as ze, R as Ne } from "./usePromise-CbVUCxhj.js";
|
|
10
10
|
const H = ce(
|