@feedmepos/mf-inventory-portal 0.0.23-dev.3 → 0.0.23-dev.31
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.
- package/dist/{App-BREfwtck.js → App-CEmWJ9lp.js} +85 -73
- package/dist/{ApprovalView-DCzLx24G.js → ApprovalView-jDll4AVe.js} +24 -27
- package/dist/{BindingsDialog-CUcC8lue.js → BindingsDialog-BC_gRSif.js} +4 -4
- package/dist/{BindingsPicker-3VOdZBWI.js → BindingsPicker-BJsGoBzM.js} +8 -9
- package/dist/{BindingsTable-D5Lt6GOO.js → BindingsTable-DSdwNK_q.js} +18 -22
- package/dist/ClosingDraftView-UfWdRXb-.js +1190 -0
- package/dist/{ClosingTemplateView-CukthwOo.js → ClosingTemplateView-BzG16gl5.js} +272 -286
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DW2IOPST.js +282 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DigsIOB0.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DDuZEf_v.js} +116 -114
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DweLQVwq.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CiNvnaaE.js} +5 -5
- package/dist/{IngredientGroupView-CkD8x2CP.js → IngredientGroupView-DL8eBhkk.js} +63 -69
- package/dist/IngredientsView-B_HC9fgq.js +1657 -0
- package/dist/{IntegrationView-BfeV07OO.js → IntegrationView-BeFT5S24.js} +92 -95
- package/dist/{InventoryBindingForm-BsSmth0U.js → InventoryBindingForm-DJ3uwq_X.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CMV5e99K.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DIviTipZ.js} +25 -27
- package/dist/{InventoryBindingSummary-BHloDawE.js → InventoryBindingSummary-CvB5j9xq.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjddpTCS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQPdnXEF.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BZBa_99i.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BdscwUGn.js} +23 -24
- package/dist/{PurchaseOrderPrintPreview-CTdd-RuH.js → PurchaseOrderPrintPreview-3_6nBajH.js} +13 -14
- package/dist/ReceiveRequestView-B_0UldQ7.js +4188 -0
- package/dist/{RecipeView-CrmDQdc5.js → RecipeView-D9p0Ou_I.js} +79 -85
- package/dist/{StockView-Xb3fQaiD.js → StockView-TIdUgG3O.js} +1338 -1446
- package/dist/{SupplierView-CrtIiaz0.js → SupplierView-B1b9Otcr.js} +2325 -787
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-jUYB4L8Y.js +1275 -0
- package/dist/TransferTemplateView-Dxk5b-2j.js +1264 -0
- package/dist/{UnitView-C6BgrZ1G.js → UnitView-BrpzJ7D3.js} +40 -44
- package/dist/{WarehouseView-Hhd76ybU.js → WarehouseView-CjbdEy8o.js} +94 -100
- package/dist/api/adjustment-template.d.ts +23 -0
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/closing-draft.d.ts +6 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/netsuite.d.ts +3 -3
- package/dist/app-AcMtTQ07.js +84202 -0
- package/dist/app.d.ts +56 -0
- package/dist/app.js +2 -2
- package/dist/components/FmMinMaxInputRules.d.ts +4 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-rPKr5T-H.js → decimal-DHYZglKx.js} +1 -1
- package/dist/{feature-z95vJnA1.js → feature-G-NnqKcY.js} +23 -9
- package/dist/format-unit-display-BWqJsV_R.js +1207 -0
- package/dist/index-Bt8vaUdT.js +12087 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-VZXyPw2C.js +125 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +70 -2
- package/dist/stores/inventory.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/{supplier-BixmjZyl.js → supplier-DTUUR48O.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-BRygbm1p.js → use-inventory-binding-dialog-DvC_i-Ih.js} +10 -11
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
- package/dist/views/adjustment-template/import/export.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1295 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
- package/dist/views/adjustment-template/wastage-template/props.d.ts +29 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1273 -0
- package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
- package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +621 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +25 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +3621 -0
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -192
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +25 -193
- package/dist/views/receive-request/components/netsuite/NetSuiteInfo.vue.d.ts +12 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +13 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteSync.vue.d.ts +12 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +40 -34
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +63 -54
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +63 -54
- package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +1 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
- package/package.json +2 -2
- package/dist/FmDroppableField-8RzKjEdL.js +0 -154
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dwb3eBLo.js +0 -267
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CvtvzIt1.js +0 -436
- package/dist/FmMultiselectDialog-CKBcMDGC.js +0 -415
- package/dist/IngredientsView-DuK4YSD6.js +0 -1613
- package/dist/ReceiveRequestView-CgWNaYs1.js +0 -4104
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9H41eg7.js +0 -1189
- package/dist/TransferTemplateView-Cc7VRbZ7.js +0 -1262
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-CwUHqg7h.js +0 -33462
- package/dist/date2-CHNm4ELK.js +0 -117
- package/dist/dayjs.min-FE3dpxHU.js +0 -282
- package/dist/defineDeepModel-Dc1zZzOi.js +0 -13
- package/dist/format-time-from-id-CaPj8EHN.js +0 -15
- package/dist/format-unit-display-Bkz5kW6p.js +0 -1198
- package/dist/fuzzy-DXqhGaFi.js +0 -41
- package/dist/index-BMJHz32O.js +0 -22277
- package/dist/index-Be5vGZdr.js +0 -45
- package/dist/index-D2juQPg6.js +0 -10545
- package/dist/netsuite-P0as0Moa.js +0 -194
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
- package/dist/row-action.enum-PMKMRrZR.js +0 -50
- package/dist/rules-BQz4NGht.js +0 -198
- package/dist/use-template-enabled-locations-2-Dd15d-ng.js +0 -86
- package/dist/xlsx-k2Rf0NcF.js +0 -24004
- package/dist/xlsx.util-CJxPf7XZ.js +0 -78
|
@@ -110,6 +110,14 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
110
110
|
amount: number;
|
|
111
111
|
precision: number;
|
|
112
112
|
} | null | undefined;
|
|
113
|
+
minimumQuantity?: {
|
|
114
|
+
amount: number;
|
|
115
|
+
precision: number;
|
|
116
|
+
} | null | undefined;
|
|
117
|
+
maximumQuantity?: {
|
|
118
|
+
amount: number;
|
|
119
|
+
precision: number;
|
|
120
|
+
} | null | undefined;
|
|
113
121
|
sku: {
|
|
114
122
|
trackingMeasurement?: string | null | undefined;
|
|
115
123
|
convert?: {
|
|
@@ -183,14 +191,6 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
183
191
|
amount: number;
|
|
184
192
|
precision: number;
|
|
185
193
|
};
|
|
186
|
-
minimumQuantity: {
|
|
187
|
-
amount: number;
|
|
188
|
-
precision: number;
|
|
189
|
-
};
|
|
190
|
-
maximumQuantity: {
|
|
191
|
-
amount: number;
|
|
192
|
-
precision: number;
|
|
193
|
-
};
|
|
194
194
|
}[];
|
|
195
195
|
supplier: {
|
|
196
196
|
phoneNumber?: string | null | undefined;
|
|
@@ -340,6 +340,14 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
340
340
|
amount: number;
|
|
341
341
|
precision: number;
|
|
342
342
|
} | null | undefined;
|
|
343
|
+
minimumQuantity?: {
|
|
344
|
+
amount: number;
|
|
345
|
+
precision: number;
|
|
346
|
+
} | null | undefined;
|
|
347
|
+
maximumQuantity?: {
|
|
348
|
+
amount: number;
|
|
349
|
+
precision: number;
|
|
350
|
+
} | null | undefined;
|
|
343
351
|
sku: {
|
|
344
352
|
trackingMeasurement?: string | null | undefined;
|
|
345
353
|
convert?: {
|
|
@@ -413,14 +421,6 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
413
421
|
amount: number;
|
|
414
422
|
precision: number;
|
|
415
423
|
};
|
|
416
|
-
minimumQuantity: {
|
|
417
|
-
amount: number;
|
|
418
|
-
precision: number;
|
|
419
|
-
};
|
|
420
|
-
maximumQuantity: {
|
|
421
|
-
amount: number;
|
|
422
|
-
precision: number;
|
|
423
|
-
};
|
|
424
424
|
}[];
|
|
425
425
|
supplier: {
|
|
426
426
|
phoneNumber?: string | null | undefined;
|
|
@@ -569,6 +569,14 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
569
569
|
amount: number;
|
|
570
570
|
precision: number;
|
|
571
571
|
} | null | undefined;
|
|
572
|
+
minimumQuantity?: {
|
|
573
|
+
amount: number;
|
|
574
|
+
precision: number;
|
|
575
|
+
} | null | undefined;
|
|
576
|
+
maximumQuantity?: {
|
|
577
|
+
amount: number;
|
|
578
|
+
precision: number;
|
|
579
|
+
} | null | undefined;
|
|
572
580
|
sku: {
|
|
573
581
|
trackingMeasurement?: string | null | undefined;
|
|
574
582
|
convert?: {
|
|
@@ -642,14 +650,6 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
642
650
|
amount: number;
|
|
643
651
|
precision: number;
|
|
644
652
|
};
|
|
645
|
-
minimumQuantity: {
|
|
646
|
-
amount: number;
|
|
647
|
-
precision: number;
|
|
648
|
-
};
|
|
649
|
-
maximumQuantity: {
|
|
650
|
-
amount: number;
|
|
651
|
-
precision: number;
|
|
652
|
-
};
|
|
653
653
|
}[];
|
|
654
654
|
supplier: {
|
|
655
655
|
phoneNumber?: string | null | undefined;
|
|
@@ -798,6 +798,14 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
798
798
|
amount: number;
|
|
799
799
|
precision: number;
|
|
800
800
|
} | null | undefined;
|
|
801
|
+
minimumQuantity?: {
|
|
802
|
+
amount: number;
|
|
803
|
+
precision: number;
|
|
804
|
+
} | null | undefined;
|
|
805
|
+
maximumQuantity?: {
|
|
806
|
+
amount: number;
|
|
807
|
+
precision: number;
|
|
808
|
+
} | null | undefined;
|
|
801
809
|
sku: {
|
|
802
810
|
trackingMeasurement?: string | null | undefined;
|
|
803
811
|
convert?: {
|
|
@@ -871,14 +879,6 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
871
879
|
amount: number;
|
|
872
880
|
precision: number;
|
|
873
881
|
};
|
|
874
|
-
minimumQuantity: {
|
|
875
|
-
amount: number;
|
|
876
|
-
precision: number;
|
|
877
|
-
};
|
|
878
|
-
maximumQuantity: {
|
|
879
|
-
amount: number;
|
|
880
|
-
precision: number;
|
|
881
|
-
};
|
|
882
882
|
}[];
|
|
883
883
|
supplier: {
|
|
884
884
|
phoneNumber?: string | null | undefined;
|
|
@@ -1032,6 +1032,14 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
1032
1032
|
amount: number;
|
|
1033
1033
|
precision: number;
|
|
1034
1034
|
} | null | undefined;
|
|
1035
|
+
minimumQuantity?: {
|
|
1036
|
+
amount: number;
|
|
1037
|
+
precision: number;
|
|
1038
|
+
} | null | undefined;
|
|
1039
|
+
maximumQuantity?: {
|
|
1040
|
+
amount: number;
|
|
1041
|
+
precision: number;
|
|
1042
|
+
} | null | undefined;
|
|
1035
1043
|
sku: {
|
|
1036
1044
|
trackingMeasurement?: string | null | undefined;
|
|
1037
1045
|
convert?: {
|
|
@@ -1105,14 +1113,6 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
1105
1113
|
amount: number;
|
|
1106
1114
|
precision: number;
|
|
1107
1115
|
};
|
|
1108
|
-
minimumQuantity: {
|
|
1109
|
-
amount: number;
|
|
1110
|
-
precision: number;
|
|
1111
|
-
};
|
|
1112
|
-
maximumQuantity: {
|
|
1113
|
-
amount: number;
|
|
1114
|
-
precision: number;
|
|
1115
|
-
};
|
|
1116
1116
|
}[];
|
|
1117
1117
|
supplier: {
|
|
1118
1118
|
phoneNumber?: string | null | undefined;
|
|
@@ -1262,6 +1262,14 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
1262
1262
|
amount: number;
|
|
1263
1263
|
precision: number;
|
|
1264
1264
|
} | null | undefined;
|
|
1265
|
+
minimumQuantity?: {
|
|
1266
|
+
amount: number;
|
|
1267
|
+
precision: number;
|
|
1268
|
+
} | null | undefined;
|
|
1269
|
+
maximumQuantity?: {
|
|
1270
|
+
amount: number;
|
|
1271
|
+
precision: number;
|
|
1272
|
+
} | null | undefined;
|
|
1265
1273
|
sku: {
|
|
1266
1274
|
trackingMeasurement?: string | null | undefined;
|
|
1267
1275
|
convert?: {
|
|
@@ -1335,14 +1343,6 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
1335
1343
|
amount: number;
|
|
1336
1344
|
precision: number;
|
|
1337
1345
|
};
|
|
1338
|
-
minimumQuantity: {
|
|
1339
|
-
amount: number;
|
|
1340
|
-
precision: number;
|
|
1341
|
-
};
|
|
1342
|
-
maximumQuantity: {
|
|
1343
|
-
amount: number;
|
|
1344
|
-
precision: number;
|
|
1345
|
-
};
|
|
1346
1346
|
}[];
|
|
1347
1347
|
supplier: {
|
|
1348
1348
|
phoneNumber?: string | null | undefined;
|
|
@@ -1491,6 +1491,14 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
1491
1491
|
amount: number;
|
|
1492
1492
|
precision: number;
|
|
1493
1493
|
} | null | undefined;
|
|
1494
|
+
minimumQuantity?: {
|
|
1495
|
+
amount: number;
|
|
1496
|
+
precision: number;
|
|
1497
|
+
} | null | undefined;
|
|
1498
|
+
maximumQuantity?: {
|
|
1499
|
+
amount: number;
|
|
1500
|
+
precision: number;
|
|
1501
|
+
} | null | undefined;
|
|
1494
1502
|
sku: {
|
|
1495
1503
|
trackingMeasurement?: string | null | undefined;
|
|
1496
1504
|
convert?: {
|
|
@@ -1564,14 +1572,6 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
1564
1572
|
amount: number;
|
|
1565
1573
|
precision: number;
|
|
1566
1574
|
};
|
|
1567
|
-
minimumQuantity: {
|
|
1568
|
-
amount: number;
|
|
1569
|
-
precision: number;
|
|
1570
|
-
};
|
|
1571
|
-
maximumQuantity: {
|
|
1572
|
-
amount: number;
|
|
1573
|
-
precision: number;
|
|
1574
|
-
};
|
|
1575
1575
|
}[];
|
|
1576
1576
|
supplier: {
|
|
1577
1577
|
phoneNumber?: string | null | undefined;
|
|
@@ -1720,6 +1720,14 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
1720
1720
|
amount: number;
|
|
1721
1721
|
precision: number;
|
|
1722
1722
|
} | null | undefined;
|
|
1723
|
+
minimumQuantity?: {
|
|
1724
|
+
amount: number;
|
|
1725
|
+
precision: number;
|
|
1726
|
+
} | null | undefined;
|
|
1727
|
+
maximumQuantity?: {
|
|
1728
|
+
amount: number;
|
|
1729
|
+
precision: number;
|
|
1730
|
+
} | null | undefined;
|
|
1723
1731
|
sku: {
|
|
1724
1732
|
trackingMeasurement?: string | null | undefined;
|
|
1725
1733
|
convert?: {
|
|
@@ -1793,14 +1801,6 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
1793
1801
|
amount: number;
|
|
1794
1802
|
precision: number;
|
|
1795
1803
|
};
|
|
1796
|
-
minimumQuantity: {
|
|
1797
|
-
amount: number;
|
|
1798
|
-
precision: number;
|
|
1799
|
-
};
|
|
1800
|
-
maximumQuantity: {
|
|
1801
|
-
amount: number;
|
|
1802
|
-
precision: number;
|
|
1803
|
-
};
|
|
1804
1804
|
}[];
|
|
1805
1805
|
supplier: {
|
|
1806
1806
|
phoneNumber?: string | null | undefined;
|
|
@@ -1954,6 +1954,14 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
1954
1954
|
amount: number;
|
|
1955
1955
|
precision: number;
|
|
1956
1956
|
} | null | undefined;
|
|
1957
|
+
minimumQuantity?: {
|
|
1958
|
+
amount: number;
|
|
1959
|
+
precision: number;
|
|
1960
|
+
} | null | undefined;
|
|
1961
|
+
maximumQuantity?: {
|
|
1962
|
+
amount: number;
|
|
1963
|
+
precision: number;
|
|
1964
|
+
} | null | undefined;
|
|
1957
1965
|
sku: {
|
|
1958
1966
|
trackingMeasurement?: string | null | undefined;
|
|
1959
1967
|
convert?: {
|
|
@@ -2027,14 +2035,6 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
2027
2035
|
amount: number;
|
|
2028
2036
|
precision: number;
|
|
2029
2037
|
};
|
|
2030
|
-
minimumQuantity: {
|
|
2031
|
-
amount: number;
|
|
2032
|
-
precision: number;
|
|
2033
|
-
};
|
|
2034
|
-
maximumQuantity: {
|
|
2035
|
-
amount: number;
|
|
2036
|
-
precision: number;
|
|
2037
|
-
};
|
|
2038
2038
|
}[];
|
|
2039
2039
|
supplier: {
|
|
2040
2040
|
phoneNumber?: string | null | undefined;
|
|
@@ -2184,6 +2184,14 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
2184
2184
|
amount: number;
|
|
2185
2185
|
precision: number;
|
|
2186
2186
|
} | null | undefined;
|
|
2187
|
+
minimumQuantity?: {
|
|
2188
|
+
amount: number;
|
|
2189
|
+
precision: number;
|
|
2190
|
+
} | null | undefined;
|
|
2191
|
+
maximumQuantity?: {
|
|
2192
|
+
amount: number;
|
|
2193
|
+
precision: number;
|
|
2194
|
+
} | null | undefined;
|
|
2187
2195
|
sku: {
|
|
2188
2196
|
trackingMeasurement?: string | null | undefined;
|
|
2189
2197
|
convert?: {
|
|
@@ -2257,14 +2265,6 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
2257
2265
|
amount: number;
|
|
2258
2266
|
precision: number;
|
|
2259
2267
|
};
|
|
2260
|
-
minimumQuantity: {
|
|
2261
|
-
amount: number;
|
|
2262
|
-
precision: number;
|
|
2263
|
-
};
|
|
2264
|
-
maximumQuantity: {
|
|
2265
|
-
amount: number;
|
|
2266
|
-
precision: number;
|
|
2267
|
-
};
|
|
2268
2268
|
}[];
|
|
2269
2269
|
supplier: {
|
|
2270
2270
|
phoneNumber?: string | null | undefined;
|
|
@@ -2413,6 +2413,14 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
2413
2413
|
amount: number;
|
|
2414
2414
|
precision: number;
|
|
2415
2415
|
} | null | undefined;
|
|
2416
|
+
minimumQuantity?: {
|
|
2417
|
+
amount: number;
|
|
2418
|
+
precision: number;
|
|
2419
|
+
} | null | undefined;
|
|
2420
|
+
maximumQuantity?: {
|
|
2421
|
+
amount: number;
|
|
2422
|
+
precision: number;
|
|
2423
|
+
} | null | undefined;
|
|
2416
2424
|
sku: {
|
|
2417
2425
|
trackingMeasurement?: string | null | undefined;
|
|
2418
2426
|
convert?: {
|
|
@@ -2486,14 +2494,6 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
2486
2494
|
amount: number;
|
|
2487
2495
|
precision: number;
|
|
2488
2496
|
};
|
|
2489
|
-
minimumQuantity: {
|
|
2490
|
-
amount: number;
|
|
2491
|
-
precision: number;
|
|
2492
|
-
};
|
|
2493
|
-
maximumQuantity: {
|
|
2494
|
-
amount: number;
|
|
2495
|
-
precision: number;
|
|
2496
|
-
};
|
|
2497
2497
|
}[];
|
|
2498
2498
|
supplier: {
|
|
2499
2499
|
phoneNumber?: string | null | undefined;
|
|
@@ -2642,6 +2642,14 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
2642
2642
|
amount: number;
|
|
2643
2643
|
precision: number;
|
|
2644
2644
|
} | null | undefined;
|
|
2645
|
+
minimumQuantity?: {
|
|
2646
|
+
amount: number;
|
|
2647
|
+
precision: number;
|
|
2648
|
+
} | null | undefined;
|
|
2649
|
+
maximumQuantity?: {
|
|
2650
|
+
amount: number;
|
|
2651
|
+
precision: number;
|
|
2652
|
+
} | null | undefined;
|
|
2645
2653
|
sku: {
|
|
2646
2654
|
trackingMeasurement?: string | null | undefined;
|
|
2647
2655
|
convert?: {
|
|
@@ -2715,14 +2723,6 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
|
|
|
2715
2723
|
amount: number;
|
|
2716
2724
|
precision: number;
|
|
2717
2725
|
};
|
|
2718
|
-
minimumQuantity: {
|
|
2719
|
-
amount: number;
|
|
2720
|
-
precision: number;
|
|
2721
|
-
};
|
|
2722
|
-
maximumQuantity: {
|
|
2723
|
-
amount: number;
|
|
2724
|
-
precision: number;
|
|
2725
|
-
};
|
|
2726
2726
|
}[];
|
|
2727
2727
|
supplier: {
|
|
2728
2728
|
phoneNumber?: string | null | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-inventory-portal",
|
|
3
|
-
"version": "0.0.23-dev.
|
|
3
|
+
"version": "0.0.23-dev.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"vue-router": "^4.4.0",
|
|
42
42
|
"xlsx": "^0.18.5",
|
|
43
43
|
"zod": "3.17.9",
|
|
44
|
-
"@feedmepos/inventory-core-js": "^1.0.1",
|
|
45
44
|
"@feedmepos/inventory-core": "^0.2.18",
|
|
45
|
+
"@feedmepos/inventory-core-js": "^1.0.1",
|
|
46
46
|
"@feedmepos/zod-inventory": "^1.0.10"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -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
|
-
};
|