@feedmepos/mf-inventory-portal 0.0.17-dev.4 → 0.0.17-dev.6
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-BxFRPqkg.js → ApprovalView-BsjsmJrX.js} +6 -6
- package/dist/{BindingsDialog-BUVO5-Sz.js → BindingsDialog-BtausKmJ.js} +2 -2
- package/dist/{BindingsPicker-CcfYIaG-.js → BindingsPicker-BcUwKl9p.js} +2 -2
- package/dist/{BindingsTable-CdPCZ3XD.js → BindingsTable-CkYijCcC.js} +3 -3
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CcteVB9g.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CHGOS3Nh.js} +1 -1
- package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-F5-SadXW.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-CYok6OxR.js} +2 -2
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-iLrqfOPx.js +236 -0
- package/dist/{IngredientsView-W0odA9m_.js → IngredientsView-CpDFzcEc.js} +6 -6
- package/dist/{IntegrationView-C_6KFs03.js → IntegrationView-DB7zwdsN.js} +3 -3
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DgOSfoST.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Esk0PFn1.js} +6 -6
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DV5-ZhWS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DaePY_E8.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-C0CZE0YT.js → PurchaseOrderPrintPreview-DNfb1vCu.js} +1 -1
- package/dist/ReceiveRequestView-DJXkxMO9.js +1435 -0
- package/dist/{RecipeView-D7TH6nnf.js → RecipeView-BpyxFqz7.js} +6 -6
- package/dist/{StockView-CWnhzQ3F.js → StockView-BsBJkfNA.js} +12 -12
- package/dist/SupplierView-DKu_8UQS.js +804 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DgFWNGb8.js → TransferDetails.vue_vue_type_script_setup_true_lang-CLZw6B-5.js} +5 -5
- package/dist/{UnitView-ImBud-e1.js → UnitView-CSNZengo.js} +6 -6
- package/dist/{WarehouseView-DY9NLv8O.js → WarehouseView-B2NsJpyf.js} +3 -3
- package/dist/{app-ry4cYeUW.js → app-Cys3s5QM.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/components/FmUnitInputProps.d.ts +1 -0
- package/dist/components/FmUnitInputRules.d.ts +3 -1
- package/dist/{date2-DNoSDc59.js → date2-Cc1Oiw05.js} +49 -40
- package/dist/{dayjs.min-C3BYcqfR.js → dayjs.min-DnrcQF8Z.js} +2 -2
- package/dist/{decimal-F3A94urs.js → decimal-fOxj20wp.js} +1 -1
- package/dist/{fuzzy-BJxYD45S.js → fuzzy-DnFs8Xce.js} +1 -1
- package/dist/helper/number.d.ts +8 -0
- package/dist/{init-date-range-C5mybqGu.js → init-date-range-DW4h-v8s.js} +1 -1
- package/dist/{layout-CGaQdb3O.js → layout-DuS41CyD.js} +1 -1
- package/dist/{rules-UyERkBXj.js → rules-BvlRoPEY.js} +1 -1
- package/dist/{stock-estimate-CVsTTz4I.js → stock-estimate-Du_hY5pm.js} +2 -2
- package/dist/{supplier-DQZVN8vW.js → supplier-CXA31S_x.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-DOTcatBN.js → use-inventory-binding-dialog-Bku2ByrH.js} +2 -2
- package/dist/views/receive-request/components/supplier-price-history/SupplierPriceHistoryProps.d.ts +1 -0
- package/dist/{xlsx-31o61MYe.js → xlsx-rHJpoV37.js} +1 -1
- package/dist/{xlsx.util-Br_HJiip.js → xlsx.util-DSDXolWm.js} +2 -2
- package/package.json +1 -1
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-Bi15hFNN.js +0 -229
- package/dist/ReceiveRequestView-Hxc9JoUl.js +0 -1434
- package/dist/SupplierView-DfHaFzdM.js +0 -803
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as ee, ref as h, watch as te, computed as ae, resolveComponent as H, openBlock as D, createBlock as U, withCtx as x, createElementVNode as a, createVNode as r, unref as e, normalizeStyle as oe, toDisplayString as re, createElementBlock as se, createCommentVNode as ne, Teleport as le, mergeProps as ce } from "vue";
|
|
2
|
-
import { r as f, f as ie } from "./app-
|
|
3
|
-
import { a as pe } from "./init-date-range-
|
|
4
|
-
import { a as me, b as ue, _ as de } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { q as G } from "./date2-
|
|
2
|
+
import { r as f, f as ie } from "./app-Cys3s5QM.js";
|
|
3
|
+
import { a as pe } from "./init-date-range-DW4h-v8s.js";
|
|
4
|
+
import { a as me, b as ue, _ as de } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CLZw6B-5.js";
|
|
5
|
+
import { q as G } from "./date2-Cc1Oiw05.js";
|
|
6
6
|
import { _ as fe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-Dov3Uq2z.js";
|
|
7
|
-
import { _ as _e } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as ve, F as _, u as he } from "./layout-
|
|
7
|
+
import { _ as _e } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CHGOS3Nh.js";
|
|
8
|
+
import { _ as ve, F as _, u as he } from "./layout-DuS41CyD.js";
|
|
9
9
|
import { useBreakpoints as De } from "@feedmepos/ui-library";
|
|
10
10
|
const xe = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, ge = { class: "px-8 flex gap-8 items-center xs:gap-0 xs:flex-col-reverse sm:gap-0 sm:flex-col-reverse" }, be = { class: "xs:w-full sm:w-full flex gap-8 items-center overflow-x-auto no-scrollbar py-8" }, ye = /* @__PURE__ */ a("div", { class: "h-32" }, null, -1), we = { class: "flex-1 w-full" }, Re = { class: "flex flex-col py-8" }, Te = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Se = {
|
|
11
11
|
key: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
|
|
2
|
-
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as L, A as S } from "./app-
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Esk0PFn1.js";
|
|
3
|
+
import { u as L, A as S } from "./app-Cys3s5QM.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
|
|
2
|
-
import { _ as x } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as M, A as h } from "./app-
|
|
2
|
+
import { _ as x } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-CYok6OxR.js";
|
|
3
|
+
import { u as M, A as h } from "./app-Cys3s5QM.js";
|
|
4
4
|
const z = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex flex-col gap-16"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as h, ref as o, provide as C, computed as v, resolveComponent as x, openBlock as r, createElementBlock as u, Fragment as L, renderList as F, createElementVNode as p, toDisplayString as k, createVNode as w, withModifiers as I, createStaticVNode as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
|
|
2
|
-
import { i as b, u as P, A as R } from "./app-
|
|
3
|
-
import "./dayjs.min-
|
|
2
|
+
import { i as b, u as P, A as R } from "./app-Cys3s5QM.js";
|
|
3
|
+
import "./dayjs.min-DnrcQF8Z.js";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
|
-
import "./fuzzy-
|
|
5
|
+
import "./fuzzy-DnFs8Xce.js";
|
|
6
6
|
const U = { class: "" }, D = /* @__PURE__ */ N('<div class="flex font-bold bg-[#F7F8FA]"><div class="flex-grow-0 flex-shrink-0 basis-5/12 py-8"></div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Ingredient</div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Recipe</div><div class="flex-grow-0 flex-shrink-0 basis-1/12 py-8"></div></div>', 1), O = ["onClick"], V = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, A = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ h({
|
|
7
7
|
__name: "binding-ui",
|
|
8
8
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, ref as V, computed as p, resolveComponent as a, openBlock as t, createElementBlock as v, createVNode as l, withCtx as w, createElementVNode as i, toDisplayString as H, unref as _, Fragment as k, renderList as C, createBlock as d, createCommentVNode as L } from "vue";
|
|
2
|
-
import { f as I } from "./app-
|
|
2
|
+
import { f as I } from "./app-Cys3s5QM.js";
|
|
3
3
|
const B = { class: "inline-flex" }, D = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, z = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, E = {
|
|
4
4
|
class: "overflow-hidden overflow-y-scroll",
|
|
5
5
|
style: { maxHeight: "105px" }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as $, ref as C, onMounted as N, watch as E, computed as f, resolveComponent as m, openBlock as v, createElementBlock as _, createElementVNode as s, createVNode as d, createTextVNode as M, toDisplayString as T, createSlots as U, withCtx as h, createBlock as I, Fragment as j, renderList as z } from "vue";
|
|
2
2
|
import { useDialogChild as q } from "@feedmepos/ui-library";
|
|
3
|
-
import { y as c } from "./app-
|
|
4
|
-
import { f as H } from "./fuzzy-
|
|
3
|
+
import { y as c } from "./app-Cys3s5QM.js";
|
|
4
|
+
import { f as H } from "./fuzzy-DnFs8Xce.js";
|
|
5
5
|
const R = { class: "flex flex-col h-[400px]" }, G = { class: "flex justify-between py-24 items-center relative" }, J = { class: "flex gap-16 basis-1/2" }, K = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, O = /* @__PURE__ */ s("span", { class: "xs:hidden" }, "selected", -1), P = /* @__PURE__ */ s("div", { class: "absolute pointer-events-none -bottom-[304px] left-0 w-full h-[308px] overflow-hidden flex flex-col justify-between" }, [
|
|
6
6
|
/* @__PURE__ */ s("div", { class: "h-1 fm-shadow-light-200" }),
|
|
7
7
|
/* @__PURE__ */ s("div", {
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { defineComponent as Q, mergeModels as U, useModel as X, computed as m, ref as h, watch as j, inject as Y, resolveComponent as p, openBlock as M, createElementBlock as D, createElementVNode as i, createVNode as v, withCtx as R, renderSlot as L, withDirectives as ee, normalizeClass as te, vModelText as ne, toDisplayString as T, createCommentVNode as oe, Fragment as ae, renderList as ue, createBlock as le } from "vue";
|
|
2
|
+
import { F } from "./dayjs.min-DnrcQF8Z.js";
|
|
3
|
+
import { g as w, c as se, a as C, t as ie, b as re, v as me, w as ce, x as de } from "./date2-Cc1Oiw05.js";
|
|
4
|
+
import { I as k } from "./rules-BvlRoPEY.js";
|
|
5
|
+
function $() {
|
|
6
|
+
return {
|
|
7
|
+
amount: F.reset()
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function q() {
|
|
11
|
+
return function(d) {
|
|
12
|
+
return k()(d.amountAsString);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function _e(u) {
|
|
16
|
+
return function(n) {
|
|
17
|
+
return k()(n.amountAsString) !== !0 ? !0 : +n.amountAsString <= u ? `Must be more than ${u}` : !0;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function z(u, d = !1) {
|
|
21
|
+
return function(r) {
|
|
22
|
+
const o = q()(r);
|
|
23
|
+
if (o != !0)
|
|
24
|
+
return d ? o : !0;
|
|
25
|
+
const b = typeof u == "number" ? u : w(u, r.modelValue.measurement);
|
|
26
|
+
return se(+r.amountAsString).precision > b ? `Cannot exceed precision more than ${C({
|
|
27
|
+
amount: 1,
|
|
28
|
+
precision: b
|
|
29
|
+
})}` : !0;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const pe = { class: "flex flex-col" }, fe = { class: "flex flex-col" }, ve = { class: "flex-1" }, be = { class: "flex items-center gap-4" }, ye = { class: "flex-1" }, he = {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: "text-fm-color-typo-secondary"
|
|
35
|
+
}, Me = { class: "text-fm-color-typo-secondary whitespace-nowrap" }, Fe = { class: "flex items-center gap-4" }, ge = { class: "max-w-[200px] flex flex-col gap-[1px]" }, Be = /* @__PURE__ */ Q({
|
|
36
|
+
__name: "FmUnitInput",
|
|
37
|
+
props: /* @__PURE__ */ U({
|
|
38
|
+
modelValue: {},
|
|
39
|
+
unit: {},
|
|
40
|
+
rules: {},
|
|
41
|
+
zIndex: {},
|
|
42
|
+
applyDefaultRules: { type: Boolean },
|
|
43
|
+
placement: {},
|
|
44
|
+
separator: {},
|
|
45
|
+
precision: {},
|
|
46
|
+
convertAmountOnChangeUnit: { type: Boolean },
|
|
47
|
+
formatMinimumPrecision: {},
|
|
48
|
+
placeholder: {},
|
|
49
|
+
minLength: {},
|
|
50
|
+
maxLength: {},
|
|
51
|
+
inputmode: {},
|
|
52
|
+
type: {},
|
|
53
|
+
readonly: { type: Boolean },
|
|
54
|
+
labelMark: {},
|
|
55
|
+
prependIcon: {},
|
|
56
|
+
appendIcon: {},
|
|
57
|
+
showValidBorder: { type: Boolean },
|
|
58
|
+
labelInfo: {},
|
|
59
|
+
showWordCount: { type: Boolean },
|
|
60
|
+
invalid: { type: Boolean },
|
|
61
|
+
autofocus: { type: Boolean },
|
|
62
|
+
formatter: { type: Function },
|
|
63
|
+
decimal: {},
|
|
64
|
+
datalist: {},
|
|
65
|
+
shiftDatalist: { type: Boolean },
|
|
66
|
+
datalistMaxHeight: {},
|
|
67
|
+
datalistMinHeight: {},
|
|
68
|
+
offsetDatalist: {},
|
|
69
|
+
datalistPlacement: {},
|
|
70
|
+
datalistZIndex: {},
|
|
71
|
+
datalistWidth: {},
|
|
72
|
+
label: {},
|
|
73
|
+
disabled: { type: Boolean },
|
|
74
|
+
focused: { type: Boolean },
|
|
75
|
+
helperText: {},
|
|
76
|
+
helperState: {}
|
|
77
|
+
}, {
|
|
78
|
+
modelValue: {},
|
|
79
|
+
modelModifiers: {}
|
|
80
|
+
}),
|
|
81
|
+
emits: /* @__PURE__ */ U(["update:amount", "update:measurement"], ["update:modelValue"]),
|
|
82
|
+
setup(u, { emit: d }) {
|
|
83
|
+
const n = u, r = d, o = X(u, "modelValue"), b = k(), N = m(() => {
|
|
84
|
+
var t;
|
|
85
|
+
return w(n.unit, (t = o.value) == null ? void 0 : t.measurement);
|
|
86
|
+
}), f = h((() => {
|
|
87
|
+
var l;
|
|
88
|
+
const e = ((l = o.value) == null ? void 0 : l.amount) ?? F.reset(), t = ce(e), a = n.formatMinimumPrecision ?? t.precision, c = de(t, a);
|
|
89
|
+
return C(c);
|
|
90
|
+
})());
|
|
91
|
+
j(f, (e) => {
|
|
92
|
+
const t = b(e), a = n.precision ?? N.value, l = typeof n.formatMinimumPrecision == "number" && n.formatMinimumPrecision > a ? n.formatMinimumPrecision : a;
|
|
93
|
+
t == !0 && (o.value = {
|
|
94
|
+
...o.value,
|
|
95
|
+
amount: ie(+e, l)
|
|
96
|
+
}), r("update:amount", e);
|
|
97
|
+
});
|
|
98
|
+
const E = Symbol.for("fm:form-state"), g = Y(E, null), S = m(() => n.disabled ?? (g == null ? void 0 : g.getDisabled()) ?? !1), G = h(), x = h(!1), V = h(!1), H = m(() => x.value || V.value), O = m(() => {
|
|
99
|
+
var e;
|
|
100
|
+
return [
|
|
101
|
+
{
|
|
102
|
+
label: (e = n.unit) == null ? void 0 : e.abbrev,
|
|
103
|
+
value: null
|
|
104
|
+
},
|
|
105
|
+
...n.unit.measurements.map((t) => ({
|
|
106
|
+
label: t.abbrev,
|
|
107
|
+
value: t.id
|
|
108
|
+
}))
|
|
109
|
+
];
|
|
110
|
+
}), A = m({
|
|
111
|
+
get() {
|
|
112
|
+
var e, t;
|
|
113
|
+
return ((t = (e = o.value) == null ? void 0 : e.measurement) == null ? void 0 : t.id) ?? null;
|
|
114
|
+
},
|
|
115
|
+
set(e) {
|
|
116
|
+
if (e == null)
|
|
117
|
+
o.value = {
|
|
118
|
+
...o.value ?? $(),
|
|
119
|
+
measurement: null
|
|
120
|
+
}, r("update:measurement", null);
|
|
121
|
+
else {
|
|
122
|
+
const t = n.unit.measurements.find((a) => a.id === e) ?? null;
|
|
123
|
+
o.value = {
|
|
124
|
+
...o.value ?? $(),
|
|
125
|
+
measurement: t
|
|
126
|
+
}, r("update:measurement", t);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
j(A, (e, t) => {
|
|
131
|
+
var _;
|
|
132
|
+
if (!n.convertAmountOnChangeUnit)
|
|
133
|
+
return;
|
|
134
|
+
const a = ((_ = o.value) == null ? void 0 : _.amount) ?? F.reset(), c = n.unit.measurements.find((B) => B.id === t) ?? null, l = n.unit.measurements.find((B) => B.id === e) ?? null, y = c ? re(a, c.conversion) : a, I = l ? me(y, l.conversion) : y, P = w(n.unit, l), s = F.convertPrecision({
|
|
135
|
+
value: I,
|
|
136
|
+
precision: P
|
|
137
|
+
});
|
|
138
|
+
f.value = C(s);
|
|
139
|
+
});
|
|
140
|
+
const Z = m(() => {
|
|
141
|
+
var e, t;
|
|
142
|
+
return ((t = (e = o.value) == null ? void 0 : e.measurement) == null ? void 0 : t.abbrev) ?? n.unit.abbrev;
|
|
143
|
+
}), J = m(
|
|
144
|
+
() => {
|
|
145
|
+
var e;
|
|
146
|
+
return ((e = n.rules) == null ? void 0 : e.map(
|
|
147
|
+
(t) => (a) => typeof t == "function" ? t(a) : t
|
|
148
|
+
)) ?? [];
|
|
149
|
+
}
|
|
150
|
+
), K = m(() => [...n.applyDefaultRules ? [
|
|
151
|
+
q(),
|
|
152
|
+
typeof n.precision == "number" ? z(n.precision) : z(n.unit)
|
|
153
|
+
] : [], ...J.value]);
|
|
154
|
+
return (e, t) => {
|
|
155
|
+
const a = p("FmLabel"), c = p("FmIcon"), l = p("FmMenuItem"), y = p("FmMenu"), I = p("FmField"), P = p("FmFormGroup");
|
|
156
|
+
return M(), D("div", pe, [
|
|
157
|
+
i("div", fe, [
|
|
158
|
+
i("div", ve, [
|
|
159
|
+
v(a, {
|
|
160
|
+
label: e.label,
|
|
161
|
+
disabled: e.disabled,
|
|
162
|
+
required: e.labelMark === "required",
|
|
163
|
+
optional: e.labelMark === "optional"
|
|
164
|
+
}, null, 8, ["label", "disabled", "required", "optional"])
|
|
165
|
+
]),
|
|
166
|
+
v(I, { focused: H.value }, {
|
|
167
|
+
default: R(() => [
|
|
168
|
+
i("div", be, [
|
|
169
|
+
L(e.$slots, "prepend"),
|
|
170
|
+
i("div", ye, [
|
|
171
|
+
ee(i("input", {
|
|
172
|
+
type: "text",
|
|
173
|
+
ref_key: "inputRef",
|
|
174
|
+
ref: G,
|
|
175
|
+
onFocus: t[0] || (t[0] = () => x.value = !0),
|
|
176
|
+
onBlur: t[1] || (t[1] = () => x.value = !1),
|
|
177
|
+
"onUpdate:modelValue": t[2] || (t[2] = (s) => f.value = s),
|
|
178
|
+
class: te({
|
|
179
|
+
"fm-text-field--input fm-typo-en-body-lg-400 text-right": !0,
|
|
180
|
+
"text-fm-color-typo-primary": !S.value,
|
|
181
|
+
"text-fm-color-typo-disabled": S.value
|
|
182
|
+
})
|
|
183
|
+
}, null, 34), [
|
|
184
|
+
[ne, f.value]
|
|
185
|
+
])
|
|
186
|
+
]),
|
|
187
|
+
e.separator ? (M(), D("div", he, T(e.separator), 1)) : oe("", !0),
|
|
188
|
+
i("div", Me, [
|
|
189
|
+
v(y, {
|
|
190
|
+
onMenuChanged: t[3] || (t[3] = (s) => V.value = s),
|
|
191
|
+
"z-index": 500,
|
|
192
|
+
placement: e.placement
|
|
193
|
+
}, {
|
|
194
|
+
"menu-button": R(() => [
|
|
195
|
+
i("div", Fe, [
|
|
196
|
+
i("div", null, T(Z.value), 1),
|
|
197
|
+
v(c, { name: "keyboard_arrow_down" })
|
|
198
|
+
])
|
|
199
|
+
]),
|
|
200
|
+
default: R(() => [
|
|
201
|
+
i("div", ge, [
|
|
202
|
+
(M(!0), D(ae, null, ue(O.value, (s) => (M(), le(l, {
|
|
203
|
+
key: s.value ?? void 0,
|
|
204
|
+
label: s.label,
|
|
205
|
+
"model-value": s.value == A.value,
|
|
206
|
+
onClick: (_) => A.value = s.value
|
|
207
|
+
}, null, 8, ["label", "model-value", "onClick"]))), 128))
|
|
208
|
+
])
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
}, 8, ["placement"])
|
|
212
|
+
]),
|
|
213
|
+
L(e.$slots, "append")
|
|
214
|
+
])
|
|
215
|
+
]),
|
|
216
|
+
_: 3
|
|
217
|
+
}, 8, ["focused"])
|
|
218
|
+
]),
|
|
219
|
+
v(P, {
|
|
220
|
+
class: "flex-1",
|
|
221
|
+
"model-value": { modelValue: o.value, amountAsString: String(f.value) },
|
|
222
|
+
info: e.labelInfo,
|
|
223
|
+
rules: K.value,
|
|
224
|
+
"helper-text": e.helperText,
|
|
225
|
+
"helper-state": e.helperState
|
|
226
|
+
}, null, 8, ["model-value", "info", "rules", "helper-text", "helper-state"])
|
|
227
|
+
]);
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
export {
|
|
232
|
+
_e as F,
|
|
233
|
+
Be as _,
|
|
234
|
+
q as a,
|
|
235
|
+
z as b
|
|
236
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ref as T, defineComponent as oe, computed as k, resolveComponent as S, openBlock as g, createBlock as B, withCtx as I, createVNode as y, createElementBlock as D, Fragment as Z, createElementVNode as u, createCommentVNode as W, onMounted as Ge, watch as Te, unref as C, normalizeClass as G, createTextVNode as Pe, toDisplayString as q, renderList as ce, isRef as we, renderSlot as ve, createSlots as qe, normalizeStyle as Ke, Teleport as Me, normalizeProps as Je, guardReactiveProps as Qe } from "vue";
|
|
2
|
-
import { u as ne, c as Be, S as Xe, g as ge, F as J, d as $e, a as Le, C as he, b as Ie, e as Ze, _ as et, f as tt } from "./app-
|
|
2
|
+
import { u as ne, c as Be, S as Xe, g as ge, F as J, d as $e, a as Le, C as he, b as Ie, e as Ze, _ as et, f as tt } from "./app-Cys3s5QM.js";
|
|
3
3
|
import { useDialog as ze, useSnackbar as be, useProxiedModel as Re, useDialogChild as ot, useBreakpoints as nt } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as lt, _ as at } from "./is-linked-ingredient-error-C6AghEwR.js";
|
|
5
5
|
import { F as Y, D as Ue, R as ye } from "./row-action.enum-BwQbURNh.js";
|
|
6
|
-
import { c as st, _ as rt, F as Ae, u as it } from "./layout-
|
|
6
|
+
import { c as st, _ as rt, F as Ae, u as it } from "./layout-DuS41CyD.js";
|
|
7
7
|
import { _ as ut } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-Dov3Uq2z.js";
|
|
8
|
-
import { R as xe, U as dt, A as Ve, M as ct, I as mt } from "./rules-
|
|
8
|
+
import { R as xe, U as dt, A as Ve, M as ct, I as mt } from "./rules-BvlRoPEY.js";
|
|
9
9
|
import { g as pt, _ as ke, S as Fe } from "./StockForecast.vue_vue_type_style_index_0_lang-B5EK101t.js";
|
|
10
|
-
import { _ as ft } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { _ as Ce, t as Ne, d as Oe, s as vt, r as yt } from "./xlsx.util-
|
|
12
|
-
import { a as je, t as He, f as gt } from "./date2-
|
|
10
|
+
import { _ as ft } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Esk0PFn1.js";
|
|
11
|
+
import { _ as Ce, t as Ne, d as Oe, s as vt, r as yt } from "./xlsx.util-DSDXolWm.js";
|
|
12
|
+
import { a as je, t as He, f as gt } from "./date2-Cc1Oiw05.js";
|
|
13
13
|
import { useCoreStore as me } from "@feedmepos/mf-common";
|
|
14
14
|
import { _ as Se } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-BvadeWUz.js";
|
|
15
15
|
function bt() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as E, mergeModels as ae, useModel as de, onMounted as ue, ref as D, computed as L, resolveComponent as B, openBlock as F, createElementBlock as S, createElementVNode as c, toDisplayString as Z, createVNode as M, createBlock as j, withCtx as I, Fragment as z, renderList as G, normalizeClass as R, normalizeStyle as ce, createSlots as fe, unref as P, createCommentVNode as O, withModifiers as me, reactive as Q, watch as X, isRef as ee, Teleport as pe } from "vue";
|
|
2
2
|
import { E as ge } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import { y as ve, c as U, z as be, f as ye } from "./app-
|
|
3
|
+
import { y as ve, c as U, z as be, f as ye } from "./app-Cys3s5QM.js";
|
|
4
4
|
import { useDialogChild as he, useDialog as te, useProxiedModel as ne, useSnackbar as _e } from "@feedmepos/ui-library";
|
|
5
|
-
import { f as oe } from "./fuzzy-
|
|
5
|
+
import { f as oe } from "./fuzzy-DnFs8Xce.js";
|
|
6
6
|
import { _ as Ce } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-Dov3Uq2z.js";
|
|
7
|
-
import { _ as xe } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as xe } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CHGOS3Nh.js";
|
|
8
8
|
import { useCoreStore as we } from "@feedmepos/mf-common";
|
|
9
9
|
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";
|
|
10
10
|
function Y(_, v) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as H, computed as v, reactive as J, resolveComponent as y, openBlock as p, createElementBlock as b, createVNode as r, unref as m, createElementVNode as o, Fragment as U, renderList as C, createBlock as k, withCtx as I, createTextVNode as Q, toDisplayString as R, createCommentVNode as S, nextTick as W } from "vue";
|
|
2
|
-
import { u as X, i as Z } from "./app-
|
|
3
|
-
import { a as h, c as ee } from "./date2-
|
|
4
|
-
import { u as oe } from "./use-inventory-binding-dialog-
|
|
5
|
-
import { A as ne, b as te, a as E } from "./rules-
|
|
6
|
-
import { g as le } from "./dayjs.min-
|
|
7
|
-
import { _ as ie, a as ae, b as se } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as X, i as Z } from "./app-Cys3s5QM.js";
|
|
3
|
+
import { a as h, c as ee } from "./date2-Cc1Oiw05.js";
|
|
4
|
+
import { u as oe } from "./use-inventory-binding-dialog-Bku2ByrH.js";
|
|
5
|
+
import { A as ne, b as te, a as E } from "./rules-BvlRoPEY.js";
|
|
6
|
+
import { g as le } from "./dayjs.min-DnrcQF8Z.js";
|
|
7
|
+
import { _ as ie, a as ae, b as se } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-iLrqfOPx.js";
|
|
8
8
|
const de = { class: "flex flex-col gap-24" }, re = { class: "flex flex-col gap-16" }, me = { class: "flex items-center" }, ue = /* @__PURE__ */ o("div", { class: "flex-1 fm-typo-en-title-sm-600" }, "Recipe", -1), ce = { class: "flex flex-col" }, pe = /* @__PURE__ */ o("div", { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, [
|
|
9
9
|
/* @__PURE__ */ o("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, "Recipe"),
|
|
10
10
|
/* @__PURE__ */ o("div", { class: "w-[200px]" }),
|
|
@@ -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 { c as d } from "./date2-
|
|
2
|
+
import { c as d } from "./date2-Cc1Oiw05.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
package/dist/{PurchaseOrderPrintPreview-C0CZE0YT.js → PurchaseOrderPrintPreview-DNfb1vCu.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as x, computed as f, ref as m, onMounted as g, openBlock as r, createElementBlock as o, createElementVNode as e, toDisplayString as t, normalizeStyle as w, createTextVNode as i, Fragment as u, createCommentVNode as h, renderList as _, normalizeClass as k, pushScopeId as S, popScopeId as C } from "vue";
|
|
2
2
|
import { useRoute as P } from "vue-router";
|
|
3
|
-
import { q as v, _ as R } from "./app-
|
|
3
|
+
import { q as v, _ as R } from "./app-Cys3s5QM.js";
|
|
4
4
|
const n = (d) => (S("data-v-54384fc1"), d = d(), C(), d), A = { class: "purchase-box" }, N = { valign: "bottom" }, E = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "title" }, "Inventory Receive Note", -1)), O = { class: "text-right" }, q = { class: "header" }, D = /* @__PURE__ */ n(() => /* @__PURE__ */ e("hr", null, null, -1)), I = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "header" }, "Supplier", -1)), T = { class: "sub-header" }, F = { class: "caption" }, L = { class: "address" }, U = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), V = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), z = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), B = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), H = { class: "text-right" }, M = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "header" }, "Delivery To", -1)), J = { class: "sub-header" }, Q = { class: "address" }, j = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), G = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), K = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), W = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), X = { class: "purchase-body" }, Y = /* @__PURE__ */ n(() => /* @__PURE__ */ e("thead", { class: "item-header" }, [
|
|
5
5
|
/* @__PURE__ */ e("tr", null, [
|
|
6
6
|
/* @__PURE__ */ e("th", {
|