@feedmepos/mf-inventory-portal 1.2.30-dev.1 → 1.2.31-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 (83) hide show
  1. package/dist/{App-kX4bqoEe.js → App-DfKh34ES.js} +43 -41
  2. package/dist/{ApprovalView-DCNKqVE2.js → ApprovalView-DyoKsEqh.js} +34 -28
  3. package/dist/{BindingsDialog-d7f1f8gf.js → BindingsDialog-7rGLzkyA.js} +8 -8
  4. package/dist/{BindingsPicker-2HJOx0QW.js → BindingsPicker-Cj1DvhQN.js} +6 -5
  5. package/dist/{BindingsTable-CPAjxOZG.js → BindingsTable-CAreptqr.js} +28 -24
  6. package/dist/{ClosingDraftView-CUng41eo.js → ClosingDraftView-DoDGz9Y8.js} +183 -175
  7. package/dist/{ClosingHistoryView-CcGc2NwU.js → ClosingHistoryView-BJSE7ZSv.js} +43 -41
  8. package/dist/{ClosingTemplateView-D8IAdhDb.js → ClosingTemplateView-Dr2eJk4h.js} +94 -76
  9. package/dist/{DeliveryOrderPrintPreview-BsM-CCc5.js → DeliveryOrderPrintPreview-BzYLm6J6.js} +15 -14
  10. package/dist/FmDroppableField-J0xUsOTV.js +154 -0
  11. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-cuggJ5Xd.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-16r_hkBE.js} +74 -72
  12. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Csesow4V.js +279 -0
  13. package/dist/FmMultiselectDialog-BGhSjgbj.js +597 -0
  14. package/dist/{FmMultiselectDialog-BGbrqXUF.js → FmMultiselectDialog-DUrpqAkF.js} +1 -1
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-isogcN1O.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CSv7osJW.js} +51 -49
  16. package/dist/{ImportView-wAVrMEwL.js → ImportView-BAkyTU_3.js} +81 -74
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVUF4I2Q.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-z0IAsrH_.js} +5 -5
  18. package/dist/{IngredientGroupView-BZczeXdL.js → IngredientGroupView-D7gurA7T.js} +73 -65
  19. package/dist/{IngredientsView-D5N5Y1ZY.js → IngredientsView-hwfpMtTX.js} +358 -345
  20. package/dist/{IntegrationView-Hrslmuc1.js → IntegrationView-DwqzQ6E3.js} +1618 -1593
  21. package/dist/{InventoryBindingForm-DH6wgxOG.js → InventoryBindingForm-CwjM6Rqk.js} +1 -1
  22. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Drr5vD6f.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BPr8PDwu.js} +41 -40
  23. package/dist/{InventoryBindingSummary-BU1ehpQZ.js → InventoryBindingSummary-B7UFFMkm.js} +1 -1
  24. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1ueC4GfZ.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Djo2b2Ix.js} +5 -5
  25. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-FHcU1zZt.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BSgGGiN6.js} +22 -21
  26. package/dist/{PublishView-CQtj0f31.js → PublishView-CA9gFV_r.js} +26 -23
  27. package/dist/{PurchaseOrderPrintPreview-BQyXtHST.js → PurchaseOrderPrintPreview-BeHd82Y0.js} +10 -9
  28. package/dist/{ReceiveRequestView-Dm-h_SrY.js → ReceiveRequestView-DEthRdM1.js} +472 -456
  29. package/dist/{RecipeView-DNNRvr1w.js → RecipeView-D45gkYHY.js} +73 -64
  30. package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js +251 -0
  31. package/dist/{StockView-CaOm5BCx.js → StockView-COx7A4Ac.js} +292 -282
  32. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Z91XRszD.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DX35xDkm.js} +1 -1
  33. package/dist/{SupplierView-JSII9qwL.js → SupplierView-DHM3dJMZ.js} +92 -80
  34. package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bg2K2ULw.js +177 -0
  35. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
  36. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CyMEGFh5.js +123 -0
  37. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Mehd4lGs.js → TransferDetails.vue_vue_type_script_setup_true_lang-CVm2bXic.js} +318 -305
  38. package/dist/{TransferTemplateView-DyCpNKJd.js → TransferTemplateView-BtYozLuk.js} +228 -216
  39. package/dist/{UnitView-CqN7mlJ2.js → UnitView-B4mqodQa.js} +70 -63
  40. package/dist/{WarehouseView-gFWD-m8e.js → WarehouseView-CjDM8L_V.js} +123 -114
  41. package/dist/WastageTemplateView-Be4Y_zV8.js +2288 -0
  42. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  43. package/dist/api/netsuite.d.ts +9 -3
  44. package/dist/app-DYsP0gKj.js +64121 -0
  45. package/dist/app-rgirz_52.js +8024 -0
  46. package/dist/app.js +6 -6
  47. package/dist/closing-template-BVy1ga2g.js +117 -0
  48. package/dist/date2-BO7HiZTk.js +116 -0
  49. package/dist/dayjs.min-HNt4C1ja.js +282 -0
  50. package/dist/{decimal-DfF_g5rc.js → decimal-BJ8rKm1R.js} +4 -3
  51. package/dist/defineDeepModel-CidpVmK7.js +19 -0
  52. package/dist/duplicate-template-C25Z0lvq.js +34 -0
  53. package/dist/feature-DCia3aqG.js +20162 -0
  54. package/dist/form-mode.enum-BKiNVH6A.js +4 -0
  55. package/dist/format-time-from-id-BPws326b.js +15 -0
  56. package/dist/{format-unit-display-ivAljvlo.js → format-unit-display-C2P3mS8l.js} +308 -297
  57. package/dist/{import-export.helper-B2MWv9v7.js → import-export.helper-Dt6ZMAPT.js} +56 -52
  58. package/dist/{index-DZaT0ZaL.js → index-6zxXdF-V.js} +1 -1
  59. package/dist/index-BjUDHtA2.js +45 -0
  60. package/dist/{index-BbhuWHyh.js → index-tZj47B-j.js} +16 -14
  61. package/dist/lodash-DLMgBu6M.js +3678 -0
  62. package/dist/netsuite-BSMLXIQa.js +4979 -0
  63. package/dist/{purchase-order-template-DdybMC_P.js → purchase-order-template-D5NGCbI2.js} +1 -1
  64. package/dist/router/shared.spec.d.ts +1 -0
  65. package/dist/row-action.enum-BcW_L_nE.js +67 -0
  66. package/dist/rules-BiaGzhvQ.js +201 -0
  67. package/dist/{stock-BYagIdsj.js → stock-DOCQ91Jh.js} +1 -1
  68. package/dist/{stock-V4ciPiBe.js → stock-Ty-89Ap8.js} +11 -10
  69. package/dist/stores/integration/netsuite.d.ts +5 -1
  70. package/dist/style.css +1 -1
  71. package/dist/{supplier-CgtB1I9I.js → supplier-Dxb5ULjF.js} +27 -26
  72. package/dist/tsconfig.app.tsbuildinfo +1 -1
  73. package/dist/{use-ingredient-select-dialog-BIQovyZX.js → use-ingredient-select-dialog-BI0yIG6A.js} +4 -3
  74. package/dist/{use-inventory-binding-dialog-DyjicXgc.js → use-inventory-binding-dialog-CbZC-VuL.js} +4 -3
  75. package/dist/use-template-enabled-locations-2-Dhttpl0B.js +111 -0
  76. package/dist/views/adjustment-template/wastage-template/table.d.ts +1 -1
  77. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1 -1
  78. package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +6 -2
  79. package/dist/vue-i18n-Cqx7gNJF.js +2365 -0
  80. package/dist/xlsx-ex8Bmftq.js +24004 -0
  81. package/dist/xlsx.util-C8YXEqEl.js +78 -0
  82. package/package.json +2 -2
  83. package/dist/app-CnQ49Lyb.js +0 -131483
@@ -1,8 +1,9 @@
1
1
  import { defineStore as y } from "pinia";
2
- import { a as S, x as b } from "./app-CnQ49Lyb.js";
2
+ import { a as S } from "./app-DYsP0gKj.js";
3
+ import { a as b } from "./FmMultiselectDialog-BGhSjgbj.js";
3
4
  import { useDialog as A } from "@feedmepos/ui-library";
4
5
  import { useI18n as I } from "@feedmepos/mf-common";
5
- const h = y(
6
+ const B = y(
6
7
  "ingredientSelectDialog",
7
8
  function() {
8
9
  const { t: s } = I(), n = S(), m = A();
@@ -47,5 +48,5 @@ const h = y(
47
48
  }
48
49
  );
49
50
  export {
50
- h as u
51
+ B as u
51
52
  };
@@ -1,6 +1,7 @@
1
- import { a as P, x as g } from "./app-CnQ49Lyb.js";
1
+ import { a as g } from "./FmMultiselectDialog-BGhSjgbj.js";
2
+ import { a as P } from "./app-DYsP0gKj.js";
2
3
  import { useDialog as E } from "@feedmepos/ui-library";
3
- function B() {
4
+ function A() {
4
5
  const u = P(), _ = E();
5
6
  async function b(e, m, s, f = []) {
6
7
  var i, o;
@@ -147,5 +148,5 @@ function B() {
147
148
  };
148
149
  }
149
150
  export {
150
- B as u
151
+ A as u
151
152
  };
@@ -0,0 +1,111 @@
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
+ };
@@ -1408,4 +1408,4 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
1408
1408
  loading: import("vue").Ref<boolean, boolean>;
1409
1409
  fetchTemplates: () => Promise<void>;
1410
1410
  loadTemplate: (templateId: string) => Promise<void>;
1411
- }, "isReasonPublished" | "fetchTemplates" | "loadTemplate">>;
1411
+ }, "fetchTemplates" | "loadTemplate" | "isReasonPublished">>;
@@ -2150,5 +2150,5 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
2150
2150
  'onUpdate:show'?: ((show: boolean) => void) | undefined;
2151
2151
  'onAction:edit'?: (() => void) | undefined;
2152
2152
  }>;
2153
- }, "createTemplate" | "viewTemplate" | "updateTemplate" | "deleteTemplate" | "duplicateTemplate" | "exportTemplates" | "importTemplates" | "exportSingleTemplate">>;
2153
+ }, "createTemplate" | "viewTemplate" | "updateTemplate" | "deleteTemplate" | "duplicateTemplate" | "exportTemplates" | "exportSingleTemplate" | "importTemplates">>;
2154
2154
  export {};
@@ -1,9 +1,9 @@
1
1
  import type { LocationConfigurationDialogProps } from './BusinessNetSuiteSideSheetProps';
2
2
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<LocationConfigurationDialogProps>, {}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
3
  "update:setting": (setting: Omit<{
4
+ syncedAt?: string | null | undefined;
4
5
  subsidiaryId?: string | null | undefined;
5
6
  accessToken?: string | null | undefined;
6
- syncedAt?: string | null | undefined;
7
7
  restlet?: {
8
8
  type: "createItemReceipt" | "retrieveRecordInfo";
9
9
  scriptId: string;
@@ -13,6 +13,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
13
13
  items: {
14
14
  name?: string | null | undefined;
15
15
  externalId?: string | null | undefined;
16
+ itemType?: string | null | undefined;
16
17
  cogsAccount?: {
17
18
  id: string;
18
19
  refName: string;
@@ -37,6 +38,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
37
38
  childItems: {
38
39
  name?: string | null | undefined;
39
40
  externalId?: string | null | undefined;
41
+ itemType?: string | null | undefined;
40
42
  cogsAccount?: {
41
43
  id: string;
42
44
  refName: string;
@@ -83,9 +85,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
83
85
  onSubmit?: (() => any) | undefined;
84
86
  "onUpdate:show"?: ((show: boolean) => any) | undefined;
85
87
  "onUpdate:setting"?: ((setting: Omit<{
88
+ syncedAt?: string | null | undefined;
86
89
  subsidiaryId?: string | null | undefined;
87
90
  accessToken?: string | null | undefined;
88
- syncedAt?: string | null | undefined;
89
91
  restlet?: {
90
92
  type: "createItemReceipt" | "retrieveRecordInfo";
91
93
  scriptId: string;
@@ -95,6 +97,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
95
97
  items: {
96
98
  name?: string | null | undefined;
97
99
  externalId?: string | null | undefined;
100
+ itemType?: string | null | undefined;
98
101
  cogsAccount?: {
99
102
  id: string;
100
103
  refName: string;
@@ -119,6 +122,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
119
122
  childItems: {
120
123
  name?: string | null | undefined;
121
124
  externalId?: string | null | undefined;
125
+ itemType?: string | null | undefined;
122
126
  cogsAccount?: {
123
127
  id: string;
124
128
  refName: string;