@feedmepos/mf-inventory-portal 0.0.8 → 0.0.9-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 (44) hide show
  1. package/dist/{ApprovalView-CV1aKhpn.js → ApprovalView-Br14v6j_.js} +6 -6
  2. package/dist/{BindingsDialog-DyOj7ftf.js → BindingsDialog-BbV2bNST.js} +2 -2
  3. package/dist/{BindingsPicker-KwG2CsXl.js → BindingsPicker-BOzxrTPj.js} +2 -2
  4. package/dist/{BindingsTable-CdpDTyY8.js → BindingsTable-DLb4BVII.js} +3 -3
  5. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-Cnom-0UK.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-Cc9VT9C_.js} +1 -1
  6. package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-CQxvHZg0.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-nYxqvxg0.js} +2 -2
  7. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CcwKBi_P.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CcLL-ilW.js} +1 -1
  8. package/dist/{IngredientsView-DZnjj8QY.js → IngredientsView-BbfvkcIr.js} +7 -7
  9. package/dist/{IntegrationView-BT5F-P0D.js → IntegrationView-mevFBUEP.js} +3 -3
  10. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-DDFBuPPb.js +423 -0
  11. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D9n3OW9N.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D1_MsmgN.js} +1 -1
  12. package/dist/{PurchaseOrderPrintPreview-DM2MVMAg.js → PurchaseOrderPrintPreview-CWuaV1xH.js} +1 -1
  13. package/dist/{ReceiveRequestView-pQW7439O.js → ReceiveRequestView-VFt8tALF.js} +11 -11
  14. package/dist/{RecipeView-Dl8eICzR.js → RecipeView-vBSWDneP.js} +7 -7
  15. package/dist/StockView-vn9LIFBM.js +1995 -0
  16. package/dist/{SupplierView-Dl-QtrkM.js → SupplierView-jopEUREP.js} +7 -7
  17. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BxVDWXLI.js → TransferDetails.vue_vue_type_script_setup_true_lang-OQ11BS1f.js} +5 -5
  18. package/dist/{UnitView-skfMz5g5.js → UnitView-CHxzCxYk.js} +6 -6
  19. package/dist/{WarehouseView-BOMuOe0d.js → WarehouseView-C6AmCIiw.js} +3 -3
  20. package/dist/api/stock.d.ts +8 -0
  21. package/dist/{app-xvM0IT6q.js → app-DHsfR6J8.js} +1097 -1092
  22. package/dist/app.js +1 -1
  23. package/dist/components/FmUnitInputProps.d.ts +19 -0
  24. package/dist/{date2-CPG_e5XN.js → date2-CM5r8cLo.js} +8 -8
  25. package/dist/dayjs.min-xpHocq62.js +21235 -0
  26. package/dist/{decimal-DLQq1gqK.js → decimal-QxURfazH.js} +1 -1
  27. package/dist/{fuzzy-DF45ZGPY.js → fuzzy-B4IluZqJ.js} +1 -1
  28. package/dist/{init-date-range-B2K9jb0p.js → init-date-range-DIeIdvaf.js} +1 -1
  29. package/dist/{layout-AKD1mdGw.js → layout-NuzOIM2J.js} +1 -1
  30. package/dist/{rules-CMkplg8p.js → rules-BfcSeEak.js} +2 -1
  31. package/dist/{stock-estimate-CUQZMVGq.js → stock-estimate-CGhpBlZl.js} +2 -2
  32. package/dist/{supplier-BUt82bLW.js → supplier-CMoCA8xc.js} +1 -1
  33. package/dist/tsconfig.app.tsbuildinfo +1 -1
  34. package/dist/use-inventory-binding-dialog-D6HCM0oB.js +93 -0
  35. package/dist/util-CEVKTbZD.js +18 -0
  36. package/dist/views/dev/components/UnitInput.vue.d.ts +2 -0
  37. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +3 -0
  38. package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +9 -0
  39. package/dist/{xlsx-BfqYFREJ.js → xlsx-CXiw_5-A.js} +306 -306
  40. package/package.json +4 -4
  41. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-BKQwDZwb.js +0 -258
  42. package/dist/StockView-M0EH_ua3.js +0 -1885
  43. package/dist/dayjs.min-C4W5S_u8.js +0 -13864
  44. package/dist/use-inventory-binding-dialog-BMdXWZig.js +0 -109
@@ -1,109 +0,0 @@
1
- import { _ as y } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-CQxvHZg0.js";
2
- import { u as g } from "./app-xvM0IT6q.js";
3
- import { useDialog as _ } from "@feedmepos/ui-library";
4
- function E(o, r = !1) {
5
- var p;
6
- return o ? [
7
- {
8
- label: r ? o.abbrev : `1 ${o.name} (${o.abbrev})`,
9
- abbrev: o.abbrev,
10
- value: null
11
- },
12
- ...((p = o.measurements) == null ? void 0 : p.map((t) => ({
13
- label: r ? t.abbrev : `1 ${t.name} (${t.abbrev})`,
14
- abbrev: t.abbrev,
15
- value: t.id
16
- }))) ?? []
17
- ] : [];
18
- }
19
- function k() {
20
- const o = g(), r = _();
21
- async function u(t, c, l, b = []) {
22
- const f = t.filter((n) => n.type === "SKU"), d = t.filter((n) => n.type === "RECIPE"), e = (l ? o.skus.filter(
23
- (n) => {
24
- var i, s;
25
- return !b.some((a) => a === n._id) && n._id !== l && !((s = (i = n.convert) == null ? void 0 : i.inventoryBindings) != null && s.some((a) => a.id === l));
26
- }
27
- ) : o.skus).map((n) => ({
28
- label: n.name,
29
- sublabel: n.code,
30
- value: n
31
- })), m = e.filter((n) => f.find((i) => i.id === n.value._id)).map((n) => n.value);
32
- r.open({
33
- title: "Select Ingredients",
34
- contentComponent: y,
35
- contentComponentProps: {
36
- items: e,
37
- modelValue: m
38
- },
39
- primaryActions: {
40
- text: "Confirm",
41
- close: !0
42
- },
43
- secondaryActions: {
44
- text: "Close",
45
- close: !0,
46
- variant: "tertiary"
47
- }
48
- }).onPrimary((n) => {
49
- const i = [
50
- ...d,
51
- ...t.filter((s) => n.find((a) => a._id === s.id)),
52
- ...n.filter((s) => !t.find((a) => a.id === s._id)).map((s) => ({
53
- type: "SKU",
54
- id: s._id,
55
- amount: {
56
- amount: 1,
57
- precision: 0
58
- }
59
- }))
60
- ];
61
- c(i);
62
- });
63
- }
64
- async function p(t, c, l = []) {
65
- const b = t.filter((e) => e.type === "SKU"), f = t.filter((e) => e.type === "RECIPE"), d = o.recipes.filter((e) => !l.includes(e._id)).map((e) => ({
66
- label: e.name,
67
- value: e
68
- })), v = d.filter((e) => f.find((m) => m.id === e.value._id)).map((e) => e.value);
69
- r.open({
70
- title: "Select Recipes",
71
- contentComponent: y,
72
- contentComponentProps: {
73
- items: d,
74
- modelValue: v
75
- },
76
- primaryActions: {
77
- text: "Confirm",
78
- close: !0
79
- },
80
- secondaryActions: {
81
- text: "Close",
82
- close: !0,
83
- variant: "tertiary"
84
- }
85
- }).onPrimary((e) => {
86
- const m = [
87
- ...t.filter((n) => e.find((i) => i._id === n.id)),
88
- ...e.filter((n) => !t.find((i) => i.id === n._id)).map((n) => ({
89
- type: "RECIPE",
90
- id: n._id,
91
- amount: {
92
- amount: 1,
93
- precision: 0
94
- }
95
- })),
96
- ...b
97
- ];
98
- c(m);
99
- });
100
- }
101
- return {
102
- promptIngredientsBinding: u,
103
- promptRecipesBinding: p
104
- };
105
- }
106
- export {
107
- E as g,
108
- k as u
109
- };