@feedmepos/mf-inventory-portal 0.0.17-dev.1 → 0.0.17-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 (53) hide show
  1. package/dist/{ApprovalView-NJ4FogNu.js → ApprovalView-DuDqkTeC.js} +9 -9
  2. package/dist/{BindingsDialog-B-j1k1SE.js → BindingsDialog-0Q6o47Up.js} +5 -5
  3. package/dist/{BindingsPicker-CEi3jyh0.js → BindingsPicker-k4drpC9m.js} +6 -6
  4. package/dist/{BindingsTable-DHYJ2Eqm.js → BindingsTable-B5hZHvuD.js} +26 -26
  5. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-1XPAzm5R.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CoiUbqV-.js} +1 -1
  6. package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-DL98UqsQ.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-C1TGiM-x.js} +9 -9
  7. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DqD-jNxc.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DsjnPaTj.js} +3 -3
  8. package/dist/IngredientsView-D3uTxXqO.js +1637 -0
  9. package/dist/{IntegrationView-DxqyRxVR.js → IntegrationView-B1iYpADR.js} +4 -4
  10. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang--KLpvU2e.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-GinKxaoG.js} +6 -6
  11. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-HpuL5QhV.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BDznyTkG.js} +1 -1
  12. package/dist/{PurchaseOrderPrintPreview-BGbCA7Al.js → PurchaseOrderPrintPreview-BJ4uktza.js} +4 -4
  13. package/dist/{ReceiveRequestView-C1ae5dRi.js → ReceiveRequestView-BOvNswDa.js} +13 -13
  14. package/dist/RecipeView-4I-OWCb6.js +581 -0
  15. package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-Dov3Uq2z.js +64 -0
  16. package/dist/{StockView-Pyk4MBIQ.js → StockView-D2cS56Qi.js} +13 -13
  17. package/dist/{SupplierView-CVZ7bOgA.js → SupplierView-CZPwQkMt.js} +8 -8
  18. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Ctqjw3f1.js → TransferDetails.vue_vue_type_script_setup_true_lang-CqKi2NMD.js} +5 -5
  19. package/dist/{UnitView-DVauPXKw.js → UnitView-CV7Od1Jw.js} +7 -7
  20. package/dist/{WarehouseView-BYivsQgQ.js → WarehouseView-BtQJYBl0.js} +4 -4
  21. package/dist/api/inventory.d.ts +102 -0
  22. package/dist/{app-DXqS7qYg.js → app-B4nF7QvC.js} +1037 -1019
  23. package/dist/app.js +1 -1
  24. package/dist/components/FmDroppableField.vue.d.ts +75 -0
  25. package/dist/{date2-B96h4mWb.js → date2-BwR5G9qy.js} +1 -1
  26. package/dist/{dayjs.min-CQkpEWlm.js → dayjs.min-DGsqRPL2.js} +2 -2
  27. package/dist/{decimal-DQOX97fs.js → decimal-DGwTROX2.js} +1 -1
  28. package/dist/{fuzzy-Dr-kBYFA.js → fuzzy-D903uHSq.js} +1 -1
  29. package/dist/helper/random.d.ts +2 -0
  30. package/dist/helper/xlsx.util.d.ts +1 -0
  31. package/dist/{init-date-range-6CJBD0GL.js → init-date-range-CWbgpQ8e.js} +1 -1
  32. package/dist/{layout-CVjYEZxq.js → layout-8DgajRcn.js} +12 -12
  33. package/dist/{rules-B_-yQn9M.js → rules-Dq4Ee_PT.js} +1 -1
  34. package/dist/{stock-estimate-DoU-A7bG.js → stock-estimate-4jgl53Nk.js} +2 -2
  35. package/dist/stores/inventory.d.ts +1 -0
  36. package/dist/style.css +1 -1
  37. package/dist/{supplier-D2Wuv0oV.js → supplier-Bv4RiUno.js} +1 -1
  38. package/dist/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/{use-inventory-binding-dialog-Bc0Yx1fK.js → use-inventory-binding-dialog-h8HlGzcz.js} +2 -2
  40. package/dist/views/ingredients/components/import-ingredients/ImportIngredientItem.vue.d.ts +12 -0
  41. package/dist/views/ingredients/components/import-ingredients/ImportIngredientItemProps.d.ts +6 -0
  42. package/dist/views/ingredients/components/import-ingredients/ImportIngredients.vue.d.ts +2 -0
  43. package/dist/views/ingredients/components/import-ingredients/ImportIngredientsProps.d.ts +5 -0
  44. package/dist/views/ingredients/helper/import-export.helper.d.ts +45 -0
  45. package/dist/views/ingredients/helper/sku-id.helper.d.ts +1 -0
  46. package/dist/xlsx-wBLs03H5.js +24004 -0
  47. package/dist/xlsx.util-DxDZloWT.js +107 -0
  48. package/package.json +2 -2
  49. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-BYi6BUwT.js +0 -49
  50. package/dist/IngredientsView-DNbppADe.js +0 -973
  51. package/dist/RecipeView-BwP8jlG0.js +0 -596
  52. package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js +0 -53
  53. package/dist/xlsx-Vw9D2Jo4.js +0 -15510
@@ -1,5 +1,5 @@
1
- import { _ as y } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-DL98UqsQ.js";
2
- import { u as v } from "./app-DXqS7qYg.js";
1
+ import { _ as y } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-C1TGiM-x.js";
2
+ import { u as v } from "./app-B4nF7QvC.js";
3
3
  import { useDialog as g } from "@feedmepos/ui-library";
4
4
  function E() {
5
5
  const d = v(), f = g();
@@ -0,0 +1,12 @@
1
+ import type { ImportIngredientItemProps } from './ImportIngredientItemProps';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ImportIngredientItemProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ImportIngredientItemProps>>>, {}, {}>;
3
+ export default _default;
4
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
5
+ type __VLS_TypePropsToRuntimeProps<T> = {
6
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
7
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
8
+ } : {
9
+ type: import('vue').PropType<T[K]>;
10
+ required: true;
11
+ };
12
+ };
@@ -0,0 +1,6 @@
1
+ export interface ImportIngredientItemProps {
2
+ type: 'create' | 'update';
3
+ code: string;
4
+ name: string;
5
+ errors: string[];
6
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export interface ImportResult {
2
+ success: boolean;
3
+ errors: string[];
4
+ skus: FdoInventorySku[];
5
+ }
@@ -0,0 +1,45 @@
1
+ import type { WorkSheet } from 'xlsx';
2
+ export interface IngredientSkuRow {
3
+ code: string;
4
+ name: string;
5
+ unit: string;
6
+ baseUnit: string;
7
+ valuationMethod: string;
8
+ pricePerUnit: number;
9
+ thresholdLow: number;
10
+ thresholdMid: number;
11
+ }
12
+ export interface ImportCreateResult {
13
+ type: 'create';
14
+ sku: FdoInventorySku;
15
+ excelRowNumber: number;
16
+ errors: string[];
17
+ }
18
+ export interface ImportUpdateResult {
19
+ type: 'update';
20
+ original: FdoInventorySku;
21
+ sku: FdoInventorySku;
22
+ excelRowNumber: number;
23
+ errors: string[];
24
+ }
25
+ export type ImportResult = {
26
+ importCreateResult: ImportCreateResult[];
27
+ importUpdateResult: ImportUpdateResult[];
28
+ };
29
+ export type ObjectWithIndex<T> = {
30
+ index: number;
31
+ data: T;
32
+ };
33
+ export declare const FakeUnit: FdoInventoryUnit;
34
+ export declare function skuToExcelRow(sku: FdoInventorySku): IngredientSkuRow;
35
+ export type ColIdHeader<T> = {
36
+ id: keyof T;
37
+ name: string;
38
+ };
39
+ export declare function getExcelHeaders(): ColIdHeader<IngredientSkuRow>[];
40
+ export declare function exportIngredients(): string;
41
+ export declare function exportIngredientsTemplate(): string;
42
+ export declare function worksheetToSkuRow(sheet: WorkSheet): ObjectWithIndex<IngredientSkuRow>[];
43
+ export declare function importSkuToCreateSku(row: IngredientSkuRow, index: number, parsedContent: ObjectWithIndex<IngredientSkuRow>[]): ImportCreateResult;
44
+ export declare function getSkuToCreateUpdate(sheet: WorkSheet): ImportResult;
45
+ export declare function getSkuToDelete(sheet: WorkSheet): FdoInventorySku[];
@@ -0,0 +1 @@
1
+ export declare function newSkuId(): string;