@feedmepos/mf-inventory-portal 1.2.2-dev.5 → 1.2.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 (46) hide show
  1. package/dist/{App-Bx_2mMNo.js → App-CJcHE7SO.js} +1 -1
  2. package/dist/{ApprovalView-CyWf_V6_.js → ApprovalView-BdZJkIr1.js} +2 -2
  3. package/dist/{BindingsDialog-Bjmg05LL.js → BindingsDialog-MWca_bmU.js} +2 -2
  4. package/dist/{BindingsPicker-BLQp4Baj.js → BindingsPicker-BoBmsimf.js} +1 -1
  5. package/dist/{BindingsTable-kyXW7RXe.js → BindingsTable-QBDWp4j9.js} +1 -1
  6. package/dist/{ClosingDraftView-DuHgc3FJ.js → ClosingDraftView-CyAhtevG.js} +2 -2
  7. package/dist/{ClosingTemplateView-Bfk7QAcQ.js → ClosingTemplateView-B26aUQk_.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-C__NDNgg.js → DeliveryOrderPrintPreview-CxE7zXQu.js} +1 -1
  9. package/dist/{FmAdminBadge-OuaM7QdH.js → FmAdminBadge-BodsgRyK.js} +1 -1
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C0WlNY6z.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CsjT5AZ0.js} +3 -3
  11. package/dist/{FmMultiselectDialog-D-Z6qkvj.js → FmMultiselectDialog-sRLyNp7M.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BP64ofif.js → FmUnitInput.vue_vue_type_script_setup_true_lang-9s0vqpVr.js} +1 -1
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-YDsWAKfK.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DYxW0unH.js} +1 -1
  14. package/dist/{IngredientGroupView-Da8qchOi.js → IngredientGroupView-Ctk4HYE6.js} +2 -2
  15. package/dist/{IngredientsView-CvSJkMdo.js → IngredientsView-dtDwA_D5.js} +4 -4
  16. package/dist/{IntegrationView-DEd-LJRf.js → IntegrationView-CJK4FoWD.js} +4 -4
  17. package/dist/{InventoryBindingForm-CAV_C1b1.js → InventoryBindingForm-f4FJY7WU.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang--Fj_i7AQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BCRie802.js} +3 -3
  19. package/dist/{InventoryBindingSummary-CacyoKpd.js → InventoryBindingSummary-C3xrP0g7.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CsAq9h0J.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CegSNvou.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-1lEEWdvC.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BldOmlfF.js} +1 -1
  22. package/dist/{PublishView-C7896UZC.js → PublishView-bOQCoZjJ.js} +69 -59
  23. package/dist/{PurchaseOrderPrintPreview-DyALiYZK.js → PurchaseOrderPrintPreview-DpSX1kkc.js} +1 -1
  24. package/dist/{ReceiveRequestView-Dpmz2obo.js → ReceiveRequestView-cyfbwDOt.js} +8 -8
  25. package/dist/{RecipeView-2mEjsemE.js → RecipeView-N4FN3GYa.js} +3 -3
  26. package/dist/{StockView-CXkSQyLv.js → StockView-CBF3sxnP.js} +7 -7
  27. package/dist/{SupplierView-C5sACMXN.js → SupplierView-NiBkcSkm.js} +3 -3
  28. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Byg5CM3t.js → TransferDetails.vue_vue_type_script_setup_true_lang-CetqKDir.js} +6 -6
  29. package/dist/{TransferTemplateView-DStq_bc7.js → TransferTemplateView-BvG3PQr1.js} +6 -6
  30. package/dist/{UnitView-BnqR6CFp.js → UnitView-DNk7uGXP.js} +3 -3
  31. package/dist/{WarehouseView-BK4ERdDy.js → WarehouseView-CcP_C-f5.js} +1 -1
  32. package/dist/api/inventory.d.ts +91 -0
  33. package/dist/{app-CC8HdBWr.js → app-D7pUBlkb.js} +5533 -5477
  34. package/dist/app.js +1 -1
  35. package/dist/{decimal-0r_YO6d7.js → decimal-Dt_QQfvw.js} +1 -1
  36. package/dist/{format-unit-display-CSm04VOB.js → format-unit-display-BcBpuzq_.js} +2 -2
  37. package/dist/helper/array.d.ts +1 -0
  38. package/dist/{index-CYmkMHty.js → index-Bao9EhFU.js} +1 -1
  39. package/dist/{index-Cbbi_wd-.js → index-CNxvakYX.js} +1 -1
  40. package/dist/{stock-gopm397Q.js → stock-BipLzZlr.js} +1 -1
  41. package/dist/stores/location.d.ts +274 -0
  42. package/dist/{supplier-DG2eDyhs.js → supplier-Bi1zyqXc.js} +1 -1
  43. package/dist/tsconfig.app.tsbuildinfo +1 -1
  44. package/dist/{use-ingredient-select-dialog-x6_LC-PO.js → use-ingredient-select-dialog-B_an8zOX.js} +1 -1
  45. package/dist/{use-inventory-binding-dialog-BZSFmbQ-.js → use-inventory-binding-dialog-nf05eODU.js} +1 -1
  46. package/package.json +1 -1
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { bh as a, bi as e, bj as o, bg as i, bk as t, a as m } from "./app-CC8HdBWr.js";
2
+ import { bh as a, bi as e, bj as o, bg as i, bk as t, a as m } from "./app-D7pUBlkb.js";
3
3
  export {
4
4
  a as FmApp,
5
5
  e as InventoryBindingForm,
@@ -1,4 +1,4 @@
1
- import "./app-CC8HdBWr.js";
1
+ import "./app-D7pUBlkb.js";
2
2
  function m(a) {
3
3
  function t(o, n = !0) {
4
4
  const e = Math.round(Math.log10(o));
@@ -1,10 +1,10 @@
1
- import { a3 as Ae, a as q, T as Ie, ak as M, s as De, al as he, v as ve, u as Z, j as B, w as Oe, aN as ce, x as ge, b as te, t as G, Y as J, aM as Fe, aE as Pe, a0 as Ue, y as Me, z as Be, am as Le, e as me, f as re, R as ue, a2 as Qe, ai as He, D as j, i as I, h as Ve } from "./app-CC8HdBWr.js";
1
+ import { a3 as Ae, a as q, T as Ie, ak as M, s as De, al as he, v as ve, u as Z, j as B, w as Oe, aN as ce, x as ge, b as te, t as G, Y as J, aM as Fe, aE as Pe, a0 as Ue, y as Me, z as Be, am as Le, e as me, f as re, R as ue, a2 as Qe, ai as He, D as j, i as I, h as Ve } from "./app-D7pUBlkb.js";
2
2
  import { useCoreStore as ne, useI18n as oe } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as qe, useSnackbar as be, useDialog as je, FmButtonVariant as z, components as X } from "@feedmepos/ui-library";
4
4
  import { defineStore as xe } from "pinia";
5
5
  import { defineComponent as ae, resolveComponent as Q, openBlock as _, createElementBlock as k, createElementVNode as C, normalizeClass as H, createTextVNode as ze, toDisplayString as D, unref as A, createCommentVNode as V, createVNode as P, withCtx as ee, Fragment as L, renderList as K, ref as N, onMounted as Ye, computed as de, watch as Ke, createSlots as We, createBlock as Y, h as W } from "vue";
6
6
  import { useRouter as Ge } from "vue-router";
7
- import { u as se } from "./supplier-DG2eDyhs.js";
7
+ import { u as se } from "./supplier-Bi1zyqXc.js";
8
8
  const Te = Ae((e, t) => {
9
9
  function s() {
10
10
  var o;
@@ -0,0 +1 @@
1
+ export declare function chunkArray<T>(array: T[], chunkSize: number): T[][];
@@ -1,4 +1,4 @@
1
- import { b1 as x, b8 as V, b9 as q, ba as Re, bb as cl, bc as sr, bd as Lt, be as fl, bf as $l } from "./app-CC8HdBWr.js";
1
+ import { b1 as x, b8 as V, b9 as q, ba as Re, bb as cl, bc as sr, bd as Lt, be as fl, bf as $l } from "./app-D7pUBlkb.js";
2
2
  function vl(t, e) {
3
3
  for (var r = 0; r < e.length; r++) {
4
4
  const n = e[r];
@@ -1,5 +1,5 @@
1
1
  import { ref as b, computed as u } from "vue";
2
- import { u as d, b2 as p, aU as v, c as m, b as h } from "./app-CC8HdBWr.js";
2
+ import { u as d, b2 as p, aU as v, c as m, b as h } from "./app-D7pUBlkb.js";
3
3
  import { useSnackbar as E } from "@feedmepos/ui-library";
4
4
  function I() {
5
5
  return {
@@ -1,4 +1,4 @@
1
- import { a3 as m, u as k, a as l, au as B, T as p } from "./app-CC8HdBWr.js";
1
+ import { a3 as m, u as k, a as l, au as B, T as p } from "./app-D7pUBlkb.js";
2
2
  import { useCoreStore as v } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as $ } from "@feedmepos/ui-library";
4
4
  import { ref as y, computed as b } from "vue";
@@ -280,6 +280,97 @@ export declare function useLocationStore(): {
280
280
  };
281
281
  };
282
282
  }[] | null;
283
+ _locationWithInventory: {
284
+ inventory?: {
285
+ _id: string;
286
+ updatedAt: string;
287
+ } | null | undefined;
288
+ name: string;
289
+ type: "restaurant" | "warehouse";
290
+ acceptRequest: boolean;
291
+ dbName: string;
292
+ doc: {
293
+ _id: string;
294
+ businessId: string;
295
+ profile: {
296
+ code?: string | null | undefined;
297
+ url?: string | null | undefined;
298
+ description?: string | null | undefined;
299
+ _id?: string | null | undefined;
300
+ legalName?: string | null | undefined;
301
+ sstRegNo?: string | null | undefined;
302
+ discovery?: boolean | null | undefined;
303
+ coverPhoto?: string | null | undefined;
304
+ thumbnailPhoto?: string | null | undefined;
305
+ photos?: string[] | null | undefined;
306
+ operatingHours?: {
307
+ 0: {
308
+ hours: {
309
+ end: string;
310
+ start: string;
311
+ }[];
312
+ enable: boolean;
313
+ };
314
+ 2: {
315
+ hours: {
316
+ end: string;
317
+ start: string;
318
+ }[];
319
+ enable: boolean;
320
+ };
321
+ 1: {
322
+ hours: {
323
+ end: string;
324
+ start: string;
325
+ }[];
326
+ enable: boolean;
327
+ };
328
+ 3: {
329
+ hours: {
330
+ end: string;
331
+ start: string;
332
+ }[];
333
+ enable: boolean;
334
+ };
335
+ 4: {
336
+ hours: {
337
+ end: string;
338
+ start: string;
339
+ }[];
340
+ enable: boolean;
341
+ };
342
+ 5: {
343
+ hours: {
344
+ end: string;
345
+ start: string;
346
+ }[];
347
+ enable: boolean;
348
+ };
349
+ 6: {
350
+ hours: {
351
+ end: string;
352
+ start: string;
353
+ }[];
354
+ enable: boolean;
355
+ };
356
+ } | null | undefined;
357
+ tags?: string[] | null | undefined;
358
+ name: string;
359
+ address: {
360
+ coordinates?: number[] | null | undefined;
361
+ line2?: string | null | undefined;
362
+ state: string;
363
+ country: string;
364
+ line1: string;
365
+ city: string;
366
+ postcode: string;
367
+ };
368
+ email: string;
369
+ phoneNo: string;
370
+ regNo: string;
371
+ };
372
+ };
373
+ }[] | null;
283
374
  readonly state: {
284
375
  _currentLocation: {
285
376
  inventory?: {
@@ -554,6 +645,97 @@ export declare function useLocationStore(): {
554
645
  };
555
646
  };
556
647
  }[] | null;
648
+ _locationWithInventory: {
649
+ inventory?: {
650
+ _id: string;
651
+ updatedAt: string;
652
+ } | null | undefined;
653
+ name: string;
654
+ type: "restaurant" | "warehouse";
655
+ acceptRequest: boolean;
656
+ dbName: string;
657
+ doc: {
658
+ _id: string;
659
+ businessId: string;
660
+ profile: {
661
+ code?: string | null | undefined;
662
+ url?: string | null | undefined;
663
+ description?: string | null | undefined;
664
+ _id?: string | null | undefined;
665
+ legalName?: string | null | undefined;
666
+ sstRegNo?: string | null | undefined;
667
+ discovery?: boolean | null | undefined;
668
+ coverPhoto?: string | null | undefined;
669
+ thumbnailPhoto?: string | null | undefined;
670
+ photos?: string[] | null | undefined;
671
+ operatingHours?: {
672
+ 0: {
673
+ hours: {
674
+ end: string;
675
+ start: string;
676
+ }[];
677
+ enable: boolean;
678
+ };
679
+ 2: {
680
+ hours: {
681
+ end: string;
682
+ start: string;
683
+ }[];
684
+ enable: boolean;
685
+ };
686
+ 1: {
687
+ hours: {
688
+ end: string;
689
+ start: string;
690
+ }[];
691
+ enable: boolean;
692
+ };
693
+ 3: {
694
+ hours: {
695
+ end: string;
696
+ start: string;
697
+ }[];
698
+ enable: boolean;
699
+ };
700
+ 4: {
701
+ hours: {
702
+ end: string;
703
+ start: string;
704
+ }[];
705
+ enable: boolean;
706
+ };
707
+ 5: {
708
+ hours: {
709
+ end: string;
710
+ start: string;
711
+ }[];
712
+ enable: boolean;
713
+ };
714
+ 6: {
715
+ hours: {
716
+ end: string;
717
+ start: string;
718
+ }[];
719
+ enable: boolean;
720
+ };
721
+ } | null | undefined;
722
+ tags?: string[] | null | undefined;
723
+ name: string;
724
+ address: {
725
+ coordinates?: number[] | null | undefined;
726
+ line2?: string | null | undefined;
727
+ state: string;
728
+ country: string;
729
+ line1: string;
730
+ city: string;
731
+ postcode: string;
732
+ };
733
+ email: string;
734
+ phoneNo: string;
735
+ regNo: string;
736
+ };
737
+ };
738
+ }[] | null;
557
739
  };
558
740
  readonly locationById: Record<string, {
559
741
  inventory?: {
@@ -922,6 +1104,97 @@ export declare function useLocationStore(): {
922
1104
  };
923
1105
  };
924
1106
  }[];
1107
+ readonly locationsWithInventory: {
1108
+ inventory?: {
1109
+ _id: string;
1110
+ updatedAt: string;
1111
+ } | null | undefined;
1112
+ name: string;
1113
+ type: "restaurant" | "warehouse";
1114
+ acceptRequest: boolean;
1115
+ dbName: string;
1116
+ doc: {
1117
+ _id: string;
1118
+ businessId: string;
1119
+ profile: {
1120
+ code?: string | null | undefined;
1121
+ url?: string | null | undefined;
1122
+ description?: string | null | undefined;
1123
+ _id?: string | null | undefined;
1124
+ legalName?: string | null | undefined;
1125
+ sstRegNo?: string | null | undefined;
1126
+ discovery?: boolean | null | undefined;
1127
+ coverPhoto?: string | null | undefined;
1128
+ thumbnailPhoto?: string | null | undefined;
1129
+ photos?: string[] | null | undefined;
1130
+ operatingHours?: {
1131
+ 0: {
1132
+ hours: {
1133
+ end: string;
1134
+ start: string;
1135
+ }[];
1136
+ enable: boolean;
1137
+ };
1138
+ 2: {
1139
+ hours: {
1140
+ end: string;
1141
+ start: string;
1142
+ }[];
1143
+ enable: boolean;
1144
+ };
1145
+ 1: {
1146
+ hours: {
1147
+ end: string;
1148
+ start: string;
1149
+ }[];
1150
+ enable: boolean;
1151
+ };
1152
+ 3: {
1153
+ hours: {
1154
+ end: string;
1155
+ start: string;
1156
+ }[];
1157
+ enable: boolean;
1158
+ };
1159
+ 4: {
1160
+ hours: {
1161
+ end: string;
1162
+ start: string;
1163
+ }[];
1164
+ enable: boolean;
1165
+ };
1166
+ 5: {
1167
+ hours: {
1168
+ end: string;
1169
+ start: string;
1170
+ }[];
1171
+ enable: boolean;
1172
+ };
1173
+ 6: {
1174
+ hours: {
1175
+ end: string;
1176
+ start: string;
1177
+ }[];
1178
+ enable: boolean;
1179
+ };
1180
+ } | null | undefined;
1181
+ tags?: string[] | null | undefined;
1182
+ name: string;
1183
+ address: {
1184
+ coordinates?: number[] | null | undefined;
1185
+ line2?: string | null | undefined;
1186
+ state: string;
1187
+ country: string;
1188
+ line1: string;
1189
+ city: string;
1190
+ postcode: string;
1191
+ };
1192
+ email: string;
1193
+ phoneNo: string;
1194
+ regNo: string;
1195
+ };
1196
+ };
1197
+ }[];
925
1198
  readonly locationByDbName: {
926
1199
  [key: string]: {
927
1200
  inventory?: {
@@ -1018,6 +1291,7 @@ export declare function useLocationStore(): {
1018
1291
  businessLevel: boolean;
1019
1292
  watchLocation(callback: (location?: InventoryLocation | null) => Promise<void>, persistentKey?: string): void;
1020
1293
  readLocations(): Promise<void>;
1294
+ readLocationsWithInventory(): Promise<void>;
1021
1295
  setLocations(resp: InventoryLocation[]): void;
1022
1296
  selectLocation(location?: InventoryLocation, skipStorage?: boolean): void;
1023
1297
  init(): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { a3 as m, u, c as b, w, av as v, aw as $ } from "./app-CC8HdBWr.js";
1
+ import { a3 as m, u, c as b, w, av as v, aw as $ } from "./app-D7pUBlkb.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  import { defineStore as A } from "pinia";
4
4
  import { ref as l, computed as d } from "vue";