@feedmepos/mf-inventory-portal 0.0.22-dev.37 → 0.0.22-dev.38
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/{ApprovalView-Dco0PkEf.js → ApprovalView-B1EiHn4f.js} +3 -3
- package/dist/{BindingsDialog-DrCU_kIA.js → BindingsDialog-DmYWCMdc.js} +1 -1
- package/dist/{BindingsPicker-BMIIrlG6.js → BindingsPicker-B35A7Px5.js} +1 -1
- package/dist/{BindingsTable-BHRmkL1P.js → BindingsTable-CtN6XTmL.js} +1 -1
- package/dist/{ClosingTemplateView-kiej8Nah.js → ClosingTemplateView-Ch8hg35a.js} +5 -5
- package/dist/{FmDroppableField-Bl7A98it.js → FmDroppableField-DK78vkN3.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DQw4pBwH.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-0p8dn-rc.js} +67 -67
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DBh79EM_.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DSQW1Ayz.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-3OkJNtvH.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bb0W0wUH.js} +1 -1
- package/dist/{IngredientsView-m44wAwSR.js → IngredientsView-C47jIp0f.js} +5 -5
- package/dist/{IntegrationView-B4gCx21K.js → IntegrationView-Dulaskd9.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D1frNXtV.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-btsYefZJ.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Dbs29jm_.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BGLxTaW8.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-lKu0y_xw.js → PurchaseOrderPrintPreview-BtDEZAgl.js} +1 -1
- package/dist/{ReceiveRequestView-DflWKxgq.js → ReceiveRequestView-Cf6UV1Gz.js} +1038 -1028
- package/dist/{RecipeView-DfsXdlPn.js → RecipeView-MagbCdki.js} +4 -4
- package/dist/{StockView-BSeSpxkV.js → StockView-D1TK5omK.js} +5 -5
- package/dist/{SupplierView-DPWh1si_.js → SupplierView-CIUY0y12.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Dt1lRW3W.js → TransferDetails.vue_vue_type_script_setup_true_lang-CacJUhOj.js} +5 -5
- package/dist/{TransferTemplateView-DGOT4oZN.js → TransferTemplateView-CetnHs4Q.js} +10 -10
- package/dist/{UnitView-X9bCqAWe.js → UnitView-BDZRBWlk.js} +4 -4
- package/dist/{WarehouseView-BphA-Peq.js → WarehouseView-DtUxLB_u.js} +2 -2
- package/dist/{app-DZiCiBV7.js → app-BGqgEJv-.js} +314 -314
- package/dist/app.js +1 -1
- package/dist/{decimal-Bx1Y3uW1.js → decimal-NPqoitzq.js} +1 -1
- package/dist/{defineDeepModel-4XZbatJF.js → defineDeepModel-C4ebJegy.js} +1 -1
- package/dist/{format-time-from-id-CFJvgP70.js → format-time-from-id-DkB5tphe.js} +1 -1
- package/dist/{purchase-order-transaction-type-Ds7YRAAp.js → purchase-order-transaction-type-ag48uMYt.js} +2 -2
- package/dist/{supplier-BhJT8KOX.js → supplier-CBaaZ4vA.js} +1 -1
- package/dist/{use-template-enabled-locations-2-BrEPVOpT.js → use-template-enabled-locations-2-CYsM7ABF.js} +1 -1
- package/dist/{xlsx-B9lpxKgq.js → xlsx-DQC0TWcU.js} +1 -1
- package/dist/{xlsx.util-DP5wVnRT.js → xlsx.util-N5bu_PXw.js} +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as ee, ref as h, watch as te, computed as U, resolveComponent as ae, openBlock as g, createBlock as G, unref as e, withCtx as b, createElementVNode as s, normalizeClass as oe, createVNode as n, normalizeStyle as re, toDisplayString as ne, createElementBlock as se, createCommentVNode as le, Teleport as ie, mergeProps as ce } from "vue";
|
|
2
|
-
import { i as pe, ag as f, V as J } from "./app-
|
|
3
|
-
import { b as ue, u as me, _ as de, a as fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { a as _e, b as ve, _ as De } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { i as pe, ag as f, V as J } from "./app-BGqgEJv-.js";
|
|
3
|
+
import { b as ue, u as me, _ as de, a as fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DSQW1Ayz.js";
|
|
4
|
+
import { a as _e, b as ve, _ as De } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CacJUhOj.js";
|
|
5
5
|
import { _ as he, F as _ } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
6
6
|
import { useBreakpoints as ge } from "@feedmepos/ui-library";
|
|
7
7
|
import { useI18n as be } from "@feedmepos/mf-common";
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { u as V, av as L, _ as S } from "./app-
|
|
2
|
+
import { u as V, av as L, _ as S } from "./app-BGqgEJv-.js";
|
|
3
3
|
const U = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, computed as u, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as r, createElementVNode as k } from "vue";
|
|
2
|
-
import { u as M, av as x, y as z } from "./app-
|
|
2
|
+
import { u as M, av as x, y as z } from "./app-BGqgEJv-.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 { j as v, u as E, av as L } from "./app-
|
|
2
|
+
import { j as v, u as E, av as L } from "./app-BGqgEJv-.js";
|
|
3
3
|
import { components as F } from "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
const P = /* @__PURE__ */ _({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ref as F, h as x, computed as P, defineComponent as Y, openBlock as k, createElementBlock as S, createElementVNode as f, toDisplayString as I, createVNode as _, unref as c, Fragment as _e, renderList as Ce, resolveComponent as V, createBlock as B, withCtx as R, watch as Me, isRef as Pe, createTextVNode as ve, normalizeClass as Fe, normalizeStyle as Se, Teleport as Ae, normalizeProps as Ve, guardReactiveProps as Ie, mergeProps as Re } from "vue";
|
|
2
|
-
import { u as Ue, _ as Ee, a as ze } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as Ue, _ as Ee, a as ze } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DSQW1Ayz.js";
|
|
3
3
|
import { useCoreStore as Ne, useI18n as J } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as X, useSnackbar as Q, FmButtonVariant as be, components as U, useProxiedModel as Be, useBreakpoints as Le } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as we, storeToRefs as Ye } from "pinia";
|
|
6
6
|
import { F as E, D as ye, R as z } from "./row-action.enum-PMKMRrZR.js";
|
|
7
|
-
import { n as je, c as xe, i as ke, u as Ke, R as Ge, A as He, y as Je, X as qe, Y as he } from "./app-
|
|
7
|
+
import { n as je, c as xe, i as ke, u as Ke, R as Ge, A as He, y as Je, X as qe, Y as he } from "./app-BGqgEJv-.js";
|
|
8
8
|
import { c as Oe, F as N, _ as Te } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
9
|
-
import { f as Xe } from "./format-time-from-id-
|
|
9
|
+
import { f as Xe } from "./format-time-from-id-DkB5tphe.js";
|
|
10
10
|
import "vue-router";
|
|
11
|
-
import { d as Qe } from "./defineDeepModel-
|
|
12
|
-
import { u as We } from "./use-template-enabled-locations-2-
|
|
11
|
+
import { d as Qe } from "./defineDeepModel-C4ebJegy.js";
|
|
12
|
+
import { u as We } from "./use-template-enabled-locations-2-CYsM7ABF.js";
|
|
13
13
|
const q = je((m, g) => {
|
|
14
14
|
function v() {
|
|
15
15
|
var s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as O, ref as r, computed as v, resolveComponent as z, openBlock as n, createElementBlock as p, createElementVNode as d, createCommentVNode as k, renderSlot as c, createBlock as C, normalizeClass as u, toDisplayString as g } from "vue";
|
|
2
|
-
import { X as N } from "./app-
|
|
2
|
+
import { X as N } from "./app-BGqgEJv-.js";
|
|
3
3
|
const M = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "relative"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { u as j } from "./supplier-
|
|
3
|
-
import { P as
|
|
1
|
+
import { a as P, t as B, a7 as A, i as D, ae as R, am as H, an as V } from "./app-BGqgEJv-.js";
|
|
2
|
+
import { u as j } from "./supplier-CBaaZ4vA.js";
|
|
3
|
+
import { P as S } from "./purchase-order-transaction-type-ag48uMYt.js";
|
|
4
4
|
import { computed as y, defineComponent as $, mergeModels as W, useModel as J, resolveComponent as w, openBlock as F, createElementBlock as I, normalizeStyle as K, createElementVNode as N, createVNode as Q, withCtx as X, createBlock as x, createCommentVNode as E, Fragment as Y, renderList as Z, unref as M } from "vue";
|
|
5
|
-
function ne(c,
|
|
6
|
-
var
|
|
5
|
+
function ne(c, i, t, s) {
|
|
6
|
+
var b, g, u;
|
|
7
7
|
if (s != null && s.manualTotalCost)
|
|
8
8
|
return s == null ? void 0 : s.manualTotalCost;
|
|
9
|
-
const e = (u = (
|
|
9
|
+
const e = (u = (g = (b = s == null ? void 0 : s.supplier) == null ? void 0 : b.supplyItems) == null ? void 0 : g.find(
|
|
10
10
|
(r) => r.skuId === c._id
|
|
11
|
-
)) == null ? void 0 : u.defaultCost, o = c.defaultCost, n = e ?? o,
|
|
11
|
+
)) == null ? void 0 : u.defaultCost, o = c.defaultCost, n = e ?? o, l = n == null ? void 0 : n.costPerUnit, a = l ? n != null && n.measurement ? +P(l) / +P(n == null ? void 0 : n.measurement.conversion) : +P(l) : void 0, p = a ? t ? a * +P(t.conversion) : a : void 0, d = p ? +P(i) * p : void 0;
|
|
12
12
|
return d ? {
|
|
13
13
|
...B(d ?? 0, 2),
|
|
14
14
|
currency: A()
|
|
@@ -39,7 +39,7 @@ function T(c) {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function oe(c,
|
|
42
|
+
function oe(c, i, t = !1, s = !1) {
|
|
43
43
|
const e = j(), o = D();
|
|
44
44
|
o.watchLocation(async () => {
|
|
45
45
|
var v;
|
|
@@ -47,7 +47,7 @@ function oe(c, l, t = !1, s = !1) {
|
|
|
47
47
|
const u = c();
|
|
48
48
|
if ((v = u.supplier) != null && v._id) return;
|
|
49
49
|
const r = s ? e.suppliers[0] : e.businessSuppliers[0], f = (t ? o.locations.filter((m) => m.doc._id !== o.currentLocation.doc._id) : o.locations)[0];
|
|
50
|
-
|
|
50
|
+
i({
|
|
51
51
|
...u,
|
|
52
52
|
supplier: r ? _(r) : f ? T(f) : u.supplier
|
|
53
53
|
});
|
|
@@ -55,25 +55,25 @@ function oe(c, l, t = !1, s = !1) {
|
|
|
55
55
|
const n = y(
|
|
56
56
|
() => {
|
|
57
57
|
var u, r;
|
|
58
|
-
return typeof ((r = (u = c()) == null ? void 0 : u.supplier) == null ? void 0 : r.internal) == "string" ?
|
|
58
|
+
return typeof ((r = (u = c()) == null ? void 0 : u.supplier) == null ? void 0 : r.internal) == "string" ? S.TRANSFER : S.PURCHASE;
|
|
59
59
|
}
|
|
60
|
-
),
|
|
60
|
+
), l = y({
|
|
61
61
|
get() {
|
|
62
62
|
var u, r;
|
|
63
63
|
return (r = (u = c()) == null ? void 0 : u.supplier) == null ? void 0 : r._id;
|
|
64
64
|
},
|
|
65
65
|
set(u) {
|
|
66
66
|
const r = c() ?? {};
|
|
67
|
-
if (n.value ===
|
|
67
|
+
if (n.value === S.PURCHASE) {
|
|
68
68
|
const C = (s ? e.suppliers : e.businessSuppliers).find((U) => U._id === u);
|
|
69
|
-
|
|
69
|
+
i({
|
|
70
70
|
...r,
|
|
71
71
|
supplier: C ? _(C) : r.supplier
|
|
72
72
|
});
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
75
|
const v = (t ? o.locations.filter((m) => m.doc._id !== o.currentLocation.doc._id) : o.locations).find((m) => m.doc._id === u);
|
|
76
|
-
|
|
76
|
+
i({
|
|
77
77
|
...r,
|
|
78
78
|
supplier: v ? T(v) : r.supplier
|
|
79
79
|
});
|
|
@@ -81,12 +81,12 @@ function oe(c, l, t = !1, s = !1) {
|
|
|
81
81
|
}), a = y(() => e.locationSuppliers.map(_)), p = y(() => e.businessSuppliers.map(_)), d = y(() => {
|
|
82
82
|
const u = [...a.value], r = [...p.value];
|
|
83
83
|
return s ? [...r, ...u] : r;
|
|
84
|
-
}),
|
|
84
|
+
}), k = y(() => {
|
|
85
85
|
var h;
|
|
86
86
|
const u = ((h = o._currentLocation) == null ? void 0 : h.type) === R.warehouse;
|
|
87
87
|
return (t ? o.locations.filter((f) => f.doc._id !== o.currentLocation.doc._id) : o.locations).filter((f) => u || f.acceptRequest).map(T);
|
|
88
|
-
}),
|
|
89
|
-
if (n.value ===
|
|
88
|
+
}), b = y(() => {
|
|
89
|
+
if (n.value === S.PURCHASE) {
|
|
90
90
|
const r = a.value.map((f) => ({
|
|
91
91
|
label: f.name,
|
|
92
92
|
value: f._id
|
|
@@ -97,15 +97,15 @@ function oe(c, l, t = !1, s = !1) {
|
|
|
97
97
|
}));
|
|
98
98
|
return s ? [...r, ...h] : h;
|
|
99
99
|
}
|
|
100
|
-
return
|
|
100
|
+
return k.value.map((r) => ({
|
|
101
101
|
label: r.name,
|
|
102
102
|
sublabel: r.internal ? `${r.internal}` : void 0,
|
|
103
103
|
value: r._id
|
|
104
104
|
}));
|
|
105
|
-
}),
|
|
105
|
+
}), g = y(() => {
|
|
106
106
|
var f, v;
|
|
107
107
|
const u = (v = (f = c()) == null ? void 0 : f.supplier) == null ? void 0 : v._id;
|
|
108
|
-
if (n.value ===
|
|
108
|
+
if (n.value === S.PURCHASE) {
|
|
109
109
|
const m = e.suppliers.find((C) => C._id === u);
|
|
110
110
|
return m ? _(m) : null;
|
|
111
111
|
}
|
|
@@ -113,90 +113,90 @@ function oe(c, l, t = !1, s = !1) {
|
|
|
113
113
|
return h ? T(h) : null;
|
|
114
114
|
});
|
|
115
115
|
return {
|
|
116
|
-
transferLocationModel:
|
|
117
|
-
transferLocationOptions:
|
|
116
|
+
transferLocationModel: l,
|
|
117
|
+
transferLocationOptions: b,
|
|
118
118
|
locationOptionsTypePurchase: d,
|
|
119
119
|
locationOptionsTypePurchaseLocationLevel: a,
|
|
120
|
-
locationOptionsTypeTransfer:
|
|
121
|
-
selectedLocation:
|
|
120
|
+
locationOptionsTypeTransfer: k,
|
|
121
|
+
selectedLocation: g
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
class O {
|
|
125
|
-
static getDescendantProperty(
|
|
126
|
-
let e, o, n,
|
|
125
|
+
static getDescendantProperty(i, t, s = []) {
|
|
126
|
+
let e, o, n, l, a, p;
|
|
127
127
|
if (t) {
|
|
128
|
-
if (n = t.indexOf("."), n === -1 ? e = t : (e = t.slice(0, n), o = t.slice(n + 1)),
|
|
129
|
-
if (!o && (typeof
|
|
130
|
-
s.push(
|
|
131
|
-
else if (Object.prototype.toString.call(
|
|
132
|
-
for (a = 0, p =
|
|
133
|
-
O.getDescendantProperty(
|
|
134
|
-
else o && O.getDescendantProperty(
|
|
128
|
+
if (n = t.indexOf("."), n === -1 ? e = t : (e = t.slice(0, n), o = t.slice(n + 1)), l = i[e], l !== null && typeof l < "u")
|
|
129
|
+
if (!o && (typeof l == "string" || typeof l == "number"))
|
|
130
|
+
s.push(l);
|
|
131
|
+
else if (Object.prototype.toString.call(l) === "[object Array]")
|
|
132
|
+
for (a = 0, p = l.length; a < p; a++)
|
|
133
|
+
O.getDescendantProperty(l[a], o, s);
|
|
134
|
+
else o && O.getDescendantProperty(l, o, s);
|
|
135
135
|
} else
|
|
136
|
-
s.push(
|
|
136
|
+
s.push(i);
|
|
137
137
|
return s;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
class L {
|
|
141
|
-
constructor(
|
|
142
|
-
Array.isArray(t) || (s = t, t = []), this.haystack =
|
|
141
|
+
constructor(i = [], t = [], s = {}) {
|
|
142
|
+
Array.isArray(t) || (s = t, t = []), this.haystack = i, this.keys = t, this.options = Object.assign({
|
|
143
143
|
caseSensitive: !1,
|
|
144
144
|
sort: !1
|
|
145
145
|
}, s);
|
|
146
146
|
}
|
|
147
|
-
search(
|
|
148
|
-
if (
|
|
147
|
+
search(i = "") {
|
|
148
|
+
if (i === "")
|
|
149
149
|
return this.haystack;
|
|
150
150
|
const t = [];
|
|
151
151
|
for (let s = 0; s < this.haystack.length; s++) {
|
|
152
152
|
const e = this.haystack[s];
|
|
153
153
|
if (this.keys.length === 0) {
|
|
154
|
-
const o = L.isMatch(e,
|
|
154
|
+
const o = L.isMatch(e, i, this.options.caseSensitive);
|
|
155
155
|
o && t.push({ item: e, score: o });
|
|
156
156
|
} else
|
|
157
157
|
for (let o = 0; o < this.keys.length; o++) {
|
|
158
158
|
const n = O.getDescendantProperty(e, this.keys[o]);
|
|
159
|
-
let
|
|
159
|
+
let l = !1;
|
|
160
160
|
for (let a = 0; a < n.length; a++) {
|
|
161
|
-
const p = L.isMatch(n[a],
|
|
161
|
+
const p = L.isMatch(n[a], i, this.options.caseSensitive);
|
|
162
162
|
if (p) {
|
|
163
|
-
|
|
163
|
+
l = !0, t.push({ item: e, score: p });
|
|
164
164
|
break;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
if (
|
|
167
|
+
if (l)
|
|
168
168
|
break;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
return this.options.sort && t.sort((s, e) => s.score - e.score), t.map((s) => s.item);
|
|
172
172
|
}
|
|
173
|
-
static isMatch(
|
|
174
|
-
|
|
175
|
-
const e = L.nearestIndexesFor(
|
|
176
|
-
return e ?
|
|
173
|
+
static isMatch(i, t, s) {
|
|
174
|
+
i = String(i), t = String(t), s || (i = i.toLocaleLowerCase(), t = t.toLocaleLowerCase());
|
|
175
|
+
const e = L.nearestIndexesFor(i, t);
|
|
176
|
+
return e ? i === t ? 1 : e.length > 1 ? 2 + (e[e.length - 1] - e[0]) : 2 + e[0] : !1;
|
|
177
177
|
}
|
|
178
|
-
static nearestIndexesFor(
|
|
178
|
+
static nearestIndexesFor(i, t) {
|
|
179
179
|
const s = t.split("");
|
|
180
180
|
let e = [];
|
|
181
|
-
return L.indexesOfFirstLetter(
|
|
181
|
+
return L.indexesOfFirstLetter(i, t).forEach((n, l) => {
|
|
182
182
|
let a = n + 1;
|
|
183
|
-
e[
|
|
183
|
+
e[l] = [n];
|
|
184
184
|
for (let p = 1; p < s.length; p++) {
|
|
185
185
|
const d = s[p];
|
|
186
|
-
if (a =
|
|
187
|
-
e[
|
|
186
|
+
if (a = i.indexOf(d, a), a === -1) {
|
|
187
|
+
e[l] = !1;
|
|
188
188
|
break;
|
|
189
189
|
}
|
|
190
|
-
e[
|
|
190
|
+
e[l].push(a), a++;
|
|
191
191
|
}
|
|
192
|
-
}), e = e.filter((n) => n !== !1), e.length ? e.sort((n,
|
|
192
|
+
}), e = e.filter((n) => n !== !1), e.length ? e.sort((n, l) => n.length === 1 ? n[0] - l[0] : (n = n[n.length - 1] - n[0], l = l[l.length - 1] - l[0], n - l))[0] : !1;
|
|
193
193
|
}
|
|
194
|
-
static indexesOfFirstLetter(
|
|
194
|
+
static indexesOfFirstLetter(i, t) {
|
|
195
195
|
const s = t[0];
|
|
196
|
-
return
|
|
196
|
+
return i.split("").map((e, o) => e !== s ? !1 : o).filter((e) => e !== !1);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
const z = { class: "sticky top-0 bg-white mb-8" }, G = { class: "overflow-y-auto pb-8" },
|
|
199
|
+
const z = { class: "sticky top-0 bg-white mb-8" }, G = { class: "overflow-y-auto pb-8" }, le = /* @__PURE__ */ $({
|
|
200
200
|
__name: "FmFilterableMenuOptions",
|
|
201
201
|
props: /* @__PURE__ */ W({
|
|
202
202
|
modelValue: {},
|
|
@@ -211,11 +211,11 @@ const z = { class: "sticky top-0 bg-white mb-8" }, G = { class: "overflow-y-auto
|
|
|
211
211
|
}),
|
|
212
212
|
emits: ["update:search"],
|
|
213
213
|
setup(c) {
|
|
214
|
-
const
|
|
215
|
-
() => new L(
|
|
214
|
+
const i = c, t = J(c, "search"), s = y(
|
|
215
|
+
() => new L(i.items, ["label", "sublabel"], i.options)
|
|
216
216
|
), e = y(() => s.value.search(t.value));
|
|
217
217
|
return (o, n) => {
|
|
218
|
-
const
|
|
218
|
+
const l = w("FmButton"), a = w("FmTextField"), p = w("FmMenuItem");
|
|
219
219
|
return F(), I("div", {
|
|
220
220
|
class: "relative",
|
|
221
221
|
style: K({ maxHeight: `${o.maxHeight}px`, width: o.width })
|
|
@@ -227,7 +227,7 @@ const z = { class: "sticky top-0 bg-white mb-8" }, G = { class: "overflow-y-auto
|
|
|
227
227
|
placeholder: "Filter options"
|
|
228
228
|
}, {
|
|
229
229
|
append: X(() => [
|
|
230
|
-
t.value ? (F(), x(
|
|
230
|
+
t.value ? (F(), x(l, {
|
|
231
231
|
key: 0,
|
|
232
232
|
variant: "tertiary",
|
|
233
233
|
"prepend-icon": "close",
|
|
@@ -238,15 +238,15 @@ const z = { class: "sticky top-0 bg-white mb-8" }, G = { class: "overflow-y-auto
|
|
|
238
238
|
}, 8, ["modelValue"])
|
|
239
239
|
]),
|
|
240
240
|
N("div", G, [
|
|
241
|
-
(F(!0), I(Y, null, Z(e.value, (d,
|
|
242
|
-
key:
|
|
241
|
+
(F(!0), I(Y, null, Z(e.value, (d, k) => (F(), x(p, {
|
|
242
|
+
key: k,
|
|
243
243
|
label: d.label,
|
|
244
244
|
sublabel: d.sublabel,
|
|
245
245
|
"model-value": M(V)(o.modelValue, d.value),
|
|
246
246
|
onClick: () => o.handleItemChange(M(V)(o.modelValue, d.value), d),
|
|
247
|
-
onVnodeMounted: (
|
|
248
|
-
var
|
|
249
|
-
return M(V)(o.modelValue, d.value) && ((
|
|
247
|
+
onVnodeMounted: (b) => {
|
|
248
|
+
var g;
|
|
249
|
+
return M(V)(o.modelValue, d.value) && ((g = b.el) == null || g.scrollIntoView({ behavior: "smooth", block: "center" }), console.log("scrollTo", b.el)), void 0;
|
|
250
250
|
}
|
|
251
251
|
}, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
|
|
252
252
|
e.value.length ? E("", !0) : (F(), x(p, {
|
|
@@ -260,7 +260,7 @@ const z = { class: "sticky top-0 bg-white mb-8" }, G = { class: "overflow-y-auto
|
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
262
|
export {
|
|
263
|
-
|
|
263
|
+
le as _,
|
|
264
264
|
ne as c,
|
|
265
265
|
oe as u
|
|
266
266
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive as E, onUnmounted as q, defineComponent as R, computed as _, resolveComponent as h, openBlock as a, createElementBlock as b, Fragment as F, createElementVNode as f, unref as u, normalizeClass as D, toDisplayString as L, createCommentVNode as y, renderList as V, createBlock as w, createVNode as v, renderSlot as G, Teleport as J, ref as z, withCtx as T, watch as K, mergeModels as W, useModel as S } from "vue";
|
|
2
2
|
import { FmButtonVariant as X, useBreakpoints as P } from "@feedmepos/ui-library";
|
|
3
|
-
import { i as O, V as U } from "./app-
|
|
3
|
+
import { i as O, V as U } from "./app-BGqgEJv-.js";
|
|
4
4
|
import { useCoreStore as Z, useI18n as A } from "@feedmepos/mf-common";
|
|
5
5
|
const I = E({});
|
|
6
6
|
function Y() {
|
|
@@ -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 { a, k as y } from "./app-
|
|
2
|
+
import { a, k as y } from "./app-BGqgEJv-.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,17 +1,17 @@
|
|
|
1
1
|
import { ref as O, defineComponent as le, computed as C, resolveComponent as U, openBlock as g, createBlock as T, withCtx as S, createVNode as p, unref as u, createElementBlock as P, Fragment as q, createElementVNode as d, createCommentVNode as Y, onMounted as nt, watch as ze, normalizeClass as J, createTextVNode as He, toDisplayString as L, renderList as Q, isRef as Ee, createSlots as Oe, normalizeStyle as ot, Teleport as Re, normalizeProps as lt, guardReactiveProps as rt } from "vue";
|
|
2
|
-
import { u as X, c as je, S as at, _ as st, A as ge, a as Ye, g as be, t as Ge, F as ue, R as xe, U as it, M as ut, d as Ae, b as qe, C as Ve, e as De, f as dt, h as ct, I as mt, i as pt } from "./app-
|
|
2
|
+
import { u as X, c as je, S as at, _ as st, A as ge, a as Ye, g as be, t as Ge, F as ue, R as xe, U as it, M as ut, d as Ae, b as qe, C as Ve, e as De, f as dt, h as ct, I as mt, i as pt } from "./app-BGqgEJv-.js";
|
|
3
3
|
import { useDialog as We, useSnackbar as he, useProxiedModel as Te, useDialogChild as vt, useBreakpoints as ft } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as yt, _ as gt } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { F as G, D as Pe, R as ye } from "./row-action.enum-PMKMRrZR.js";
|
|
6
6
|
import { useI18n as Z, useCoreStore as de } from "@feedmepos/mf-common";
|
|
7
7
|
import { defineStore as bt, storeToRefs as ht } from "pinia";
|
|
8
8
|
import { c as _t, _ as xt, F as Be } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
9
|
-
import { u as Vt, _ as kt, a as Ct } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { u as Vt, _ as kt, a as Ct } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DSQW1Ayz.js";
|
|
10
10
|
import { g as wt, _ as ke, S as Ce } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
11
|
-
import { _ as we } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { _ as we } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bb0W0wUH.js";
|
|
12
12
|
import { _ as Se } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
13
|
-
import { t as Ke, d as Je, s as St, r as Ft } from "./xlsx.util-
|
|
14
|
-
import { F as Mt } from "./FmDroppableField-
|
|
13
|
+
import { t as Ke, d as Je, s as St, r as Ft } from "./xlsx.util-N5bu_PXw.js";
|
|
14
|
+
import { F as Mt } from "./FmDroppableField-DK78vkN3.js";
|
|
15
15
|
const Fe = bt("ingredientForm", function() {
|
|
16
16
|
const a = We(), f = he(), s = X(), n = O(!1), { t: l } = Z(), o = O();
|
|
17
17
|
function m() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as z, mergeModels as le, useModel as re, onMounted as ae, ref as P, computed as K, resolveComponent as L, openBlock as F, createElementBlock as B, createElementVNode as u, toDisplayString as I, createVNode as V, createBlock as U, withCtx as D, Fragment as E, renderList as G, normalizeClass as R, normalizeStyle as de, createSlots as ue, unref as w, createCommentVNode as O, withModifiers as ce, reactive as J, watch as Q, isRef as X, Teleport as fe } from "vue";
|
|
2
2
|
import { E as me } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import { at as ee, an as pe, c as q, i as ve, au as ge } from "./app-
|
|
3
|
+
import { at as ee, an as pe, c as q, i as ve, au as ge } from "./app-BGqgEJv-.js";
|
|
4
4
|
import { useDialogChild as ye, useDialog as te, useProxiedModel as ne, useSnackbar as be, useBreakpoints as he } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as T, useCoreStore as _e } from "@feedmepos/mf-common";
|
|
6
|
-
import { _ as Ce, a as xe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as Ce, a as xe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DSQW1Ayz.js";
|
|
7
7
|
const He = "data:image/svg+xml,%3csvg%20width='200'%20height='101'%20viewBox='0%200%20200%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M98.9161%2038.4456V24.1772H108.527V27.1988H102.12V30.2202H107.347V32.7382H102.12V38.4456H98.9161Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.382%2031.2276C110.382%2027.5345%20113.249%2024.1772%20117.127%2024.1772C121.174%2024.1772%20123.872%2027.7024%20123.872%2031.3953C123.872%2035.0884%20121.005%2038.6133%20117.127%2038.6133C113.08%2038.4456%20110.382%2034.9204%20110.382%2031.2276ZM117.127%2035.5919C119.487%2035.5919%20120.499%2033.4096%20120.499%2031.2276C120.499%2029.0452%20119.319%2027.0309%20117.127%2027.0309C114.935%2027.0309%20113.754%2029.213%20113.754%2031.2276C113.754%2033.5776%20114.935%2035.5919%20117.127%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M126.232%2031.2276C126.232%2027.5345%20129.099%2024.1772%20132.977%2024.1772C137.024%2024.1772%20139.722%2027.7024%20139.722%2031.3953C139.722%2035.0884%20136.855%2038.6133%20132.977%2038.6133C128.93%2038.4456%20126.232%2034.9204%20126.232%2031.2276ZM132.977%2035.5919C135.337%2035.5919%20136.349%2033.4096%20136.349%2031.2276C136.349%2029.0452%20135.169%2027.0309%20132.977%2027.0309C130.785%2027.0309%20129.604%2029.213%20129.604%2031.2276C129.604%2033.5776%20130.785%2035.5919%20132.977%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M142.926%2038.4455V24.345H148.153C152.874%2024.345%20155.235%2027.5343%20155.235%2031.3952C155.235%2035.5918%20152.368%2038.4455%20148.153%2038.4455H142.926ZM148.153%2027.0308H146.129V35.4238H148.153C150.513%2035.4238%20151.862%2033.5775%20151.862%2031.2272C151.862%2028.8773%20150.513%2027.0308%20148.153%2027.0308Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.045%2057.5607V49.1676L107.009%2055.2107H105.324L102.12%2049.1676V57.5607H98.9161V43.4604H102.457L106.167%2050.8465L109.876%2043.4604H113.417V57.5607H110.045Z'%20fill='%235D5359'/%3e%3cpath%20d='M115.947%2057.5607L121.342%2043.4604H124.04L129.436%2057.5607H125.895L124.715%2054.3716H120.331L119.319%2057.5607H115.947ZM122.691%2046.9856L121.005%2052.1893H124.378L122.691%2046.9856Z'%20fill='%235D5359'/%3e%3cpath%20d='M131.965%2057.5607V43.4604H138.373C141.07%2043.4604%20142.925%2045.8105%20142.925%2048.1605C142.925%2049.8393%20142.082%2051.5179%20140.565%2052.1893L143.768%2057.393H140.059L137.192%2052.8607H135V57.393H131.965V57.5607ZM135.169%2050.175H138.204C139.047%2050.175%20139.553%2049.3356%20139.553%2048.1605C139.553%2046.9856%20138.71%2046.3142%20138.035%2046.3142H135.169V50.175Z'%20fill='%235D5359'/%3e%3cpath%20d='M146.635%2057.5607V43.4604H150.007V49.8393L155.403%2043.4604H158.776L153.548%2049.6713L159.281%2057.5607H155.74L151.693%2051.5179L150.007%2053.3642V57.5607H146.635Z'%20fill='%235D5359'/%3e%3cpath%20d='M171.422%2054.7073V57.5607H161.474V43.4604H171.253V46.3142H164.677V48.9999H170.242V51.6856H164.677V54.7073H171.422Z'%20fill='%235D5359'/%3e%3cpath%20d='M185.417%2046.3142H181.202V57.5607H177.829V46.3142H173.614V43.4604H185.417V46.3142Z'%20fill='%235D5359'/%3e%3cpath%20d='M111.057%2062.5967V76.6973H107.853V70.9898H102.12V76.6973H98.9161V62.5967H102.12V68.1361H107.853V62.5967H111.057Z'%20fill='%235D5359'/%3e%3cpath%20d='M124.04%2069.815V62.5967H127.244V69.815C127.244%2073.6758%20125.389%2076.865%20121.005%2076.865C116.453%2076.865%20114.766%2073.5078%20114.766%2069.815V62.5967H117.97V69.815C117.97%2071.997%20118.813%2074.0115%20121.005%2074.0115C123.366%2074.0115%20124.04%2071.997%20124.04%2069.815Z'%20fill='%235D5359'/%3e%3cpath%20d='M138.036%2076.6973H131.122V62.5967H139.047C141.071%2062.5967%20142.251%2064.4433%20142.251%2066.2898C142.251%2067.6327%20141.576%2068.9755%20140.228%2069.4793C141.914%2069.9827%20142.926%2071.1578%20142.926%2073.1721C142.757%2075.5221%20140.733%2076.6973%20138.036%2076.6973ZM134.326%2065.4504V68.3041H137.53C138.204%2068.3041%20138.879%2067.8004%20138.879%2066.7933C138.879%2065.7861%20138.373%2065.2827%20137.698%2065.2827H134.326V65.4504ZM138.204%2070.8221H134.494V73.8435H138.204C139.047%2073.8435%20139.722%2073.1721%20139.722%2072.3327C139.553%2071.6613%20138.879%2070.8221%20138.204%2070.8221Z'%20fill='%235D5359'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M73.4753%2051.4994C78.7281%2050.5396%2082.8911%2046.4891%2083.9954%2041.3137L84.1232%2040.7134L83.9445%2040.1256C80.5804%2029.066%2071.9945%2020.2704%2061.0373%2016.5726C57.4%2015.3451%2053.5046%2014.6804%2049.458%2014.6804C45.4112%2014.6804%2041.5158%2015.3451%2037.8784%2016.5726C26.9214%2020.2704%2018.3354%2029.066%2014.9712%2040.1256L14.7924%2040.7134L14.9206%2041.3137C16.0247%2046.4891%2020.1875%2050.5396%2025.4405%2051.4994V58.8839H14.4183C14.6758%2059.9557%2014.9818%2061.0088%2015.3337%2062.0411C20.1553%2076.1811%2033.6083%2086.3619%2049.458%2086.3619C65.3074%2086.3619%2078.7606%2076.1811%2083.5822%2062.0411C83.9342%2061.0088%2084.2399%2059.9557%2084.4974%2058.8839H73.4753V51.4994ZM41.0517%2020.5973V38.5742C41.0517%2043.1931%2044.8155%2046.9371%2049.458%2046.9371C54.1005%2046.9371%2057.8641%2043.1931%2057.8641%2038.5742V20.5973C55.1919%2019.856%2052.3732%2019.4592%2049.458%2019.4592C46.5428%2019.4592%2043.7241%2019.856%2041.0517%2020.5973ZM62.6675%2022.3673V38.5742C62.6675%2043.1931%2066.431%2046.9371%2071.0735%2046.9371C74.9051%2046.9371%2078.1425%2044.3848%2079.1528%2040.8942C76.4672%2032.6902%2070.4379%2025.9824%2062.6675%2022.3673ZM60.2658%2046.1322C57.8753%2049.5094%2053.9255%2051.7159%2049.458%2051.7159C44.9902%2051.7159%2041.0408%2049.5094%2038.65%2046.1322C36.6982%2048.8894%2033.7074%2050.8662%2030.2439%2051.4994V58.8839H68.6718V51.4994C65.2083%2050.8662%2062.2175%2048.8894%2060.2658%2046.1322ZM21.1583%2063.6628C26.1349%2074.2514%2036.9382%2081.5834%2049.458%2081.5834C61.9776%2081.5834%2072.781%2074.2514%2077.7574%2063.6628H21.1583ZM36.2482%2038.5742V22.3673C28.4779%2025.9824%2022.4486%2032.6902%2019.7631%2040.8942C20.7733%2044.3848%2024.0106%2046.9371%2027.8422%2046.9371C32.4847%2046.9371%2036.2482%2043.1931%2036.2482%2038.5742Z'%20fill='%23FFC35D'/%3e%3c/svg%3e";
|
|
8
8
|
function Y(x, g) {
|
|
9
9
|
return ee.filter(x, g).length > 0;
|
|
@@ -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 { l as d } from "./app-
|
|
2
|
+
import { l as d } from "./app-BGqgEJv-.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as d, w as f } from "./xlsx-
|
|
2
|
-
import { n as _, i as h } from "./app-
|
|
1
|
+
import { u as d, w as f } from "./xlsx-DQC0TWcU.js";
|
|
2
|
+
import { n as _, i as h } from "./app-BGqgEJv-.js";
|
|
3
3
|
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
4
4
|
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";
|
|
5
5
|
function w(e, t) {
|
package/dist/{PurchaseOrderPrintPreview-lKu0y_xw.js → PurchaseOrderPrintPreview-BtDEZAgl.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 { ab as y, X as C } from "./app-
|
|
3
|
+
import { ab as y, X as C } from "./app-BGqgEJv-.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%" }
|