@feedmepos/mf-inventory-portal 0.0.25-dev.9 → 0.0.26-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 (116) hide show
  1. package/dist/{App-9zSE_swt.js → App-CipfIdtR.js} +71 -72
  2. package/dist/ApprovalView-IC33yBg7.js +143 -0
  3. package/dist/{BindingsDialog-eGbOIQkw.js → BindingsDialog-EN6Kbnu7.js} +2 -2
  4. package/dist/{BindingsPicker-CVXrd29s.js → BindingsPicker-DQ_LEoqq.js} +3 -3
  5. package/dist/BindingsTable-DGXpAyM4.js +120 -0
  6. package/dist/ClosingDraftView-DR9xsW9I.js +1348 -0
  7. package/dist/ClosingTemplateView-CC1T7ovX.js +1804 -0
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C9un0wCK.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CovzlB-s.js} +43 -43
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BRSABJnM.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BxEtsFXp.js} +29 -29
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeRvrF7O.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-B8H6vFJ5.js} +1 -1
  11. package/dist/{IngredientGroupView-ZWCOAljO.js → IngredientGroupView-DRPbXH8d.js} +24 -24
  12. package/dist/IngredientsView-DSHcH30X.js +1731 -0
  13. package/dist/{IntegrationView-DO3Ambro.js → IntegrationView-BgACk-jP.js} +605 -669
  14. package/dist/{InventoryBindingForm-BjtFP29c.js → InventoryBindingForm-Fs-CHoT-.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFMZ4VsK.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DVHQjAEC.js} +63 -63
  16. package/dist/{InventoryBindingSummary-C6DkVX-B.js → InventoryBindingSummary-CHWMtGtk.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-nb1t6u2V.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cu9V-8Cf.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BcMAXo4F.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CyVRCAqv.js} +12 -12
  19. package/dist/PublishView-CI7o5a0F.js +222 -0
  20. package/dist/{PurchaseOrderPrintPreview-_MCAsdw9.js → PurchaseOrderPrintPreview-CO4a811o.js} +1 -1
  21. package/dist/ReceiveRequestView-KH5wY5BA.js +2562 -0
  22. package/dist/{RecipeView-dmmjklwh.js → RecipeView-DxVbUxOG.js} +47 -47
  23. package/dist/StockView-CiHPAaYh.js +1840 -0
  24. package/dist/{SupplierView-CO5460uC.js → SupplierView-DPj87kld.js} +448 -461
  25. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CfPPCFh8.js +1566 -0
  26. package/dist/TransferTemplateView-3W29v8hd.js +1420 -0
  27. package/dist/{UnitView-DbYzxCXF.js → UnitView-WCtNQFf8.js} +23 -23
  28. package/dist/{WarehouseView-BII4SEVC.js → WarehouseView-tgFFbQY7.js} +40 -40
  29. package/dist/api/bill.d.ts +12 -2
  30. package/dist/api/closing-draft.d.ts +1 -0
  31. package/dist/api/inventory.d.ts +8 -7
  32. package/dist/api/netsuite.d.ts +22 -5
  33. package/dist/api/purchase-order.d.ts +6 -1
  34. package/dist/api/stock.d.ts +1 -0
  35. package/dist/{app-IM1yJnE8.js → app-Ba80HxT3.js} +38448 -34777
  36. package/dist/app.d.ts +965 -120
  37. package/dist/app.js +1 -1
  38. package/dist/components/FmDroppableField.vue.d.ts +1 -1
  39. package/dist/components/FmMultiselectDialog.d.ts +23 -0
  40. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
  41. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
  42. package/dist/{decimal-DQUpCN-B.js → decimal-DFqusYHB.js} +1 -1
  43. package/dist/{format-unit-display-COuIZISg.js → format-unit-display-Bsod5Ra6.js} +232 -238
  44. package/dist/helper/country.d.ts +1 -0
  45. package/dist/helper/fuzzy.d.ts +1 -1
  46. package/dist/helper/number.d.ts +1 -1
  47. package/dist/index-0ekVGPtB.js +12197 -0
  48. package/dist/index-ZAEVHtfa.js +84 -0
  49. package/dist/{stock-BJUTiXXk.js → stock-Cn6EQvTz.js} +29 -25
  50. package/dist/stores/feature.d.ts +11 -6
  51. package/dist/stores/helper/generate-backend-urls.d.ts +0 -1
  52. package/dist/stores/integration/index.d.ts +2 -0
  53. package/dist/stores/integration/netsuite.d.ts +22 -5
  54. package/dist/stores/inventory.d.ts +141 -8
  55. package/dist/stores/location.d.ts +0 -9
  56. package/dist/stores/stock.d.ts +5 -0
  57. package/dist/stores/warehouse.d.ts +4 -7
  58. package/dist/style.css +1 -1
  59. package/dist/{supplier-CM-qQVyI.js → supplier-P1gi71dg.js} +4 -4
  60. package/dist/tsconfig.app.tsbuildinfo +1 -1
  61. package/dist/{use-ingredient-select-dialog-Cn79xFNg.js → use-ingredient-select-dialog-BW5imbB5.js} +1 -1
  62. package/dist/{use-inventory-binding-dialog-zwOG19YV.js → use-inventory-binding-dialog-BYxb8nXg.js} +1 -1
  63. package/dist/views/adjustment-template/wastage-template/actions.d.ts +0 -24
  64. package/dist/views/adjustment-template/wastage-template/table.d.ts +0 -24
  65. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +92 -8
  66. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
  67. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +552 -48
  68. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +1 -1
  69. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  70. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +12 -36
  71. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +12 -36
  72. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
  73. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  74. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  75. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +2 -0
  76. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +4 -1
  77. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +2 -0
  78. package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
  79. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +529 -489
  80. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +8 -4
  81. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +382 -2
  82. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +5 -2
  83. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1238 -972
  84. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1080 -1003
  85. package/dist/views/receive-request/import/XilnexImportDialog.vue.d.ts +22 -0
  86. package/dist/views/receive-request/import/XilnexImportForm.vue.d.ts +17 -0
  87. package/dist/views/receive-request/import/XilnexResult.vue.d.ts +17 -0
  88. package/dist/views/receive-request/import/export.d.ts +14 -0
  89. package/dist/views/receive-request/import/props.d.ts +7 -0
  90. package/dist/views/stock/components/StockRecordCard.vue.d.ts +6 -1
  91. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +6 -4
  92. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +220 -0
  93. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +0 -8
  94. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +0 -1
  95. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +7 -2
  96. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +530 -530
  97. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +530 -530
  98. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +305 -0
  99. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -14
  100. package/dist/vue-i18n-CjtRsQMl.js +2365 -0
  101. package/package.json +7 -7
  102. package/dist/ApprovalView-C2tg-wsm.js +0 -138
  103. package/dist/BindingsTable-CCsQEFnu.js +0 -145
  104. package/dist/ClosingDraftView-BI8b3CJ9.js +0 -1225
  105. package/dist/ClosingTemplateView-miJnC-ML.js +0 -1859
  106. package/dist/IngredientsView-5-pSX6y_.js +0 -1718
  107. package/dist/PublishView-DOMQdIJ7.js +0 -192
  108. package/dist/ReceiveRequestView-902hWGtz.js +0 -1877
  109. package/dist/StockView-C4lEYLXU.js +0 -7847
  110. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-D6sZDCEY.js +0 -1328
  111. package/dist/TransferTemplateView-C9UwNTnY.js +0 -1371
  112. package/dist/components/FmAutocompleteTextField.vue.d.ts +0 -31
  113. package/dist/feature-DMBVVBsQ.js +0 -1005
  114. package/dist/index-CIrsMt6f.js +0 -35546
  115. package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +0 -2
  116. package/dist/vue-i18n-CzPFJ9JY.js +0 -2365
@@ -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-IM1yJnE8.js";
3
- import { useBreakpoints as oe, components as ne } from "@feedmepos/ui-library";
4
- import { u as le } from "./vue-i18n-CzPFJ9JY.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
- };