@feedmepos/mf-inventory-portal 0.0.19-dev.1 → 0.0.19-dev.11
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-BtgtZgDY.js +121 -0
- package/dist/{BindingsDialog-DpC48bqK.js → BindingsDialog-DDqu7p2z.js} +9 -10
- package/dist/{BindingsPicker-BU52g6zk.js → BindingsPicker-BDhn5Do7.js} +7 -8
- package/dist/{BindingsTable-aIuFdScv.js → BindingsTable-C5R7orsB.js} +4 -6
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0sbKAX9.js +272 -0
- package/dist/IngredientsView-Ac52Wd12.js +1751 -0
- package/dist/IntegrationView-6mJtJK-d.js +1172 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BuyM580N.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C2BFaTg-.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-CL0RBLOF.js +88 -0
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js +29 -0
- package/dist/{PurchaseOrderPrintPreview-EeKhENYH.js → PurchaseOrderPrintPreview-UzrsJ0AN.js} +12 -12
- package/dist/ReceiveRequestView-DW9u9TJZ.js +208 -0
- package/dist/RecipeView-W15pCZKU.js +573 -0
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +59 -0
- package/dist/StockView-BqEe-OIX.js +1877 -0
- package/dist/SupplierView-CGr2N-e7.js +801 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DupNA58V.js +739 -0
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-COVncBoC.js +1676 -0
- package/dist/TransferTemplateView-HgaSR8L8.js +1101 -0
- package/dist/UnitView-C07Yrynl.js +638 -0
- package/dist/WarehouseView-DL-8j9vX.js +1050 -0
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/purchase-order-template.d.ts +7 -0
- package/dist/app-B1MZZxUg.js +67134 -0
- package/dist/app.d.ts +1185 -0
- package/dist/app.js +7 -3
- package/dist/components/FmDroppableField.vue.d.ts +1 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +7 -0
- package/dist/components/FmUnitInputProps.d.ts +2 -0
- package/dist/components/FmUnitInputRules.d.ts +1 -0
- package/dist/components/row-action.enum.d.ts +5 -1
- package/dist/composable/defineDeepModel.d.ts +2 -0
- package/dist/{decimal-BAZuuTcd.js → decimal-BXf_WdLk.js} +1 -1
- package/dist/helper/country.d.ts +2 -0
- package/dist/id-to-date-Dlovyec6.js +30 -0
- package/dist/layout-BJjS48J5.js +151 -0
- package/dist/purchase-order-transaction-type-CMIu0jrP.js +299 -0
- package/dist/router/name.d.ts +2 -1
- package/dist/row-action.enum-PMKMRrZR.js +50 -0
- package/dist/stores/supplier.d.ts +90 -7
- package/dist/style.css +1 -1
- package/dist/supplier-IDQmZ4VM.js +54 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/dev/components/FmMultiselectDialogGrouped.vue.d.ts +2 -0
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +2 -0
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingSummary.vue.d.ts +26 -0
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +14 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -2
- package/dist/views/ingredients/helper/calculate-default-cost.d.ts +9 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +4 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +22 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +2 -1
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +187 -0
- package/dist/views/receive-request/components/transfer-form/components/TransferItem.vue.d.ts +23 -0
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +21 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-backdate-po.d.ts +9 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-compare-price.d.ts +6 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +112 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +3 -1
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +18 -12
- package/dist/views/receive-request/helper/get-transfer-type.d.ts +2 -0
- package/dist/views/recipe/composables/use-recipe-form.d.ts +14 -2
- package/dist/views/recipe/composables/use-recipe-table.d.ts +1 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/stock/composables/use-stock-action.d.ts +26 -0
- package/dist/views/stock/composables/use-stock-table.d.ts +1 -8
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/views/stock/helper/stock-row-action.d.ts +2 -2
- package/dist/views/transfer-template/TransferTemplateView.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +20 -0
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +9 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +22 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialogProps.d.ts +10 -0
- package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateForm.vue.d.ts +16 -0
- package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateFormProps.d.ts +7 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItem.vue.d.ts +18 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +116 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +113 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +914 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +290 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +14 -2
- package/dist/views/unit/composables/use-unit-table.d.ts +1 -2
- package/dist/{xlsx-vUzm_udV.js → xlsx-CfdXcS72.js} +1 -1
- package/dist/xlsx.util-C5Wx4IUs.js +109 -0
- package/package.json +6 -5
- package/dist/ApprovalView-BTZwnKLf.js +0 -118
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DjgmtvXU.js +0 -268
- package/dist/FmMultiselectDialog.vue_vue_type_script_setup_true_lang-n09XXJZK.js +0 -143
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-B-19iYaK.js +0 -236
- package/dist/IngredientsView-DMyEGdik.js +0 -1767
- package/dist/IntegrationView-Dn_qL_vC.js +0 -1166
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-DGTLUrb9.js +0 -276
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-BvadeWUz.js +0 -35
- package/dist/ReceiveRequestView-BOdgbFFM.js +0 -1394
- package/dist/RecipeView-B1aNLDIK.js +0 -573
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-B5EK101t.js +0 -58
- package/dist/StockView-C_Ur_jTg.js +0 -1862
- package/dist/SupplierView-CXfOoHTr.js +0 -796
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-kjV5Eazv.js +0 -1028
- package/dist/UnitView-DHXfAsnq.js +0 -635
- package/dist/WarehouseView-DMwbxs1q.js +0 -1043
- package/dist/app-BkcO8oNJ.js +0 -66113
- package/dist/date2-Cvp5iJkI.js +0 -95
- package/dist/dayjs.min-D1_pOsO7.js +0 -282
- package/dist/fuzzy-0roCBvgC.js +0 -41
- package/dist/index-B_aEOJsR.js +0 -21515
- package/dist/layout-BnTfCS_X.js +0 -151
- package/dist/number-DLj3W3RW.js +0 -97
- package/dist/row-action.enum-BwQbURNh.js +0 -28
- package/dist/rules-CCmXA0Yi.js +0 -85
- package/dist/stock-estimate-CL4HShG8.js +0 -122
- package/dist/supplier-CjAH8O1y.js +0 -65
- package/dist/use-inventory-binding-dialog-GkJOzE6V.js +0 -93
- package/dist/xlsx.util-B_bqymTM.js +0 -107
|
@@ -1,236 +0,0 @@
|
|
|
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 "./index-B_aEOJsR.js";
|
|
3
|
-
import { g as C, c as se, a as k, t as ie, b as re, k as me, l as ce, u as de } from "./number-DLj3W3RW.js";
|
|
4
|
-
import { I as w } from "./rules-CCmXA0Yi.js";
|
|
5
|
-
function $() {
|
|
6
|
-
return {
|
|
7
|
-
amount: F.reset()
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
function q() {
|
|
11
|
-
return function(d) {
|
|
12
|
-
return w()(d.amountAsString);
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
function _e(u) {
|
|
16
|
-
return function(n) {
|
|
17
|
-
return w()(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 : C(u, r.modelValue.measurement);
|
|
26
|
-
return se(+r.amountAsString).precision > b ? `Cannot exceed precision more than ${k({
|
|
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 = w(), N = m(() => {
|
|
84
|
-
var t;
|
|
85
|
-
return C(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 k(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 = C(n.unit, l), s = F.convertPrecision({
|
|
135
|
-
value: I,
|
|
136
|
-
precision: P
|
|
137
|
-
});
|
|
138
|
-
f.value = k(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": !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
|
-
};
|