@feedmepos/mf-inventory-portal 1.3.16 → 1.3.17-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.
Files changed (91) hide show
  1. package/dist/{App-JcVy7z89.js → App-BM6XrIzj.js} +4 -4
  2. package/dist/{ApprovalView-TTCe-eqc.js → ApprovalView-DZg5b1Vo.js} +7 -7
  3. package/dist/{BindingsDialog-lrqjnmk3.js → BindingsDialog-DEOaWAfN.js} +2 -2
  4. package/dist/{BindingsPicker-B_ks2aoD.js → BindingsPicker-CBaP0_go.js} +2 -2
  5. package/dist/{BindingsTable-BTzb7bl6.js → BindingsTable-CYSQbBMo.js} +3 -3
  6. package/dist/{ClosingDraftView-CT3BYmhy.js → ClosingDraftView-Bwq-P_gh.js} +14 -14
  7. package/dist/{ClosingHistoryView-D22YN948.js → ClosingHistoryView-ByZgy8dJ.js} +5 -5
  8. package/dist/{ClosingTemplateView-DWZlbRNR.js → ClosingTemplateView-Xp6B7V86.js} +14 -14
  9. package/dist/{DefaultView-B55cXPDQ.js → DefaultView-Ww9EZ3Tw.js} +2 -2
  10. package/dist/{DeliveryOrderPrintPreview-C2OsEmYL.js → DeliveryOrderPrintPreview-Bxff18MY.js} +2 -2
  11. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D4TCAKPB.js +76 -0
  12. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-C2VqHIzn.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Y8uj4A2g.js} +2 -2
  13. package/dist/{FmMultiselectDialog-Bf5LoETU.js → FmMultiselectDialog-EIm10WKr.js} +2 -2
  14. package/dist/{FmMultiselectDialog-CtqcYKez.js → FmMultiselectDialog-yBaoE2it.js} +1 -1
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D0fbjDen.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CWZ4_Jbz.js} +6 -5
  16. package/dist/{ImportView-C6VMwns6.js → ImportView-C3jmiWuj.js} +6 -6
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bbp6FwaC.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BAx0OI85.js} +1 -1
  18. package/dist/{IngredientGroupView-Cq6HSE9I.js → IngredientGroupView-Dw0vYx2a.js} +5 -5
  19. package/dist/{IngredientsView-g_VlbWO3.js → IngredientsView-HpEyhu3q.js} +15 -15
  20. package/dist/{IntegrationExplorerView-CuLRbx45.js → IntegrationExplorerView-B2Zbmg9L.js} +5 -5
  21. package/dist/{IntegrationView-Deu36yy_.js → IntegrationView-D8Lf-JBn.js} +13 -13
  22. package/dist/{InventoryBindingForm-BY9a4LbA.js → InventoryBindingForm-DhvR3VDJ.js} +1 -1
  23. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BDS8xAAy.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-D0e5Do4W.js} +5 -5
  24. package/dist/{InventoryBindingSummary-wRACZM3H.js → InventoryBindingSummary-ByCzh7Zw.js} +1 -1
  25. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cln33pev.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DHDa6Va8.js} +1 -1
  26. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Bhubwroc.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C3VB9eo-.js} +1 -1
  27. package/dist/{PublishView-Bz4DwRln.js → PublishView-DShogj2Y.js} +3 -3
  28. package/dist/{PurchaseOrderPrintPreview-CwMUlAzW.js → PurchaseOrderPrintPreview-CSYDukX0.js} +2 -2
  29. package/dist/{ReceiveRequestView-jzKL7wwc.js → ReceiveRequestView-BilYjNHA.js} +30 -29
  30. package/dist/RecipeView-CEPnsxV6.js +2898 -0
  31. package/dist/{SettingsView-BGK8xDQj.js → SettingsView-BWUsUMT0.js} +4 -4
  32. package/dist/{StockView-D_1M2j2H.js → StockView-DimVSo18.js} +19 -19
  33. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DmAHd2Ma.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BoZNHsLl.js} +1 -1
  34. package/dist/{SupplierView-_HVROcl0.js → SupplierView-BL1Vt8Hu.js} +12 -12
  35. package/dist/{SurchargeView-C9uFLUHz.js → SurchargeView-C5iu7nmx.js} +6 -6
  36. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DDq5fRab.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-D8AngCJN.js} +2 -2
  37. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DDgl-JA-.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CJ3hpM0q.js} +1 -1
  38. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CIs8k2X-.js → TransferDetails.vue_vue_type_script_setup_true_lang-V3vfzaKm.js} +20 -20
  39. package/dist/{TransferTemplateView-f2jqyWDC.js → TransferTemplateView-C9FMvKjc.js} +20 -19
  40. package/dist/{UnitCostHistoryView-CDRVItD5.js → UnitCostHistoryView-BfblkkmE.js} +4 -4
  41. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DvHmw68v.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-WCXlKiXi.js} +4 -4
  42. package/dist/{UnitView-B-4VmAZ1.js → UnitView-DszSyUEG.js} +7 -7
  43. package/dist/{WarehouseView-DTuDf6uX.js → WarehouseView-mFtihMUO.js} +5 -5
  44. package/dist/{WastageTemplateView-CNbBRdic.js → WastageTemplateView-CCrrtx0D.js} +14 -14
  45. package/dist/{app-DAjgWaIt.js → app-DLDCXd9a.js} +694 -566
  46. package/dist/app.d.ts +126 -0
  47. package/dist/app.js +1 -1
  48. package/dist/{closing-template-Cr5yjIGk.js → closing-template-CrG02xOu.js} +1 -1
  49. package/dist/{date2-Dc-LkH4Q.js → date2-CHswjJUp.js} +1 -1
  50. package/dist/{dayjs.min-C6TKmoSA.js → dayjs.min-CWIk1QcT.js} +1 -1
  51. package/dist/{decimal-BiUxwHW1.js → decimal-1bd9FS8v.js} +2 -2
  52. package/dist/{defineDeepModel-DgkjK79L.js → defineDeepModel-DK3g-3gd.js} +1 -1
  53. package/dist/{duplicate-template-D2C8HFBF.js → duplicate-template-BzMQSrk7.js} +1 -1
  54. package/dist/{export-wJraMdL-.js → export-BHQOvJzX.js} +1 -1
  55. package/dist/{feature-DDNuIU5x.js → feature-D4UFa4w1.js} +2 -2
  56. package/dist/{format-time-from-id-CZFp1tYB.js → format-time-from-id-Bp95nZWH.js} +1 -1
  57. package/dist/{format-unit-display-TmmuJhva.js → format-unit-display-MAZr_RkJ.js} +11 -11
  58. package/dist/{import-export.helper-CvnY5IpI.js → import-export.helper-Drn_mkbI.js} +6 -6
  59. package/dist/{index-DhLglBIu.js → index-B0WIt2Bw.js} +1 -1
  60. package/dist/{index-CSQXsQbV.js → index-CWfJ663c.js} +3 -3
  61. package/dist/{index-BjGCVl4C.js → index-cSv3T8Vj.js} +1 -1
  62. package/dist/{inventory-core-dart.default-Cy3rCrre.js → inventory-core-dart.default-Bj4nC1QO.js} +1 -1
  63. package/dist/{lodash-BqVoI4i-.js → lodash-CMUcme2U.js} +1 -1
  64. package/dist/{lz-string-CCV8vJiL.js → lz-string-C_9wi8p9.js} +1 -1
  65. package/dist/{netsuite-Fuewxz8C.js → netsuite-BOZY0FbI.js} +3 -3
  66. package/dist/{number-TlKuaioM.js → number-j9IKb1r-.js} +3 -3
  67. package/dist/{predefined-templates-DwR19gNy.js → predefined-templates-1ef-YY5Z.js} +1 -1
  68. package/dist/{purchase-order-template-DAkHu-9-.js → purchase-order-template-CGjaX-yS.js} +1 -1
  69. package/dist/{recalculationUtils-blkN0S5G.js → recalculationUtils-Dyp9O9Cn.js} +1 -1
  70. package/dist/{rules-BT_bX_zP.js → rules-D6uxkKZX.js} +2 -2
  71. package/dist/{stock-Do-AQ1Rj.js → stock-C7dY8O1s.js} +1 -1
  72. package/dist/{stock-D9jClHC1.js → stock-DH1PnK0M.js} +3 -3
  73. package/dist/{supplier-DI8witR9.js → supplier-Dra-Ks3T.js} +2 -2
  74. package/dist/{surcharge-CLd8VHwX.js → surcharge-BmtRuvq_.js} +1 -1
  75. package/dist/tsconfig.app.tsbuildinfo +1 -1
  76. package/dist/{use-ingredient-select-dialog-CKFmldHx.js → use-ingredient-select-dialog-DFVuLsiI.js} +2 -2
  77. package/dist/{use-inventory-binding-dialog-eMJtDSHG.js → use-inventory-binding-dialog-CKQ-gykJ.js} +2 -2
  78. package/dist/{use-template-enabled-locations-CEeVrUI2.js → use-template-enabled-locations-DNA-6td0.js} +2 -2
  79. package/dist/use-transfer-locations-DTYCSRdI.js +116 -0
  80. package/dist/{useHrmPermission-C1l7OOr5.js → useHrmPermission-D_GdqoyM.js} +1 -1
  81. package/dist/{useNavigationMenu-DAk6M_hW.js → useNavigationMenu-Dq9nSvfl.js} +2 -2
  82. package/dist/views/recipe/components/recipe-bulk-editor/RecipeBulkEditorDialog.vue.d.ts +19 -0
  83. package/dist/views/recipe/components/recipe-bulk-editor/RecipeBulkEditorQueryStep.vue.d.ts +2 -0
  84. package/dist/views/recipe/components/recipe-bulk-editor/RecipeBulkEditorSummaryStep.vue.d.ts +2 -0
  85. package/dist/views/recipe/composables/use-recipe-bulk-editor.d.ts +634 -0
  86. package/dist/{vue-i18n-CdJcBjBL.js → vue-i18n-AgOoUQs7.js} +524 -524
  87. package/dist/{xlsx-CWLyQh30.js → xlsx-BaV8TO1y.js} +1 -1
  88. package/dist/{xlsx.util-DXzmppo9.js → xlsx.util-D61aHgAt.js} +1 -1
  89. package/package.json +4 -4
  90. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-vYqITtJe.js +0 -188
  91. package/dist/RecipeView-DhSB9pz6.js +0 -1692
@@ -1,6 +1,6 @@
1
1
  import { defineStore as y } from "pinia";
2
- import { a as S } from "./app-DAjgWaIt.js";
3
- import { a as b } from "./FmMultiselectDialog-Bf5LoETU.js";
2
+ import { a as S } from "./app-DLDCXd9a.js";
3
+ import { a as b } from "./FmMultiselectDialog-EIm10WKr.js";
4
4
  import { useDialog as A } from "@feedmepos/ui-library";
5
5
  import { useI18n as I } from "@feedmepos/mf-common";
6
6
  const B = y(
@@ -1,5 +1,5 @@
1
- import { a as g } from "./FmMultiselectDialog-Bf5LoETU.js";
2
- import { a as P } from "./app-DAjgWaIt.js";
1
+ import { a as g } from "./FmMultiselectDialog-EIm10WKr.js";
2
+ import { a as P } from "./app-DLDCXd9a.js";
3
3
  import { useDialog as E } from "@feedmepos/ui-library";
4
4
  function A() {
5
5
  const u = P(), _ = E();
@@ -1,5 +1,5 @@
1
- import { a as A } from "./FmMultiselectDialog-Bf5LoETU.js";
2
- import { u as S } from "./app-DAjgWaIt.js";
1
+ import { a as A } from "./FmMultiselectDialog-EIm10WKr.js";
2
+ import { u as S } from "./app-DLDCXd9a.js";
3
3
  import { useI18n as v, useCoreStore as d, useCustomAttributes as w } from "@feedmepos/mf-common";
4
4
  import { useDialog as _, components as m } from "@feedmepos/ui-library";
5
5
  import { computed as r, h as c } from "vue";
@@ -0,0 +1,116 @@
1
+ import { u as w, r as l, Q as R, W as g } from "./app-DLDCXd9a.js";
2
+ import { u as E } from "./supplier-Dra-Ks3T.js";
3
+ import { computed as u } from "vue";
4
+ function d(o) {
5
+ const c = g.safeParse(o);
6
+ if (c.success) return c.data;
7
+ throw new Error("Invalid supplier data");
8
+ }
9
+ function _(o) {
10
+ return {
11
+ _id: o.doc._id,
12
+ internal: o.type,
13
+ contactName: o.doc.profile.name,
14
+ name: o.doc.profile.name ?? "",
15
+ email: o.doc.profile.email,
16
+ phoneNumber: o.doc.profile.phoneNo,
17
+ registrationNumber: o.doc.profile.regNo,
18
+ address: o.doc.profile.address ?? {
19
+ line1: "",
20
+ state: "",
21
+ city: "",
22
+ postcode: "",
23
+ country: ""
24
+ },
25
+ preparationTime: o.preparationTime
26
+ };
27
+ }
28
+ function F(o, c, v = !1, f = !1) {
29
+ const p = E(), r = w();
30
+ r.watchLocation(async () => {
31
+ var a;
32
+ await p.readSuppliers();
33
+ const e = o();
34
+ if ((a = e.supplier) != null && a._id) return;
35
+ const s = f ? p.suppliers[0] : p.businessSuppliers[0], n = (v ? r.locations.filter((i) => i.doc._id !== r.currentLocation.doc._id) : r.locations)[0];
36
+ c({
37
+ ...e,
38
+ supplier: s ? d(s) : n ? _(n) : e.supplier
39
+ });
40
+ });
41
+ const y = u(
42
+ () => {
43
+ var e, s;
44
+ return typeof ((s = (e = o()) == null ? void 0 : e.supplier) == null ? void 0 : s.internal) == "string" ? l.enum.transfer : l.enum.purchase;
45
+ }
46
+ ), h = u({
47
+ get() {
48
+ var e, s;
49
+ return (s = (e = o()) == null ? void 0 : e.supplier) == null ? void 0 : s._id;
50
+ },
51
+ set(e) {
52
+ const s = o() ?? {};
53
+ if (y.value === l.enum.purchase) {
54
+ const m = (f ? p.suppliers : p.businessSuppliers).find((N) => N._id === e);
55
+ c({
56
+ ...s,
57
+ supplier: m ? d(m) : s.supplier
58
+ });
59
+ return;
60
+ }
61
+ const a = (v ? r.allLocations.filter(
62
+ (i) => i.doc._id !== r.currentLocation.doc._id
63
+ ) : r.allLocations).find((i) => i.doc._id === e);
64
+ c({
65
+ ...s,
66
+ supplier: a ? _(a) : s.supplier
67
+ });
68
+ }
69
+ }), L = u(() => p.locationSuppliers.map(d)), T = u(() => p.businessSuppliers.map(d)), S = u(() => {
70
+ const e = [...L.value], s = [...T.value];
71
+ return f ? [...s, ...e] : s;
72
+ }), b = u(() => {
73
+ var t;
74
+ const e = ((t = r._currentLocation) == null ? void 0 : t.type) === R.warehouse;
75
+ return (v ? r.allLocations.filter(
76
+ (n) => n.doc._id !== r.currentLocation.doc._id
77
+ ) : r.allLocations).filter((n) => e || n.acceptRequest).map(_);
78
+ }), O = u(() => {
79
+ if (y.value === l.enum.purchase) {
80
+ const s = L.value.map((n) => ({
81
+ label: n.name,
82
+ value: n._id
83
+ })), t = T.value.map((n) => ({
84
+ label: n.name,
85
+ sublabel: "Business supplier",
86
+ value: n._id
87
+ }));
88
+ return f ? [...s, ...t] : t;
89
+ }
90
+ return b.value.map((s) => ({
91
+ label: s.name,
92
+ sublabel: s.internal ? `${s.internal}` : void 0,
93
+ value: s._id
94
+ }));
95
+ }), P = u(() => {
96
+ var n, a;
97
+ const e = (a = (n = o()) == null ? void 0 : n.supplier) == null ? void 0 : a._id;
98
+ if (y.value === l.enum.purchase) {
99
+ const i = p.suppliers.find((m) => m._id === e);
100
+ return i ? d(i) : null;
101
+ }
102
+ const t = r.allLocations.find((i) => i.doc._id);
103
+ return t ? _(t) : null;
104
+ });
105
+ return {
106
+ transferLocationModel: h,
107
+ transferLocationOptions: O,
108
+ locationOptionsTypePurchase: S,
109
+ locationOptionsTypePurchaseLocationLevel: L,
110
+ locationOptionsTypeTransfer: b,
111
+ selectedLocation: P
112
+ };
113
+ }
114
+ export {
115
+ F as u
116
+ };
@@ -1,5 +1,5 @@
1
1
  import { computed as p, toValue as o } from "vue";
2
- import { a2 as n } from "./app-DAjgWaIt.js";
2
+ import { a2 as n } from "./app-DLDCXd9a.js";
3
3
  import { useCoreStore as c } from "@feedmepos/mf-common";
4
4
  function g(t, i = "all") {
5
5
  const m = c();
@@ -1,7 +1,7 @@
1
1
  import { computed as T } from "vue";
2
- import { am as P, R as e, b, an as A, a2 as O } from "./app-DAjgWaIt.js";
2
+ import { am as P, R as e, b, an as A, a2 as O } from "./app-DLDCXd9a.js";
3
3
  import { useCoreStore as C, useI18n as L } from "@feedmepos/mf-common";
4
- import { u as _ } from "./feature-DDNuIU5x.js";
4
+ import { u as _ } from "./feature-D4UFa4w1.js";
5
5
  const G = P.reduce(
6
6
  (o, i) => {
7
7
  var s;
@@ -0,0 +1,19 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ show?: boolean | undefined;
3
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ "update:show": (value: boolean) => void;
5
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ show?: boolean | undefined;
7
+ }>>> & Readonly<{
8
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
+ export default _default;
11
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ type __VLS_TypePropsToRuntimeProps<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;