@feedmepos/mf-inventory-portal 0.0.23-dev.42 → 0.0.23-dev.44

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 (61) hide show
  1. package/dist/{App-Cr-n7HVf.js → App-Bu28H-qV.js} +66 -63
  2. package/dist/{ApprovalView-BYHDmt9W.js → ApprovalView-Cgb6Getu.js} +20 -20
  3. package/dist/{BindingsDialog-CI0nYM1_.js → BindingsDialog-DGtPuzr1.js} +2 -2
  4. package/dist/{BindingsPicker-BVzF3C8O.js → BindingsPicker-BamL3_Vk.js} +3 -3
  5. package/dist/{BindingsTable-B21_9L2o.js → BindingsTable-C9FeglE4.js} +1 -1
  6. package/dist/{ClosingDraftView-k2Vsz8-W.js → ClosingDraftView-C_B1u3g1.js} +47 -47
  7. package/dist/{ClosingTemplateView-BLda7tYC.js → ClosingTemplateView-BxK3yAV4.js} +21 -21
  8. package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-DUDOaU6F.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-DAWPJ65s.js} +11 -11
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CXuer_x5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D1PU7pae.js} +7 -7
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Ds3yBf9U.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D1AIFe-0.js} +37 -37
  11. package/dist/{IngredientGroupView-CgZ4YT3i.js → IngredientGroupView-S7ps5Bsc.js} +1 -1
  12. package/dist/{IngredientsView-tPERrF9O.js → IngredientsView-BesGBkXM.js} +14 -15
  13. package/dist/{IntegrationView-CoF_rdWv.js → IntegrationView-Bkf7zGLw.js} +1 -1
  14. package/dist/{InventoryBindingForm-BSnofTIL.js → InventoryBindingForm-DHwTsR2G.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-4d9oz7Xh.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CseHejfD.js} +51 -51
  16. package/dist/{InventoryBindingSummary-qm9ZUFny.js → InventoryBindingSummary-COybHYsZ.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQY98Hj6.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cgv6gv2x.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-NUkiVop4.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BGJNkqYH.js} +6 -6
  19. package/dist/PublishView-2EcaLsU2.js +192 -0
  20. package/dist/{PurchaseOrderPrintPreview-CIWiq2NB.js → PurchaseOrderPrintPreview-DPFfFQQd.js} +5 -5
  21. package/dist/ReceiveRequestView-Dnl79p8h.js +1843 -0
  22. package/dist/{RecipeView-CzWlx1Xv.js → RecipeView-CmaMGv6N.js} +25 -25
  23. package/dist/{StockView-IPXGJNN8.js → StockView-CLw8un14.js} +121 -122
  24. package/dist/{SupplierView-DuL3NXc0.js → SupplierView-DLcZ6HDt.js} +11 -12
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-82Bu89OE.js → TransferDetails.vue_vue_type_script_setup_true_lang-DgwS1KTx.js} +137 -137
  26. package/dist/{TransferTemplateView-BEaRafuO.js → TransferTemplateView-BRDq2_Zw.js} +81 -82
  27. package/dist/{UnitView-Cwo0mthQ.js → UnitView-rJrXqu8W.js} +14 -14
  28. package/dist/{WarehouseView-DzjQrpyv.js → WarehouseView-BwSLmicZ.js} +33 -33
  29. package/dist/api/inventory.d.ts +4 -0
  30. package/dist/{app-CpuFfqWF.js → app-F909rQ5n.js} +12512 -11478
  31. package/dist/app.d.ts +24 -0
  32. package/dist/app.js +1 -1
  33. package/dist/{decimal-bSGrDlvd.js → decimal-0pQSNdVz.js} +1 -1
  34. package/dist/{format-unit-display-D4gi2D-O.js → format-unit-display-CM40cl03.js} +60 -60
  35. package/dist/{index-Cn1ato-l.js → index-DzA11XLY.js} +88 -88
  36. package/dist/{index-COeURijn.js → index-rBUXpqWE.js} +3 -3
  37. package/dist/layout/SingleColumnLayout.vue.d.ts +1 -0
  38. package/dist/router/name.d.ts +1 -0
  39. package/dist/{stock-B1Rchi6n.js → stock-c68S1hmD.js} +3 -3
  40. package/dist/stores/feature.d.ts +34 -2
  41. package/dist/stores/location.d.ts +29 -1
  42. package/dist/{supplier-CeY_Gro-.js → supplier-CPuz6JVf.js} +1 -1
  43. package/dist/tsconfig.app.tsbuildinfo +1 -1
  44. package/dist/{use-inventory-binding-dialog-BXqY40wn.js → use-inventory-binding-dialog-DjlU5nUb.js} +1 -1
  45. package/dist/views/adjustment-template/wastage-template/actions.d.ts +48 -0
  46. package/dist/views/adjustment-template/wastage-template/table.d.ts +48 -0
  47. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -0
  48. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -0
  49. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +48 -0
  50. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +48 -0
  51. package/dist/views/publish/PublishView.vue.d.ts +2 -0
  52. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +16 -0
  53. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +24 -0
  54. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +24 -0
  55. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +4 -0
  56. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
  57. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
  58. package/dist/vue-i18n-BiavdzKQ.js +2365 -0
  59. package/package.json +1 -1
  60. package/dist/ReceiveRequestView-Dgt3FeGb.js +0 -4205
  61. package/dist/feature-D8aRYGen.js +0 -962
@@ -0,0 +1,192 @@
1
+ import { defineComponent as j, computed as i, ref as q, resolveComponent as a, openBlock as k, createBlock as D, unref as p, createSlots as G, withCtx as r, createElementVNode as b, normalizeClass as J, createVNode as n, normalizeStyle as Q, Teleport as W, h } from "vue";
2
+ import { u as X, a as Z, z as ee, _ as te, ae as P } from "./app-F909rQ5n.js";
3
+ import { useBreakpoints as oe, components as ne } from "@feedmepos/ui-library";
4
+ import { u as le } from "./vue-i18n-BiavdzKQ.js";
5
+ const ae = { class: "flex flex-col py-8" }, se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ie = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, pe = /* @__PURE__ */ j({
6
+ __name: "PublishView",
7
+ setup(re) {
8
+ const { t: l } = le(), { breakpoints: y } = oe(), _ = X(), g = Z(), u = i(() => g.state.inventory.updatedAt ? g.state.inventory.updatedAt : null), H = ee(), L = i(() => _.locations), f = i(() => y.value.xs || y.value.sm), R = i(() => f.value ? 10 : 20), Y = i(() => [
9
+ // { label: t('inventory.publish.actions.publishAll'), value: 'publish' }
10
+ ]);
11
+ function B(e) {
12
+ switch (e) {
13
+ case "publish":
14
+ console.log("publish all");
15
+ }
16
+ }
17
+ const v = q(!1), I = [
18
+ {
19
+ value: "publish",
20
+ label: l("inventory.publish.actions.publishAll")
21
+ }
22
+ ];
23
+ function N(e) {
24
+ switch (v.value = !1, e) {
25
+ case "publish":
26
+ console.log("publish all");
27
+ }
28
+ }
29
+ const U = [
30
+ {
31
+ id: "type",
32
+ header: () => l("inventory.publish.columns.type"),
33
+ enableSorting: !0,
34
+ cell(e) {
35
+ return h(ne.FmChip, {
36
+ color: "primary",
37
+ label: e.row.original.type
38
+ });
39
+ }
40
+ },
41
+ {
42
+ accessorKey: "name",
43
+ header: () => l("inventory.publish.columns.location"),
44
+ enableSorting: !0,
45
+ size: 300
46
+ },
47
+ {
48
+ id: "version",
49
+ header: () => l("inventory.publish.columns.version"),
50
+ enableSorting: !0,
51
+ cell(e) {
52
+ var t, o;
53
+ return (t = e.row.original.inventory) != null && t.updatedAt ? P((o = e.row.original.inventory) == null ? void 0 : o.updatedAt) : "";
54
+ }
55
+ },
56
+ {
57
+ id: "status",
58
+ header: () => l("inventory.publish.columns.status"),
59
+ enableSorting: !0,
60
+ cell(e) {
61
+ var o;
62
+ if (!u.value)
63
+ return "";
64
+ const t = ((o = e.row.original.inventory) == null ? void 0 : o.updatedAt) == u.value;
65
+ return h(
66
+ "div",
67
+ {
68
+ class: "flex"
69
+ },
70
+ h(
71
+ "div",
72
+ {
73
+ class: [
74
+ "fm-status-badge",
75
+ t ? "fm-status-badge-success-secondary" : "fm-status-badge-info-secondary"
76
+ ]
77
+ },
78
+ t ? "Published" : "Outdated"
79
+ )
80
+ );
81
+ }
82
+ }
83
+ // {
84
+ // id: 'action',
85
+ // header: '',
86
+ // cell(props) {
87
+ // return createContextMenuComponents(
88
+ // [DefaultRowActions[RowActionEnum.Edit], DefaultRowActions[RowActionEnum.Delete]],
89
+ // (action) => {
90
+ // onActionMenu(action, props.row.original)
91
+ // }
92
+ // )
93
+ // },
94
+ // enableSorting: false,
95
+ // size: 40,
96
+ // meta: {
97
+ // cellClass: '',
98
+ // headerClass: ''
99
+ // }
100
+ // }
101
+ ];
102
+ return (e, t) => {
103
+ const o = a("FmChip"), x = a("FlexRender"), $ = a("TableActionableRow"), E = a("FmTable"), K = a("FmCollapsibleTabs"), O = a("FmBottomSheet");
104
+ return k(), D(te, {
105
+ title: p(l)("inventory.publish.title"),
106
+ actions: Y.value,
107
+ "onClick:action": B
108
+ }, G({
109
+ default: r(() => {
110
+ var w;
111
+ return [
112
+ b("div", {
113
+ class: J([
114
+ "flex flex-col gap-8 max-h-full",
115
+ {
116
+ "p-0": f.value,
117
+ "px-24 ": !f.value
118
+ }
119
+ ])
120
+ }, [
121
+ n(E, {
122
+ style: Q(p(H).tableHeight),
123
+ "column-defs": U,
124
+ "row-data": L.value,
125
+ loading: ((w = p(_)._locations) == null ? void 0 : w.length) === 0,
126
+ "loading-text": "Loading",
127
+ "page-size": R.value
128
+ }, {
129
+ "list-row": r((s) => [
130
+ n($, { row: s }, {
131
+ default: r((c) => {
132
+ var S, A, F, d, M, C, T, V, m, z;
133
+ return [
134
+ b("div", ae, [
135
+ b("div", se, [
136
+ n(x, {
137
+ render: (F = (A = (S = c.code) == null ? void 0 : S.column) == null ? void 0 : A.columnDef) == null ? void 0 : F.cell,
138
+ props: (M = (d = c.code) == null ? void 0 : d.getContext) == null ? void 0 : M.call(d)
139
+ }, null, 8, ["render", "props"])
140
+ ]),
141
+ b("div", ie, [
142
+ n(x, {
143
+ render: (V = (T = (C = c.name) == null ? void 0 : C.column) == null ? void 0 : T.columnDef) == null ? void 0 : V.cell,
144
+ props: (z = (m = c.name) == null ? void 0 : m.getContext) == null ? void 0 : z.call(m)
145
+ }, null, 8, ["render", "props"])
146
+ ])
147
+ ])
148
+ ];
149
+ }),
150
+ _: 2
151
+ }, 1032, ["row"])
152
+ ]),
153
+ _: 1
154
+ }, 8, ["style", "row-data", "loading", "page-size"])
155
+ ], 2),
156
+ (k(), D(W, { to: "body" }, [
157
+ n(O, {
158
+ "dismiss-away": "",
159
+ modelValue: v.value,
160
+ "onUpdate:modelValue": t[1] || (t[1] = (s) => v.value = s)
161
+ }, {
162
+ default: r(() => [
163
+ n(K, {
164
+ class: "pb-8",
165
+ items: I,
166
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => N(s))
167
+ })
168
+ ]),
169
+ _: 1
170
+ }, 8, ["modelValue"])
171
+ ]))
172
+ ];
173
+ }),
174
+ _: 2
175
+ }, [
176
+ u.value ? {
177
+ name: "headerInfo",
178
+ fn: r(() => [
179
+ n(o, {
180
+ variant: "info",
181
+ label: `Latest: ${p(P)(u.value)}`
182
+ }, null, 8, ["label"])
183
+ ]),
184
+ key: "0"
185
+ } : void 0
186
+ ]), 1032, ["title", "actions"]);
187
+ };
188
+ }
189
+ });
190
+ export {
191
+ pe as default
192
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
2
2
  import { useRoute as k } from "vue-router";
3
- import { aq as y, ac as C } from "./app-CpuFfqWF.js";
4
- const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, q = { class: "text-right" }, D = { class: "sub-header" }, T = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
3
+ import { ar as y, ad as C } from "./app-F909rQ5n.js";
4
+ const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, D = { class: "text-right" }, T = { class: "sub-header" }, q = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
5
5
  class: "text-left",
6
6
  style: { width: "20%" }
7
7
  }, J = { class: "text-left" }, Q = {
@@ -61,10 +61,10 @@ const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "tex
61
61
  e[4] || (e[4] = t("br", null, null, -1))
62
62
  ])
63
63
  ]),
64
- t("td", q, [
64
+ t("td", D, [
65
65
  e[10] || (e[10] = t("div", { class: "header" }, "Delivery To", -1)),
66
- t("div", D, l(s.value.buyer.name), 1),
67
- t("div", T, [
66
+ t("div", T, l(s.value.buyer.name), 1),
67
+ t("div", q, [
68
68
  i(l(s.value.buyer.line1), 1),
69
69
  e[7] || (e[7] = t("br", null, null, -1)),
70
70
  s.value.buyer.line2 ? (n(), u(d, { key: 0 }, [