@feedmepos/mf-inventory-portal 0.0.22-dev.34 → 0.0.22-dev.37
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-2pX2IV1F.js → ApprovalView-Dco0PkEf.js} +8 -8
- package/dist/{BindingsDialog-EyImpE9g.js → BindingsDialog-DrCU_kIA.js} +9 -9
- package/dist/{BindingsPicker-CbBNBcWW.js → BindingsPicker-BMIIrlG6.js} +17 -17
- package/dist/{BindingsTable-CJeV7Dd2.js → BindingsTable-BHRmkL1P.js} +1 -1
- package/dist/{ClosingTemplateView-BDEooji1.js → ClosingTemplateView-kiej8Nah.js} +15 -15
- package/dist/FmDroppableField-Bl7A98it.js +152 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DZtc5R4Z.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DQw4pBwH.js} +25 -25
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-z-BBBTkh.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DBh79EM_.js} +20 -20
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-3OkJNtvH.js +51 -0
- package/dist/IngredientsView-m44wAwSR.js +1611 -0
- package/dist/{IntegrationView-1lXCciJp.js → IntegrationView-B4gCx21K.js} +71 -71
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bgd922-L.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D1frNXtV.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Bexig132.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dbs29jm_.js} +16 -16
- package/dist/{PurchaseOrderPrintPreview-036mLqRD.js → PurchaseOrderPrintPreview-lKu0y_xw.js} +7 -7
- package/dist/ReceiveRequestView-DflWKxgq.js +4053 -0
- package/dist/{RecipeView-BuiA-2uY.js → RecipeView-DfsXdlPn.js} +30 -29
- package/dist/StockView-BSeSpxkV.js +7762 -0
- package/dist/{SupplierView-Ck5hH5gT.js → SupplierView-DPWh1si_.js} +11 -11
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DFDc3P3S.js → TransferDetails.vue_vue_type_script_setup_true_lang-Dt1lRW3W.js} +260 -262
- package/dist/TransferTemplateView-DGOT4oZN.js +2054 -0
- package/dist/{UnitView-DB2hQFMC.js → UnitView-X9bCqAWe.js} +16 -16
- package/dist/{WarehouseView-CFJiuhpx.js → WarehouseView-BphA-Peq.js} +20 -20
- package/dist/api/bill.d.ts +84 -238
- package/dist/api/purchase-order-template.d.ts +4 -2
- package/dist/{app-Z9P39kGh.js → app-DZiCiBV7.js} +18175 -18188
- package/dist/app.js +2 -2
- package/dist/{decimal-DIe_fFDH.js → decimal-Bx1Y3uW1.js} +1 -1
- package/dist/defineDeepModel-4XZbatJF.js +13 -0
- package/dist/format-time-from-id-CFJvgP70.js +15 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/purchase-order-transaction-type-Ds7YRAAp.js +348 -0
- package/dist/stores/inventory.d.ts +63 -0
- package/dist/stores/location.d.ts +89 -0
- package/dist/stores/netsuite.d.ts +1 -0
- package/dist/stores/supplier.d.ts +120 -3
- package/dist/stores/warehouse.d.ts +7 -4
- package/dist/supplier-BhJT8KOX.js +70 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-template-enabled-locations-2-CeSeHnX0.js → use-template-enabled-locations-2-BrEPVOpT.js} +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +2 -2
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +44 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +42 -34
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +75 -51
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +75 -51
- package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +10 -6
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1850 -5
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -230
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +14 -8
- package/dist/{xlsx-DrDljHnF.js → xlsx-B9lpxKgq.js} +651 -651
- package/dist/xlsx.util-DP5wVnRT.js +78 -0
- package/package.json +1 -1
- package/dist/IngredientsView-BvKaI0nb.js +0 -1755
- package/dist/ReceiveRequestView-BGlxEJkh.js +0 -1626
- package/dist/StockView-BKX6NX-g.js +0 -1909
- package/dist/TransferTemplateView-ByYEje9E.js +0 -1237
- package/dist/defineDeepModel-DH8vhBpR.js +0 -13
- package/dist/format-time-from-id-CAjL4U2X.js +0 -15
- package/dist/purchase-order-transaction-type-BJDnbhdk.js +0 -338
- package/dist/supplier-wJJ7ATk2.js +0 -69
- package/dist/xlsx.util-BwF0vRjF.js +0 -109
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { reactive as E, onUnmounted as q, defineComponent as
|
|
2
|
-
import { FmButtonVariant as X, useBreakpoints as
|
|
3
|
-
import {
|
|
4
|
-
import { useCoreStore as Z, useI18n as
|
|
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
|
+
import { FmButtonVariant as X, useBreakpoints as P } from "@feedmepos/ui-library";
|
|
3
|
+
import { i as O, V as U } from "./app-DZiCiBV7.js";
|
|
4
|
+
import { useCoreStore as Z, useI18n as A } from "@feedmepos/mf-common";
|
|
5
5
|
const I = E({});
|
|
6
|
-
function
|
|
6
|
+
function Y() {
|
|
7
7
|
const i = `${Math.random()}`, o = new ResizeObserver((t) => {
|
|
8
8
|
const l = t.map((n) => n.target.scrollHeight).reduce((n, s) => n + s);
|
|
9
9
|
I[i] = l;
|
|
@@ -29,7 +29,7 @@ function A() {
|
|
|
29
29
|
const ee = { class: "flex flex-col w-full bg-white h-full" }, ne = {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: /* @__PURE__ */ D(["text-fm-color-typo-secondary fm-typo-en-body-sm-400"])
|
|
32
|
-
}, te = { key: 0 }, oe = { key: 1 }, le = { class: "bg-white flex-1" }, ae = { class: "fixed bottom-96 right-16" }, ke = /* @__PURE__ */
|
|
32
|
+
}, te = { key: 0 }, oe = { key: 1 }, le = { class: "bg-white flex-1" }, ae = { class: "fixed bottom-96 right-16" }, ke = /* @__PURE__ */ R({
|
|
33
33
|
__name: "SingleColumnLayout",
|
|
34
34
|
props: {
|
|
35
35
|
actions: { default: () => [] },
|
|
@@ -44,7 +44,7 @@ const ee = { class: "flex flex-col w-full bg-white h-full" }, ne = {
|
|
|
44
44
|
setup(i, { emit: o }) {
|
|
45
45
|
const c = i, r = o, t = _(() => c.actions.find((e) => e.isPrimary)), l = _(
|
|
46
46
|
() => c.actions.filter((e) => !e.isPrimary).map((e) => ({ ...e, variant: e.variant ?? X.Tertiary }))
|
|
47
|
-
), { breakpoints: n } =
|
|
47
|
+
), { breakpoints: n } = P(), s = _(() => n.value.xs || n.value.sm), d = O(), k = _(() => d.businessLevel), x = Y();
|
|
48
48
|
return (e, m) => {
|
|
49
49
|
const B = h("FmButton");
|
|
50
50
|
return a(), b(F, null, [
|
|
@@ -72,7 +72,7 @@ const ee = { class: "flex flex-col w-full bg-white h-full" }, ne = {
|
|
|
72
72
|
e.usingBusinessHelperText && k.value ? (a(), b("div", ne, L(e.usingBusinessHelperText), 1)) : y("", !0)
|
|
73
73
|
], 2),
|
|
74
74
|
l.value.length ? (a(), b("div", te, [
|
|
75
|
-
(a(!0), b(F, null,
|
|
75
|
+
(a(!0), b(F, null, V(l.value, (g) => (a(), w(B, {
|
|
76
76
|
key: g.value,
|
|
77
77
|
label: g.label,
|
|
78
78
|
"prepend-icon": g.prependIcon,
|
|
@@ -114,7 +114,7 @@ const ee = { class: "flex flex-col w-full bg-white h-full" }, ne = {
|
|
|
114
114
|
}, ce = {
|
|
115
115
|
class: "overflow-hidden overflow-y-scroll",
|
|
116
116
|
style: { maxHeight: "105px" }
|
|
117
|
-
}, de = /* @__PURE__ */
|
|
117
|
+
}, de = /* @__PURE__ */ R({
|
|
118
118
|
__name: "ChangeLocationComponent",
|
|
119
119
|
props: {
|
|
120
120
|
showBusiness: { type: Boolean }
|
|
@@ -123,7 +123,7 @@ const ee = { class: "flex flex-col w-full bg-white h-full" }, ne = {
|
|
|
123
123
|
const o = O(), c = Z(), r = _(() => {
|
|
124
124
|
var e;
|
|
125
125
|
return (e = c.currentBusiness.value) == null ? void 0 : e.name;
|
|
126
|
-
}), { t } =
|
|
126
|
+
}), { t } = A(), l = z(""), n = _({
|
|
127
127
|
get() {
|
|
128
128
|
return o.businessLevel;
|
|
129
129
|
},
|
|
@@ -143,9 +143,9 @@ const ee = { class: "flex flex-col w-full bg-white h-full" }, ne = {
|
|
|
143
143
|
n.value = !1, o.selectLocation(o.locations.find((m) => m.dbName === e));
|
|
144
144
|
}
|
|
145
145
|
return (e, m) => {
|
|
146
|
-
const B = h("FmIcon"), g = h("FmSearch"), M = h("FmMenuDivider"), H = h("FmMenuHeader"), $ = h("FmMenuItem"),
|
|
146
|
+
const B = h("FmIcon"), g = h("FmSearch"), M = h("FmMenuDivider"), H = h("FmMenuHeader"), $ = h("FmMenuItem"), j = h("FmMenu");
|
|
147
147
|
return a(), b("div", se, [
|
|
148
|
-
v(
|
|
148
|
+
v(j, { "close-on-click": !0 }, {
|
|
149
149
|
"menu-button": T(() => {
|
|
150
150
|
var p;
|
|
151
151
|
return [
|
|
@@ -186,7 +186,7 @@ const ee = { class: "flex flex-col w-full bg-white h-full" }, ne = {
|
|
|
186
186
|
}, null, 8, ["label"]),
|
|
187
187
|
v(M),
|
|
188
188
|
f("div", ie, [
|
|
189
|
-
(a(!0), b(F, null,
|
|
189
|
+
(a(!0), b(F, null, V(d.value, (p) => {
|
|
190
190
|
var C;
|
|
191
191
|
return a(), w($, {
|
|
192
192
|
key: p.value,
|
|
@@ -206,7 +206,7 @@ const ee = { class: "flex flex-col w-full bg-white h-full" }, ne = {
|
|
|
206
206
|
}, null, 8, ["label"]),
|
|
207
207
|
v(M),
|
|
208
208
|
f("div", ce, [
|
|
209
|
-
(a(!0), b(F, null,
|
|
209
|
+
(a(!0), b(F, null, V(k.value, (p) => {
|
|
210
210
|
var C;
|
|
211
211
|
return a(), w($, {
|
|
212
212
|
key: p.value,
|
|
@@ -244,14 +244,14 @@ function N(i = 15) {
|
|
|
244
244
|
endDate: `${U(r)}`
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
|
-
const me = { 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" }, pe = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, ve = /* @__PURE__ */
|
|
247
|
+
const me = { 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" }, pe = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, ve = /* @__PURE__ */ R({
|
|
248
248
|
__name: "FmDateRangePickerChip",
|
|
249
249
|
props: {
|
|
250
250
|
modelValue: { default: (i) => i.modelValue ?? N() }
|
|
251
251
|
},
|
|
252
252
|
emits: ["update:modelValue"],
|
|
253
253
|
setup(i, { emit: o }) {
|
|
254
|
-
const c = o, r =
|
|
254
|
+
const c = o, r = z(N());
|
|
255
255
|
K(r, (l) => {
|
|
256
256
|
c("update:modelValue", l);
|
|
257
257
|
});
|
|
@@ -284,7 +284,7 @@ const me = { class: "inline-flex rounded-md items-center gap-4 justify-center h-
|
|
|
284
284
|
}), fe = { class: "flex-1 w-full flex items-center gap-4" }, be = {
|
|
285
285
|
key: 0,
|
|
286
286
|
class: "flex-1"
|
|
287
|
-
}, ye = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, Be = /* @__PURE__ */
|
|
287
|
+
}, ye = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, Be = /* @__PURE__ */ R({
|
|
288
288
|
__name: "FmInventoryTableToolbar",
|
|
289
289
|
props: /* @__PURE__ */ W({
|
|
290
290
|
dateRangeQuery: { type: Boolean },
|
|
@@ -301,7 +301,7 @@ const me = { class: "inline-flex rounded-md items-center gap-4 justify-center h-
|
|
|
301
301
|
}),
|
|
302
302
|
emits: ["update:search", "update:dateRange"],
|
|
303
303
|
setup(i) {
|
|
304
|
-
const { breakpoints: o } =
|
|
304
|
+
const { breakpoints: o } = P(), c = _(() => o.value.xs || o.value.sm), r = S(i, "search"), t = S(i, "dateRange"), { t: l } = A(), n = Y();
|
|
305
305
|
return (s, d) => {
|
|
306
306
|
const k = h("FmTextField"), x = h("FmButton");
|
|
307
307
|
return a(), b("div", {
|
|
@@ -351,7 +351,7 @@ const me = { class: "inline-flex rounded-md items-center gap-4 justify-center h-
|
|
|
351
351
|
class: "w-full"
|
|
352
352
|
}, null, 8, ["model-value", "placeholder"])) : y("", !0)
|
|
353
353
|
]),
|
|
354
|
-
(a(!0), b(F, null,
|
|
354
|
+
(a(!0), b(F, null, V(s.actions, (e, m) => (a(), w(x, {
|
|
355
355
|
key: m,
|
|
356
356
|
variant: "tertiary",
|
|
357
357
|
"prepend-icon": e.icon,
|
|
@@ -368,5 +368,5 @@ export {
|
|
|
368
368
|
Be as a,
|
|
369
369
|
xe as b,
|
|
370
370
|
N as i,
|
|
371
|
-
|
|
371
|
+
Y as u
|
|
372
372
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
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-DZiCiBV7.js";
|
|
3
|
+
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
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
|
+
class: "flex-0 py-8 px-16",
|
|
6
|
+
style: { "flex-basis": "120px" }
|
|
7
|
+
}, k = { class: "flex-1 py-8 px-16" }, B = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "flex-0 py-8 px-16",
|
|
10
|
+
style: { "flex-basis": "120px" }
|
|
11
|
+
}, I = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "flex-0 py-8 px-16",
|
|
14
|
+
style: { "flex-basis": "120px" }
|
|
15
|
+
}, A = /* @__PURE__ */ p({
|
|
16
|
+
__name: "IngredientBindedItem",
|
|
17
|
+
props: {
|
|
18
|
+
name: {},
|
|
19
|
+
bindings: {}
|
|
20
|
+
},
|
|
21
|
+
setup($) {
|
|
22
|
+
const { t: m } = _();
|
|
23
|
+
function c(e, i) {
|
|
24
|
+
var t;
|
|
25
|
+
if (e.measurement) {
|
|
26
|
+
const u = y(e.amount, e.measurement.conversion);
|
|
27
|
+
return `${a(u, !1)} ${(t = e.measurement) == null ? void 0 : t.abbrev}`;
|
|
28
|
+
}
|
|
29
|
+
return `${a(e.amount, !1)} ${i.abbrev}`;
|
|
30
|
+
}
|
|
31
|
+
function f(e) {
|
|
32
|
+
return e.unit !== void 0;
|
|
33
|
+
}
|
|
34
|
+
return (e, i) => (s(), n("div", v, [
|
|
35
|
+
r("div", g, [
|
|
36
|
+
r("div", h, o(e.name), 1),
|
|
37
|
+
r("div", b, o(l(m)("inventory.ingredient.bindedItems.amount")), 1)
|
|
38
|
+
]),
|
|
39
|
+
(s(!0), n(d, null, x(e.bindings, (t) => (s(), n("div", {
|
|
40
|
+
key: t.id,
|
|
41
|
+
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
42
|
+
}, [
|
|
43
|
+
r("div", k, o(t.name), 1),
|
|
44
|
+
f(t) ? (s(), n("div", B, o(c(t, t.unit)), 1)) : (s(), n("div", I, o(l(a)(t.amount, !1)), 1))
|
|
45
|
+
]))), 128))
|
|
46
|
+
]));
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
A as _
|
|
51
|
+
};
|