@feedmepos/mf-inventory-portal 1.9.0-dev.1 → 1.9.0-dev.2

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 (103) hide show
  1. package/dist/{App-OAKZ4Qdf.js → App-0333Hh25.js} +500 -499
  2. package/dist/{ApprovalView-DN0rWMUh.js → ApprovalView-CZLYqnnT.js} +9 -9
  3. package/dist/{BindingsDialog-BWpIeq6j.js → BindingsDialog-CA02lqel.js} +2 -2
  4. package/dist/{BindingsPicker-DRROpR8i.js → BindingsPicker-CwDLZ-ki.js} +2 -2
  5. package/dist/{BindingsTable-BFEoUCIT.js → BindingsTable-BX87v_kq.js} +4 -4
  6. package/dist/{BulkReceiveRequestPage-wnXszulg.js → BulkReceiveRequestPage-Vh0Rfa8e.js} +21 -21
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BtEblqcM.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-0fI4-Pao.js} +1 -1
  8. package/dist/{ClosingDraftView-BRNRWXnj.js → ClosingDraftView-CxNgkVY_.js} +19 -19
  9. package/dist/{ClosingHistoryView-DWPINMVP.js → ClosingHistoryView-CUCepuA7.js} +7 -7
  10. package/dist/{ClosingTemplateView-gqjNm3Wi.js → ClosingTemplateView-BHe5gCFH.js} +18 -18
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-cxhbnvht.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-B6Ge_6VY.js} +1 -1
  12. package/dist/{DefaultView-CTQ0-HzQ.js → DefaultView-V-9a_YfK.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-gReWM4vq.js → DeliveryOrderPrintPreview-BiwT9953.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-IYcE8OSG.js → EmailDialog.vue_vue_type_script_setup_true_lang-I_6Wu-P-.js} +23 -23
  15. package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CGkF-JhJ.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BV5mX5w5.js} +1 -1
  16. package/dist/{FeatureCapabilityGate-Ce4_ozRL.js → FeatureCapabilityGate-B4VGdv_F.js} +2 -2
  17. package/dist/{FeaturePageGate.vue_vue_type_script_setup_true_lang-DViz4hgB.js → FeaturePageGate.vue_vue_type_script_setup_true_lang-CvFbN-7h.js} +1 -1
  18. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B6f-p8K7.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Qd3R-TWu.js} +1 -1
  19. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C-6cGWEV.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C8QTtw9i.js} +2 -2
  20. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BALpSufj.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Cz5saN2u.js} +28 -24
  21. package/dist/{FmMultiselectDialog-B4Diosc4.js → FmMultiselectDialog-BK0r-tyZ.js} +2 -2
  22. package/dist/{FmMultiselectDialog-CJLfLql2.js → FmMultiselectDialog-CFx8Qcyc.js} +2 -2
  23. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DuNzft4K.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Cuyu_K9x.js} +5 -5
  24. package/dist/{ImportView-DnYVbQ6I.js → ImportView-Ci9vufCx.js} +7 -7
  25. package/dist/{IngredientsView-COUJUWAb.js → IngredientsView-4s7vcW9U.js} +15 -15
  26. package/dist/{IntegrationExplorerView-CgE2WN-x.js → IntegrationExplorerView-CtGuW0uI.js} +6 -6
  27. package/dist/{IntegrationPlatformView-BtTv4P3n.js → IntegrationPlatformView-SpCAu3Fu.js} +2 -2
  28. package/dist/{IntegrationView-D_YkXYOW.js → IntegrationView-DjQ4wbXh.js} +15 -15
  29. package/dist/{InventoryBindingForm-B4HvjUs9.js → InventoryBindingForm-Bb5k9tav.js} +1 -1
  30. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CjVc2mCE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CISHYfRi.js} +4 -4
  31. package/dist/{InventoryBindingSummary-CCFW8rw_.js → InventoryBindingSummary-CkN9QdNL.js} +1 -1
  32. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-PJMjcN03.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C9hasqsO.js} +2 -2
  33. package/dist/{ProductionRunDetailPage-ChNKrpyj.js → ProductionRunDetailPage-BTNY3v9C.js} +4 -4
  34. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-536rtKru.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CTOibYjJ.js} +8 -8
  35. package/dist/{ProductionRunPage-FIUKUyDB.js → ProductionRunPage-GrWt4iw2.js} +4 -4
  36. package/dist/PublishView-1sBMVk4p.js +282 -0
  37. package/dist/{PurchaseOrderPrintPreview-C8-zlH52.js → PurchaseOrderPrintPreview-DYwbSUVy.js} +2 -2
  38. package/dist/{ReceiveRequestView-DIuftfMU.js → ReceiveRequestView-DuU5hqQU.js} +16 -16
  39. package/dist/{RecipeView-BKYAdx6j.js → RecipeView-CGkE2cX2.js} +16 -16
  40. package/dist/{SettingsView-CZR-ELPO.js → SettingsView-j5UKU2Z5.js} +7 -7
  41. package/dist/{StockView-C-9o5zUV.js → StockView-CMYUShkK.js} +21 -21
  42. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Db4DrwQJ.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CcomAJoj.js} +1 -1
  43. package/dist/{SupplierView-CHX-eb1W.js → SupplierView-whYEtaTf.js} +13 -13
  44. package/dist/{SurchargeView-D1y5BUvB.js → SurchargeView-BqT_PfTk.js} +7 -7
  45. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DU2wYI2T.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CpiuOVuT.js} +2 -2
  46. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DKTWIz-E.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C5GOz40T.js} +1 -1
  47. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-eSgt3P6r.js → TransferDetails.vue_vue_type_script_setup_true_lang-ajtRmauo.js} +21 -21
  48. package/dist/{TransferTemplateView-Bq7Euggq.js → TransferTemplateView-ZJYWzTCZ.js} +19 -19
  49. package/dist/{UnitCostHistoryView-CLpnjeEP.js → UnitCostHistoryView-DWcB9nbL.js} +4 -4
  50. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CiWUAHMw.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-60B3tkI-.js} +4 -4
  51. package/dist/{UnitView-RxPdbO_C.js → UnitView-BWX8BecE.js} +7 -7
  52. package/dist/{WarehouseView-Ba_77-lL.js → WarehouseView-CfWLJlP2.js} +8 -8
  53. package/dist/{WastageTemplateView-DRB3J1CD.js → WastageTemplateView-Gb64MBgD.js} +15 -15
  54. package/dist/api/inventory.d.ts +22 -91
  55. package/dist/{app-B2FciWDu.js → app-Coquqqkh.js} +1971 -1999
  56. package/dist/app.js +1 -1
  57. package/dist/{bulk-edit-simulation.helper-gZPNWgS7.js → bulk-edit-simulation.helper-DUAiYzrr.js} +2 -2
  58. package/dist/{closing-template-L7d2nmhr.js → closing-template-BK-yS2H4.js} +1 -1
  59. package/dist/components/FmInventoryTableToolbar.vue.d.ts +7 -0
  60. package/dist/{date2--N7dpGRR.js → date2-79rkBzVf.js} +1 -1
  61. package/dist/{dayjs.min-CFhuhXoi.js → dayjs.min-CciBGvaL.js} +1 -1
  62. package/dist/{decimal-gywux_Ld.js → decimal--BREmfoS.js} +2 -2
  63. package/dist/{defineDeepModel-B2EkoePs.js → defineDeepModel-BRSFHwsW.js} +1 -1
  64. package/dist/{duplicate-template-t-iu60N3.js → duplicate-template-CcEqsP8Q.js} +1 -1
  65. package/dist/{feature-CvQ6eKvB.js → feature-DdZZAV6X.js} +2 -2
  66. package/dist/{format-time-from-id-BVk3iOfV.js → format-time-from-id-C7YvcXDM.js} +1 -1
  67. package/dist/{format-unit-display-CLmFpKSI.js → format-unit-display-Dfiq_rw7.js} +12 -12
  68. package/dist/{id-to-date-DKmIZp6I.js → id-to-date-6hzUYycs.js} +1 -1
  69. package/dist/{import-export.helper-qShUWqck.js → import-export.helper-D5QuDEDV.js} +5 -5
  70. package/dist/{index-CrUvC9l4.js → index-CD9IHjp3.js} +1 -1
  71. package/dist/{index-CJ1pZPwZ.js → index-CPFsBIFO.js} +3 -3
  72. package/dist/{index-CoGFfqOs.js → index-Crdk73ES.js} +1 -1
  73. package/dist/{lz-string-mHxrGSbY.js → lz-string-CCRQaGZF.js} +1 -1
  74. package/dist/{netsuite-BDcapEOO.js → netsuite-C_VLrQoH.js} +2 -2
  75. package/dist/{netsuite-explorer-FeiogpVF.js → netsuite-explorer-BCuM8JZ1.js} +1 -1
  76. package/dist/{predefined-templates-CVAkYLi5.js → predefined-templates-BV4NkB9O.js} +1 -1
  77. package/dist/publish-versions-BinCKAtn.js +87 -0
  78. package/dist/{purchase-order-template-CrRp6r28.js → purchase-order-template-BZUOWGmV.js} +1 -1
  79. package/dist/{recalculationUtils-BuhlMBRB.js → recalculationUtils-ISOYv_rW.js} +1 -1
  80. package/dist/{row-action.enum-b--87Y19.js → row-action.enum-BQCb8S3i.js} +1 -1
  81. package/dist/{rules-CFEKk1zY.js → rules-CW08Pe1t.js} +3 -3
  82. package/dist/{stock-B4FZa2Ci.js → stock-Bh5IJNfM.js} +1 -1
  83. package/dist/{stock-Bet2VY1l.js → stock-Cv_zWpOe.js} +2 -2
  84. package/dist/stores/location.d.ts +0 -289
  85. package/dist/stores/publish-versions.d.ts +19 -0
  86. package/dist/stores/publish-versions.spec.d.ts +1 -0
  87. package/dist/{supplier-DX_LR2LR.js → supplier-D3h2DfJz.js} +2 -2
  88. package/dist/{surcharge-gnQZF_xQ.js → surcharge-9e8wa-vK.js} +1 -1
  89. package/dist/tsconfig.app.tsbuildinfo +1 -1
  90. package/dist/{uom-rules-B4qbIOqA.js → uom-rules-BRmDOW0t.js} +1 -1
  91. package/dist/{use-ingredient-select-dialog-BE5IHSwH.js → use-ingredient-select-dialog-D8ibotty.js} +2 -2
  92. package/dist/{use-inventory-binding-dialog-B0xEQiLV.js → use-inventory-binding-dialog-D2xL-vbo.js} +2 -2
  93. package/dist/{use-template-enabled-locations-BvAG1cJF.js → use-template-enabled-locations-Bb7vUiAf.js} +2 -2
  94. package/dist/{use-transfer-locations-pyDvqZxC.js → use-transfer-locations-B2yday-I.js} +2 -2
  95. package/dist/{useHrmPermission-kFc2vRek.js → useHrmPermission-CPEJKpoy.js} +1 -1
  96. package/dist/{useNavigationMenu-C9-LqWKt.js → useNavigationMenu-SHKOcKP-.js} +86 -66
  97. package/dist/{useSseClient-CoafBOe-.js → useSseClient-ED9mFSXt.js} +1 -1
  98. package/dist/views/publish/PublishView.spec.d.ts +1 -0
  99. package/dist/{vue-BMDdrHy_.js → vue-Tmyz7_6a.js} +2 -2
  100. package/dist/{vue-i18n-Bkodg08l.js → vue-i18n-BY0GeUdz.js} +169 -169
  101. package/dist/{xlsx.util-DOCqFSat.js → xlsx.util-DQnB9ape.js} +2 -2
  102. package/package.json +3 -3
  103. package/dist/PublishView-JDX28AHk.js +0 -213
@@ -1,5 +1,5 @@
1
- import "./app-B2FciWDu.js";
2
- import "./dayjs.min-CFhuhXoi.js";
1
+ import "./app-Coquqqkh.js";
2
+ import "./dayjs.min-CciBGvaL.js";
3
3
  var Fn = {};
4
4
  /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
5
5
  var cn = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-inventory-portal",
3
- "version": "1.9.0-dev.1",
3
+ "version": "1.9.0-dev.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -55,10 +55,10 @@
55
55
  "vue-i18n": "10.0.5",
56
56
  "vue-router": "4.4.0",
57
57
  "xlsx": "0.18.5",
58
+ "@feedmepos/inventory-core-2": "2.0.0",
59
+ "@feedmepos/inventory-core": "1.0.3-dev.0",
58
60
  "@feedmepos/codemax-core": "1.0.0",
59
61
  "@feedmepos/integration-portal": "0.0.1",
60
- "@feedmepos/inventory-core": "1.0.3-dev.0",
61
- "@feedmepos/inventory-core-2": "2.0.0",
62
62
  "@feedmepos/inventory-core-dart": "1.0.0",
63
63
  "@feedmepos/inventory-core-js": "1.0.1",
64
64
  "@feedmepos/netsuite-core": "1.0.0",
@@ -1,213 +0,0 @@
1
- import { defineComponent as D, ref as A, computed as s, watch as H, resolveComponent as c, createBlock as S, openBlock as x, unref as l, createSlots as Y, withCtx as h, createElementVNode as N, normalizeClass as U, createVNode as m, normalizeStyle as $, Teleport as q, h as p } from "vue";
2
- import { u as E, a as K, x as j } from "./app-B2FciWDu.js";
3
- import { u as G, _ as J } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
4
- import { useBreakpoints as O, useDialog as Q, useSnackbar as R, components as I } from "@feedmepos/ui-library";
5
- import { u as X } from "./vue-i18n-Bkodg08l.js";
6
- import { b as k } from "./date2--N7dpGRR.js";
7
- const se = /* @__PURE__ */ D({
8
- __name: "PublishView",
9
- setup(Z) {
10
- const { t: e } = X(), { breakpoints: f } = O(), n = E(), g = K(), w = j(), i = A(!1), r = s(() => g.state.inventory.updatedAt ? g.state.inventory.updatedAt : null), C = G(), _ = Q(), F = R(), M = s(() => n.locationsWithInventory), d = s(() => f.value.xs || f.value.sm), L = s(() => d.value ? 10 : 20);
11
- H(
12
- () => n._locations,
13
- async () => {
14
- var t;
15
- i.value = !0, (!n._locationWithInventory || ((t = n._locationWithInventory) == null ? void 0 : t.length) === 0) && await n.readLocationsWithInventory(), i.value = !1;
16
- },
17
- { immediate: !0 }
18
- // Optional: triggers the watcher immediately on mount
19
- );
20
- const P = s(() => [
21
- {
22
- label: e("inventory.common.refresh"),
23
- value: "refresh",
24
- isPrimary: !1
25
- },
26
- { label: e("inventory.publish.actions.publishAll"), value: "publish", isPrimary: !0 }
27
- ]);
28
- async function V(t) {
29
- switch (t) {
30
- case "publish":
31
- _.open({
32
- title: e("inventory.publish.confirm.title"),
33
- message: e("inventory.publish.confirm.publishAll"),
34
- primaryActions: { text: e("inventory.publish.confirm.confirm"), close: !0 },
35
- secondaryActions: { text: e("inventory.common.cancel"), close: !0 }
36
- }).onPrimary(async () => {
37
- await w.publishAllInventory(), await n.readLocationsWithInventory();
38
- });
39
- break;
40
- case "refresh":
41
- i.value = !0, await n.readLocationsWithInventory(), i.value = !1;
42
- break;
43
- }
44
- }
45
- const v = A(!1), B = [
46
- {
47
- value: "publish",
48
- label: e("inventory.publish.actions.publishAll")
49
- }
50
- ];
51
- function W(t) {
52
- switch (v.value = !1, t) {
53
- case "publish":
54
- console.log("publish all");
55
- }
56
- }
57
- const z = [
58
- {
59
- id: "type",
60
- header: () => e("inventory.publish.columns.type"),
61
- enableSorting: !0,
62
- cell(t) {
63
- return p(I.FmChip, {
64
- color: "primary",
65
- label: t.row.original.type
66
- });
67
- }
68
- },
69
- {
70
- accessorKey: "name",
71
- header: () => e("inventory.publish.columns.location"),
72
- enableSorting: !0,
73
- size: 300
74
- },
75
- {
76
- id: "version",
77
- header: () => e("inventory.publish.columns.version"),
78
- enableSorting: !0,
79
- cell(t) {
80
- var o, a;
81
- return (o = t.row.original.inventory) != null && o.updatedAt ? k((a = t.row.original.inventory) == null ? void 0 : a.updatedAt) : "";
82
- }
83
- },
84
- {
85
- id: "status",
86
- header: () => e("inventory.publish.columns.status"),
87
- enableSorting: !0,
88
- cell(t) {
89
- var u;
90
- if (!r.value)
91
- return "";
92
- const o = ((u = t.row.original.inventory) == null ? void 0 : u.updatedAt) == r.value, a = t.row.original.dbName, y = t.row.original.type === "warehouse";
93
- return p(
94
- "div",
95
- {
96
- class: "flex items-center gap-8"
97
- },
98
- [
99
- p(
100
- "div",
101
- {
102
- class: [
103
- "fm-status-badge",
104
- o ? "fm-status-badge-success-secondary" : "fm-status-badge-info-secondary"
105
- ]
106
- },
107
- e(o ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
108
- ),
109
- !o && !y ? p(I.FmButton, {
110
- class: "tertiary",
111
- variant: "secondary",
112
- icon: "sync",
113
- onClick: () => {
114
- _.open({
115
- title: e("inventory.publish.confirm.title"),
116
- message: e("inventory.publish.confirm.publishLocation", {
117
- name: t.row.original.name
118
- }),
119
- primaryActions: { text: e("inventory.publish.confirm.confirm"), close: !0 },
120
- secondaryActions: { text: e("inventory.common.cancel"), close: !0 }
121
- }).onPrimary(async () => {
122
- await w.publishInventory(a.split("_")[1]), await n.readLocations(), F.open({
123
- message: e("inventory.publish.confirm.requestSubmitted"),
124
- type: "success"
125
- });
126
- });
127
- }
128
- }) : null
129
- ]
130
- );
131
- }
132
- }
133
- // {
134
- // id: 'action',
135
- // header: '',
136
- // cell(props) {
137
- // return createContextMenuComponents(
138
- // [DefaultRowActions[RowActionEnum.Edit], DefaultRowActions[RowActionEnum.Delete]],
139
- // (action) => {
140
- // onActionMenu(action, props.row.original)
141
- // }
142
- // )
143
- // },
144
- // enableSorting: false,
145
- // size: 40,
146
- // meta: {
147
- // cellClass: '',
148
- // headerClass: ''
149
- // }
150
- // }
151
- ];
152
- return (t, o) => {
153
- const a = c("FmChip"), y = c("FmTable"), u = c("FmCollapsibleTabs"), T = c("FmBottomSheet");
154
- return x(), S(J, {
155
- title: l(e)("inventory.publish.title"),
156
- actions: P.value,
157
- "onClick:action": V
158
- }, Y({
159
- default: h(() => [
160
- N("div", {
161
- class: U([
162
- "flex flex-col gap-8 max-h-full",
163
- {
164
- "p-0": d.value,
165
- "px-24 ": !d.value
166
- }
167
- ])
168
- }, [
169
- m(y, {
170
- style: $(l(C).tableHeight),
171
- "column-defs": z,
172
- "row-data": M.value,
173
- loading: !l(n)._currentLocation || i.value,
174
- "loading-text": l(e)("inventory.common.loading"),
175
- "page-size": L.value
176
- }, null, 8, ["style", "row-data", "loading", "loading-text", "page-size"])
177
- ], 2),
178
- (x(), S(q, { to: "body" }, [
179
- m(T, {
180
- "dismiss-away": "",
181
- modelValue: v.value,
182
- "onUpdate:modelValue": o[1] || (o[1] = (b) => v.value = b)
183
- }, {
184
- default: h(() => [
185
- m(u, {
186
- class: "pb-8",
187
- items: B,
188
- "onUpdate:modelValue": o[0] || (o[0] = (b) => W(b))
189
- })
190
- ]),
191
- _: 1
192
- }, 8, ["modelValue"])
193
- ]))
194
- ]),
195
- _: 2
196
- }, [
197
- r.value ? {
198
- name: "headerInfo",
199
- fn: h(() => [
200
- m(a, {
201
- variant: "info",
202
- label: `Latest: ${l(k)(r.value)}`
203
- }, null, 8, ["label"])
204
- ]),
205
- key: "0"
206
- } : void 0
207
- ]), 1032, ["title", "actions"]);
208
- };
209
- }
210
- });
211
- export {
212
- se as default
213
- };