@feedmepos/mf-inventory-portal 1.0.7 → 1.0.8-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 (95) hide show
  1. package/dist/{App-DF14rGlK.js → App-VjopKXRf.js} +50 -49
  2. package/dist/{ApprovalView-C_xhq-_c.js → ApprovalView-Bc8OqfVg.js} +24 -24
  3. package/dist/{BindingsDialog-CCY1fDj8.js → BindingsDialog-zWAOfSXc.js} +4 -4
  4. package/dist/{BindingsPicker-CnXbK5O3.js → BindingsPicker-Bf5LuJiL.js} +6 -6
  5. package/dist/{BindingsTable-cQIUUuVv.js → BindingsTable-D2N-3mnJ.js} +8 -8
  6. package/dist/{ClosingDraftView-DUZ31x3s.js → ClosingDraftView-BwbzajJY.js} +464 -463
  7. package/dist/{ClosingTemplateView-6ysEDEcV.js → ClosingTemplateView-CsAIbfui.js} +10 -10
  8. package/dist/{DeliveryOrderPrintPreview-BGjFS8h7.js → DeliveryOrderPrintPreview-CjylpaJj.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CanJ2fzb.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C_xdzdLD.js} +32 -32
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BcKtJQMt.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DhgHX4S_.js} +86 -86
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bb9xMoX-.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DPa8Pto8.js} +1 -1
  12. package/dist/{IngredientGroupView-i08KHlW7.js → IngredientGroupView-D6YzbWdd.js} +11 -11
  13. package/dist/{IngredientsView-D0tBukwK.js → IngredientsView-g-73afqm.js} +15 -14
  14. package/dist/{IntegrationView-BqCrKL13.js → IntegrationView-CEML0dP4.js} +86 -85
  15. package/dist/{InventoryBindingForm-BJwIFQVS.js → InventoryBindingForm-E0wJOA8L.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DU9j1Q8M.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DFXmypAs.js} +27 -27
  17. package/dist/{InventoryBindingSummary-B2M3Th8T.js → InventoryBindingSummary-sBQvAPBw.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BH4A_Lc5.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DOeDgymo.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CdxCyEBi.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DIqYY1-C.js} +10 -10
  20. package/dist/{PublishView-B9x92vDM.js → PublishView-D_psCmiQ.js} +7 -7
  21. package/dist/{PurchaseOrderPrintPreview-MbGDNmgh.js → PurchaseOrderPrintPreview-5QqjPwWN.js} +4 -4
  22. package/dist/{ReceiveRequestView-CTNycYUr.js → ReceiveRequestView-CBGxqac6.js} +53 -52
  23. package/dist/{RecipeView-sHTcJgzP.js → RecipeView-BAjHNWST.js} +32 -32
  24. package/dist/{StockView-CUv4dcGJ.js → StockView-Bc62jbCV.js} +73 -72
  25. package/dist/{SupplierView-hu6OhDss.js → SupplierView-Cyucz_US.js} +159 -159
  26. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CljJoB4v.js +1895 -0
  27. package/dist/{TransferTemplateView-DMSkUc0D.js → TransferTemplateView-BWURlmou.js} +291 -290
  28. package/dist/{UnitView-B5q7IVbT.js → UnitView-cjLpKfoN.js} +23 -23
  29. package/dist/{WarehouseView-Ds6z4Vz6.js → WarehouseView-CUtg5Aiw.js} +26 -26
  30. package/dist/api/bill.d.ts +2 -2
  31. package/dist/api/food-market-hub.d.ts +1 -1
  32. package/dist/api/inventory.d.ts +44 -44
  33. package/dist/api/netsuite.d.ts +3 -3
  34. package/dist/api/purchase-order.d.ts +5 -1
  35. package/dist/{app-BmsY87Mv.js → app-Dgg5mqsW.js} +17155 -17625
  36. package/dist/app.d.ts +7 -7
  37. package/dist/app.js +1 -1
  38. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +8 -8
  39. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
  40. package/dist/components/shell/inventory/binding-ui.vue.d.ts +5 -5
  41. package/dist/composable/usePromise.d.ts +41 -0
  42. package/dist/{decimal-Baw9w4_A.js → decimal-DcqP_fAm.js} +1 -1
  43. package/dist/feature-C4mZ_d2m.js +17352 -0
  44. package/dist/{format-unit-display-D0_KiU3j.js → format-unit-display-D2Uk9Ze_.js} +60 -60
  45. package/dist/{index-CDydl7WA.js → index-YuTB_T1B.js} +1 -1
  46. package/dist/{index-C_GU5Tc8.js → index-peSGn9vg.js} +7 -6
  47. package/dist/{stock-C-hm8Kdq.js → stock-CDP8ZqBZ.js} +1 -1
  48. package/dist/stores/feature.d.ts +3 -20
  49. package/dist/stores/integration/foodmarkethub.d.ts +1 -1
  50. package/dist/stores/integration/netsuite.d.ts +7 -7
  51. package/dist/stores/inventory.d.ts +44 -44
  52. package/dist/stores/location.d.ts +137 -137
  53. package/dist/{supplier-RX_yr24c.js → supplier-C5GbDMxT.js} +4 -4
  54. package/dist/tsconfig.app.tsbuildinfo +1 -1
  55. package/dist/{use-ingredient-select-dialog-BZhczMUl.js → use-ingredient-select-dialog-nH01sayt.js} +1 -1
  56. package/dist/{use-inventory-binding-dialog-dV-92pLe.js → use-inventory-binding-dialog-CJe6QdGb.js} +1 -1
  57. package/dist/views/adjustment-template/wastage-template/actions.d.ts +228 -228
  58. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +2 -2
  59. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +1 -1
  60. package/dist/views/adjustment-template/wastage-template/table.d.ts +234 -234
  61. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +68 -68
  62. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +408 -408
  63. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +4 -4
  64. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +252 -252
  65. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +252 -252
  66. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +12 -12
  67. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  68. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +8 -8
  69. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +3 -3
  70. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +4 -4
  71. package/dist/views/integration/components/ApplyProduct.vue.d.ts +2 -2
  72. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +2 -2
  73. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +2 -2
  74. package/dist/views/integration/components/netsuite/AddLocationDialog.vue.d.ts +204 -204
  75. package/dist/views/integration/components/netsuite/LocationConfigurationDialog.vue.d.ts +2 -2
  76. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +665 -637
  77. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +22 -22
  78. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +44 -44
  79. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +11 -11
  80. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +614 -0
  81. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1190 -1142
  82. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1192 -1144
  83. package/dist/views/receive-request/constants/po-action-to-ui-style.d.ts +6 -0
  84. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
  85. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  86. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +14 -14
  87. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +22 -22
  88. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +17 -17
  89. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +11 -11
  90. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +805 -805
  91. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +805 -805
  92. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +33 -33
  93. package/dist/{vue-i18n-sbHu6D5a.js → vue-i18n-NNRWZURD.js} +284 -284
  94. package/package.json +5 -3
  95. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CCKlQGMf.js +0 -1746
package/dist/app.d.ts CHANGED
@@ -2335,12 +2335,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
2335
2335
  precision: number;
2336
2336
  };
2337
2337
  } | null | undefined;
2338
+ id: string;
2338
2339
  type: "RECIPE" | "SKU" | "SKU_GROUP";
2339
2340
  amount: {
2340
2341
  amount: number;
2341
2342
  precision: number;
2342
2343
  };
2343
- id: string;
2344
2344
  }[]>;
2345
2345
  default: () => never[];
2346
2346
  };
@@ -2355,12 +2355,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
2355
2355
  precision: number;
2356
2356
  };
2357
2357
  } | null | undefined;
2358
+ id: string;
2358
2359
  type: "RECIPE" | "SKU" | "SKU_GROUP";
2359
2360
  amount: {
2360
2361
  amount: number;
2361
2362
  precision: number;
2362
2363
  };
2363
- id: string;
2364
2364
  }[]) => import("@feedmepos/ui-library").ValidationResult))[]>;
2365
2365
  };
2366
2366
  readonly: {
@@ -2383,12 +2383,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
2383
2383
  precision: number;
2384
2384
  };
2385
2385
  } | null | undefined;
2386
+ id: string;
2386
2387
  type: "RECIPE" | "SKU" | "SKU_GROUP";
2387
2388
  amount: {
2388
2389
  amount: number;
2389
2390
  precision: number;
2390
2391
  };
2391
- id: string;
2392
2392
  }[]) => void;
2393
2393
  "click:pick-inventory-bindings": (type: "RECIPE" | "SKU" | "SKU_GROUP") => void;
2394
2394
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -2409,12 +2409,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
2409
2409
  precision: number;
2410
2410
  };
2411
2411
  } | null | undefined;
2412
+ id: string;
2412
2413
  type: "RECIPE" | "SKU" | "SKU_GROUP";
2413
2414
  amount: {
2414
2415
  amount: number;
2415
2416
  precision: number;
2416
2417
  };
2417
- id: string;
2418
2418
  }[]>;
2419
2419
  default: () => never[];
2420
2420
  };
@@ -2429,12 +2429,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
2429
2429
  precision: number;
2430
2430
  };
2431
2431
  } | null | undefined;
2432
+ id: string;
2432
2433
  type: "RECIPE" | "SKU" | "SKU_GROUP";
2433
2434
  amount: {
2434
2435
  amount: number;
2435
2436
  precision: number;
2436
2437
  };
2437
- id: string;
2438
2438
  }[]) => import("@feedmepos/ui-library").ValidationResult))[]>;
2439
2439
  };
2440
2440
  readonly: {
@@ -2457,12 +2457,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
2457
2457
  precision: number;
2458
2458
  };
2459
2459
  } | null | undefined;
2460
+ id: string;
2460
2461
  type: "RECIPE" | "SKU" | "SKU_GROUP";
2461
2462
  amount: {
2462
2463
  amount: number;
2463
2464
  precision: number;
2464
2465
  };
2465
- id: string;
2466
2466
  }[]) => any) | undefined;
2467
2467
  "onClick:pick-inventory-bindings"?: ((type: "RECIPE" | "SKU" | "SKU_GROUP") => any) | undefined;
2468
2468
  }>, {
@@ -2476,12 +2476,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
2476
2476
  precision: number;
2477
2477
  };
2478
2478
  } | null | undefined;
2479
+ id: string;
2479
2480
  type: "RECIPE" | "SKU" | "SKU_GROUP";
2480
2481
  amount: {
2481
2482
  amount: number;
2482
2483
  precision: number;
2483
2484
  };
2484
- id: string;
2485
2485
  }[];
2486
2486
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2487
2487
  export declare const InventoryBindingSummary: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { a$ as s, b0 as e, b1 as o, a_ as t, b2 as i, a as m } from "./app-BmsY87Mv.js";
2
+ import { a$ as s, b0 as e, b1 as o, a_ as t, b2 as i, a as m } from "./app-Dgg5mqsW.js";
3
3
  export {
4
4
  s as FmApp,
5
5
  e as InventoryBindingForm,
@@ -14,12 +14,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
14
14
  precision: number;
15
15
  };
16
16
  } | null | undefined;
17
+ id: string;
17
18
  type: "RECIPE" | "SKU" | "SKU_GROUP";
18
19
  amount: {
19
20
  amount: number;
20
21
  precision: number;
21
22
  };
22
- id: string;
23
23
  }[]) => void;
24
24
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InventoryBindingProps>, {
25
25
  modelValue: () => never[];
@@ -36,12 +36,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
36
36
  precision: number;
37
37
  };
38
38
  } | null | undefined;
39
+ id: string;
39
40
  type: "RECIPE" | "SKU" | "SKU_GROUP";
40
41
  amount: {
41
42
  amount: number;
42
43
  precision: number;
43
44
  };
44
- id: string;
45
45
  }[]) => any) | undefined;
46
46
  }>, {
47
47
  skus: {
@@ -58,12 +58,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
58
58
  precision: number;
59
59
  };
60
60
  } | null | undefined;
61
+ id: string;
61
62
  type: "RECIPE" | "SKU" | "SKU_GROUP";
62
63
  amount: {
63
64
  amount: number;
64
65
  precision: number;
65
66
  };
66
- id: string;
67
67
  }[] | null | undefined;
68
68
  } | null | undefined;
69
69
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -89,6 +89,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
89
89
  mid: number;
90
90
  } | null | undefined;
91
91
  customAttributes?: Record<string, any> | null | undefined;
92
+ _id: string;
93
+ name: string;
94
+ code: string;
92
95
  unit: {
93
96
  _id: string;
94
97
  name: string;
@@ -104,9 +107,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
104
107
  };
105
108
  }[];
106
109
  };
107
- code: string;
108
- _id: string;
109
- name: string;
110
110
  }[];
111
111
  modelValue: {
112
112
  measurement?: {
@@ -118,12 +118,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
118
118
  precision: number;
119
119
  };
120
120
  } | null | undefined;
121
+ id: string;
121
122
  type: "RECIPE" | "SKU" | "SKU_GROUP";
122
123
  amount: {
123
124
  amount: number;
124
125
  precision: number;
125
126
  };
126
- id: string;
127
127
  }[];
128
128
  recipes: {
129
129
  customAttributes?: Record<string, any> | null | undefined;
@@ -139,12 +139,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
139
139
  precision: number;
140
140
  };
141
141
  } | null | undefined;
142
+ id: string;
142
143
  type: "RECIPE" | "SKU" | "SKU_GROUP";
143
144
  amount: {
144
145
  amount: number;
145
146
  precision: number;
146
147
  };
147
- id: string;
148
148
  }[];
149
149
  }[];
150
150
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -22,12 +22,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
22
22
  precision: number;
23
23
  };
24
24
  } | null | undefined;
25
+ id: string;
25
26
  type: "RECIPE" | "SKU" | "SKU_GROUP";
26
27
  amount: {
27
28
  amount: number;
28
29
  precision: number;
29
30
  };
30
- id: string;
31
31
  }[]>;
32
32
  required: true;
33
33
  };
@@ -59,12 +59,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
59
59
  precision: number;
60
60
  };
61
61
  } | null | undefined;
62
+ id: string;
62
63
  type: "RECIPE" | "SKU" | "SKU_GROUP";
63
64
  amount: {
64
65
  amount: number;
65
66
  precision: number;
66
67
  };
67
- id: string;
68
68
  }[]>;
69
69
  required: true;
70
70
  };
@@ -38,12 +38,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
38
38
  precision: number;
39
39
  };
40
40
  } | null | undefined;
41
+ id: string;
41
42
  type: "RECIPE" | "SKU" | "SKU_GROUP";
42
43
  amount: {
43
44
  amount: number;
44
45
  precision: number;
45
46
  };
46
- id: string;
47
47
  }[] | null | undefined;
48
48
  } | null | undefined;
49
49
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -69,6 +69,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
69
69
  mid: number;
70
70
  } | null | undefined;
71
71
  customAttributes?: Record<string, any> | null | undefined;
72
+ _id: string;
73
+ name: string;
74
+ code: string;
72
75
  unit: {
73
76
  _id: string;
74
77
  name: string;
@@ -84,9 +87,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
84
87
  };
85
88
  }[];
86
89
  };
87
- code: string;
88
- _id: string;
89
- name: string;
90
90
  }[];
91
91
  items: InventoryBinding[];
92
92
  editable: boolean;
@@ -104,12 +104,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
104
104
  precision: number;
105
105
  };
106
106
  } | null | undefined;
107
+ id: string;
107
108
  type: "RECIPE" | "SKU" | "SKU_GROUP";
108
109
  amount: {
109
110
  amount: number;
110
111
  precision: number;
111
112
  };
112
- id: string;
113
113
  }[];
114
114
  }[];
115
115
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,41 @@
1
+ export declare const enum ResultState {
2
+ loading = "loading",
3
+ error = "error",
4
+ success = "success"
5
+ }
6
+ type ResultBase = {
7
+ state: ResultState;
8
+ };
9
+ type LoadingResult = ResultBase & {
10
+ state: ResultState.loading;
11
+ };
12
+ type ErrorResult = ResultBase & {
13
+ state: ResultState.error;
14
+ error: any;
15
+ };
16
+ type SuccessResult<T> = ResultBase & {
17
+ state: ResultState.success;
18
+ data: T;
19
+ };
20
+ export type PromiseResult<Success = any> = LoadingResult | ErrorResult | SuccessResult<Success>;
21
+ export declare function usePromise<T>(promiseTask?: () => Promise<T>): {
22
+ result: import("vue").Ref<{
23
+ state: ResultState.loading;
24
+ } | {
25
+ state: ResultState.error;
26
+ error: any;
27
+ } | {
28
+ state: ResultState.success;
29
+ data: import("vue").UnwrapRef<T>;
30
+ }, PromiseResult<T> | {
31
+ state: ResultState.loading;
32
+ } | {
33
+ state: ResultState.error;
34
+ error: any;
35
+ } | {
36
+ state: ResultState.success;
37
+ data: import("vue").UnwrapRef<T>;
38
+ }>;
39
+ execute: (task?: () => Promise<T>) => Promise<void>;
40
+ };
41
+ export {};
@@ -1,4 +1,4 @@
1
- import "./app-BmsY87Mv.js";
1
+ import "./app-Dgg5mqsW.js";
2
2
  function m(a) {
3
3
  function t(o, n = !0) {
4
4
  const e = Math.round(Math.log10(o));