@feedmepos/mf-inventory-portal 0.0.23-dev.4 → 0.0.23-dev.40

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 (136) hide show
  1. package/dist/{App-DReDvY0M.js → App-D8DXxTIq.js} +84 -72
  2. package/dist/{ApprovalView-BMZlYmRk.js → ApprovalView-BWGXkHV6.js} +25 -28
  3. package/dist/{BindingsDialog-Y2K4I7H7.js → BindingsDialog-D7WypDot.js} +6 -6
  4. package/dist/{BindingsPicker-DKBq9c37.js → BindingsPicker-DUlGwkwM.js} +8 -9
  5. package/dist/{BindingsTable-45v4SDfp.js → BindingsTable-BjeZYCaJ.js} +18 -22
  6. package/dist/ClosingDraftView-o2LEUfo8.js +1190 -0
  7. package/dist/{ClosingTemplateView-CKJVYSbj.js → ClosingTemplateView-Dt983Cg4.js} +271 -285
  8. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-Dc_7IyBG.js +142 -0
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CMEOp-0r.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-wocPyZls.js} +18 -19
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C1DjyjyH.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DzoEp-Pg.js} +25 -26
  11. package/dist/{IngredientGroupView-BuP-HGeg.js → IngredientGroupView-CIPpIpv1.js} +63 -69
  12. package/dist/IngredientsView-CFV3kX7Q.js +1707 -0
  13. package/dist/{IntegrationView-kYCaKG0o.js → IntegrationView-DkW32m-t.js} +89 -92
  14. package/dist/{InventoryBindingForm-BXHq4h-n.js → InventoryBindingForm-B4CBet9W.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CVxJ_bV3.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DpdDVf6O.js} +112 -104
  16. package/dist/{InventoryBindingSummary-Bjasfc_v.js → InventoryBindingSummary-75ImZtqK.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DM0C4raP.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DfpG3Fy8.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C3O3JebE.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B4d0c3nk.js} +19 -20
  19. package/dist/{PurchaseOrderPrintPreview-CmjkfTTS.js → PurchaseOrderPrintPreview-BYO0JcQW.js} +17 -18
  20. package/dist/ReceiveRequestView-cFLNExw9.js +4194 -0
  21. package/dist/RecipeView-CjfpaHaT.js +609 -0
  22. package/dist/StockView-HMtD9qar.js +1818 -0
  23. package/dist/{SupplierView-DAx7E7sR.js → SupplierView-Cidfe-Xm.js} +2325 -787
  24. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CdU3HPBC.js +1275 -0
  25. package/dist/TransferTemplateView-Doxr1fXP.js +1264 -0
  26. package/dist/{UnitView-CQPGZ8-r.js → UnitView-C1af71aM.js} +228 -227
  27. package/dist/{WarehouseView-jy-RNCgy.js → WarehouseView-CviOLXfX.js} +100 -106
  28. package/dist/api/adjustment-template.d.ts +25 -0
  29. package/dist/api/bill.d.ts +240 -84
  30. package/dist/api/closing-draft.d.ts +6 -0
  31. package/dist/api/closing.d.ts +1 -0
  32. package/dist/api/inventory.d.ts +15 -6
  33. package/dist/api/netsuite.d.ts +3 -3
  34. package/dist/app-BE8SgDqI.js +84466 -0
  35. package/dist/app.d.ts +64 -0
  36. package/dist/app.js +2 -2
  37. package/dist/components/FmCustomAttribute.vue.d.ts +23 -0
  38. package/dist/components/FmLockableField.vue.d.ts +37 -0
  39. package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
  40. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +3 -1
  41. package/dist/components/row-action.enum.d.ts +1 -0
  42. package/dist/components/shell/inventory/binding-ui.vue.d.ts +3 -1
  43. package/dist/composable/defineDeepModel.d.ts +1 -1
  44. package/dist/{decimal-BAc9M88Q.js → decimal-xj3kVOP6.js} +1 -1
  45. package/dist/feature-CWpNYcWJ.js +946 -0
  46. package/dist/format-unit-display-CZ835oaL.js +1215 -0
  47. package/dist/index-B8IWDKYv.js +29202 -0
  48. package/dist/{StockView-D9no-mrA.js → index-C6SzYqK7.js} +2242 -3986
  49. package/dist/router/name.d.ts +2 -0
  50. package/dist/stock-C2xyYnS7.js +125 -0
  51. package/dist/stores/feature.d.ts +6 -0
  52. package/dist/stores/integration/netsuite.d.ts +70 -2
  53. package/dist/stores/inventory.d.ts +21 -12
  54. package/dist/stores/supplier.d.ts +1 -1
  55. package/dist/style.css +1 -1
  56. package/dist/{supplier-DJC0UZWv.js → supplier-B-7o9hg1.js} +15 -15
  57. package/dist/tsconfig.app.tsbuildinfo +1 -1
  58. package/dist/{use-inventory-binding-dialog-PEQbFRvO.js → use-inventory-binding-dialog-Dm8Ky1MH.js} +10 -11
  59. package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
  60. package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
  61. package/dist/views/adjustment-template/import/export.d.ts +60 -0
  62. package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
  63. package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
  64. package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
  65. package/dist/views/adjustment-template/wastage-template/WastageTemplateReason.vue.d.ts +18 -0
  66. package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
  67. package/dist/views/adjustment-template/wastage-template/actions.d.ts +1329 -0
  68. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
  69. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
  70. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
  71. package/dist/views/adjustment-template/wastage-template/props.d.ts +36 -0
  72. package/dist/views/adjustment-template/wastage-template/table.d.ts +1303 -0
  73. package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
  74. package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
  75. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +625 -0
  76. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +25 -0
  77. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +3645 -0
  78. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
  79. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
  80. package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -0
  81. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +2 -1
  82. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +48 -204
  83. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +49 -205
  84. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +6 -3
  85. package/dist/views/ingredients/components/convert/ConvertFormProps.d.ts +1 -0
  86. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -2
  87. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +1 -0
  88. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +2 -1
  89. package/dist/views/receive-request/components/netsuite/NetSuiteInfo.vue.d.ts +12 -0
  90. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +13 -0
  91. package/dist/views/receive-request/components/netsuite/NetSuiteSync.vue.d.ts +12 -0
  92. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +2 -0
  93. package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
  94. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +40 -17
  95. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +4 -2
  96. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +2 -1
  97. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +57 -24
  98. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +57 -24
  99. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -0
  100. package/dist/views/stock/components/StockRecordCard.vue.d.ts +120 -42
  101. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +6 -4
  102. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  103. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +2 -1
  104. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +24 -12
  105. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +24 -12
  106. package/dist/views/transfer-template/helpers/import-export.helper.d.ts +2 -1
  107. package/package.json +5 -4
  108. package/dist/FmDroppableField-8RzKjEdL.js +0 -154
  109. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js +0 -436
  110. package/dist/FmMultiselectDialog-D7YtdoyJ.js +0 -415
  111. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-zjvFEF5C.js +0 -51
  112. package/dist/IngredientsView-DMRN-odY.js +0 -1613
  113. package/dist/ReceiveRequestView-aQZJO8sq.js +0 -4165
  114. package/dist/RecipeView-DXO43tFi.js +0 -597
  115. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
  116. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DCA0RUfu.js +0 -1209
  117. package/dist/TransferTemplateView-CfxdQF1t.js +0 -1261
  118. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  119. package/dist/app-KnSMkJBV.js +0 -33496
  120. package/dist/date2-CIeUqUIc.js +0 -117
  121. package/dist/dayjs.min-Df5jSnDJ.js +0 -282
  122. package/dist/defineDeepModel-BfuQAIoM.js +0 -13
  123. package/dist/feature-dwB4OxRQ.js +0 -86
  124. package/dist/format-time-from-id-BbvzyIN6.js +0 -15
  125. package/dist/format-unit-display-BBWblJEt.js +0 -1216
  126. package/dist/fuzzy-B9ryZ9VZ.js +0 -41
  127. package/dist/index-BN0CY3sZ.js +0 -22277
  128. package/dist/index-Bj1fJum-.js +0 -45
  129. package/dist/index-C4yL_7rR.js +0 -10545
  130. package/dist/netsuite-ByWOS6tI.js +0 -194
  131. package/dist/normalizeArguments-DP7Hrren.js +0 -1552
  132. package/dist/row-action.enum-PMKMRrZR.js +0 -50
  133. package/dist/rules-C12nWDD1.js +0 -198
  134. package/dist/use-template-enabled-locations-2-k9g5t8tt.js +0 -86
  135. package/dist/xlsx-B4XHad7S.js +0 -24004
  136. package/dist/xlsx.util-BSO4SHJi.js +0 -78
@@ -178,11 +178,12 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
178
178
  precision: number;
179
179
  };
180
180
  } | null | undefined;
181
+ operationalGroup?: string | null | undefined;
181
182
  thresholds?: {
182
183
  low: number;
183
184
  mid: number;
184
185
  } | null | undefined;
185
- operationalGroup?: string | null | undefined;
186
+ customAttributes?: Record<string, any> | null | undefined;
186
187
  unit: {
187
188
  _id: string;
188
189
  name: string;
@@ -413,11 +414,12 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
413
414
  precision: number;
414
415
  };
415
416
  } | null | undefined;
417
+ operationalGroup?: string | null | undefined;
416
418
  thresholds?: {
417
419
  low: number;
418
420
  mid: number;
419
421
  } | null | undefined;
420
- operationalGroup?: string | null | undefined;
422
+ customAttributes?: Record<string, any> | null | undefined;
421
423
  unit: {
422
424
  _id: string;
423
425
  name: string;
@@ -648,11 +650,12 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
648
650
  precision: number;
649
651
  };
650
652
  } | null | undefined;
653
+ operationalGroup?: string | null | undefined;
651
654
  thresholds?: {
652
655
  low: number;
653
656
  mid: number;
654
657
  } | null | undefined;
655
- operationalGroup?: string | null | undefined;
658
+ customAttributes?: Record<string, any> | null | undefined;
656
659
  unit: {
657
660
  _id: string;
658
661
  name: string;
@@ -883,11 +886,12 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
883
886
  precision: number;
884
887
  };
885
888
  } | null | undefined;
889
+ operationalGroup?: string | null | undefined;
886
890
  thresholds?: {
887
891
  low: number;
888
892
  mid: number;
889
893
  } | null | undefined;
890
- operationalGroup?: string | null | undefined;
894
+ customAttributes?: Record<string, any> | null | undefined;
891
895
  unit: {
892
896
  _id: string;
893
897
  name: string;
@@ -1128,11 +1132,12 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1128
1132
  precision: number;
1129
1133
  };
1130
1134
  } | null | undefined;
1135
+ operationalGroup?: string | null | undefined;
1131
1136
  thresholds?: {
1132
1137
  low: number;
1133
1138
  mid: number;
1134
1139
  } | null | undefined;
1135
- operationalGroup?: string | null | undefined;
1140
+ customAttributes?: Record<string, any> | null | undefined;
1136
1141
  unit: {
1137
1142
  _id: string;
1138
1143
  name: string;
@@ -1363,11 +1368,12 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1363
1368
  precision: number;
1364
1369
  };
1365
1370
  } | null | undefined;
1371
+ operationalGroup?: string | null | undefined;
1366
1372
  thresholds?: {
1367
1373
  low: number;
1368
1374
  mid: number;
1369
1375
  } | null | undefined;
1370
- operationalGroup?: string | null | undefined;
1376
+ customAttributes?: Record<string, any> | null | undefined;
1371
1377
  unit: {
1372
1378
  _id: string;
1373
1379
  name: string;
@@ -1598,11 +1604,12 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1598
1604
  precision: number;
1599
1605
  };
1600
1606
  } | null | undefined;
1607
+ operationalGroup?: string | null | undefined;
1601
1608
  thresholds?: {
1602
1609
  low: number;
1603
1610
  mid: number;
1604
1611
  } | null | undefined;
1605
- operationalGroup?: string | null | undefined;
1612
+ customAttributes?: Record<string, any> | null | undefined;
1606
1613
  unit: {
1607
1614
  _id: string;
1608
1615
  name: string;
@@ -1833,11 +1840,12 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
1833
1840
  precision: number;
1834
1841
  };
1835
1842
  } | null | undefined;
1843
+ operationalGroup?: string | null | undefined;
1836
1844
  thresholds?: {
1837
1845
  low: number;
1838
1846
  mid: number;
1839
1847
  } | null | undefined;
1840
- operationalGroup?: string | null | undefined;
1848
+ customAttributes?: Record<string, any> | null | undefined;
1841
1849
  unit: {
1842
1850
  _id: string;
1843
1851
  name: string;
@@ -2078,11 +2086,12 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2078
2086
  precision: number;
2079
2087
  };
2080
2088
  } | null | undefined;
2089
+ operationalGroup?: string | null | undefined;
2081
2090
  thresholds?: {
2082
2091
  low: number;
2083
2092
  mid: number;
2084
2093
  } | null | undefined;
2085
- operationalGroup?: string | null | undefined;
2094
+ customAttributes?: Record<string, any> | null | undefined;
2086
2095
  unit: {
2087
2096
  _id: string;
2088
2097
  name: string;
@@ -2313,11 +2322,12 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2313
2322
  precision: number;
2314
2323
  };
2315
2324
  } | null | undefined;
2325
+ operationalGroup?: string | null | undefined;
2316
2326
  thresholds?: {
2317
2327
  low: number;
2318
2328
  mid: number;
2319
2329
  } | null | undefined;
2320
- operationalGroup?: string | null | undefined;
2330
+ customAttributes?: Record<string, any> | null | undefined;
2321
2331
  unit: {
2322
2332
  _id: string;
2323
2333
  name: string;
@@ -2548,11 +2558,12 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2548
2558
  precision: number;
2549
2559
  };
2550
2560
  } | null | undefined;
2561
+ operationalGroup?: string | null | undefined;
2551
2562
  thresholds?: {
2552
2563
  low: number;
2553
2564
  mid: number;
2554
2565
  } | null | undefined;
2555
- operationalGroup?: string | null | undefined;
2566
+ customAttributes?: Record<string, any> | null | undefined;
2556
2567
  unit: {
2557
2568
  _id: string;
2558
2569
  name: string;
@@ -2783,11 +2794,12 @@ export declare const useTransferTemplateActions: import("pinia").StoreDefinition
2783
2794
  precision: number;
2784
2795
  };
2785
2796
  } | null | undefined;
2797
+ operationalGroup?: string | null | undefined;
2786
2798
  thresholds?: {
2787
2799
  low: number;
2788
2800
  mid: number;
2789
2801
  } | null | undefined;
2790
- operationalGroup?: string | null | undefined;
2802
+ customAttributes?: Record<string, any> | null | undefined;
2791
2803
  unit: {
2792
2804
  _id: string;
2793
2805
  name: string;
@@ -157,11 +157,12 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
157
157
  precision: number;
158
158
  };
159
159
  } | null | undefined;
160
+ operationalGroup?: string | null | undefined;
160
161
  thresholds?: {
161
162
  low: number;
162
163
  mid: number;
163
164
  } | null | undefined;
164
- operationalGroup?: string | null | undefined;
165
+ customAttributes?: Record<string, any> | null | undefined;
165
166
  unit: {
166
167
  _id: string;
167
168
  name: string;
@@ -387,11 +388,12 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
387
388
  precision: number;
388
389
  };
389
390
  } | null | undefined;
391
+ operationalGroup?: string | null | undefined;
390
392
  thresholds?: {
391
393
  low: number;
392
394
  mid: number;
393
395
  } | null | undefined;
394
- operationalGroup?: string | null | undefined;
396
+ customAttributes?: Record<string, any> | null | undefined;
395
397
  unit: {
396
398
  _id: string;
397
399
  name: string;
@@ -616,11 +618,12 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
616
618
  precision: number;
617
619
  };
618
620
  } | null | undefined;
621
+ operationalGroup?: string | null | undefined;
619
622
  thresholds?: {
620
623
  low: number;
621
624
  mid: number;
622
625
  } | null | undefined;
623
- operationalGroup?: string | null | undefined;
626
+ customAttributes?: Record<string, any> | null | undefined;
624
627
  unit: {
625
628
  _id: string;
626
629
  name: string;
@@ -845,11 +848,12 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
845
848
  precision: number;
846
849
  };
847
850
  } | null | undefined;
851
+ operationalGroup?: string | null | undefined;
848
852
  thresholds?: {
849
853
  low: number;
850
854
  mid: number;
851
855
  } | null | undefined;
852
- operationalGroup?: string | null | undefined;
856
+ customAttributes?: Record<string, any> | null | undefined;
853
857
  unit: {
854
858
  _id: string;
855
859
  name: string;
@@ -1079,11 +1083,12 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
1079
1083
  precision: number;
1080
1084
  };
1081
1085
  } | null | undefined;
1086
+ operationalGroup?: string | null | undefined;
1082
1087
  thresholds?: {
1083
1088
  low: number;
1084
1089
  mid: number;
1085
1090
  } | null | undefined;
1086
- operationalGroup?: string | null | undefined;
1091
+ customAttributes?: Record<string, any> | null | undefined;
1087
1092
  unit: {
1088
1093
  _id: string;
1089
1094
  name: string;
@@ -1309,11 +1314,12 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
1309
1314
  precision: number;
1310
1315
  };
1311
1316
  } | null | undefined;
1317
+ operationalGroup?: string | null | undefined;
1312
1318
  thresholds?: {
1313
1319
  low: number;
1314
1320
  mid: number;
1315
1321
  } | null | undefined;
1316
- operationalGroup?: string | null | undefined;
1322
+ customAttributes?: Record<string, any> | null | undefined;
1317
1323
  unit: {
1318
1324
  _id: string;
1319
1325
  name: string;
@@ -1538,11 +1544,12 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
1538
1544
  precision: number;
1539
1545
  };
1540
1546
  } | null | undefined;
1547
+ operationalGroup?: string | null | undefined;
1541
1548
  thresholds?: {
1542
1549
  low: number;
1543
1550
  mid: number;
1544
1551
  } | null | undefined;
1545
- operationalGroup?: string | null | undefined;
1552
+ customAttributes?: Record<string, any> | null | undefined;
1546
1553
  unit: {
1547
1554
  _id: string;
1548
1555
  name: string;
@@ -1767,11 +1774,12 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
1767
1774
  precision: number;
1768
1775
  };
1769
1776
  } | null | undefined;
1777
+ operationalGroup?: string | null | undefined;
1770
1778
  thresholds?: {
1771
1779
  low: number;
1772
1780
  mid: number;
1773
1781
  } | null | undefined;
1774
- operationalGroup?: string | null | undefined;
1782
+ customAttributes?: Record<string, any> | null | undefined;
1775
1783
  unit: {
1776
1784
  _id: string;
1777
1785
  name: string;
@@ -2001,11 +2009,12 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
2001
2009
  precision: number;
2002
2010
  };
2003
2011
  } | null | undefined;
2012
+ operationalGroup?: string | null | undefined;
2004
2013
  thresholds?: {
2005
2014
  low: number;
2006
2015
  mid: number;
2007
2016
  } | null | undefined;
2008
- operationalGroup?: string | null | undefined;
2017
+ customAttributes?: Record<string, any> | null | undefined;
2009
2018
  unit: {
2010
2019
  _id: string;
2011
2020
  name: string;
@@ -2231,11 +2240,12 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
2231
2240
  precision: number;
2232
2241
  };
2233
2242
  } | null | undefined;
2243
+ operationalGroup?: string | null | undefined;
2234
2244
  thresholds?: {
2235
2245
  low: number;
2236
2246
  mid: number;
2237
2247
  } | null | undefined;
2238
- operationalGroup?: string | null | undefined;
2248
+ customAttributes?: Record<string, any> | null | undefined;
2239
2249
  unit: {
2240
2250
  _id: string;
2241
2251
  name: string;
@@ -2460,11 +2470,12 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
2460
2470
  precision: number;
2461
2471
  };
2462
2472
  } | null | undefined;
2473
+ operationalGroup?: string | null | undefined;
2463
2474
  thresholds?: {
2464
2475
  low: number;
2465
2476
  mid: number;
2466
2477
  } | null | undefined;
2467
- operationalGroup?: string | null | undefined;
2478
+ customAttributes?: Record<string, any> | null | undefined;
2468
2479
  unit: {
2469
2480
  _id: string;
2470
2481
  name: string;
@@ -2689,11 +2700,12 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
2689
2700
  precision: number;
2690
2701
  };
2691
2702
  } | null | undefined;
2703
+ operationalGroup?: string | null | undefined;
2692
2704
  thresholds?: {
2693
2705
  low: number;
2694
2706
  mid: number;
2695
2707
  } | null | undefined;
2696
- operationalGroup?: string | null | undefined;
2708
+ customAttributes?: Record<string, any> | null | undefined;
2697
2709
  unit: {
2698
2710
  _id: string;
2699
2711
  name: string;
@@ -8,6 +8,7 @@ export declare enum ReservedSheetNames {
8
8
  }
9
9
  export interface TemplateItemRow {
10
10
  code: string;
11
+ overrideCode?: string;
11
12
  name: string;
12
13
  /** abbrev for base unit or measurement unit */
13
14
  unit: string;
@@ -49,7 +50,7 @@ export type ObjectWithIndex<T> = {
49
50
  data: T;
50
51
  };
51
52
  export declare const FakeUnit: FdoInventoryUnit;
52
- export declare function templateItemToExcelRow(item: FdoPurchaseOrderTemplateItem): TemplateItemRow;
53
+ export declare function templateItemToExcelRow(item: FdoPurchaseOrderTemplateItem, overrideCode?: string): TemplateItemRow;
53
54
  export type ColIdHeader<T> = {
54
55
  id: keyof T;
55
56
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-inventory-portal",
3
- "version": "0.0.23-dev.4",
3
+ "version": "0.0.23-dev.40",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -14,10 +14,11 @@
14
14
  "./style": "./dist/style.css"
15
15
  },
16
16
  "dependencies": {
17
- "@feedmepos/core": "^2.9.3",
17
+ "@feedmepos/core": "^2.12.28",
18
+ "@feedmepos/feature-flag": "^0.0.13",
18
19
  "@feedmepos/menu": "1.0.34",
19
- "@feedmepos/mf-common": "1.13.0-beta.1",
20
- "@feedmepos/ui-library": "1.3.8",
20
+ "@feedmepos/mf-common": "1.18.0-beta.3",
21
+ "@feedmepos/ui-library": "1.5.0-beta.1",
21
22
  "@tanstack/vue-table": "^8.17.3",
22
23
  "@types/dinero.js": "^1.9.4",
23
24
  "@typescript-eslint/typescript-estree": "^8.21.0",
@@ -1,154 +0,0 @@
1
- import { defineComponent as U, ref as d, computed as y, resolveComponent as k, openBlock as s, createElementBlock as c, createElementVNode as p, createCommentVNode as S, renderSlot as u, createBlock as C, normalizeClass as f, toDisplayString as F, unref as B } from "vue";
2
- import { useI18n as W } from "@feedmepos/mf-common";
3
- import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- const G = {
5
- key: 0,
6
- class: "relative"
7
- }, H = ["accept", "disabled"], J = { class: "flex flex-col gap-8" }, K = ["accept", "disabled"], M = /* @__PURE__ */ U({
8
- __name: "FmDroppableField",
9
- props: {
10
- buttonLabel: {},
11
- label: { default: "" },
12
- disabled: { type: Boolean, default: !1 },
13
- accept: { default: "" },
14
- maxFileSize: { default: 8e6 },
15
- contentClass: {}
16
- },
17
- emits: ["file-upload", "file-rejected"],
18
- setup(T, { emit: V }) {
19
- const l = T, g = V, { t: r } = W(), t = d(!1), i = d(null), n = d(null), m = d(), R = (e) => {
20
- l.disabled || (e.stopPropagation(), e.preventDefault());
21
- }, $ = (e) => {
22
- l.disabled || (e.stopPropagation(), e.preventDefault(), t.value = !0);
23
- }, j = (e) => {
24
- l.disabled || (e.stopPropagation(), e.preventDefault(), t.value = !1);
25
- }, E = (e) => {
26
- var a;
27
- l.disabled || (e.stopPropagation(), e.preventDefault(), t.value = !1, h((a = e.dataTransfer) == null ? void 0 : a.files));
28
- };
29
- function h(e) {
30
- if (e)
31
- if (m.value = e, i.value = I(e[0]), n.value = P(e[0]), i.value && n.value)
32
- g("file-upload", e[0]);
33
- else {
34
- const a = L();
35
- g("file-rejected", [
36
- {
37
- file: e[0],
38
- reason: a
39
- }
40
- ]);
41
- }
42
- }
43
- const L = () => {
44
- const e = new Array();
45
- return i.value || e.push("invalid-type"), n.value || e.push("invalid-size"), e;
46
- }, I = (e) => {
47
- if (!l.accept) return !0;
48
- const a = l.accept.split(",").map((o) => o.trim());
49
- for (const o of a)
50
- if (w(o)) {
51
- if (D(o) === D(e.type)) return !0;
52
- } else if (A(e) === o || e.type === o) return !0;
53
- return !1;
54
- }, P = (e) => e.size <= l.maxFileSize, w = (e) => e.indexOf("*") !== -1, A = (e) => "." + e.name.split(".").pop(), D = (e) => e.substring(0, e.indexOf("/")), O = y(() => {
55
- if (t.value) return r("inventory.formField.dropField.dropToUpload");
56
- if (i.value) {
57
- if (!n.value)
58
- return r("inventory.formField.dropField.fileSizeExceeded", { size: l.maxFileSize });
59
- } else return r("inventory.formField.dropField.invalidFileType");
60
- return "";
61
- }), v = y(() => m.value ? !i.value || !n.value : !1), _ = (e) => {
62
- const a = e.target;
63
- h(a.files);
64
- }, N = y(() => {
65
- var e;
66
- return (e = m.value) == null ? void 0 : e.item(0);
67
- }), b = d();
68
- return (e, a) => {
69
- const o = k("FmLabel"), x = k("FmButton");
70
- return s(), c("label", {
71
- class: "fm-droppable-field",
72
- ref_key: "fmButtonRef",
73
- ref: b
74
- }, [
75
- e.$slots.default ? (s(), c("div", G, [
76
- p("input", {
77
- accept: e.accept,
78
- disabled: e.disabled,
79
- class: "fm-droppable-field__input",
80
- type: "file",
81
- onChange: _
82
- }, null, 40, H)
83
- ])) : S("", !0),
84
- u(e.$slots, "default", {
85
- isDragging: t.value,
86
- isValidFileType: i.value,
87
- isValidFileSize: n.value,
88
- singleValidFile: N.value,
89
- openFileDialog: () => {
90
- var z;
91
- return console.log("click", b.value), (z = b.value) == null ? void 0 : z.click();
92
- }
93
- }, () => [
94
- p("div", J, [
95
- e.$slots.label ? u(e.$slots, "label", { key: 0 }, void 0, !0) : (s(), C(o, {
96
- key: 1,
97
- label: e.label
98
- }, null, 8, ["label"]))
99
- ]),
100
- p("div", {
101
- class: f([[
102
- e.contentClass ? e.contentClass : "w-full h-full",
103
- {
104
- "fm-droppable-field__container--dragging": t.value,
105
- "fm-droppable-field__container--invalid": v.value && !e.disabled,
106
- "fm-droppable-field__container--disabled": e.disabled
107
- }
108
- ], "fm-droppable-field__container"]),
109
- onDragenter: R,
110
- onDragleave: j,
111
- onDragover: $,
112
- onDrop: E
113
- }, [
114
- (t.value || v.value) && !e.disabled ? (s(), c("div", {
115
- key: 0,
116
- class: f({
117
- "fm-typo-en-body-lg-600": !0,
118
- "text-fm-color-primary": t.value,
119
- "text-fm-color-typo-error": v.value
120
- })
121
- }, F(O.value), 3)) : (s(), C(x, {
122
- key: 1,
123
- disabled: e.disabled,
124
- label: e.buttonLabel ?? "Add files",
125
- size: "md",
126
- variant: "secondary"
127
- }, null, 8, ["disabled", "label"])),
128
- u(e.$slots, "accept-text", {}, () => [
129
- l.accept ? (s(), c("div", {
130
- key: 0,
131
- class: f([[e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"], "fm-typo-en-body-md-400"])
132
- }, F(B(r)("inventory.formField.dropField.accepts", { fileTypes: e.accept })), 3)) : S("", !0)
133
- ], !0),
134
- p("input", {
135
- accept: e.accept,
136
- disabled: e.disabled,
137
- class: "fm-droppable-field__input",
138
- type: "file",
139
- onChange: _
140
- }, null, 40, K)
141
- ], 34),
142
- u(e.$slots, "helper-text", {}, () => [
143
- p("div", {
144
- class: f([[e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"], "fm-typo-en-body-sm-400"])
145
- }, F(B(r)("inventory.formField.dropField.maxSize", { size: e.maxFileSize })), 3)
146
- ], !0)
147
- ], !0)
148
- ], 512);
149
- };
150
- }
151
- }), Z = /* @__PURE__ */ q(M, [["__scopeId", "data-v-e121b2c1"]]);
152
- export {
153
- Z as F
154
- };