@feedmepos/mf-inventory-portal 1.2.31-dev.1 → 1.2.31-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.
Files changed (74) hide show
  1. package/dist/{App-DfKh34ES.js → App-B-WNsmAG.js} +3 -3
  2. package/dist/{ApprovalView-DyoKsEqh.js → ApprovalView-DQi0XFmN.js} +6 -6
  3. package/dist/{BindingsDialog-7rGLzkyA.js → BindingsDialog-Cx4fEpHS.js} +2 -2
  4. package/dist/{BindingsPicker-Cj1DvhQN.js → BindingsPicker-DGfp2MzU.js} +2 -2
  5. package/dist/{BindingsTable-CAreptqr.js → BindingsTable-DL7BI4SC.js} +4 -4
  6. package/dist/{ClosingDraftView-DoDGz9Y8.js → ClosingDraftView-j3924s99.js} +60 -61
  7. package/dist/{ClosingHistoryView-BJSE7ZSv.js → ClosingHistoryView-Dto_61bZ.js} +3 -3
  8. package/dist/{ClosingTemplateView-Dr2eJk4h.js → ClosingTemplateView-BXzUL5Jc.js} +63 -64
  9. package/dist/{DeliveryOrderPrintPreview-BzYLm6J6.js → DeliveryOrderPrintPreview-FrW3oyrD.js} +1 -1
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-16r_hkBE.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BMRQb-me.js} +5 -5
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Csesow4V.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-frjrO0sv.js} +3 -3
  12. package/dist/{FmMultiselectDialog-BGhSjgbj.js → FmMultiselectDialog-66369F8L.js} +63 -62
  13. package/dist/{FmMultiselectDialog-DUrpqAkF.js → FmMultiselectDialog-Dx0o4EXh.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CSv7osJW.js → FmUnitInput.vue_vue_type_script_setup_true_lang-hGy_zxob.js} +3 -3
  15. package/dist/{ImportView-BAkyTU_3.js → ImportView-8bdFM2le.js} +7 -7
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-z0IAsrH_.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-6YWvuajr.js} +1 -1
  17. package/dist/{IngredientGroupView-D7gurA7T.js → IngredientGroupView-DNJ9i8FJ.js} +6 -6
  18. package/dist/{IngredientsView-hwfpMtTX.js → IngredientsView-BQV62iRc.js} +15 -15
  19. package/dist/{IntegrationView-DwqzQ6E3.js → IntegrationView-DdjyJMIa.js} +11 -11
  20. package/dist/{InventoryBindingForm-CwjM6Rqk.js → InventoryBindingForm-CJacciDp.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BPr8PDwu.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DcHAS2mI.js} +4 -4
  22. package/dist/{InventoryBindingSummary-B7UFFMkm.js → InventoryBindingSummary-DivPGJmB.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Djo2b2Ix.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGnzF9Y-.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BSgGGiN6.js → PremiumBadge.vue_vue_type_script_setup_true_lang-kBjgDNjc.js} +2 -2
  25. package/dist/{PublishView-CA9gFV_r.js → PublishView-BsrYIDHu.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-BeHd82Y0.js → PurchaseOrderPrintPreview-BWvJYn3H.js} +1 -1
  27. package/dist/{ReceiveRequestView-DEthRdM1.js → ReceiveRequestView-DmG9dEJS.js} +20 -20
  28. package/dist/{RecipeView-D45gkYHY.js → RecipeView-Dt_kJwvE.js} +8 -8
  29. package/dist/{StockView-COx7A4Ac.js → StockView-BgFKkgZT.js} +16 -16
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DX35xDkm.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DzCb7l2o.js} +1 -1
  31. package/dist/{SupplierView-DHM3dJMZ.js → SupplierView-DhBm-m5W.js} +11 -11
  32. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bg2K2ULw.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BqUcJtoV.js} +2 -2
  33. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CW5xPij2.js +153 -0
  34. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CVm2bXic.js → TransferDetails.vue_vue_type_script_setup_true_lang-CxybW4_c.js} +14 -14
  35. package/dist/{TransferTemplateView-BtYozLuk.js → TransferTemplateView-C_ZrimOH.js} +15 -15
  36. package/dist/{UnitView-B4mqodQa.js → UnitView-wKMnAjUO.js} +6 -6
  37. package/dist/{WarehouseView-CjDM8L_V.js → WarehouseView-BG7tXYmF.js} +5 -5
  38. package/dist/{WastageTemplateView-Be4Y_zV8.js → WastageTemplateView-g4fCdiB1.js} +54 -55
  39. package/dist/{app-DYsP0gKj.js → app-D4IM0wHL.js} +1347 -1325
  40. package/dist/{app-rgirz_52.js → app-uBuHtW8m.js} +2546 -2443
  41. package/dist/app.js +1 -1
  42. package/dist/{closing-template-BVy1ga2g.js → closing-template-Bv6Myxdn.js} +1 -1
  43. package/dist/components/FmMultiselectDialogProps.d.ts +7 -0
  44. package/dist/components/TemplatePublishDialog.d.ts +1 -1
  45. package/dist/{date2-BO7HiZTk.js → date2-Dd9ptrqd.js} +1 -1
  46. package/dist/{dayjs.min-HNt4C1ja.js → dayjs.min-CWI11hCD.js} +1 -1
  47. package/dist/{decimal-BJ8rKm1R.js → decimal-C3Z-ftMJ.js} +2 -2
  48. package/dist/{defineDeepModel-CidpVmK7.js → defineDeepModel-BfiLqnop.js} +1 -1
  49. package/dist/{duplicate-template-C25Z0lvq.js → duplicate-template-B2EuoFxA.js} +1 -1
  50. package/dist/{feature-DCia3aqG.js → feature-ZHDFuTZ_.js} +2 -2
  51. package/dist/{format-time-from-id-BPws326b.js → format-time-from-id-CSpCF7Ee.js} +1 -1
  52. package/dist/{format-unit-display-C2P3mS8l.js → format-unit-display-BcWGiCVI.js} +10 -10
  53. package/dist/{import-export.helper-Dt6ZMAPT.js → import-export.helper-C7ae5erR.js} +5 -5
  54. package/dist/{index-BjUDHtA2.js → index-BeB8ecvv.js} +1 -1
  55. package/dist/{index-6zxXdF-V.js → index-Dre7jvrB.js} +1 -1
  56. package/dist/{index-tZj47B-j.js → index-s4uXiu5o.js} +3 -3
  57. package/dist/{lodash-DLMgBu6M.js → lodash-DrzA6QGq.js} +1 -1
  58. package/dist/{netsuite-BSMLXIQa.js → netsuite-DFbsrLfl.js} +371 -359
  59. package/dist/{purchase-order-template-D5NGCbI2.js → purchase-order-template-J0Uqb3IF.js} +1 -1
  60. package/dist/{rules-BiaGzhvQ.js → rules-RP2F9r_X.js} +3 -3
  61. package/dist/{stock-DOCQ91Jh.js → stock-Ctj1mNkn.js} +1 -1
  62. package/dist/{stock-Ty-89Ap8.js → stock-DOmkE0Nf.js} +3 -3
  63. package/dist/style.css +1 -1
  64. package/dist/{supplier-Dxb5ULjF.js → supplier-DQToh3we.js} +2 -2
  65. package/dist/tsconfig.app.tsbuildinfo +1 -1
  66. package/dist/{use-ingredient-select-dialog-BI0yIG6A.js → use-ingredient-select-dialog-kOstDeTC.js} +2 -2
  67. package/dist/{use-inventory-binding-dialog-CbZC-VuL.js → use-inventory-binding-dialog-DrrHdZ4N.js} +2 -2
  68. package/dist/use-template-enabled-locations-2-B2Hu1KET.js +120 -0
  69. package/dist/{vue-i18n-Cqx7gNJF.js → vue-i18n-C-GaaY2p.js} +321 -321
  70. package/dist/{xlsx-ex8Bmftq.js → xlsx-Bg6KF2T6.js} +398 -398
  71. package/dist/{xlsx.util-C8YXEqEl.js → xlsx.util-CegYq3Hg.js} +1 -1
  72. package/package.json +3 -3
  73. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CyMEGFh5.js +0 -123
  74. package/dist/use-template-enabled-locations-2-Dhttpl0B.js +0 -111
@@ -1,6 +1,6 @@
1
1
  import { defineStore as y } from "pinia";
2
- import { a as S } from "./app-DYsP0gKj.js";
3
- import { a as b } from "./FmMultiselectDialog-BGhSjgbj.js";
2
+ import { a as S } from "./app-D4IM0wHL.js";
3
+ import { a as b } from "./FmMultiselectDialog-66369F8L.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-BGhSjgbj.js";
2
- import { a as P } from "./app-DYsP0gKj.js";
1
+ import { a as g } from "./FmMultiselectDialog-66369F8L.js";
2
+ import { a as P } from "./app-D4IM0wHL.js";
3
3
  import { useDialog as E } from "@feedmepos/ui-library";
4
4
  function A() {
5
5
  const u = P(), _ = E();
@@ -0,0 +1,120 @@
1
+ import { a as A } from "./FmMultiselectDialog-66369F8L.js";
2
+ import { u as S } from "./app-D4IM0wHL.js";
3
+ import { useI18n as v, useCoreStore as m, useCustomAttributes as w } from "@feedmepos/mf-common";
4
+ import { useDialog as _, components as d } from "@feedmepos/ui-library";
5
+ import { computed as r, h as c } from "vue";
6
+ function K(a) {
7
+ const p = _(), n = S(), { t: i } = v(), b = r(() => m().restaurants.value.reduce(
8
+ (e, o) => (e[o._id] = o.customAttributes || {}, e),
9
+ {}
10
+ )), { attributes: f } = w({
11
+ valueSource: m().restaurants,
12
+ entity: "restaurant"
13
+ });
14
+ function L() {
15
+ var u;
16
+ const s = a.getLocations() ?? [], e = n.locationById, o = s.filter((t) => !e[t.doc._id]);
17
+ p.open({
18
+ title: "Select at least one location",
19
+ contentComponent: c(
20
+ A,
21
+ {
22
+ modelValue: ((u = h.value) == null ? void 0 : u.map((t) => t.doc._id)) ?? [],
23
+ items: n.locations.map((t) => ({
24
+ label: `${t.name}(${t.doc.profile.code ?? "--"})`,
25
+ sublabel: t.type,
26
+ value: t.doc._id,
27
+ customAttributes: b.value[t.doc._id]
28
+ })),
29
+ filterAttributes: f.value,
30
+ attributeKey: "customAttributes"
31
+ },
32
+ {
33
+ appendList() {
34
+ return o.map(
35
+ (t) => c(
36
+ d.FmListItem,
37
+ {
38
+ label: `${t.name}(${t.doc.profile.code ?? "--"})`,
39
+ sublabel: "This location is not manageable by your account.",
40
+ disabled: !0
41
+ },
42
+ {
43
+ prepend: c(d.FmCheckbox, {
44
+ modelValue: !0,
45
+ value: "",
46
+ disabled: !0
47
+ })
48
+ }
49
+ )
50
+ );
51
+ }
52
+ }
53
+ ),
54
+ contentComponentProps: {},
55
+ primaryActions: {
56
+ text: i("common.confirm"),
57
+ close: !0
58
+ },
59
+ secondaryActions: {
60
+ text: i("common.close"),
61
+ close: !0
62
+ }
63
+ }).onPrimary((t) => {
64
+ const l = [...n.locations.filter((g) => t.includes(g.doc._id)), ...o];
65
+ l.length ? a.setLocations(l) : a.setLocations(null);
66
+ });
67
+ }
68
+ const h = r(() => {
69
+ var e;
70
+ const s = /* @__PURE__ */ new Set([...n.locations.map((o) => o.doc._id)]);
71
+ return (e = a.getLocations()) == null ? void 0 : e.filter((o) => s.has(o.doc._id));
72
+ }), y = r(() => {
73
+ const s = a.getLocations();
74
+ return s ? s.reduce(
75
+ (e, o) => {
76
+ switch (o.type) {
77
+ case "restaurant": {
78
+ e[0].restaurants += 1;
79
+ break;
80
+ }
81
+ case "warehouse": {
82
+ e[0].warehouses += 1;
83
+ break;
84
+ }
85
+ }
86
+ return e[0][o.type] += 1, e;
87
+ },
88
+ [
89
+ {
90
+ restaurants: 0,
91
+ warehouses: 0
92
+ }
93
+ ]
94
+ ) : [
95
+ {
96
+ restaurants: "All",
97
+ warehouses: "All"
98
+ }
99
+ ];
100
+ });
101
+ return {
102
+ promptSelectLocations: L,
103
+ columnDefs: [
104
+ {
105
+ accessorKey: "restaurants",
106
+ header: () => "Restaurants",
107
+ enableSorting: !1
108
+ },
109
+ {
110
+ accessorKey: "warehouses",
111
+ header: () => "Warehouses",
112
+ enableSorting: !1
113
+ }
114
+ ],
115
+ rowData: y
116
+ };
117
+ }
118
+ export {
119
+ K as u
120
+ };