@feedmepos/mf-inventory-portal 0.0.25-dev.8 → 0.0.25-dev.9

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 (80) hide show
  1. package/dist/{App-CKLQeRNl.js → App-9zSE_swt.js} +35 -34
  2. package/dist/{ApprovalView-BWO2tkbO.js → ApprovalView-C2tg-wsm.js} +16 -16
  3. package/dist/{BindingsDialog-C0kTZLOn.js → BindingsDialog-eGbOIQkw.js} +6 -6
  4. package/dist/{BindingsPicker-DjcS3uTL.js → BindingsPicker-CVXrd29s.js} +11 -11
  5. package/dist/{BindingsTable-Ctpv958D.js → BindingsTable-CCsQEFnu.js} +5 -5
  6. package/dist/{ClosingDraftView-CsAPSZPc.js → ClosingDraftView-BI8b3CJ9.js} +47 -47
  7. package/dist/ClosingTemplateView-miJnC-ML.js +1859 -0
  8. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js +34 -0
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DJfBmiRt.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C9un0wCK.js} +44 -44
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-qZ7Kx-KR.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BRSABJnM.js} +52 -52
  11. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeRvrF7O.js +51 -0
  12. package/dist/{IngredientGroupView-Dc3glXN3.js → IngredientGroupView-ZWCOAljO.js} +1 -1
  13. package/dist/{IngredientsView-btzrUQ1-.js → IngredientsView-5-pSX6y_.js} +16 -14
  14. package/dist/{IntegrationView-DO1SF1Ca.js → IntegrationView-DO3Ambro.js} +1 -1
  15. package/dist/{InventoryBindingForm-_2p-YetL.js → InventoryBindingForm-BjtFP29c.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7ump1tl.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFMZ4VsK.js} +53 -53
  17. package/dist/{InventoryBindingSummary-CEdLu3d9.js → InventoryBindingSummary-C6DkVX-B.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-kLdZ5acK.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-nb1t6u2V.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Da0gmGST.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BcMAXo4F.js} +15 -15
  20. package/dist/{PublishView-CXTiPWIx.js → PublishView-DOMQdIJ7.js} +7 -7
  21. package/dist/{PurchaseOrderPrintPreview-DBviMTyA.js → PurchaseOrderPrintPreview-_MCAsdw9.js} +1 -1
  22. package/dist/{ReceiveRequestView-Ct1AQDGK.js → ReceiveRequestView-902hWGtz.js} +56 -55
  23. package/dist/{RecipeView-C0HiPNvf.js → RecipeView-dmmjklwh.js} +32 -31
  24. package/dist/{index-ro6xANOo.js → StockView-C4lEYLXU.js} +3577 -1764
  25. package/dist/{SupplierView-th75_ohq.js → SupplierView-CO5460uC.js} +12 -11
  26. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-n7fH8GRs.js → TransferDetails.vue_vue_type_script_setup_true_lang-D6sZDCEY.js} +186 -185
  27. package/dist/TransferTemplateView-C9UwNTnY.js +1371 -0
  28. package/dist/{UnitView-lnoMsoBN.js → UnitView-DbYzxCXF.js} +14 -14
  29. package/dist/{WarehouseView-ChXcNnmp.js → WarehouseView-BII4SEVC.js} +332 -314
  30. package/dist/api/inventory.d.ts +7 -6
  31. package/dist/{app-B4RHEuan.js → app-IM1yJnE8.js} +15087 -15907
  32. package/dist/app.js +1 -1
  33. package/dist/components/FmAutocompleteTextField.vue.d.ts +31 -0
  34. package/dist/components/FmCustomAttribute.vue.d.ts +3 -8
  35. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
  36. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
  37. package/dist/{decimal-BocxWSo6.js → decimal-DQUpCN-B.js} +1 -1
  38. package/dist/feature-DMBVVBsQ.js +1005 -0
  39. package/dist/{format-unit-display-E_NtfEtV.js → format-unit-display-COuIZISg.js} +242 -238
  40. package/dist/helper/fuzzy.d.ts +1 -1
  41. package/dist/index-CIrsMt6f.js +35546 -0
  42. package/dist/{stock-DpmweZQd.js → stock-BJUTiXXk.js} +3 -3
  43. package/dist/stores/inventory.d.ts +8 -8
  44. package/dist/stores/location.d.ts +9 -0
  45. package/dist/stores/warehouse.d.ts +1 -0
  46. package/dist/{supplier--P-eubcS.js → supplier-CM-qQVyI.js} +1 -1
  47. package/dist/tsconfig.app.tsbuildinfo +1 -1
  48. package/dist/{use-ingredient-select-dialog-C7WZf5D4.js → use-ingredient-select-dialog-Cn79xFNg.js} +3 -4
  49. package/dist/{use-inventory-binding-dialog-DW_kAtLh.js → use-inventory-binding-dialog-zwOG19YV.js} +1 -1
  50. package/dist/views/adjustment-template/wastage-template/actions.d.ts +24 -0
  51. package/dist/views/adjustment-template/wastage-template/table.d.ts +24 -0
  52. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
  53. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
  54. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  55. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +36 -12
  56. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -12
  57. package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +2 -0
  58. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
  59. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  60. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  61. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +25 -17
  62. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
  63. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
  64. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +36 -24
  65. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +36 -24
  66. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  67. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +8 -0
  68. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +1 -0
  69. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
  70. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +36 -12
  71. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +36 -12
  72. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -0
  73. package/dist/{vue-i18n-SeWrkOlu.js → vue-i18n-CzPFJ9JY.js} +134 -134
  74. package/package.json +3 -3
  75. package/dist/ClosingTemplateView-D0HWVhk3.js +0 -1804
  76. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-BF0lKP9Y.js +0 -142
  77. package/dist/StockView-BG8jsV_X.js +0 -1817
  78. package/dist/TransferTemplateView-Dcz6xGR_.js +0 -1269
  79. package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
  80. package/dist/index-B-MhJgPv.js +0 -29202
@@ -1,142 +0,0 @@
1
- import { defineComponent as g, openBlock as a, createElementBlock as i, createElementVNode as m, toDisplayString as u, unref as h, Fragment as C, renderList as N, computed as v, resolveComponent as V, createVNode as S, createCommentVNode as w, h as B } from "vue";
2
- import { j as b, K as F, f as $ } from "./app-B4RHEuan.js";
3
- import { useI18n as k, useCoreStore as I } from "@feedmepos/mf-common";
4
- import { components as O } from "@feedmepos/ui-library";
5
- const T = { class: "flex flex-col" }, j = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, z = { class: "flex-1 py-8 px-16" }, D = {
6
- class: "flex-0 py-8 px-16",
7
- style: { "flex-basis": "120px" }
8
- }, E = { class: "flex-1 py-8 px-16" }, K = {
9
- key: 0,
10
- class: "flex-0 py-8 px-16",
11
- style: { "flex-basis": "120px" }
12
- }, M = {
13
- key: 1,
14
- class: "flex-0 py-8 px-16",
15
- style: { "flex-basis": "120px" }
16
- }, G = /* @__PURE__ */ g({
17
- __name: "IngredientBindedItem",
18
- props: {
19
- name: {},
20
- bindings: {}
21
- },
22
- setup(_) {
23
- const { t: p } = k();
24
- function l(o, c) {
25
- var n;
26
- if (o.measurement) {
27
- const d = F(o.amount, o.measurement.conversion);
28
- return `${b(d, !1)} ${(n = o.measurement) == null ? void 0 : n.abbrev}`;
29
- }
30
- return `${b(o.amount, !1)} ${c.abbrev}`;
31
- }
32
- function f(o) {
33
- return o.unit !== void 0;
34
- }
35
- return (o, c) => (a(), i("div", T, [
36
- m("div", j, [
37
- m("div", z, u(o.name), 1),
38
- m("div", D, u(h(p)("inventory.ingredient.bindedItems.amount")), 1)
39
- ]),
40
- (a(!0), i(C, null, N(o.bindings, (n) => (a(), i("div", {
41
- key: n.id,
42
- class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
43
- }, [
44
- m("div", E, u(n.name), 1),
45
- f(n) ? (a(), i("div", K, u(l(n, n.unit)), 1)) : (a(), i("div", M, u(h(b)(n.amount, !1)), 1))
46
- ]))), 128))
47
- ]));
48
- }
49
- }), U = {
50
- key: 0,
51
- class: "flex flex-col gap-16"
52
- }, H = /* @__PURE__ */ g({
53
- __name: "FmCustomAttribute",
54
- props: {
55
- entity: {},
56
- modelValue: {},
57
- valueOptions: {}
58
- },
59
- emits: ["update:modelValue"],
60
- setup(_, { emit: p }) {
61
- const l = _, f = p, { t: o } = k(), c = I();
62
- function n(s) {
63
- var e, t;
64
- if ((t = (e = l.valueOptions) == null ? void 0 : e[s]) != null && t.length)
65
- return l.valueOptions[s];
66
- }
67
- const d = v(() => {
68
- const s = /* @__PURE__ */ new Set(["671005de24a7f4001c87e25e"]), e = c.currentBusiness.value;
69
- return e ? s.has(e._id) ? [
70
- {
71
- key: "tag",
72
- type: "string",
73
- entity: "inventorySku"
74
- },
75
- {
76
- key: "tag",
77
- type: "string",
78
- entity: "inventoryRecipe"
79
- }
80
- ].filter((r) => r.entity === l.entity) : [] : [];
81
- }), y = v(() => d.value.map((s) => {
82
- var t;
83
- const e = n(s.key);
84
- return {
85
- key: s.key,
86
- type: s.type,
87
- value: ((t = l.modelValue) == null ? void 0 : t[s.key]) || "",
88
- options: e
89
- };
90
- }) || []), A = [
91
- {
92
- header: () => o("portalshell.customAttributes.form.key"),
93
- accessorKey: "key",
94
- enableSorting: !1
95
- },
96
- {
97
- header: () => o("portalshell.customAttributes.form.value"),
98
- accessorKey: "value",
99
- enableSorting: !1,
100
- cell: (s) => {
101
- const e = s.row.original;
102
- return B(O.FmTextField, {
103
- modelValue: e.value,
104
- placeholder: o("portalshell.customAttributes.form.valuePlaceholder"),
105
- datalist: e.options,
106
- rules: [
107
- (t) => e.type === "number" && isNaN(Number(t)) ? o("portalshell.customAttributes.form.attributeValueMustBeNumber") : !0
108
- ],
109
- "onUpdate:modelValue": (t) => {
110
- const r = $(l.modelValue);
111
- if (r[e.key] = t == null ? void 0 : t.trim(), e.type === "number") {
112
- if (isNaN(Number(t)))
113
- return;
114
- r[e.key] = Number(t);
115
- }
116
- Object.keys(r).forEach((x) => {
117
- r[x] || delete r[x];
118
- }), f("update:modelValue", r);
119
- }
120
- });
121
- }
122
- }
123
- ];
124
- return (s, e) => {
125
- const t = V("FmTable");
126
- return y.value.length ? (a(), i("div", U, [
127
- e[0] || (e[0] = m("div", { class: "fm-typo-en-title-sm-600" }, "Custom attributes", -1)),
128
- S(t, {
129
- "column-defs": A,
130
- "row-data": y.value,
131
- "shrink-at": !1,
132
- "page-size": y.value.length,
133
- "hide-footer": ""
134
- }, null, 8, ["row-data", "page-size"])
135
- ])) : w("", !0);
136
- };
137
- }
138
- });
139
- export {
140
- G as _,
141
- H as a
142
- };