@feedmepos/mf-inventory-portal 0.0.25-dev.14 → 0.0.25-dev.16

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 (49) hide show
  1. package/dist/{App-6g25LiMb.js → App-Crqni2j1.js} +2 -2
  2. package/dist/{ApprovalView-D1QD09Yc.js → ApprovalView-BRuPqlFf.js} +2 -2
  3. package/dist/{BindingsDialog-eUQ1_YJ6.js → BindingsDialog-CTnuKRLu.js} +2 -2
  4. package/dist/{BindingsPicker-CG9yJgeU.js → BindingsPicker-2Q_4Hswl.js} +5 -5
  5. package/dist/{BindingsTable-BVRcqAy9.js → BindingsTable-Ckg2d48O.js} +5 -5
  6. package/dist/ClosingDraftView-uMe2IeCv.js +1297 -0
  7. package/dist/{ClosingTemplateView-Bax4L6YF.js → ClosingTemplateView-byUMxqLf.js} +2 -2
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CqU3Pubo.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-gU_anG_Q.js} +3 -3
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BBaQYJia.js → FmUnitInput.vue_vue_type_script_setup_true_lang-xOyEnkhr.js} +1 -1
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DrZCk-3P.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-6wK8UjSj.js} +1 -1
  11. package/dist/{IngredientGroupView-Cs5ZJb3h.js → IngredientGroupView-Dcg4XagR.js} +1 -1
  12. package/dist/{IngredientsView-DrRbwLdZ.js → IngredientsView--u4I1b25.js} +4 -4
  13. package/dist/{IntegrationView-CF-K0lEk.js → IntegrationView-C2A22fho.js} +1 -1
  14. package/dist/{InventoryBindingForm-Kq7F7Hxw.js → InventoryBindingForm-1UGFYiaO.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-djscF-a_.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-D66mpBo_.js} +3 -3
  16. package/dist/{InventoryBindingSummary-9iGC54ax.js → InventoryBindingSummary-BLx8Fn5W.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CSVc9YqP.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BB_aU2oG.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C0liINI-.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B11hYBMZ.js} +1 -1
  19. package/dist/PublishView-sXQx9Pgx.js +222 -0
  20. package/dist/{PurchaseOrderPrintPreview-BZjkqH8w.js → PurchaseOrderPrintPreview-BHL_I4iP.js} +1 -1
  21. package/dist/{ReceiveRequestView-DUmyosqT.js → ReceiveRequestView-DyLwzNZo.js} +9 -9
  22. package/dist/{RecipeView-B3mlZR2U.js → RecipeView-D3uBc5vl.js} +3 -3
  23. package/dist/{StockView-DS8W3pK-.js → StockView-BOeSTZHg.js} +7 -7
  24. package/dist/{SupplierView-Pm-PoUsN.js → SupplierView-BP2gogrQ.js} +4 -4
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DTKXMB4E.js → TransferDetails.vue_vue_type_script_setup_true_lang-B2FB-o52.js} +4 -4
  26. package/dist/{TransferTemplateView-CEJK7_3f.js → TransferTemplateView-DvwHL1c1.js} +7 -7
  27. package/dist/{UnitView-CaA3eoV3.js → UnitView-RePSry1v.js} +3 -3
  28. package/dist/{WarehouseView-uL4l-lXl.js → WarehouseView-Q1xF1sMN.js} +1 -1
  29. package/dist/api/closing-draft.d.ts +1 -0
  30. package/dist/api/inventory.d.ts +2 -0
  31. package/dist/{app-DLF5oQUX.js → app-Czi6WGIq.js} +2071 -2051
  32. package/dist/app.js +1 -1
  33. package/dist/components/FmMultiselectDialog.d.ts +6 -6
  34. package/dist/{decimal-BfL1Dfin.js → decimal-BIOPhE0t.js} +1 -1
  35. package/dist/{feature-D67-S0RZ.js → feature-Dd_JZy3Y.js} +1 -1
  36. package/dist/{format-unit-display-e9wEtPRW.js → format-unit-display-vj8ZBTdS.js} +2 -2
  37. package/dist/{index-mvz-S4fO.js → index-Bi93q5cv.js} +2 -2
  38. package/dist/{stock-Bh8xDSyj.js → stock-ksGPw_1H.js} +1 -1
  39. package/dist/stores/inventory.d.ts +127 -0
  40. package/dist/{supplier-BTSc7hfQ.js → supplier-Cb1acd5I.js} +1 -1
  41. package/dist/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/{use-ingredient-select-dialog-BBI1-Yt3.js → use-ingredient-select-dialog-NNTeFo0N.js} +1 -1
  43. package/dist/{use-inventory-binding-dialog-B06jZrl3.js → use-inventory-binding-dialog-D__Gm3Pv.js} +1 -1
  44. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
  45. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +1 -1
  46. package/dist/{vue-i18n-Dy5gAXv-.js → vue-i18n-BoWWKkCm.js} +187 -187
  47. package/package.json +1 -1
  48. package/dist/ClosingDraftView-BBASz7i8.js +0 -1225
  49. package/dist/PublishView-DSkvsS-T.js +0 -192
@@ -1,192 +0,0 @@
1
- import { defineComponent as j, computed as i, ref as q, resolveComponent as a, openBlock as z, 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, y as ee, _ as te, ai as P } from "./app-DLF5oQUX.js";
3
- import { useBreakpoints as oe, components as ne } from "@feedmepos/ui-library";
4
- import { u as le } from "./vue-i18n-Dy5gAXv-.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 z(), 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, k;
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: (k = (m = c.name) == null ? void 0 : m.getContext) == null ? void 0 : k.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
- (z(), 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
- };