@feedmepos/mf-inventory-portal 0.0.22-dev.9 → 0.0.23-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.
- package/dist/App-Y3Ez8Rjf.js +255 -0
- package/dist/ApprovalView-BUU1G4Q2.js +141 -0
- package/dist/{BindingsDialog-GzX9Bo2g.js → BindingsDialog-8wc4Q0JQ.js} +13 -12
- package/dist/{BindingsPicker-SbOetc0-.js → BindingsPicker-DGWN1LQc.js} +19 -18
- package/dist/{BindingsTable-CAcE5y8U.js → BindingsTable-7NJP2jT6.js} +20 -16
- package/dist/ClosingTemplateView-9s7vmwaT.js +1833 -0
- package/dist/FmDroppableField-8RzKjEdL.js +154 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B4DDh9-a.js +267 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-5DINn0ZB.js +436 -0
- package/dist/FmMultiselectDialog-7hok9sJP.js +411 -0
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CxR1FCft.js +326 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-FQ0HjuL3.js +51 -0
- package/dist/IngredientGroupView-C3maHTCg.js +610 -0
- package/dist/IngredientsView-DCR3IBkR.js +1613 -0
- package/dist/IntegrationView-gO4h89Wj.js +1227 -0
- package/dist/InventoryBindingForm-dh3GeyG-.js +4 -0
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJuo3i7W.js +278 -0
- package/dist/InventoryBindingSummary-BPoPcEoe.js +75 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1FCwvO8A.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-olm8sZKt.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BezTV43V.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-5HIWHR_f.js → PurchaseOrderPrintPreview-Dix_fIoo.js} +14 -13
- package/dist/ReceiveRequestView-DdPiYb2P.js +4082 -0
- package/dist/RecipeView-C4-a4IEW.js +597 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-Du2txrIP.js +7778 -0
- package/dist/SupplierView-D_09FbQh.js +1474 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9MOos--.js +1144 -0
- package/dist/TransferTemplateView-j3CRy6Lc.js +1262 -0
- package/dist/{UnitView-BpU0Yk7X.js → UnitView-BXw2Vwq1.js} +30 -29
- package/dist/{WarehouseView-DqxWgogc.js → WarehouseView-CKamiETC.js} +205 -202
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/api/bill.d.ts +86 -240
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +281 -88
- package/dist/api/netsuite.d.ts +32 -1
- package/dist/api/purchase-order-template.d.ts +4 -2
- package/dist/api/supplier.d.ts +1 -0
- package/dist/app-GUbzqEtW.js +33456 -0
- package/dist/app.d.ts +259 -6
- package/dist/app.js +8 -7
- package/dist/array-hChJVZLE.js +43 -0
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
- package/dist/components/map/GoogleMap.vue.d.ts +4 -4
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
- package/dist/date2-CLE9fB2R.js +117 -0
- package/dist/dayjs.min-CY1d38w7.js +282 -0
- package/dist/{decimal-DWbwRn_v.js → decimal-SIjO6Mjw.js} +1 -1
- package/dist/defineDeepModel-l40rX7kr.js +13 -0
- package/dist/extensions/array.d.ts +1 -0
- package/dist/feature-BXruKUhX.js +78 -0
- package/dist/{format-time-from-id-BnmaRuab.js → format-time-from-id-CcFsBXmk.js} +1 -1
- package/dist/format-unit-display-DEKg8cJm.js +1198 -0
- package/dist/fuzzy-CVOV9zJc.js +41 -0
- package/dist/googlemap-Dm8ERVai.js +97 -0
- package/dist/helper/rules.d.ts +7 -0
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/index-BX5KZXhI.js +22279 -0
- package/dist/index-CVsyOEb1.js +10545 -0
- package/dist/index-m9e9nYfl.js +45 -0
- package/dist/netsuite-DAKRv7zr.js +146 -0
- package/dist/normalizeArguments-DP7Hrren.js +1552 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/rules-DlnN8IP3.js +198 -0
- package/dist/stores/integration/foodmarkethub.d.ts +391 -0
- package/dist/stores/integration/index.d.ts +7 -0
- package/dist/stores/integration/netsuite.d.ts +102 -0
- package/dist/stores/inventory.d.ts +295 -9
- package/dist/stores/location.d.ts +508 -485
- package/dist/stores/supplier.d.ts +124 -4
- package/dist/stores/warehouse.d.ts +7 -4
- package/dist/style.css +1 -1
- package/dist/supplier-B21WlSAM.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-inventory-binding-dialog-D3x6xj2O.js +95 -0
- package/dist/{use-template-enabled-locations-2-ClBq9FjN.js → use-template-enabled-locations-2-z-b-UXef.js} +9 -8
- package/dist/useTabStorage-BkIVScW_.js +25 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +877 -1002
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1013
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
- package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
- package/dist/views/integration/NetSuite.vue.d.ts +2 -0
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +49 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1913 -53
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2370 -327
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2304 -261
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
- package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +43 -120
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +34 -4
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
- package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
- package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -82
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +38 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1279 -1528
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +2207 -446
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -251
- package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +14 -8
- package/dist/{xlsx-DiOKvJ6l.js → xlsx-6mM1eNiL.js} +1525 -1525
- package/dist/xlsx.util-BLftcF4q.js +78 -0
- package/package.json +7 -4
- package/dist/ApprovalView-BPsScR5_.js +0 -129
- package/dist/ClosingTemplateView-DECwEnlK.js +0 -1066
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnogYrRE.js +0 -372
- package/dist/IngredientsView-8fT1Ljd5.js +0 -1758
- package/dist/IntegrationView-CjGLRM78.js +0 -1141
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DlhNc8Vk.js +0 -88
- package/dist/ReceiveRequestView-CXZv8g5U.js +0 -215
- package/dist/RecipeView-sB0Lgmob.js +0 -581
- package/dist/StockView-CY2kNohB.js +0 -1892
- package/dist/SupplierView-DTqeZPts.js +0 -827
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BBby29tW.js +0 -762
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-ByNQap9n.js +0 -1498
- package/dist/TransferTemplateView-DkRVfAox.js +0 -1277
- package/dist/app-BuyAj4kw.js +0 -69068
- package/dist/defineDeepModel-DuVmbMwq.js +0 -13
- package/dist/id-to-date-CI5Vv0Ji.js +0 -30
- package/dist/purchase-order-transaction-type-DrFJFvtK.js +0 -676
- package/dist/stores/netsuite.d.ts +0 -49
- package/dist/supplier-BQyK2eSZ.js +0 -69
- package/dist/xlsx.util-CZ7zYxdP.js +0 -109
package/dist/app.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare const i18nMessages: {
|
|
|
4
4
|
'en-US': {
|
|
5
5
|
inventory: {
|
|
6
6
|
common: {
|
|
7
|
+
success: string;
|
|
7
8
|
proPlan: {
|
|
8
9
|
title: string;
|
|
9
10
|
subtitle: string;
|
|
@@ -39,6 +40,23 @@ export declare const i18nMessages: {
|
|
|
39
40
|
longitude: string;
|
|
40
41
|
latitude: string;
|
|
41
42
|
};
|
|
43
|
+
itemsSelected: string;
|
|
44
|
+
filterItems: string;
|
|
45
|
+
noItemsFound: string;
|
|
46
|
+
dropField: {
|
|
47
|
+
dropToUpload: string;
|
|
48
|
+
invalidFileType: string;
|
|
49
|
+
fileSizeExceeded: string;
|
|
50
|
+
accepts: string;
|
|
51
|
+
maxSize: string;
|
|
52
|
+
};
|
|
53
|
+
select: {
|
|
54
|
+
selectAll: string;
|
|
55
|
+
removeAll: string;
|
|
56
|
+
};
|
|
57
|
+
min: string;
|
|
58
|
+
max: string;
|
|
59
|
+
loading: string;
|
|
42
60
|
};
|
|
43
61
|
inventoryBindings: {
|
|
44
62
|
linkRecipe: string;
|
|
@@ -158,6 +176,24 @@ export declare const i18nMessages: {
|
|
|
158
176
|
error: string;
|
|
159
177
|
errorMessage: string;
|
|
160
178
|
};
|
|
179
|
+
import: {
|
|
180
|
+
title: string;
|
|
181
|
+
message: string;
|
|
182
|
+
new: string;
|
|
183
|
+
allLocations: string;
|
|
184
|
+
nLocations: string;
|
|
185
|
+
nItems: string;
|
|
186
|
+
};
|
|
187
|
+
publish: {
|
|
188
|
+
title: string;
|
|
189
|
+
message: string;
|
|
190
|
+
dialogTitle: string;
|
|
191
|
+
noRecentActivity: string;
|
|
192
|
+
nothingToPublish: string;
|
|
193
|
+
publishing: string;
|
|
194
|
+
recentlyPublishedAt: string;
|
|
195
|
+
stillPublishing: string;
|
|
196
|
+
};
|
|
161
197
|
};
|
|
162
198
|
table: {
|
|
163
199
|
createdAt: string;
|
|
@@ -165,19 +201,30 @@ export declare const i18nMessages: {
|
|
|
165
201
|
noOfItems: string;
|
|
166
202
|
enabledOutlets: string;
|
|
167
203
|
reference: string;
|
|
204
|
+
status: string;
|
|
205
|
+
published: string;
|
|
206
|
+
unpublished: string;
|
|
207
|
+
enabledForAll: string;
|
|
208
|
+
enabledForN: string;
|
|
168
209
|
};
|
|
169
210
|
form: {
|
|
211
|
+
name: string;
|
|
212
|
+
reference: string;
|
|
213
|
+
locations: string;
|
|
214
|
+
selectLocation: string;
|
|
215
|
+
enabledUnits: string;
|
|
170
216
|
items: {
|
|
171
217
|
selectItem: string;
|
|
172
|
-
addItem: string;
|
|
173
218
|
title: string;
|
|
219
|
+
name: string;
|
|
220
|
+
enableUnit: string;
|
|
221
|
+
addItem: string;
|
|
174
222
|
};
|
|
175
|
-
name: string;
|
|
176
|
-
reference: string;
|
|
177
223
|
};
|
|
178
224
|
};
|
|
179
225
|
ingredient: {
|
|
180
226
|
title: string;
|
|
227
|
+
title2: string;
|
|
181
228
|
code: string;
|
|
182
229
|
name: string;
|
|
183
230
|
unit: string;
|
|
@@ -283,8 +330,12 @@ export declare const i18nMessages: {
|
|
|
283
330
|
success: string;
|
|
284
331
|
};
|
|
285
332
|
};
|
|
333
|
+
ingredientGroup: {
|
|
334
|
+
title: string;
|
|
335
|
+
};
|
|
286
336
|
recipe: {
|
|
287
337
|
title: string;
|
|
338
|
+
title2: string;
|
|
288
339
|
name: string;
|
|
289
340
|
ingredients: string;
|
|
290
341
|
export: {
|
|
@@ -581,6 +632,26 @@ export declare const i18nMessages: {
|
|
|
581
632
|
emptySupplier: string;
|
|
582
633
|
};
|
|
583
634
|
};
|
|
635
|
+
import: {
|
|
636
|
+
title: string;
|
|
637
|
+
actions: {
|
|
638
|
+
downloadTemplate: string;
|
|
639
|
+
};
|
|
640
|
+
error: {
|
|
641
|
+
noData: string;
|
|
642
|
+
invalidContent: string;
|
|
643
|
+
noImportData: string;
|
|
644
|
+
hasErrors: string;
|
|
645
|
+
failed: string;
|
|
646
|
+
systemMessage: string;
|
|
647
|
+
};
|
|
648
|
+
progress: string;
|
|
649
|
+
success: string;
|
|
650
|
+
};
|
|
651
|
+
export: {
|
|
652
|
+
success: string;
|
|
653
|
+
filename: string;
|
|
654
|
+
};
|
|
584
655
|
companyName: string;
|
|
585
656
|
registrationNo: string;
|
|
586
657
|
address: {
|
|
@@ -660,6 +731,10 @@ export declare const i18nMessages: {
|
|
|
660
731
|
title: string;
|
|
661
732
|
description: string;
|
|
662
733
|
};
|
|
734
|
+
netsuite: {
|
|
735
|
+
title: string;
|
|
736
|
+
description: string;
|
|
737
|
+
};
|
|
663
738
|
apply: {
|
|
664
739
|
title: string;
|
|
665
740
|
products: string;
|
|
@@ -1294,6 +1369,10 @@ export declare const i18nMessages: {
|
|
|
1294
1369
|
title: string;
|
|
1295
1370
|
description: string;
|
|
1296
1371
|
};
|
|
1372
|
+
netsuite: {
|
|
1373
|
+
title: string;
|
|
1374
|
+
description: string;
|
|
1375
|
+
};
|
|
1297
1376
|
apply: {
|
|
1298
1377
|
title: string;
|
|
1299
1378
|
products: string;
|
|
@@ -1308,7 +1387,181 @@ export declare const i18nMessages: {
|
|
|
1308
1387
|
};
|
|
1309
1388
|
};
|
|
1310
1389
|
export { routers } from './router/shared';
|
|
1311
|
-
export {
|
|
1312
|
-
export
|
|
1313
|
-
|
|
1390
|
+
export declare const FmApp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1391
|
+
export declare const InventoryBindingForm: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1392
|
+
id: {
|
|
1393
|
+
type: import("vue").PropType<string>;
|
|
1394
|
+
};
|
|
1395
|
+
rules: {
|
|
1396
|
+
type: import("vue").PropType<(import("@feedmepos/ui-library").ValidationResult | ((bindings: {
|
|
1397
|
+
measurement?: {
|
|
1398
|
+
id: string;
|
|
1399
|
+
name: string;
|
|
1400
|
+
abbrev: string;
|
|
1401
|
+
conversion: {
|
|
1402
|
+
amount: number;
|
|
1403
|
+
precision: number;
|
|
1404
|
+
};
|
|
1405
|
+
} | null | undefined;
|
|
1406
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1407
|
+
amount: {
|
|
1408
|
+
amount: number;
|
|
1409
|
+
precision: number;
|
|
1410
|
+
};
|
|
1411
|
+
id: string;
|
|
1412
|
+
}[]) => import("@feedmepos/ui-library").ValidationResult))[]>;
|
|
1413
|
+
};
|
|
1414
|
+
disabled: {
|
|
1415
|
+
type: import("vue").PropType<boolean>;
|
|
1416
|
+
};
|
|
1417
|
+
modelValue: {
|
|
1418
|
+
type: import("vue").PropType<{
|
|
1419
|
+
measurement?: {
|
|
1420
|
+
id: string;
|
|
1421
|
+
name: string;
|
|
1422
|
+
abbrev: string;
|
|
1423
|
+
conversion: {
|
|
1424
|
+
amount: number;
|
|
1425
|
+
precision: number;
|
|
1426
|
+
};
|
|
1427
|
+
} | null | undefined;
|
|
1428
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1429
|
+
amount: {
|
|
1430
|
+
amount: number;
|
|
1431
|
+
precision: number;
|
|
1432
|
+
};
|
|
1433
|
+
id: string;
|
|
1434
|
+
}[]>;
|
|
1435
|
+
default: () => never[];
|
|
1436
|
+
};
|
|
1437
|
+
iframeMode: {
|
|
1438
|
+
type: import("vue").PropType<boolean>;
|
|
1439
|
+
};
|
|
1440
|
+
excludeBindingId: {
|
|
1441
|
+
type: import("vue").PropType<string>;
|
|
1442
|
+
};
|
|
1443
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1444
|
+
"update:modelValue": (bindings: {
|
|
1445
|
+
measurement?: {
|
|
1446
|
+
id: string;
|
|
1447
|
+
name: string;
|
|
1448
|
+
abbrev: string;
|
|
1449
|
+
conversion: {
|
|
1450
|
+
amount: number;
|
|
1451
|
+
precision: number;
|
|
1452
|
+
};
|
|
1453
|
+
} | null | undefined;
|
|
1454
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1455
|
+
amount: {
|
|
1456
|
+
amount: number;
|
|
1457
|
+
precision: number;
|
|
1458
|
+
};
|
|
1459
|
+
id: string;
|
|
1460
|
+
}[]) => void;
|
|
1461
|
+
"click:pick-inventory-bindings": (type: "RECIPE" | "SKU" | "SKU_GROUP") => void;
|
|
1462
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1463
|
+
id: {
|
|
1464
|
+
type: import("vue").PropType<string>;
|
|
1465
|
+
};
|
|
1466
|
+
rules: {
|
|
1467
|
+
type: import("vue").PropType<(import("@feedmepos/ui-library").ValidationResult | ((bindings: {
|
|
1468
|
+
measurement?: {
|
|
1469
|
+
id: string;
|
|
1470
|
+
name: string;
|
|
1471
|
+
abbrev: string;
|
|
1472
|
+
conversion: {
|
|
1473
|
+
amount: number;
|
|
1474
|
+
precision: number;
|
|
1475
|
+
};
|
|
1476
|
+
} | null | undefined;
|
|
1477
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1478
|
+
amount: {
|
|
1479
|
+
amount: number;
|
|
1480
|
+
precision: number;
|
|
1481
|
+
};
|
|
1482
|
+
id: string;
|
|
1483
|
+
}[]) => import("@feedmepos/ui-library").ValidationResult))[]>;
|
|
1484
|
+
};
|
|
1485
|
+
disabled: {
|
|
1486
|
+
type: import("vue").PropType<boolean>;
|
|
1487
|
+
};
|
|
1488
|
+
modelValue: {
|
|
1489
|
+
type: import("vue").PropType<{
|
|
1490
|
+
measurement?: {
|
|
1491
|
+
id: string;
|
|
1492
|
+
name: string;
|
|
1493
|
+
abbrev: string;
|
|
1494
|
+
conversion: {
|
|
1495
|
+
amount: number;
|
|
1496
|
+
precision: number;
|
|
1497
|
+
};
|
|
1498
|
+
} | null | undefined;
|
|
1499
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1500
|
+
amount: {
|
|
1501
|
+
amount: number;
|
|
1502
|
+
precision: number;
|
|
1503
|
+
};
|
|
1504
|
+
id: string;
|
|
1505
|
+
}[]>;
|
|
1506
|
+
default: () => never[];
|
|
1507
|
+
};
|
|
1508
|
+
iframeMode: {
|
|
1509
|
+
type: import("vue").PropType<boolean>;
|
|
1510
|
+
};
|
|
1511
|
+
excludeBindingId: {
|
|
1512
|
+
type: import("vue").PropType<string>;
|
|
1513
|
+
};
|
|
1514
|
+
}>> & Readonly<{
|
|
1515
|
+
"onUpdate:modelValue"?: ((bindings: {
|
|
1516
|
+
measurement?: {
|
|
1517
|
+
id: string;
|
|
1518
|
+
name: string;
|
|
1519
|
+
abbrev: string;
|
|
1520
|
+
conversion: {
|
|
1521
|
+
amount: number;
|
|
1522
|
+
precision: number;
|
|
1523
|
+
};
|
|
1524
|
+
} | null | undefined;
|
|
1525
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1526
|
+
amount: {
|
|
1527
|
+
amount: number;
|
|
1528
|
+
precision: number;
|
|
1529
|
+
};
|
|
1530
|
+
id: string;
|
|
1531
|
+
}[]) => any) | undefined;
|
|
1532
|
+
"onClick:pick-inventory-bindings"?: ((type: "RECIPE" | "SKU" | "SKU_GROUP") => any) | undefined;
|
|
1533
|
+
}>, {
|
|
1534
|
+
modelValue: {
|
|
1535
|
+
measurement?: {
|
|
1536
|
+
id: string;
|
|
1537
|
+
name: string;
|
|
1538
|
+
abbrev: string;
|
|
1539
|
+
conversion: {
|
|
1540
|
+
amount: number;
|
|
1541
|
+
precision: number;
|
|
1542
|
+
};
|
|
1543
|
+
} | null | undefined;
|
|
1544
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1545
|
+
amount: {
|
|
1546
|
+
amount: number;
|
|
1547
|
+
precision: number;
|
|
1548
|
+
};
|
|
1549
|
+
id: string;
|
|
1550
|
+
}[];
|
|
1551
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1552
|
+
export declare const InventoryBindingSummary: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1553
|
+
rowData: {
|
|
1554
|
+
type: import("vue").PropType<import("./views/ingredients/components/inventory-binding/InventoryBindingSummary.vue").InventoryBindingSummaryRow[]>;
|
|
1555
|
+
required: true;
|
|
1556
|
+
};
|
|
1557
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1558
|
+
"row-click": (row: import("./views/ingredients/components/inventory-binding/InventoryBindingSummary.vue").InventoryBindingSummaryRow) => void;
|
|
1559
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1560
|
+
rowData: {
|
|
1561
|
+
type: import("vue").PropType<import("./views/ingredients/components/inventory-binding/InventoryBindingSummary.vue").InventoryBindingSummaryRow[]>;
|
|
1562
|
+
required: true;
|
|
1563
|
+
};
|
|
1564
|
+
}>> & Readonly<{
|
|
1565
|
+
"onRow-click"?: ((row: import("./views/ingredients/components/inventory-binding/InventoryBindingSummary.vue").InventoryBindingSummaryRow) => any) | undefined;
|
|
1566
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1314
1567
|
export { useInventoryStore } from './stores/inventory';
|
package/dist/app.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "vue";
|
|
2
|
+
import { N as a, O as e, P as o, M as t, Q as i, a as m } from "./app-GUbzqEtW.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
a as FmApp,
|
|
5
|
+
e as InventoryBindingForm,
|
|
6
|
+
o as InventoryBindingSummary,
|
|
7
|
+
t as i18nMessages,
|
|
8
|
+
i as routers,
|
|
9
|
+
m as useInventoryStore
|
|
9
10
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Array.prototype.computeFirst = function(e) {
|
|
2
|
+
const n = this.length;
|
|
3
|
+
for (let t = 0; t < n; t++) {
|
|
4
|
+
const i = this.at(t), s = e(i, t, this);
|
|
5
|
+
if (s != null)
|
|
6
|
+
return s;
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
Array.prototype.computeLast = function(e) {
|
|
10
|
+
const n = this.length - 1;
|
|
11
|
+
for (let t = n; t >= 0; t--) {
|
|
12
|
+
const i = this.at(t), s = e(i, t, this);
|
|
13
|
+
if (s != null)
|
|
14
|
+
return s;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
Array.prototype.insert = function(e, n) {
|
|
18
|
+
if (n < this.length) {
|
|
19
|
+
const t = this.splice(n, this.length);
|
|
20
|
+
return this[n] = e, t.forEach((i) => this.push(i)), this;
|
|
21
|
+
}
|
|
22
|
+
return this[n] = e, this;
|
|
23
|
+
};
|
|
24
|
+
Array.prototype.chunk = function* (e) {
|
|
25
|
+
let n = [...this];
|
|
26
|
+
for (; n.length; ) {
|
|
27
|
+
const t = n.slice(0, e);
|
|
28
|
+
n = n.slice(e), yield t;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
Array.prototype.groupBy = function(e, n) {
|
|
32
|
+
const t = /* @__PURE__ */ new Map(), i = this.length, s = typeof e == "function" ? e : (o) => o[e];
|
|
33
|
+
for (let o = 0; o < i; o++) {
|
|
34
|
+
const c = this.at(o), r = s(c), h = (n == null ? void 0 : n(c, o, this)) ?? c;
|
|
35
|
+
if (!t.has(r))
|
|
36
|
+
t.set(r, [h]);
|
|
37
|
+
else {
|
|
38
|
+
const l = t.get(r);
|
|
39
|
+
t.set(r, [...l, h]);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return t;
|
|
43
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ISelectItem } from '@feedmepos/ui-library';
|
|
2
|
+
import FuzzySearch from 'fuzzy-search';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
search: import("vue").PropType<string>;
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: import("vue").PropType<any>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
maxHeight: {
|
|
10
|
+
type: import("vue").PropType<number>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
width: {
|
|
14
|
+
type: import("vue").PropType<string>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
handleItemChange: {
|
|
18
|
+
type: import("vue").PropType<(isSelected: boolean, item: ISelectItem) => void>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
items: {
|
|
22
|
+
type: import("vue").PropType<ISelectItem[]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
options: {
|
|
26
|
+
type: import("vue").PropType<FuzzySearch.Options>;
|
|
27
|
+
};
|
|
28
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
search: import("vue").PropType<string>;
|
|
30
|
+
modelValue: {
|
|
31
|
+
type: import("vue").PropType<any>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
maxHeight: {
|
|
35
|
+
type: import("vue").PropType<number>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
width: {
|
|
39
|
+
type: import("vue").PropType<string>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
handleItemChange: {
|
|
43
|
+
type: import("vue").PropType<(isSelected: boolean, item: ISelectItem) => void>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
items: {
|
|
47
|
+
type: import("vue").PropType<ISelectItem[]>;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
options: {
|
|
51
|
+
type: import("vue").PropType<FuzzySearch.Options>;
|
|
52
|
+
};
|
|
53
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
|
+
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { FmMinMaxInputModel } from './FmMinMaxInputProps';
|
|
2
|
+
import type { FdoDecimal } from '@feedmepos/core/entity';
|
|
2
3
|
export declare function FmMinMaxRequired(): (model?: FmMinMaxInputModel) => true | "Required";
|
|
3
4
|
/** Both `min` and `max` are inclusive */
|
|
4
5
|
export declare function FmMinMaxBoundary(min: number, max: number): (model?: FmMinMaxInputModel) => string | true;
|
|
6
|
+
export declare function FmMinMaxMultipleOf(decimal: FdoDecimal): (model?: FmMinMaxInputModel) => string | true;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import type { FmMultiselectDialogProps } from './FmMultiselectDialogProps';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmMultiselectDialogProps>, {
|
|
3
|
-
placeholder: string;
|
|
4
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmMultiselectDialogProps>, {}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
3
|
"update:modelValue": (mv: any) => void;
|
|
6
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmMultiselectDialogProps>, {
|
|
7
|
-
placeholder: string;
|
|
8
|
-
}>>> & Readonly<{
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmMultiselectDialogProps>, {}>>> & Readonly<{
|
|
9
5
|
"onUpdate:modelValue"?: ((mv: any) => any) | undefined;
|
|
10
|
-
}>, {
|
|
11
|
-
placeholder: string;
|
|
12
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
7
|
export default _default;
|
|
14
8
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
9
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -12,8 +12,6 @@ export interface ISelectItemGroup {
|
|
|
12
12
|
}
|
|
13
13
|
export interface FmMultiselectDialogProps {
|
|
14
14
|
modelValue: any;
|
|
15
|
-
/** Called while model value is updated, allow update for `collapsed` property only */
|
|
16
|
-
modifyItems?: (modelValue: any[], items: ISelectItemSublabel[]) => ISelectItemSublabel[];
|
|
17
15
|
items: ISelectItemSublabel[];
|
|
18
16
|
groups?: ISelectItemGroup[];
|
|
19
17
|
singleSelect?: boolean;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { FmGroupModelValue } from './FmUnitInputProps';
|
|
2
2
|
import type { ValidationResult } from '@feedmepos/ui-library';
|
|
3
|
+
import type { FdoDecimal } from '@feedmepos/core/entity';
|
|
3
4
|
export declare function FmUnitInputAmountIsNumberRule(): (value: FmGroupModelValue) => true | "Must be a number";
|
|
4
5
|
export declare function FmUnitInputAmountAtLeastRule(minimum: number): (value: FmGroupModelValue) => string | true;
|
|
5
6
|
export declare function FmUnitInputAmountMoreThanRule(minimum: number): (value: FmGroupModelValue) => string | true;
|
|
6
7
|
export declare function FmUnitInputAmountAtMostRule(maximum: number): (value: FmGroupModelValue) => string | true;
|
|
7
8
|
export declare function FmUnitInputMaxPrecisionRule(unit: FdoInventoryUnit, applyAmountRule?: boolean): (value: any) => ValidationResult;
|
|
8
9
|
export declare function FmUnitInputMaxPrecisionRule(precision: number, applyAmountRule?: boolean): (value: any) => ValidationResult;
|
|
10
|
+
export declare function FmUnitInputAmountMultipleOf(decimal: FdoDecimal): (value: FmGroupModelValue) => ValidationResult;
|
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
14
14
|
precision: number;
|
|
15
15
|
};
|
|
16
16
|
} | null | undefined;
|
|
17
|
-
type: "RECIPE" | "SKU";
|
|
17
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
18
18
|
amount: {
|
|
19
19
|
amount: number;
|
|
20
20
|
precision: number;
|
|
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
36
36
|
precision: number;
|
|
37
37
|
};
|
|
38
38
|
} | null | undefined;
|
|
39
|
-
type: "RECIPE" | "SKU";
|
|
39
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
40
40
|
amount: {
|
|
41
41
|
amount: number;
|
|
42
42
|
precision: number;
|
|
@@ -58,7 +58,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
58
58
|
precision: number;
|
|
59
59
|
};
|
|
60
60
|
} | null | undefined;
|
|
61
|
-
type: "RECIPE" | "SKU";
|
|
61
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
62
62
|
amount: {
|
|
63
63
|
amount: number;
|
|
64
64
|
precision: number;
|
|
@@ -117,7 +117,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
117
117
|
precision: number;
|
|
118
118
|
};
|
|
119
119
|
} | null | undefined;
|
|
120
|
-
type: "RECIPE" | "SKU";
|
|
120
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
121
121
|
amount: {
|
|
122
122
|
amount: number;
|
|
123
123
|
precision: number;
|
|
@@ -137,7 +137,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
137
137
|
precision: number;
|
|
138
138
|
};
|
|
139
139
|
} | null | undefined;
|
|
140
|
-
type: "RECIPE" | "SKU";
|
|
140
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
141
141
|
amount: {
|
|
142
142
|
amount: number;
|
|
143
143
|
precision: number;
|
|
@@ -67,13 +67,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
67
67
|
"onPolygon-change"?: ((ev: PolygonChangeEvent) => any) | undefined;
|
|
68
68
|
"onPolygon-right-click"?: ((ev: number) => any) | undefined;
|
|
69
69
|
}>, {
|
|
70
|
-
markers: MapCoordinate[];
|
|
71
|
-
polygons: MapPolygon[];
|
|
72
|
-
zoom: number;
|
|
73
|
-
editable: boolean;
|
|
74
70
|
center: {
|
|
75
71
|
lat: number;
|
|
76
72
|
lng: number;
|
|
77
73
|
};
|
|
74
|
+
markers: MapCoordinate[];
|
|
75
|
+
polygons: MapPolygon[];
|
|
76
|
+
zoom: number;
|
|
77
|
+
editable: boolean;
|
|
78
78
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
79
79
|
export default _default;
|
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
22
22
|
precision: number;
|
|
23
23
|
};
|
|
24
24
|
} | null | undefined;
|
|
25
|
-
type: "RECIPE" | "SKU";
|
|
25
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
26
26
|
amount: {
|
|
27
27
|
amount: number;
|
|
28
28
|
precision: number;
|
|
@@ -59,7 +59,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
59
59
|
precision: number;
|
|
60
60
|
};
|
|
61
61
|
} | null | undefined;
|
|
62
|
-
type: "RECIPE" | "SKU";
|
|
62
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
63
63
|
amount: {
|
|
64
64
|
amount: number;
|
|
65
65
|
precision: number;
|
|
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
38
38
|
precision: number;
|
|
39
39
|
};
|
|
40
40
|
} | null | undefined;
|
|
41
|
-
type: "RECIPE" | "SKU";
|
|
41
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
42
42
|
amount: {
|
|
43
43
|
amount: number;
|
|
44
44
|
precision: number;
|
|
@@ -102,7 +102,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
102
102
|
precision: number;
|
|
103
103
|
};
|
|
104
104
|
} | null | undefined;
|
|
105
|
-
type: "RECIPE" | "SKU";
|
|
105
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
106
106
|
amount: {
|
|
107
107
|
amount: number;
|
|
108
108
|
precision: number;
|