@feedmepos/mf-inventory-portal 1.0.15-dev.2 → 1.0.15-dev.3
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-CgxrN-aD.js → App-3Zym4rob.js} +2 -2
- package/dist/ApprovalView-C4qLlZua.js +213 -0
- package/dist/{BindingsDialog-B_ZMDl-b.js → BindingsDialog-DHaF8DtC.js} +2 -2
- package/dist/{BindingsPicker-B84BG8zT.js → BindingsPicker-C04HnWZ-.js} +1 -1
- package/dist/{BindingsTable-DrvoykYc.js → BindingsTable-CnZUt7GU.js} +1 -1
- package/dist/{ClosingDraftView-Ds9sI2Eg.js → ClosingDraftView-DaMruAln.js} +41 -41
- package/dist/{ClosingTemplateView-BhZ1OXkD.js → ClosingTemplateView-B3lyKcz-.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-Yuxf-jCh.js → DeliveryOrderPrintPreview-CGPkYOfW.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D6ktiUO5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DFJNtwjV.js} +43 -43
- package/dist/{FmMultiselectDialog-4lVsA2Rn.js → FmMultiselectDialog-yR5Mo3U-.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-XmTRSHn_.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DoY67RWl.js} +57 -57
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-B3PvtR0j.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BSuFAwN3.js} +1 -1
- package/dist/IngredientGroupView-B-hyo-7W.js +898 -0
- package/dist/IngredientsView-Cod5ahQy.js +1778 -0
- package/dist/{IntegrationView-BnrCkjWt.js → IntegrationView-D9KZtPN3.js} +5 -5
- package/dist/{InventoryBindingForm-uyHh2TI_.js → InventoryBindingForm-CrRoablh.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CECDj9Pw.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-W9p7khOs.js} +46 -46
- package/dist/{InventoryBindingSummary-DyHCqgIe.js → InventoryBindingSummary-D88BG4ze.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Dx2lMf6h.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-VtM-wvuF.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BCX3vlmU.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Ccx9QvpN.js} +15 -15
- package/dist/{PublishView-BVGyY6nn.js → PublishView-DhE7YE-k.js} +13 -13
- package/dist/{PurchaseOrderPrintPreview-pbYIFiOG.js → PurchaseOrderPrintPreview-CF_VeOeU.js} +4 -4
- package/dist/ReceiveRequestView-Bx9-NHyn.js +2576 -0
- package/dist/{RecipeView-DcgoCf4g.js → RecipeView-JhM5Z4CP.js} +4 -4
- package/dist/{StockView-zO2uL662.js → StockView-u7jlKoO5.js} +108 -108
- package/dist/{SupplierView-I5bqiX_2.js → SupplierView-BDBBQnGy.js} +37 -37
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BJiobEDM.js +2090 -0
- package/dist/{TransferTemplateView-BDOt17yc.js → TransferTemplateView-CNMHm8Gy.js} +149 -149
- package/dist/{UnitView-BVY5S6-3.js → UnitView-UVgn7ofI.js} +32 -32
- package/dist/{WarehouseView-m6MKrtYq.js → WarehouseView-CEw69mhn.js} +26 -26
- package/dist/{app-DtICLubM.js → app-cfPLYfcH.js} +33227 -25194
- package/dist/app.js +5 -5
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +36 -0
- package/dist/{decimal-C1dAcCf3.js → decimal-BeCLbdwn.js} +1 -1
- package/dist/{feature-Y7qzvbl4.js → feature-dhG2tL_A.js} +79 -79
- package/dist/{format-unit-display-CPqfS4vp.js → format-unit-display-D3UdcFM6.js} +48 -48
- package/dist/{index-DIEdSG3y.js → index-BUou6R58.js} +1 -1
- package/dist/{index-0qsqwB0T.js → index-BkR-Qpc0.js} +4 -4
- package/dist/{stock-CowNp_xM.js → stock-DQPwSZX1.js} +1 -1
- package/dist/{supplier-JVTTlQNL.js → supplier-CAcd6PiU.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Df59lld2.js → use-ingredient-select-dialog-E3qfQso7.js} +5 -5
- package/dist/{use-inventory-binding-dialog-Bxxb93Kz.js → use-inventory-binding-dialog-DRKy4nUx.js} +1 -1
- package/dist/{vue-i18n-DJOdRwc3.js → vue-i18n-DLrqHK28.js} +271 -271
- package/package.json +4 -4
- package/dist/ApprovalView-DNGhkVc9.js +0 -147
- package/dist/IngredientGroupView-usK9stxT.js +0 -8779
- package/dist/IngredientsView-DPx8Z2zo.js +0 -1749
- package/dist/ReceiveRequestView-DZAgH2_u.js +0 -2516
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-NyQg_yR9.js +0 -2020
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as Q, mergeModels as Bd, computed as I, useModel as Gd, resolveComponent as T, openBlock as S, createElementBlock as F, createElementVNode as g, createVNode as N, withCtx as k, toDisplayString as w, unref as u, Fragment as q, renderList as ee, ref as D, createBlock as j, createCommentVNode as K, isRef as Je, normalizeClass as J, createTextVNode as Hd, watch as Id, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
|
|
2
|
-
import { u as re } from "./supplier-
|
|
3
|
-
import { b as Ie, f as
|
|
4
|
-
import { useI18n as
|
|
2
|
+
import { u as re } from "./supplier-CAcd6PiU.js";
|
|
3
|
+
import { b as Ie, f as Yd, D as Qe, h as ie, e as _e, a as Fd, n as ed, o as dd, j as Xd, a0 as Zd, v as Od, u as pe, l as G, d as V, q as wd, r as zd, s as Ad, w as qd, x as Jd, y as Qd, z as et, _ as dt, B as tt, C as rt, E as le } from "./app-cfPLYfcH.js";
|
|
4
|
+
import { useI18n as X, useCoreStore as Fe } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as Oe, useSnackbar as me, useProxiedModel as td, useDialogChild as nt, useBreakpoints as ot } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as at } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
7
|
-
import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as Td } from "./feature-
|
|
7
|
+
import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DoY67RWl.js";
|
|
8
|
+
import { u as Td } from "./feature-dhG2tL_A.js";
|
|
9
9
|
import { defineStore as it } from "pinia";
|
|
10
10
|
function lt(e, d) {
|
|
11
|
-
const { t } =
|
|
11
|
+
const { t } = X(), r = Ie();
|
|
12
12
|
function n(a, i) {
|
|
13
13
|
if (a === ie.Edit) {
|
|
14
14
|
e(_e(i));
|
|
@@ -55,7 +55,7 @@ function lt(e, d) {
|
|
|
55
55
|
id: "action",
|
|
56
56
|
header: "",
|
|
57
57
|
cell(a) {
|
|
58
|
-
return
|
|
58
|
+
return Yd(
|
|
59
59
|
[Qe[ie.Edit], Qe[ie.Delete]],
|
|
60
60
|
(i) => {
|
|
61
61
|
n(i, a.row.original);
|
|
@@ -80,7 +80,7 @@ const st = { class: "flex flex-col gap-12" }, ut = { class: "flex flex-col" }, c
|
|
|
80
80
|
}),
|
|
81
81
|
emits: ["update:modelValue"],
|
|
82
82
|
setup(e) {
|
|
83
|
-
const d = Fe(), t = Fd(), r = I(() => t.skus), n = Oe(), { t: o } =
|
|
83
|
+
const d = Fe(), t = Fd(), r = I(() => t.skus), n = Oe(), { t: o } = X(), a = Gd(e, "modelValue");
|
|
84
84
|
function i() {
|
|
85
85
|
var _;
|
|
86
86
|
const f = t.skus.map((b) => ({
|
|
@@ -90,7 +90,7 @@ const st = { class: "flex flex-col gap-12" }, ut = { class: "flex flex-col" }, c
|
|
|
90
90
|
})), h = ((_ = a.value) == null ? void 0 : _.map((b) => b.skuId)) ?? [], m = I(
|
|
91
91
|
() => {
|
|
92
92
|
var b;
|
|
93
|
-
return ((b =
|
|
93
|
+
return ((b = Xd(d.currentCountry.value)) == null ? void 0 : b.currency) ?? "MYR";
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
96
|
n.open({
|
|
@@ -244,7 +244,7 @@ const st = { class: "flex flex-col gap-12" }, ut = { class: "flex flex-col" }, c
|
|
|
244
244
|
},
|
|
245
245
|
emits: ["update:modelValue", "validation-success"],
|
|
246
246
|
setup(e, { expose: d, emit: t }) {
|
|
247
|
-
const r = e, n = t, o = Td(), a = Fd(), i = I(() => Od(a.skus, "_id")), { t: l } =
|
|
247
|
+
const r = e, n = t, o = Td(), a = Fd(), i = I(() => Od(a.skus, "_id")), { t: l } = X(), c = pe(), p = I(() => c.businessLevel), y = I({
|
|
248
248
|
get() {
|
|
249
249
|
var s;
|
|
250
250
|
return ((s = r.modelValue) == null ? void 0 : s.name) ?? "";
|
|
@@ -503,7 +503,7 @@ const st = { class: "flex flex-col gap-12" }, ut = { class: "flex flex-col" }, c
|
|
|
503
503
|
},
|
|
504
504
|
emits: ["update:show", "submitted"],
|
|
505
505
|
setup(e, { expose: d, emit: t }) {
|
|
506
|
-
const r = Ie(), n = e, o = t, a = D(!1), i = me(), { t: l } =
|
|
506
|
+
const r = Ie(), n = e, o = t, a = D(!1), i = me(), { t: l } = X(), c = re(), p = I(() => {
|
|
507
507
|
switch (n.mode) {
|
|
508
508
|
case V.READ:
|
|
509
509
|
return "";
|
|
@@ -702,7 +702,7 @@ function Rd(e) {
|
|
|
702
702
|
function Ce(e) {
|
|
703
703
|
var d = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
704
704
|
return Ce = function(r) {
|
|
705
|
-
if (r === null || !
|
|
705
|
+
if (r === null || !Yt(r)) return r;
|
|
706
706
|
if (typeof r != "function")
|
|
707
707
|
throw new TypeError("Super expression must either be null or a function");
|
|
708
708
|
if (typeof d < "u") {
|
|
@@ -733,7 +733,7 @@ function Md() {
|
|
|
733
733
|
return !1;
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function Yt(e) {
|
|
737
737
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
738
738
|
}
|
|
739
739
|
function de(e, d) {
|
|
@@ -754,7 +754,7 @@ var H = /* @__PURE__ */ function(e) {
|
|
|
754
754
|
return Ht(this, t), n = d.call(this, r), Object.setPrototypeOf(Rd(n), t.prototype), n.name = n.constructor.name, n;
|
|
755
755
|
}
|
|
756
756
|
return Gt(t);
|
|
757
|
-
}(/* @__PURE__ */ Ce(Error)), we = 2,
|
|
757
|
+
}(/* @__PURE__ */ Ce(Error)), we = 2, Xt = 17, Zt = 3, U = "0-90-9٠-٩۰-۹", zt = "-‐-―−ー-", qt = "//", Jt = "..", Qt = " ", e0 = "()()[]\\[\\]", d0 = "~⁓∼~", ce = "".concat(zt).concat(qt).concat(Jt).concat(Qt).concat(e0).concat(d0), Ae = "++";
|
|
758
758
|
function rd(e, d) {
|
|
759
759
|
e = e.split("-"), d = d.split("-");
|
|
760
760
|
for (var t = e[0].split("."), r = d[0].split("."), n = 0; n < 3; n++) {
|
|
@@ -1647,17 +1647,17 @@ function yd(e) {
|
|
|
1647
1647
|
for (var d = 1; d < arguments.length; d++) {
|
|
1648
1648
|
var t = arguments[d] != null ? arguments[d] : {};
|
|
1649
1649
|
d % 2 ? md(Object(t), !0).forEach(function(r) {
|
|
1650
|
-
|
|
1650
|
+
Y0(e, r, t[r]);
|
|
1651
1651
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : md(Object(t)).forEach(function(r) {
|
|
1652
1652
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
1653
1653
|
});
|
|
1654
1654
|
}
|
|
1655
1655
|
return e;
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function Y0(e, d, t) {
|
|
1658
1658
|
return d in e ? Object.defineProperty(e, d, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[d] = t, e;
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1660
|
+
function X0(e, d) {
|
|
1661
1661
|
if (!(e instanceof d))
|
|
1662
1662
|
throw new TypeError("Cannot call a class as a function");
|
|
1663
1663
|
}
|
|
@@ -1672,7 +1672,7 @@ function z0(e, d, t) {
|
|
|
1672
1672
|
}
|
|
1673
1673
|
var q0 = /* @__PURE__ */ function() {
|
|
1674
1674
|
function e(d, t, r) {
|
|
1675
|
-
if (
|
|
1675
|
+
if (X0(this, e), !d)
|
|
1676
1676
|
throw new TypeError("`country` or `countryCallingCode` not passed");
|
|
1677
1677
|
if (!t)
|
|
1678
1678
|
throw new TypeError("`nationalNumber` not passed");
|
|
@@ -2004,7 +2004,7 @@ function E1(e, d, t) {
|
|
|
2004
2004
|
throw new H("TOO_SHORT");
|
|
2005
2005
|
return {};
|
|
2006
2006
|
}
|
|
2007
|
-
if (c.length >
|
|
2007
|
+
if (c.length > Xt) {
|
|
2008
2008
|
if (d.v2)
|
|
2009
2009
|
throw new H("TOO_LONG");
|
|
2010
2010
|
return {};
|
|
@@ -2350,7 +2350,7 @@ function W1() {
|
|
|
2350
2350
|
}
|
|
2351
2351
|
];
|
|
2352
2352
|
}
|
|
2353
|
-
function
|
|
2353
|
+
function Y1() {
|
|
2354
2354
|
const e = pe(), d = re(), r = (e.businessLevel ? d.businessSuppliers : d.locationSuppliers).map(K1), o = Fe().currentBusiness.value, a = Ud(), i = [
|
|
2355
2355
|
["Business name:", o == null ? void 0 : o.name],
|
|
2356
2356
|
["Business ID:", o == null ? void 0 : o._id],
|
|
@@ -2361,7 +2361,7 @@ function X1() {
|
|
|
2361
2361
|
], l = a.map((y) => `system:${y.id}`), c = wd(i, l), p = `${o == null ? void 0 : o.name} suppliers (${zd(/* @__PURE__ */ new Date())}).xlsx`;
|
|
2362
2362
|
return Ad(c, p), p;
|
|
2363
2363
|
}
|
|
2364
|
-
function
|
|
2364
|
+
function X1() {
|
|
2365
2365
|
const d = Fe().currentBusiness.value, t = Ud(), r = [
|
|
2366
2366
|
["Business name:", d == null ? void 0 : d.name],
|
|
2367
2367
|
["Business ID:", d == null ? void 0 : d._id],
|
|
@@ -2501,7 +2501,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2501
2501
|
errors: {}
|
|
2502
2502
|
},
|
|
2503
2503
|
setup(e) {
|
|
2504
|
-
const { t: d } =
|
|
2504
|
+
const { t: d } = X();
|
|
2505
2505
|
return (t, r) => {
|
|
2506
2506
|
const n = T("FmIcon"), o = T("FmTooltip");
|
|
2507
2507
|
return S(), F("div", q1, [
|
|
@@ -2566,7 +2566,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2566
2566
|
() => !!a.value.length || i.value.some((h) => h.errors.length) || l.value.some((h) => h.errors.length)
|
|
2567
2567
|
), p = I(
|
|
2568
2568
|
() => !!i.value.length || !!l.value.length
|
|
2569
|
-
), { t: y } =
|
|
2569
|
+
), { t: y } = X();
|
|
2570
2570
|
async function f(h) {
|
|
2571
2571
|
a.value = [], i.value = [], l.value = [];
|
|
2572
2572
|
try {
|
|
@@ -2714,7 +2714,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2714
2714
|
};
|
|
2715
2715
|
}
|
|
2716
2716
|
}), pr = it("supplierActions", function() {
|
|
2717
|
-
const e = re(), d = Oe(), { t } =
|
|
2717
|
+
const e = re(), d = Oe(), { t } = X(), r = me();
|
|
2718
2718
|
function n() {
|
|
2719
2719
|
d.open({
|
|
2720
2720
|
title: t("inventory.supplier.import.title"),
|
|
@@ -2759,10 +2759,10 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2759
2759
|
return;
|
|
2760
2760
|
}
|
|
2761
2761
|
d.close(), a(i);
|
|
2762
|
-
}).onTertiary(
|
|
2762
|
+
}).onTertiary(X1);
|
|
2763
2763
|
}
|
|
2764
2764
|
function o() {
|
|
2765
|
-
const i =
|
|
2765
|
+
const i = Y1();
|
|
2766
2766
|
r.open({
|
|
2767
2767
|
title: t("inventory.supplier.export.success"),
|
|
2768
2768
|
message: t("inventory.supplier.export.filename", [i]),
|
|
@@ -2810,7 +2810,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2810
2810
|
}, br = "You are managing business-level supplier list. These suppliers will be made visible to all locations.", Or = /* @__PURE__ */ Q({
|
|
2811
2811
|
__name: "SupplierView",
|
|
2812
2812
|
setup(e) {
|
|
2813
|
-
const { importSuppliers: d, exportSuppliers: t } = pr(), r = re(), n = pe(), o = Td(), a = Ie(), i = D(!1), l = Oe(), c = me(), { t: p } =
|
|
2813
|
+
const { importSuppliers: d, exportSuppliers: t } = pr(), r = re(), n = pe(), o = Td(), a = Ie(), i = D(!1), l = Oe(), c = me(), { t: p } = X();
|
|
2814
2814
|
n.watchLocation(f);
|
|
2815
2815
|
const y = I(() => n.businessLevel);
|
|
2816
2816
|
Id(y, f);
|
|
@@ -2961,32 +2961,32 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2961
2961
|
row: C,
|
|
2962
2962
|
onRowClick: b
|
|
2963
2963
|
}, {
|
|
2964
|
-
default: k((
|
|
2965
|
-
var Le, De, ke, ne, Ve, Ue, Be, Ge, oe, He, je, Ke, We, ae,
|
|
2964
|
+
default: k((Y) => {
|
|
2965
|
+
var Le, De, ke, ne, Ve, Ue, Be, Ge, oe, He, je, Ke, We, ae, Ye, Xe, Ze, ze, $e, qe;
|
|
2966
2966
|
return [
|
|
2967
2967
|
g("div", mr, [
|
|
2968
2968
|
g("div", yr, [
|
|
2969
2969
|
N(u(le), {
|
|
2970
|
-
render: (ke = (De = (Le =
|
|
2971
|
-
props: (Ve = (ne =
|
|
2970
|
+
render: (ke = (De = (Le = Y.name) == null ? void 0 : Le.column) == null ? void 0 : De.columnDef) == null ? void 0 : ke.cell,
|
|
2971
|
+
props: (Ve = (ne = Y.name) == null ? void 0 : ne.getContext) == null ? void 0 : Ve.call(ne)
|
|
2972
2972
|
}, null, 8, ["render", "props"])
|
|
2973
2973
|
]),
|
|
2974
2974
|
g("div", vr, [
|
|
2975
2975
|
N(u(le), {
|
|
2976
|
-
render: (Ge = (Be = (Ue =
|
|
2977
|
-
props: (He = (oe =
|
|
2976
|
+
render: (Ge = (Be = (Ue = Y.contactName) == null ? void 0 : Ue.column) == null ? void 0 : Be.columnDef) == null ? void 0 : Ge.cell,
|
|
2977
|
+
props: (He = (oe = Y.contactName) == null ? void 0 : oe.getContext) == null ? void 0 : He.call(oe)
|
|
2978
2978
|
}, null, 8, ["render", "props"])
|
|
2979
2979
|
]),
|
|
2980
2980
|
g("div", gr, [
|
|
2981
2981
|
N(u(le), {
|
|
2982
|
-
render: (We = (Ke = (je =
|
|
2983
|
-
props: (
|
|
2982
|
+
render: (We = (Ke = (je = Y.phoneNumber) == null ? void 0 : je.column) == null ? void 0 : Ke.columnDef) == null ? void 0 : We.cell,
|
|
2983
|
+
props: (Ye = (ae = Y.phoneNumber) == null ? void 0 : ae.getContext) == null ? void 0 : Ye.call(ae)
|
|
2984
2984
|
}, null, 8, ["render", "props"])
|
|
2985
2985
|
]),
|
|
2986
2986
|
C.original.email ? (S(), F("div", hr, [
|
|
2987
2987
|
N(u(le), {
|
|
2988
|
-
render: (ze = (Ze = (
|
|
2989
|
-
props: (qe = ($e =
|
|
2988
|
+
render: (ze = (Ze = (Xe = Y.email) == null ? void 0 : Xe.column) == null ? void 0 : Ze.columnDef) == null ? void 0 : ze.cell,
|
|
2989
|
+
props: (qe = ($e = Y.email) == null ? void 0 : $e.getContext) == null ? void 0 : qe.call($e)
|
|
2990
2990
|
}, null, 8, ["render", "props"])
|
|
2991
2991
|
])) : K("", !0)
|
|
2992
2992
|
])
|