@feedmepos/mf-inventory-portal 1.2.31-dev.1 → 1.2.31-dev.3

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 (74) hide show
  1. package/dist/{App-DfKh34ES.js → App-B-WNsmAG.js} +3 -3
  2. package/dist/{ApprovalView-DyoKsEqh.js → ApprovalView-DQi0XFmN.js} +6 -6
  3. package/dist/{BindingsDialog-7rGLzkyA.js → BindingsDialog-Cx4fEpHS.js} +2 -2
  4. package/dist/{BindingsPicker-Cj1DvhQN.js → BindingsPicker-DGfp2MzU.js} +2 -2
  5. package/dist/{BindingsTable-CAreptqr.js → BindingsTable-DL7BI4SC.js} +4 -4
  6. package/dist/{ClosingDraftView-DoDGz9Y8.js → ClosingDraftView-j3924s99.js} +60 -61
  7. package/dist/{ClosingHistoryView-BJSE7ZSv.js → ClosingHistoryView-Dto_61bZ.js} +3 -3
  8. package/dist/{ClosingTemplateView-Dr2eJk4h.js → ClosingTemplateView-BXzUL5Jc.js} +63 -64
  9. package/dist/{DeliveryOrderPrintPreview-BzYLm6J6.js → DeliveryOrderPrintPreview-FrW3oyrD.js} +1 -1
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-16r_hkBE.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BMRQb-me.js} +5 -5
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Csesow4V.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-frjrO0sv.js} +3 -3
  12. package/dist/{FmMultiselectDialog-BGhSjgbj.js → FmMultiselectDialog-66369F8L.js} +63 -62
  13. package/dist/{FmMultiselectDialog-DUrpqAkF.js → FmMultiselectDialog-Dx0o4EXh.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CSv7osJW.js → FmUnitInput.vue_vue_type_script_setup_true_lang-hGy_zxob.js} +3 -3
  15. package/dist/{ImportView-BAkyTU_3.js → ImportView-8bdFM2le.js} +7 -7
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-z0IAsrH_.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-6YWvuajr.js} +1 -1
  17. package/dist/{IngredientGroupView-D7gurA7T.js → IngredientGroupView-DNJ9i8FJ.js} +6 -6
  18. package/dist/{IngredientsView-hwfpMtTX.js → IngredientsView-BQV62iRc.js} +15 -15
  19. package/dist/{IntegrationView-DwqzQ6E3.js → IntegrationView-DdjyJMIa.js} +11 -11
  20. package/dist/{InventoryBindingForm-CwjM6Rqk.js → InventoryBindingForm-CJacciDp.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BPr8PDwu.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DcHAS2mI.js} +4 -4
  22. package/dist/{InventoryBindingSummary-B7UFFMkm.js → InventoryBindingSummary-DivPGJmB.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Djo2b2Ix.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGnzF9Y-.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BSgGGiN6.js → PremiumBadge.vue_vue_type_script_setup_true_lang-kBjgDNjc.js} +2 -2
  25. package/dist/{PublishView-CA9gFV_r.js → PublishView-BsrYIDHu.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-BeHd82Y0.js → PurchaseOrderPrintPreview-BWvJYn3H.js} +1 -1
  27. package/dist/{ReceiveRequestView-DEthRdM1.js → ReceiveRequestView-DmG9dEJS.js} +20 -20
  28. package/dist/{RecipeView-D45gkYHY.js → RecipeView-Dt_kJwvE.js} +8 -8
  29. package/dist/{StockView-COx7A4Ac.js → StockView-BgFKkgZT.js} +16 -16
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DX35xDkm.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DzCb7l2o.js} +1 -1
  31. package/dist/{SupplierView-DHM3dJMZ.js → SupplierView-DhBm-m5W.js} +11 -11
  32. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bg2K2ULw.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BqUcJtoV.js} +2 -2
  33. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CW5xPij2.js +153 -0
  34. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CVm2bXic.js → TransferDetails.vue_vue_type_script_setup_true_lang-CxybW4_c.js} +14 -14
  35. package/dist/{TransferTemplateView-BtYozLuk.js → TransferTemplateView-C_ZrimOH.js} +15 -15
  36. package/dist/{UnitView-B4mqodQa.js → UnitView-wKMnAjUO.js} +6 -6
  37. package/dist/{WarehouseView-CjDM8L_V.js → WarehouseView-BG7tXYmF.js} +5 -5
  38. package/dist/{WastageTemplateView-Be4Y_zV8.js → WastageTemplateView-g4fCdiB1.js} +54 -55
  39. package/dist/{app-DYsP0gKj.js → app-D4IM0wHL.js} +1347 -1325
  40. package/dist/{app-rgirz_52.js → app-uBuHtW8m.js} +2546 -2443
  41. package/dist/app.js +1 -1
  42. package/dist/{closing-template-BVy1ga2g.js → closing-template-Bv6Myxdn.js} +1 -1
  43. package/dist/components/FmMultiselectDialogProps.d.ts +7 -0
  44. package/dist/components/TemplatePublishDialog.d.ts +1 -1
  45. package/dist/{date2-BO7HiZTk.js → date2-Dd9ptrqd.js} +1 -1
  46. package/dist/{dayjs.min-HNt4C1ja.js → dayjs.min-CWI11hCD.js} +1 -1
  47. package/dist/{decimal-BJ8rKm1R.js → decimal-C3Z-ftMJ.js} +2 -2
  48. package/dist/{defineDeepModel-CidpVmK7.js → defineDeepModel-BfiLqnop.js} +1 -1
  49. package/dist/{duplicate-template-C25Z0lvq.js → duplicate-template-B2EuoFxA.js} +1 -1
  50. package/dist/{feature-DCia3aqG.js → feature-ZHDFuTZ_.js} +2 -2
  51. package/dist/{format-time-from-id-BPws326b.js → format-time-from-id-CSpCF7Ee.js} +1 -1
  52. package/dist/{format-unit-display-C2P3mS8l.js → format-unit-display-BcWGiCVI.js} +10 -10
  53. package/dist/{import-export.helper-Dt6ZMAPT.js → import-export.helper-C7ae5erR.js} +5 -5
  54. package/dist/{index-BjUDHtA2.js → index-BeB8ecvv.js} +1 -1
  55. package/dist/{index-6zxXdF-V.js → index-Dre7jvrB.js} +1 -1
  56. package/dist/{index-tZj47B-j.js → index-s4uXiu5o.js} +3 -3
  57. package/dist/{lodash-DLMgBu6M.js → lodash-DrzA6QGq.js} +1 -1
  58. package/dist/{netsuite-BSMLXIQa.js → netsuite-DFbsrLfl.js} +371 -359
  59. package/dist/{purchase-order-template-D5NGCbI2.js → purchase-order-template-J0Uqb3IF.js} +1 -1
  60. package/dist/{rules-BiaGzhvQ.js → rules-RP2F9r_X.js} +3 -3
  61. package/dist/{stock-DOCQ91Jh.js → stock-Ctj1mNkn.js} +1 -1
  62. package/dist/{stock-Ty-89Ap8.js → stock-DOmkE0Nf.js} +3 -3
  63. package/dist/style.css +1 -1
  64. package/dist/{supplier-Dxb5ULjF.js → supplier-DQToh3we.js} +2 -2
  65. package/dist/tsconfig.app.tsbuildinfo +1 -1
  66. package/dist/{use-ingredient-select-dialog-BI0yIG6A.js → use-ingredient-select-dialog-kOstDeTC.js} +2 -2
  67. package/dist/{use-inventory-binding-dialog-CbZC-VuL.js → use-inventory-binding-dialog-DrrHdZ4N.js} +2 -2
  68. package/dist/use-template-enabled-locations-2-B2Hu1KET.js +120 -0
  69. package/dist/{vue-i18n-Cqx7gNJF.js → vue-i18n-C-GaaY2p.js} +321 -321
  70. package/dist/{xlsx-ex8Bmftq.js → xlsx-Bg6KF2T6.js} +398 -398
  71. package/dist/{xlsx.util-C8YXEqEl.js → xlsx.util-CegYq3Hg.js} +1 -1
  72. package/package.json +3 -3
  73. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CyMEGFh5.js +0 -123
  74. package/dist/use-template-enabled-locations-2-Dhttpl0B.js +0 -111
@@ -1,4 +1,4 @@
1
- import { r as m, u, a as d } from "./xlsx-ex8Bmftq.js";
1
+ import { r as m, u, a as d } from "./xlsx-Bg6KF2T6.js";
2
2
  function* x(o) {
3
3
  const [e, n] = o.split(":"), t = /\d+/, l = t.exec(e), c = t.exec(n);
4
4
  if (!l || !c)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-inventory-portal",
3
- "version": "1.2.31-dev.1",
3
+ "version": "1.2.31-dev.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -47,8 +47,8 @@
47
47
  "@feedmepos/inventory-core-2": "^2.0.0",
48
48
  "@feedmepos/inventory-core-dart": "^1.0.0",
49
49
  "@feedmepos/inventory-core-js": "^1.0.1",
50
- "@feedmepos/netsuite-core": "^1.0.0",
51
- "@feedmepos/zod-inventory": "^1.0.12"
50
+ "@feedmepos/zod-inventory": "^1.0.12",
51
+ "@feedmepos/netsuite-core": "^1.0.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@rushstack/eslint-patch": "^1.10.3",
@@ -1,123 +0,0 @@
1
- import { defineComponent as y, ref as u, computed as w, resolveComponent as v, openBlock as x, createElementBlock as F, createElementVNode as i, toDisplayString as N, createVNode as m, h as b } from "vue";
2
- import { u as R } from "./vue-i18n-Cqx7gNJF.js";
3
- import { components as B } from "@feedmepos/ui-library";
4
- const L = { class: "flex flex-col gap-24" }, P = { class: "flex items-center" }, k = { class: "fm-typo-en-body-lg-600 flex-1" }, T = { class: "flex flex-col gap-4 w-full" }, A = /* @__PURE__ */ y({
5
- __name: "TemplatePublishDialog",
6
- props: {
7
- title: {},
8
- doc: {},
9
- controller: {},
10
- initialPublishedRev: {},
11
- locations: {},
12
- enabledLocations: {}
13
- },
14
- setup(f) {
15
- const l = f, d = u(l.initialPublishedRev ?? {}), o = u(), h = w(
16
- () => {
17
- var e;
18
- return (e = l.enabledLocations) != null && e.length ? l.enabledLocations : l.locations;
19
- }
20
- ), { t: p } = R(), c = u(""), g = [
21
- {
22
- id: "name",
23
- header: () => "Name",
24
- accessorKey: "name",
25
- size: "auto"
26
- },
27
- {
28
- id: "status",
29
- header: () => "Published",
30
- accessorFn: (e) => {
31
- var s;
32
- return !!(((s = d.value) == null ? void 0 : s[e.dbName]) ?? []).find((n) => n._id === l.doc._id && n._rev === l.doc._rev);
33
- },
34
- cell: (e) => {
35
- var r;
36
- const a = e.row.original, n = !!(((r = d.value) == null ? void 0 : r[a.dbName]) ?? []).find(
37
- (t) => t._id === l.doc._id && t._rev === l.doc._rev
38
- );
39
- return b("div", { class: "flex items-center gap-8" }, [
40
- b(
41
- "div",
42
- {
43
- class: [
44
- "fm-status-badge",
45
- n ? "fm-status-badge-success-secondary" : "fm-status-badge-info-secondary"
46
- ]
47
- },
48
- p(n ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
49
- ),
50
- b(B.FmButton, {
51
- class: "tertiary",
52
- variant: "secondary",
53
- icon: "ios_share",
54
- loading: o.value === e.row.original.dbName,
55
- disabled: o.value !== void 0 && o.value !== e.row.original.dbName,
56
- onClick: async () => {
57
- o.value = e.row.original.dbName;
58
- try {
59
- const t = await l.controller.publishAtLocation(e.row.original).delayed(1e3);
60
- d.value = t;
61
- } catch (t) {
62
- console.error("Error publishing at location:", t);
63
- } finally {
64
- o.value = void 0;
65
- }
66
- }
67
- })
68
- ]);
69
- }
70
- }
71
- ];
72
- async function _() {
73
- o.value = "all";
74
- try {
75
- const e = await l.controller.publishAll().delayed(1e3);
76
- d.value = e;
77
- } catch (e) {
78
- console.error("Error publishing all:", e);
79
- } finally {
80
- o.value = void 0;
81
- }
82
- }
83
- return (e, a) => {
84
- const s = v("FmButton"), n = v("FmTextField"), r = v("FmTable");
85
- return x(), F("div", L, [
86
- i("div", P, [
87
- i("div", k, N(e.title), 1),
88
- i("div", null, [
89
- m(s, {
90
- label: "Publish all",
91
- variant: "secondary",
92
- onClick: a[0] || (a[0] = (t) => _()),
93
- loading: o.value === "all",
94
- disabled: o.value !== "all" && o.value !== void 0
95
- }, null, 8, ["loading", "disabled"])
96
- ])
97
- ]),
98
- i("div", T, [
99
- m(n, {
100
- modelValue: c.value,
101
- "onUpdate:modelValue": a[1] || (a[1] = (t) => c.value = t),
102
- class: "w-full",
103
- placeholder: "Search locations",
104
- "prepend-icon": "search"
105
- }, null, 8, ["modelValue"]),
106
- m(r, {
107
- "row-data": h.value,
108
- "column-defs": g,
109
- "search-value": c.value,
110
- "shrink-at": 9999,
111
- "page-count": h.value.length,
112
- style: { height: "300px" },
113
- "hide-footer": ""
114
- }, null, 8, ["row-data", "search-value", "page-count"])
115
- ]),
116
- a[2] || (a[2] = i("div", null, null, -1))
117
- ]);
118
- };
119
- }
120
- });
121
- export {
122
- A as _
123
- };
@@ -1,111 +0,0 @@
1
- import { a as h } from "./FmMultiselectDialog-BGhSjgbj.js";
2
- import { u as y } from "./app-DYsP0gKj.js";
3
- import { useI18n as g } from "@feedmepos/mf-common";
4
- import { useDialog as w, components as u } from "@feedmepos/ui-library";
5
- import { computed as m, h as c } from "vue";
6
- function k(s) {
7
- const d = w(), n = y(), { t: i } = g();
8
- function p() {
9
- var r;
10
- const a = s.getLocations() ?? [], o = n.locationById, t = a.filter((e) => !o[e.doc._id]);
11
- d.open({
12
- title: "Select at least one location",
13
- contentComponent: c(
14
- h,
15
- {
16
- modelValue: ((r = b.value) == null ? void 0 : r.map((e) => e.doc._id)) ?? [],
17
- items: n.locations.map((e) => ({
18
- label: e.name,
19
- sublabel: e.type,
20
- value: e.doc._id
21
- }))
22
- },
23
- {
24
- appendList() {
25
- return t.map(
26
- (e) => c(
27
- u.FmListItem,
28
- {
29
- label: e.name,
30
- sublabel: "This location is not manageable by your account.",
31
- disabled: !0
32
- },
33
- {
34
- prepend: c(u.FmCheckbox, {
35
- modelValue: !0,
36
- value: "",
37
- disabled: !0
38
- })
39
- }
40
- )
41
- );
42
- }
43
- }
44
- ),
45
- contentComponentProps: {},
46
- primaryActions: {
47
- text: i("common.confirm"),
48
- close: !0
49
- },
50
- secondaryActions: {
51
- text: i("common.close"),
52
- close: !0
53
- }
54
- }).onPrimary((e) => {
55
- const l = [...n.locations.filter((L) => e.includes(L.doc._id)), ...t];
56
- l.length ? s.setLocations(l) : s.setLocations(null);
57
- });
58
- }
59
- const b = m(() => {
60
- var o;
61
- const a = /* @__PURE__ */ new Set([...n.locations.map((t) => t.doc._id)]);
62
- return (o = s.getLocations()) == null ? void 0 : o.filter((t) => a.has(t.doc._id));
63
- }), f = m(() => {
64
- const a = s.getLocations();
65
- return a ? a.reduce(
66
- (o, t) => {
67
- switch (t.type) {
68
- case "restaurant": {
69
- o[0].restaurants += 1;
70
- break;
71
- }
72
- case "warehouse": {
73
- o[0].warehouses += 1;
74
- break;
75
- }
76
- }
77
- return o[0][t.type] += 1, o;
78
- },
79
- [
80
- {
81
- restaurants: 0,
82
- warehouses: 0
83
- }
84
- ]
85
- ) : [
86
- {
87
- restaurants: "All",
88
- warehouses: "All"
89
- }
90
- ];
91
- });
92
- return {
93
- promptSelectLocations: p,
94
- columnDefs: [
95
- {
96
- accessorKey: "restaurants",
97
- header: () => "Restaurants",
98
- enableSorting: !1
99
- },
100
- {
101
- accessorKey: "warehouses",
102
- header: () => "Warehouses",
103
- enableSorting: !1
104
- }
105
- ],
106
- rowData: f
107
- };
108
- }
109
- export {
110
- k as u
111
- };