@feedmepos/mf-inventory-portal 1.3.16 → 1.3.17-dev.2

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 (102) hide show
  1. package/dist/App-BZs8fZKo.js +310 -0
  2. package/dist/{ApprovalView-TTCe-eqc.js → ApprovalView-k409wjyM.js} +7 -7
  3. package/dist/{BindingsDialog-lrqjnmk3.js → BindingsDialog-B8eMUWro.js} +2 -2
  4. package/dist/{BindingsPicker-B_ks2aoD.js → BindingsPicker-DQqBaPmd.js} +2 -2
  5. package/dist/{BindingsTable-BTzb7bl6.js → BindingsTable-DBVIeFhW.js} +3 -3
  6. package/dist/ClosingDraftView-IYvSijlu.js +3183 -0
  7. package/dist/{ClosingHistoryView-D22YN948.js → ClosingHistoryView-BCoB6tht.js} +5 -5
  8. package/dist/{ClosingTemplateView-DWZlbRNR.js → ClosingTemplateView-CYRes3xE.js} +14 -14
  9. package/dist/{DefaultView-B55cXPDQ.js → DefaultView-Cw2nI7-X.js} +2 -2
  10. package/dist/{DeliveryOrderPrintPreview-C2OsEmYL.js → DeliveryOrderPrintPreview-CdiaL8D5.js} +2 -2
  11. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-k5zRFn32.js +76 -0
  12. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-C2VqHIzn.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Df-pE1KK.js} +2 -2
  13. package/dist/{FmMultiselectDialog-CtqcYKez.js → FmMultiselectDialog-nflYcmpQ.js} +1 -1
  14. package/dist/{FmMultiselectDialog-Bf5LoETU.js → FmMultiselectDialog-wAnP9Seb.js} +2 -2
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D0fbjDen.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Bwl1Jqam.js} +6 -5
  16. package/dist/{ImportView-C6VMwns6.js → ImportView-moP3tPQ7.js} +6 -6
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bbp6FwaC.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-G7yOwwlA.js} +1 -1
  18. package/dist/{IngredientGroupView-Cq6HSE9I.js → IngredientGroupView-B4NShCe7.js} +5 -5
  19. package/dist/{IngredientsView-g_VlbWO3.js → IngredientsView-uhc_mfqq.js} +15 -15
  20. package/dist/{IntegrationExplorerView-CuLRbx45.js → IntegrationExplorerView-6R_PAu4l.js} +5 -5
  21. package/dist/{IntegrationView-Deu36yy_.js → IntegrationView-kt2CyS2K.js} +13 -13
  22. package/dist/{InventoryBindingForm-BY9a4LbA.js → InventoryBindingForm-Bxm_y_m_.js} +1 -1
  23. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BDS8xAAy.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CxxKiDAW.js} +5 -5
  24. package/dist/{InventoryBindingSummary-wRACZM3H.js → InventoryBindingSummary-COhLobHu.js} +1 -1
  25. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cln33pev.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B4qOsAtm.js} +1 -1
  26. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Bhubwroc.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DShIs4zv.js} +1 -1
  27. package/dist/{PublishView-Bz4DwRln.js → PublishView-B6eXjyq0.js} +3 -3
  28. package/dist/{PurchaseOrderPrintPreview-CwMUlAzW.js → PurchaseOrderPrintPreview-Bb5ZH7Ze.js} +2 -2
  29. package/dist/{ReceiveRequestView-jzKL7wwc.js → ReceiveRequestView-lWK576Cn.js} +30 -29
  30. package/dist/RecipeView-KVhdiv18.js +2898 -0
  31. package/dist/{SettingsView-BGK8xDQj.js → SettingsView-D3ayESIi.js} +4 -4
  32. package/dist/{StockView-D_1M2j2H.js → StockView-BQAwpib5.js} +19 -19
  33. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DmAHd2Ma.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-ZhGaDQV_.js} +1 -1
  34. package/dist/{SupplierView-_HVROcl0.js → SupplierView-C4gyBYWT.js} +12 -12
  35. package/dist/{SurchargeView-C9uFLUHz.js → SurchargeView-CIMnxsAM.js} +6 -6
  36. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DDq5fRab.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Ddw6IO0s.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-BgUQep1X.js} +1 -1
  38. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CIs8k2X-.js → TransferDetails.vue_vue_type_script_setup_true_lang-AzSsFnV9.js} +20 -20
  39. package/dist/{TransferTemplateView-f2jqyWDC.js → TransferTemplateView-B5zHVuMP.js} +20 -19
  40. package/dist/{UnitCostHistoryView-CDRVItD5.js → UnitCostHistoryView-DW2FSMdR.js} +4 -4
  41. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DvHmw68v.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BK41FEeb.js} +4 -4
  42. package/dist/{UnitView-B-4VmAZ1.js → UnitView-DJF9woxD.js} +7 -7
  43. package/dist/{WarehouseView-DTuDf6uX.js → WarehouseView-LRwZezC5.js} +5 -5
  44. package/dist/{WastageTemplateView-CNbBRdic.js → WastageTemplateView-pS6AdviV.js} +14 -14
  45. package/dist/api/closing-draft.d.ts +12 -0
  46. package/dist/api/sse.d.ts +19 -0
  47. package/dist/api/stock.d.ts +0 -1
  48. package/dist/{app-DAjgWaIt.js → app-Du9hjHZP.js} +3134 -2979
  49. package/dist/app.d.ts +126 -0
  50. package/dist/app.js +1 -1
  51. package/dist/{closing-template-Cr5yjIGk.js → closing-template-CdjziuUw.js} +1 -1
  52. package/dist/composable/useSseClient.d.ts +13 -0
  53. package/dist/composable/useSseClient.spec.d.ts +1 -0
  54. package/dist/{date2-Dc-LkH4Q.js → date2-DSeWLgzk.js} +1 -1
  55. package/dist/{dayjs.min-C6TKmoSA.js → dayjs.min-DbVTJwyb.js} +1 -1
  56. package/dist/{decimal-BiUxwHW1.js → decimal-DmzFXaRA.js} +2 -2
  57. package/dist/{defineDeepModel-DgkjK79L.js → defineDeepModel-Cp75jSVs.js} +1 -1
  58. package/dist/{duplicate-template-D2C8HFBF.js → duplicate-template-DkswfS38.js} +1 -1
  59. package/dist/{export-wJraMdL-.js → export-DOf-QW3M.js} +1 -1
  60. package/dist/{feature-DDNuIU5x.js → feature-D23WgLdE.js} +2 -2
  61. package/dist/{format-time-from-id-CZFp1tYB.js → format-time-from-id-w5E1yNUV.js} +1 -1
  62. package/dist/{format-unit-display-TmmuJhva.js → format-unit-display-C7-lUz9r.js} +11 -11
  63. package/dist/{import-export.helper-CvnY5IpI.js → import-export.helper-KcOyMbsO.js} +6 -6
  64. package/dist/{index-CSQXsQbV.js → index-3KZhqtW4.js} +3 -3
  65. package/dist/{index-BjGCVl4C.js → index-BUMDqEa6.js} +1 -1
  66. package/dist/{index-DhLglBIu.js → index-C472V7Tf.js} +1 -1
  67. package/dist/{inventory-core-dart.default-Cy3rCrre.js → inventory-core-dart.default-DGd8GVhk.js} +1 -1
  68. package/dist/{lodash-BqVoI4i-.js → lodash-CRpepM1B.js} +1 -1
  69. package/dist/{lz-string-CCV8vJiL.js → lz-string-BD7AmWsM.js} +1 -1
  70. package/dist/{netsuite-Fuewxz8C.js → netsuite-B_ohVmZD.js} +3 -3
  71. package/dist/{number-TlKuaioM.js → number-BoWDForP.js} +3 -3
  72. package/dist/{predefined-templates-DwR19gNy.js → predefined-templates-CUGfpkjj.js} +1 -1
  73. package/dist/{purchase-order-template-DAkHu-9-.js → purchase-order-template-BIfxRjTb.js} +1 -1
  74. package/dist/{recalculationUtils-blkN0S5G.js → recalculationUtils-D_aoQ2xV.js} +1 -1
  75. package/dist/{rules-BT_bX_zP.js → rules-BfAXqY67.js} +2 -2
  76. package/dist/{stock-Do-AQ1Rj.js → stock-CHvpVPdC.js} +24 -28
  77. package/dist/{stock-D9jClHC1.js → stock-TdIYgVjn.js} +3 -3
  78. package/dist/{supplier-DI8witR9.js → supplier-CrOQf12H.js} +2 -2
  79. package/dist/{surcharge-CLd8VHwX.js → surcharge-V2zH-cWZ.js} +1 -1
  80. package/dist/tsconfig.app.tsbuildinfo +1 -1
  81. package/dist/{use-ingredient-select-dialog-CKFmldHx.js → use-ingredient-select-dialog-CM8XQxUr.js} +2 -2
  82. package/dist/{use-inventory-binding-dialog-eMJtDSHG.js → use-inventory-binding-dialog-DBHuTmlU.js} +2 -2
  83. package/dist/{use-template-enabled-locations-CEeVrUI2.js → use-template-enabled-locations-BaPU4Yrr.js} +2 -2
  84. package/dist/use-transfer-locations-Cm8IvFNy.js +116 -0
  85. package/dist/{useHrmPermission-C1l7OOr5.js → useHrmPermission-Dd5se0x1.js} +1 -1
  86. package/dist/{useNavigationMenu-DAk6M_hW.js → useNavigationMenu-C0_Ilh1C.js} +2 -2
  87. package/dist/useSseClient-BinJYKsX.js +502 -0
  88. package/dist/views/closing-draft/composables/use-closing-draft-refresh-balance.d.ts +28 -0
  89. package/dist/views/closing-draft/composables/use-closing-draft-refresh-balance.spec.d.ts +1 -0
  90. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +4 -1
  91. package/dist/views/recipe/components/recipe-bulk-editor/RecipeBulkEditorDialog.vue.d.ts +19 -0
  92. package/dist/views/recipe/components/recipe-bulk-editor/RecipeBulkEditorQueryStep.vue.d.ts +2 -0
  93. package/dist/views/recipe/components/recipe-bulk-editor/RecipeBulkEditorSummaryStep.vue.d.ts +2 -0
  94. package/dist/views/recipe/composables/use-recipe-bulk-editor.d.ts +634 -0
  95. package/dist/{vue-i18n-CdJcBjBL.js → vue-i18n-Bt04xsUS.js} +458 -458
  96. package/dist/{xlsx-CWLyQh30.js → xlsx-C5yfkOfj.js} +184 -184
  97. package/dist/{xlsx.util-DXzmppo9.js → xlsx.util-D_VXgblQ.js} +1 -1
  98. package/package.json +5 -4
  99. package/dist/App-JcVy7z89.js +0 -309
  100. package/dist/ClosingDraftView-CT3BYmhy.js +0 -3061
  101. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-vYqITtJe.js +0 -188
  102. package/dist/RecipeView-DhSB9pz6.js +0 -1692
@@ -1,188 +0,0 @@
1
- import { u as B, r as h, Q as E, W as R, z as V } from "./app-DAjgWaIt.js";
2
- import { u as z } from "./supplier-DI8witR9.js";
3
- import { computed as u, defineComponent as A, mergeModels as q, useModel as D, ref as H, resolveComponent as g, openBlock as y, createElementBlock as O, normalizeStyle as U, createElementVNode as M, createVNode as W, withCtx as $, createBlock as I, createCommentVNode as C, Fragment as x, renderList as Q, unref as N } from "vue";
4
- import { F as Y } from "./FmMultiselectDialog-Bf5LoETU.js";
5
- function _(o) {
6
- const c = R.safeParse(o);
7
- if (c.success) return c.data;
8
- throw new Error("Invalid supplier data");
9
- }
10
- function S(o) {
11
- return {
12
- _id: o.doc._id,
13
- internal: o.type,
14
- contactName: o.doc.profile.name,
15
- name: o.doc.profile.name ?? "",
16
- email: o.doc.profile.email,
17
- phoneNumber: o.doc.profile.phoneNo,
18
- registrationNumber: o.doc.profile.regNo,
19
- address: o.doc.profile.address ?? {
20
- line1: "",
21
- state: "",
22
- city: "",
23
- postcode: "",
24
- country: ""
25
- },
26
- preparationTime: o.preparationTime
27
- };
28
- }
29
- function G(o, c, p = !1, f = !1) {
30
- const r = z(), n = B();
31
- n.watchLocation(async () => {
32
- var m;
33
- await r.readSuppliers();
34
- const s = o();
35
- if ((m = s.supplier) != null && m._id) return;
36
- const e = f ? r.suppliers[0] : r.businessSuppliers[0], t = (p ? n.locations.filter((a) => a.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
37
- c({
38
- ...s,
39
- supplier: e ? _(e) : t ? S(t) : s.supplier
40
- });
41
- });
42
- const d = u(
43
- () => {
44
- var s, e;
45
- return typeof ((e = (s = o()) == null ? void 0 : s.supplier) == null ? void 0 : e.internal) == "string" ? h.enum.transfer : h.enum.purchase;
46
- }
47
- ), v = u({
48
- get() {
49
- var s, e;
50
- return (e = (s = o()) == null ? void 0 : s.supplier) == null ? void 0 : e._id;
51
- },
52
- set(s) {
53
- const e = o() ?? {};
54
- if (d.value === h.enum.purchase) {
55
- const k = (f ? r.suppliers : r.businessSuppliers).find((P) => P._id === s);
56
- c({
57
- ...e,
58
- supplier: k ? _(k) : e.supplier
59
- });
60
- return;
61
- }
62
- const m = (p ? n.allLocations.filter(
63
- (a) => a.doc._id !== n.currentLocation.doc._id
64
- ) : n.allLocations).find((a) => a.doc._id === s);
65
- c({
66
- ...e,
67
- supplier: m ? S(m) : e.supplier
68
- });
69
- }
70
- }), b = u(() => r.locationSuppliers.map(_)), L = u(() => r.businessSuppliers.map(_)), F = u(() => {
71
- const s = [...b.value], e = [...L.value];
72
- return f ? [...e, ...s] : e;
73
- }), l = u(() => {
74
- var i;
75
- const s = ((i = n._currentLocation) == null ? void 0 : i.type) === E.warehouse;
76
- return (p ? n.allLocations.filter(
77
- (t) => t.doc._id !== n.currentLocation.doc._id
78
- ) : n.allLocations).filter((t) => s || t.acceptRequest).map(S);
79
- }), w = u(() => {
80
- if (d.value === h.enum.purchase) {
81
- const e = b.value.map((t) => ({
82
- label: t.name,
83
- value: t._id
84
- })), i = L.value.map((t) => ({
85
- label: t.name,
86
- sublabel: "Business supplier",
87
- value: t._id
88
- }));
89
- return f ? [...e, ...i] : i;
90
- }
91
- return l.value.map((e) => ({
92
- label: e.name,
93
- sublabel: e.internal ? `${e.internal}` : void 0,
94
- value: e._id
95
- }));
96
- }), T = u(() => {
97
- var t, m;
98
- const s = (m = (t = o()) == null ? void 0 : t.supplier) == null ? void 0 : m._id;
99
- if (d.value === h.enum.purchase) {
100
- const a = r.suppliers.find((k) => k._id === s);
101
- return a ? _(a) : null;
102
- }
103
- const i = n.allLocations.find((a) => a.doc._id);
104
- return i ? S(i) : null;
105
- });
106
- return {
107
- transferLocationModel: v,
108
- transferLocationOptions: w,
109
- locationOptionsTypePurchase: F,
110
- locationOptionsTypePurchaseLocationLevel: b,
111
- locationOptionsTypeTransfer: l,
112
- selectedLocation: T
113
- };
114
- }
115
- const j = { class: "overflow-y-auto h-full pb-8" }, ee = /* @__PURE__ */ A({
116
- __name: "FmFilterableMenuOptions",
117
- props: /* @__PURE__ */ q({
118
- modelValue: {},
119
- maxHeight: {},
120
- width: {},
121
- handleItemChange: { type: Function },
122
- items: {},
123
- options: {}
124
- }, {
125
- search: {},
126
- searchModifiers: {}
127
- }),
128
- emits: ["update:search"],
129
- setup(o) {
130
- const c = o, p = D(o, "search"), f = u(
131
- () => new Y(c.items, ["label", "sublabel"], {
132
- caseSensitive: !1,
133
- sort: !0
134
- })
135
- ), r = u(() => f.value.search(p.value)), n = H();
136
- return console.log({ stickyRef: n }), (d, v) => {
137
- const b = g("FmButton"), L = g("FmTextField"), F = g("FmMenuItem");
138
- return y(), O("div", {
139
- class: "relative",
140
- style: U({ width: d.width })
141
- }, [
142
- M("div", {
143
- class: "sticky top-0 bg-white mb-8",
144
- ref_key: "stickyRef",
145
- ref: n
146
- }, [
147
- W(L, {
148
- modelValue: p.value,
149
- "onUpdate:modelValue": v[1] || (v[1] = (l) => p.value = l),
150
- placeholder: "Filter options"
151
- }, {
152
- append: $(() => [
153
- p.value ? (y(), I(b, {
154
- key: 0,
155
- variant: "tertiary",
156
- "prepend-icon": "close",
157
- onClick: v[0] || (v[0] = (l) => p.value = "")
158
- })) : C("", !0)
159
- ]),
160
- _: 1
161
- }, 8, ["modelValue"])
162
- ], 512),
163
- M("div", j, [
164
- (y(!0), O(x, null, Q(r.value, (l, w) => (y(), I(F, {
165
- key: w,
166
- label: l.label,
167
- sublabel: l.sublabel,
168
- "model-value": N(V)(d.modelValue, l.value),
169
- onClick: () => d.handleItemChange(N(V)(d.modelValue, l.value), l),
170
- onVnodeMounted: (T) => {
171
- var s, e;
172
- return N(V)(d.modelValue, l.value) && ((s = T.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (e = T.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
173
- }
174
- }, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
175
- r.value.length ? C("", !0) : (y(), I(F, {
176
- key: 0,
177
- disabled: "",
178
- label: "No options available"
179
- }))
180
- ])
181
- ], 4);
182
- };
183
- }
184
- });
185
- export {
186
- ee as _,
187
- G as u
188
- };