@feedmepos/mf-inventory-portal 1.0.9-dev.4 → 1.0.10-dev.1
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-BOKGVcoO.js → App-B650rzJv.js} +2 -2
- package/dist/{ApprovalView-Bo-4fnEU.js → ApprovalView-H0w0Pbkj.js} +2 -2
- package/dist/{BindingsDialog-DM2b4GN4.js → BindingsDialog-BTEnbuSr.js} +2 -2
- package/dist/{BindingsPicker-CJKBXA0c.js → BindingsPicker-DJVlBOBU.js} +3 -3
- package/dist/{BindingsTable-BxCEEJfb.js → BindingsTable-BWsGdzSB.js} +1 -1
- package/dist/{ClosingDraftView-bQxPF18V.js → ClosingDraftView-AWcZjvya.js} +106 -106
- package/dist/{ClosingTemplateView-DLkp9Qt8.js → ClosingTemplateView-N2Ap8Ekd.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-CK3HdYVb.js → DeliveryOrderPrintPreview-C5EPAWPK.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DvCBsPdI.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DVfj4MgV.js} +3 -3
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-R8f-Q9Nk.js → FmUnitInput.vue_vue_type_script_setup_true_lang-wvRtPslo.js} +20 -20
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BOyqgaik.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DRygALNq.js} +1 -1
- package/dist/IngredientGroupView-B_xMnLFQ.js +604 -0
- package/dist/{IngredientsView-DmKCy_JQ.js → IngredientsView-DZxBsZI-.js} +4 -4
- package/dist/{IntegrationView-B1dzt8WK.js → IntegrationView-p63ruxVJ.js} +4 -4
- package/dist/{InventoryBindingForm-CeTlH0U1.js → InventoryBindingForm-DOCKvvbd.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DsM2bCNe.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bzfh5vhC.js} +19 -19
- package/dist/{InventoryBindingSummary-QVSD87YL.js → InventoryBindingSummary-Bot16bHd.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C-lgLo2e.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cq1W66FY.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CEMRfo1C.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CLkcV3TQ.js} +1 -1
- package/dist/{PublishView-BYGKLC9D.js → PublishView-gf-pE1NP.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-CEVjGeom.js → PurchaseOrderPrintPreview-BB5aGGvb.js} +1 -1
- package/dist/{ReceiveRequestView-D5PcGCLv.js → ReceiveRequestView-CR2Ive4l.js} +42 -42
- package/dist/{RecipeView-DmTDCsvk.js → RecipeView-Cr1h7m7C.js} +3 -3
- package/dist/{StockView-EmTqUcP1.js → StockView-CbJu6pz1.js} +7 -7
- package/dist/{SupplierView-BaLnW761.js → SupplierView-DLnf0IXT.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-B3ew6mc5.js → TransferDetails.vue_vue_type_script_setup_true_lang-9saG4V9_.js} +36 -36
- package/dist/{TransferTemplateView-DoeLAFmJ.js → TransferTemplateView-Cwn20Rza.js} +114 -114
- package/dist/{UnitView-6Kobe5di.js → UnitView-ir5d8Ls0.js} +18 -18
- package/dist/{WarehouseView-BBMS14jU.js → WarehouseView-BA0b8JDG.js} +1 -1
- package/dist/api/inventory.d.ts +207 -0
- package/dist/{app-CUTIQqG_.js → app-DmpPc6HP.js} +15490 -15057
- package/dist/app.js +1 -1
- package/dist/{decimal-Bb7Chjpr.js → decimal-BdCdQEd5.js} +1 -1
- package/dist/{feature-D5GLIW5h.js → feature-B_qG9zNF.js} +579 -466
- package/dist/{format-unit-display-CqqBiewI.js → format-unit-display-y8ZPuai0.js} +29 -29
- package/dist/{index-B7QMXzGe.js → index-BdbeTU14.js} +2823 -2739
- package/dist/{index-DiEdX1Bs.js → index-rWHZ5j80.js} +2 -2
- package/dist/{stock-CO0XWh8j.js → stock-C05OFvav.js} +1 -1
- package/dist/stores/inventory.d.ts +211 -1
- package/dist/{supplier-C877x7mU.js → supplier-B58dle3W.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-ClufUFeU.js → use-ingredient-select-dialog-CrfP3e6M.js} +1 -1
- package/dist/{use-inventory-binding-dialog-BuRe6QNp.js → use-inventory-binding-dialog-D0RpVsqZ.js} +1 -1
- package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +218 -0
- package/dist/{vue-i18n-CxuQa0ds.js → vue-i18n-Dt--gl9w.js} +337 -337
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as se, mergeModels as
|
|
2
|
-
import { $ as B, I as D,
|
|
1
|
+
import { defineComponent as se, mergeModels as z, useModel as ie, computed as v, ref as k, watch as O, onBeforeUnmount as le, inject as ae, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as q, normalizeClass as T, toDisplayString as A, withDirectives as ue, vModelText as re, createCommentVNode as W, createTextVNode as me, createBlock as E, Fragment as ce, renderList as de } from "vue";
|
|
2
|
+
import { $ as B, I as D, P as L, K as pe, i as M, aB as fe, t as ve, J as be, ah as ye, az as he, ay as Me } from "./app-DmpPc6HP.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
|
-
function
|
|
4
|
+
function G() {
|
|
5
5
|
return {
|
|
6
6
|
amount: B.reset()
|
|
7
7
|
};
|
|
@@ -21,7 +21,7 @@ function Le(l) {
|
|
|
21
21
|
return D()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > l ? `Must be at most ${l}` : !0;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function H(l, p = !1) {
|
|
25
25
|
return function(m) {
|
|
26
26
|
const s = J()(m);
|
|
27
27
|
if (s != !0)
|
|
@@ -54,9 +54,9 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
54
54
|
}, Ce = {
|
|
55
55
|
class: "flex items-center",
|
|
56
56
|
style: { "pointer-events": "none" }
|
|
57
|
-
},
|
|
57
|
+
}, je = /* @__PURE__ */ se({
|
|
58
58
|
__name: "FmUnitInput",
|
|
59
|
-
props: /* @__PURE__ */
|
|
59
|
+
props: /* @__PURE__ */ z({
|
|
60
60
|
modelValue: {},
|
|
61
61
|
unit: {},
|
|
62
62
|
rules: {},
|
|
@@ -103,7 +103,7 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
103
103
|
modelValue: {},
|
|
104
104
|
modelModifiers: {}
|
|
105
105
|
}),
|
|
106
|
-
emits: /* @__PURE__ */
|
|
106
|
+
emits: /* @__PURE__ */ z(["update:amount", "update:measurement"], ["update:modelValue"]),
|
|
107
107
|
setup(l, { emit: p }) {
|
|
108
108
|
const t = l, m = p, s = ie(l, "modelValue"), _ = D(), R = v(() => {
|
|
109
109
|
var n;
|
|
@@ -114,7 +114,7 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
114
114
|
return M(a);
|
|
115
115
|
})());
|
|
116
116
|
let x = null;
|
|
117
|
-
|
|
117
|
+
O(d, (e) => {
|
|
118
118
|
x && clearTimeout(x), x = setTimeout(() => {
|
|
119
119
|
var r;
|
|
120
120
|
const n = _(e), i = t.precision ?? R.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
|
|
@@ -130,7 +130,7 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
130
130
|
}), le(() => {
|
|
131
131
|
x && clearTimeout(x);
|
|
132
132
|
});
|
|
133
|
-
const
|
|
133
|
+
const Z = Symbol.for("fm:form-state"), U = ae(Z, null), P = v(() => t.disabled ?? (U == null ? void 0 : U.getDisabled()) ?? !1), Q = k(), w = k(!1), $ = k(!1), X = v(() => w.value || $.value), Y = v(() => {
|
|
134
134
|
var a;
|
|
135
135
|
const i = [...t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +M(o.conversion) != 1).groupBy(
|
|
136
136
|
(o) => `${o.abbrev}${M(o.conversion)}`
|
|
@@ -153,19 +153,19 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
153
153
|
set(e) {
|
|
154
154
|
if (e == null)
|
|
155
155
|
s.value = {
|
|
156
|
-
...s.value ??
|
|
156
|
+
...s.value ?? G(),
|
|
157
157
|
measurement: null
|
|
158
158
|
}, m("update:measurement", null);
|
|
159
159
|
else {
|
|
160
160
|
const n = t.unit.measurements.find((i) => i.id === e) ?? null;
|
|
161
161
|
s.value = {
|
|
162
|
-
...s.value ??
|
|
162
|
+
...s.value ?? G(),
|
|
163
163
|
measurement: n
|
|
164
164
|
}, m("update:measurement", n);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
|
-
|
|
168
|
+
O(C, (e, n) => {
|
|
169
169
|
var c;
|
|
170
170
|
if (!t.convertAmountOnChangeUnit)
|
|
171
171
|
return;
|
|
@@ -187,9 +187,9 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
187
187
|
}
|
|
188
188
|
), te = v(() => [...t.applyDefaultRules ? [
|
|
189
189
|
J(),
|
|
190
|
-
typeof t.precision == "number" ?
|
|
190
|
+
typeof t.precision == "number" ? H(t.precision) : H(t.unit)
|
|
191
191
|
] : [], ...ee.value]);
|
|
192
|
-
function
|
|
192
|
+
function j(e) {
|
|
193
193
|
const n = t.precision ?? R.value, a = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, o = e.toFixed(a), r = o.includes(".") ? o.replace(/0+$/, "") : o;
|
|
194
194
|
return r.endsWith(".") ? r.slice(0, r.length - 1) : r;
|
|
195
195
|
}
|
|
@@ -197,13 +197,13 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
197
197
|
if (!t.stepper)
|
|
198
198
|
return;
|
|
199
199
|
const e = +d.value + +M(t.stepper);
|
|
200
|
-
d.value =
|
|
200
|
+
d.value = j(e);
|
|
201
201
|
}
|
|
202
202
|
function oe() {
|
|
203
203
|
if (!t.stepper)
|
|
204
204
|
return;
|
|
205
205
|
const e = +d.value - +M(t.stepper);
|
|
206
|
-
d.value =
|
|
206
|
+
d.value = j(e);
|
|
207
207
|
}
|
|
208
208
|
return (e, n) => {
|
|
209
209
|
const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), r = b("FmMenu"), g = b("FmTooltip"), S = b("FmField"), V = b("FmFormGroup");
|
|
@@ -256,7 +256,7 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
256
256
|
me(A(N.value), 1)
|
|
257
257
|
]),
|
|
258
258
|
default: F(() => [
|
|
259
|
-
e.disableUnit ? (f(), y("div", ke, A(N.value), 1)) : (f(),
|
|
259
|
+
e.disableUnit ? (f(), y("div", ke, A(N.value), 1)) : (f(), E(r, {
|
|
260
260
|
key: 1,
|
|
261
261
|
onMenuChanged: n[3] || (n[3] = (c) => $.value = c),
|
|
262
262
|
"z-index": 500,
|
|
@@ -271,7 +271,7 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
271
271
|
]),
|
|
272
272
|
default: F(() => [
|
|
273
273
|
u("div", Re, [
|
|
274
|
-
(f(!0), y(ce, null, de(Y.value, (c) => (f(),
|
|
274
|
+
(f(!0), y(ce, null, de(Y.value, (c) => (f(), E(o, {
|
|
275
275
|
key: c.value ?? void 0,
|
|
276
276
|
label: c.label,
|
|
277
277
|
"model-value": c.value == C.value,
|
|
@@ -330,9 +330,9 @@ const ge = { class: "flex flex-col" }, xe = { class: "flex flex-col" }, Fe = { c
|
|
|
330
330
|
});
|
|
331
331
|
export {
|
|
332
332
|
Te as F,
|
|
333
|
-
|
|
333
|
+
je as _,
|
|
334
334
|
Le as a,
|
|
335
335
|
$e as b,
|
|
336
336
|
J as c,
|
|
337
|
-
|
|
337
|
+
H as d
|
|
338
338
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
|
|
2
|
-
import { i as a,
|
|
2
|
+
import { i as a, J as y } from "./app-DmpPc6HP.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",
|