@feedmepos/mf-inventory-portal 0.0.5
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/README.md +31 -0
- package/dist/App.vue.d.ts +2 -0
- package/dist/ApprovalView-CTQdDgGH.js +119 -0
- package/dist/BindingsDialog-DvX_DRsO.js +82 -0
- package/dist/BindingsPicker-CQIGhTCR.js +124 -0
- package/dist/BindingsTable-Da4BLkvc.js +122 -0
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DcixBOcX.js +97 -0
- package/dist/Entry.vue.d.ts +2 -0
- package/dist/FmMultiselectDialog.vue_vue_type_script_setup_true_lang-BXU7x6di.js +144 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-CD89qCIa.js +49 -0
- package/dist/IngredientsView-2ZKdzsgI.js +739 -0
- package/dist/IntegrationView-BRWYO3VE.js +1172 -0
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CnsDmPTe.js +240 -0
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DBK7mpQS.js +66 -0
- package/dist/PurchaseOrderPrintPreview-CH9gVYDg.js +152 -0
- package/dist/ReceiveRequestView-DQBqc3GF.js +1298 -0
- package/dist/RecipeView-DFG9Wkx-.js +594 -0
- package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js +53 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-DLWMp_I5.js +1733 -0
- package/dist/SupplierView-CZhM2ie3.js +607 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Ffe9bhq8.js +1027 -0
- package/dist/UnitView-C3XVSbJY.js +626 -0
- package/dist/WarehouseView-BntzAdz3.js +1139 -0
- package/dist/api/bill.d.ts +1364 -0
- package/dist/api/closing.d.ts +3 -0
- package/dist/api/error.d.ts +31 -0
- package/dist/api/food-market-hub.d.ts +38 -0
- package/dist/api/inventory.d.ts +176 -0
- package/dist/api/purchase-order.d.ts +13 -0
- package/dist/api/stock.d.ts +9 -0
- package/dist/api/supplier.d.ts +7 -0
- package/dist/api/type.d.ts +12 -0
- package/dist/api/warehouse.d.ts +7 -0
- package/dist/app-BzDhmCVx.js +36639 -0
- package/dist/app.d.ts +2 -0
- package/dist/app.js +5 -0
- package/dist/components/ChangeLocationComponent.vue.d.ts +2 -0
- package/dist/components/DeferableLoading.vue.d.ts +19 -0
- package/dist/components/DeferableLoadingProps.d.ts +4 -0
- package/dist/components/DeleteDialog.vue.d.ts +18 -0
- package/dist/components/FmCoordinateInput.vue.d.ts +24 -0
- package/dist/components/FmCoordinateInputProps.d.ts +23 -0
- package/dist/components/FmFilterableSelect.vue.d.ts +25 -0
- package/dist/components/FmFilterableSelectProps.d.ts +28 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +30 -0
- package/dist/components/FmMultiselectDialogProps.d.ts +16 -0
- package/dist/components/FmTableToolbar.vue.d.ts +49 -0
- package/dist/components/MultiSelectDialog.vue.d.ts +12 -0
- package/dist/components/MultiSelectDialogProps.d.ts +7 -0
- package/dist/components/NavigationTab.vue.d.ts +2 -0
- package/dist/components/NumberPrecisionInput.vue.d.ts +16 -0
- package/dist/components/NumberPrecisionInputProps.d.ts +12 -0
- package/dist/components/TableActionableRow.vue.d.ts +40 -0
- package/dist/components/UnitDisplayControl.vue.d.ts +12 -0
- package/dist/components/UnitDisplayControlProp.d.ts +7 -0
- package/dist/components/fm-components.type.d.ts +8 -0
- package/dist/components/form/form-mode.enum.d.ts +5 -0
- package/dist/components/icons/IconCommunity.vue.d.ts +2 -0
- package/dist/components/icons/IconDocumentation.vue.d.ts +2 -0
- package/dist/components/icons/IconEcosystem.vue.d.ts +2 -0
- package/dist/components/icons/IconSupport.vue.d.ts +2 -0
- package/dist/components/icons/IconTooling.vue.d.ts +2 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +145 -0
- package/dist/components/inventory-binding/InventoryBindingProps.d.ts +11 -0
- package/dist/components/map/CoordinateDialog.vue.d.ts +24 -0
- package/dist/components/map/GoogleMap.vue.d.ts +79 -0
- package/dist/components/map/coordinates.d.ts +6 -0
- package/dist/components/map/helper/coords-to-latlong.d.ts +8 -0
- package/dist/components/map/type.d.ts +27 -0
- package/dist/components/nested-multiselect/FmNestedMultiselectDialog.vue.d.ts +7 -0
- package/dist/components/nested-multiselect/FmNestedMultiselectDialogProps.d.ts +22 -0
- package/dist/components/nested-multiselect/helper/multiselect-utils.d.ts +2 -0
- package/dist/components/row-action.enum.d.ts +13 -0
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +84 -0
- package/dist/components/shell/inventory/binding-ui.test.d.ts +1 -0
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +110 -0
- package/dist/components/shell/inventory/utils.d.ts +5 -0
- package/dist/components/ui-library/FmDateRangePickerChip.vue.d.ts +36 -0
- package/dist/components/ui-library/FmSpecialChip.vue.d.ts +79 -0
- package/dist/composable/defineApi.d.ts +18 -0
- package/dist/composable/useBreakpoints.d.ts +7 -0
- package/dist/composable/useIframe.d.ts +37 -0
- package/dist/composable/useSearch.d.ts +5 -0
- package/dist/composable/useTabStorage.d.ts +2 -0
- package/dist/composable/useToast.d.ts +36 -0
- package/dist/core.d.ts +12 -0
- package/dist/cypress/component/FmFilterableSelect.cy.d.ts +1 -0
- package/dist/cypress/component/FmNestedMultiselectDialog.cy.d.ts +1 -0
- package/dist/cypress/component/UnitDisplayControl.cy.d.ts +1 -0
- package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +2 -0
- package/dist/cypress/e2e/views/MenuV3.spec.cy.d.ts +0 -0
- package/dist/cypress/e2e/views/MenuV4.spec.cy.d.ts +0 -0
- package/dist/cypress/e2e/views/Root.spec.cy.d.ts +0 -0
- package/dist/cypress/e2e/views/StockView.spec.cy.d.ts +0 -0
- package/dist/cypress/support/commands.d.ts +0 -0
- package/dist/cypress/support/component.d.ts +10 -0
- package/dist/cypress/support/e2e.d.ts +1 -0
- package/dist/date2-C7HiAWQG.js +209 -0
- package/dist/dayjs.min-Db57WhI9.js +282 -0
- package/dist/decimal-D3a0BwVj.js +98 -0
- package/dist/empty-placeholder-wf6-BWE8.js +4 -0
- package/dist/extensions/array.d.ts +15 -0
- package/dist/favicon.ico +0 -0
- package/dist/fuzzy-BW8ZYsDG.js +41 -0
- package/dist/helper/address.d.ts +2 -0
- package/dist/helper/component.d.ts +4 -0
- package/dist/helper/core/country/codes.d.ts +255 -0
- package/dist/helper/core/country/utils.d.ts +8 -0
- package/dist/helper/core/id-to-date.d.ts +1 -0
- package/dist/helper/core/store/type.d.ts +2 -0
- package/dist/helper/country.d.ts +260 -0
- package/dist/helper/date.spec.d.ts +1 -0
- package/dist/helper/date2.d.ts +20 -0
- package/dist/helper/decimal.d.ts +15 -0
- package/dist/helper/decimal.spec.d.ts +1 -0
- package/dist/helper/export.d.ts +12 -0
- package/dist/helper/form.d.ts +5 -0
- package/dist/helper/inventory.d.ts +1 -0
- package/dist/helper/iteration.d.ts +15 -0
- package/dist/helper/number.d.ts +27 -0
- package/dist/helper/number.spec.d.ts +1 -0
- package/dist/helper/object.d.ts +36 -0
- package/dist/helper/object.spec.d.ts +1 -0
- package/dist/helper/rules.d.ts +22 -0
- package/dist/helper/search.d.ts +21 -0
- package/dist/helper/semver.d.ts +20 -0
- package/dist/helper/semver.spec.d.ts +1 -0
- package/dist/helper/type.d.ts +8 -0
- package/dist/helper/url.d.ts +7 -0
- package/dist/helper/validate.d.ts +70 -0
- package/dist/helper/xlsx.util.d.ts +8 -0
- package/dist/helper/zod.d.ts +21 -0
- package/dist/id-to-date-ReZIpUDw.js +30 -0
- package/dist/index-D46it8Rk.js +12956 -0
- package/dist/init-date-range-M3Q03-Fd.js +21 -0
- package/dist/is-linked-ingredient-error-C6AghEwR.js +37 -0
- package/dist/layout/InventoryLayout.vue.d.ts +2 -0
- package/dist/layout/SingleColumnLayout.vue.d.ts +55 -0
- package/dist/layout/components/NavigationButton.vue.d.ts +22 -0
- package/dist/layout/layout-routes.d.ts +7 -0
- package/dist/layout/type.d.ts +17 -0
- package/dist/layout-BvUjg6JS.js +151 -0
- package/dist/locales/en/common.json +7 -0
- package/dist/main.d.ts +2 -0
- package/dist/router/index.d.ts +5 -0
- package/dist/router/name.d.ts +17 -0
- package/dist/router/shared.d.ts +11 -0
- package/dist/row-action.enum-BwQbURNh.js +28 -0
- package/dist/rules-DHfAMDW3.js +86 -0
- package/dist/stores/api.d.ts +10 -0
- package/dist/stores/env.d.ts +5 -0
- package/dist/stores/feature.d.ts +9 -0
- package/dist/stores/googlemap.d.ts +37 -0
- package/dist/stores/helper/generate-backend-urls.d.ts +8 -0
- package/dist/stores/inventory.d.ts +1983 -0
- package/dist/stores/layout.d.ts +5 -0
- package/dist/stores/location.d.ts +1898 -0
- package/dist/stores/route.d.ts +12 -0
- package/dist/stores/stock.d.ts +58 -0
- package/dist/stores/supplier.d.ts +30 -0
- package/dist/stores/warehouse.d.ts +88 -0
- package/dist/style.css +1 -0
- package/dist/supplier-DTiiOLtg.js +65 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -0
- package/dist/use-inventory-binding-dialog-B6JO7050.js +109 -0
- package/dist/views/InventoryView.vue.d.ts +2 -0
- package/dist/views/SelectBussinessDialog.vue.d.ts +2 -0
- package/dist/views/approval/ApprovalView.vue.d.ts +2 -0
- package/dist/views/dev/ComponentPreview.vue.d.ts +2 -0
- package/dist/views/dev/components/CoordinateTest.vue.d.ts +2 -0
- package/dist/views/dev/components/DateRange.vue.d.ts +2 -0
- package/dist/views/dev/components/FmSelectTest.vue.d.ts +2 -0
- package/dist/views/dev/components/InventoryIframe.vue.d.ts +2 -0
- package/dist/views/dev/components/LayoutDev.vue.d.ts +2 -0
- package/dist/views/dev/components/MfCommontTest.vue.d.ts +2 -0
- package/dist/views/dev/components/NestedSelection.vue.d.ts +2 -0
- package/dist/views/dev/components/NumberStepper.vue.d.ts +2 -0
- package/dist/views/dev/components/TabStorageTest.vue.d.ts +2 -0
- package/dist/views/dev/helpers/debug.d.ts +22 -0
- package/dist/views/dev/helpers/nested-options.d.ts +60 -0
- package/dist/views/dev/helpers/pinia-test.d.ts +9 -0
- package/dist/views/home/HomeView.vue.d.ts +2 -0
- package/dist/views/iframe/inventory-bindings/bindings-dialog/BindingsDialog.vue.d.ts +2 -0
- package/dist/views/iframe/inventory-bindings/bindings-picker/BindingsPicker.vue.d.ts +2 -0
- package/dist/views/iframe/inventory-bindings/bindings-table/BindingsTable.vue.d.ts +2 -0
- package/dist/views/ingredients/IngredientsView.vue.d.ts +2 -0
- package/dist/views/ingredients/components/cannot-delete/CannotDelete.vue.d.ts +30 -0
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +54 -0
- package/dist/views/ingredients/components/convert/ConvertFormProps.d.ts +8 -0
- package/dist/views/ingredients/components/ingredient-binded-item/IngredientBindedItem.vue.d.ts +12 -0
- package/dist/views/ingredients/components/ingredient-binded-item/IngredientBindedItemProps.d.ts +5 -0
- package/dist/views/ingredients/components/ingredient-dialog/IngredientDialog.vue.d.ts +31 -0
- package/dist/views/ingredients/components/ingredient-dialog/IngredientDialogProps.d.ts +9 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +104 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +10 -0
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +88 -0
- package/dist/views/ingredients/components/inventory-binding/composables/use-inventory-binding-dialog.d.ts +4 -0
- package/dist/views/ingredients/components/inventory-binding/util.d.ts +7 -0
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +8 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +46 -0
- package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +7 -0
- package/dist/views/integration/IntegrationView.vue.d.ts +2 -0
- package/dist/views/integration/components/ApplyAddon.vue.d.ts +379 -0
- package/dist/views/integration/components/ApplyProduct.vue.d.ts +303 -0
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +277 -0
- package/dist/views/integration/components/ApplyProductDialogProps.d.ts +17 -0
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +277 -0
- package/dist/views/integration/helper/menu.d.ts +36 -0
- package/dist/views/receive-request/ReceiveRequestView.vue.d.ts +2 -0
- package/dist/views/receive-request/components/supplier-price-history/SupplierPriceHistory.vue.d.ts +12 -0
- package/dist/views/receive-request/components/supplier-price-history/SupplierPriceHistoryProps.d.ts +11 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetails.vue.d.ts +18 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +12 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialog.vue.d.ts +22 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +11 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +450 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +10 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +369 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1202 -0
- package/dist/views/receive-request/constants/dialog-templates.d.ts +8 -0
- package/dist/views/receive-request/constants/purchase-order-transaction-type.d.ts +4 -0
- package/dist/views/receive-request/constants/purchase-row-actions.d.ts +2 -0
- package/dist/views/receive-request/helper/format-time-from-id.d.ts +2 -0
- package/dist/views/receive-request/helper/format-unit-display.d.ts +6 -0
- package/dist/views/receive-request/helper/get-received-amount.d.ts +2 -0
- package/dist/views/receive-request/helper/init-date-range.d.ts +8 -0
- package/dist/views/receive-request/helper/print-po.d.ts +2 -0
- package/dist/views/receive-request/helper/status-to-background.d.ts +2 -0
- package/dist/views/receive-request/print-preview/PurchaseOrderPrintPreview.vue.d.ts +47 -0
- package/dist/views/recipe/RecipeView.vue.d.ts +2 -0
- package/dist/views/recipe/components/recipe-dialog/RecipeDialog.vue.d.ts +31 -0
- package/dist/views/recipe/components/recipe-dialog/RecipeDialogProps.d.ts +9 -0
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +62 -0
- package/dist/views/recipe/components/recipe-form/RecipeFormProps.d.ts +10 -0
- package/dist/views/recipe/composables/use-recipe-form.d.ts +9 -0
- package/dist/views/recipe/composables/use-recipe-table.d.ts +11 -0
- package/dist/views/recipe/helper/export-recipe.d.ts +1 -0
- package/dist/views/stock/StockView.vue.d.ts +2 -0
- package/dist/views/stock/components/StockHistory.vue.d.ts +17 -0
- package/dist/views/stock/components/StockHistoryProps.d.ts +7 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +712 -0
- package/dist/views/stock/components/dialog/AdjustSkuDialog.vue.d.ts +22 -0
- package/dist/views/stock/components/dialog/AdjustSkuDialogProps.d.ts +8 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +164 -0
- package/dist/views/stock/components/dialog/AdjustedItemFormProps.d.ts +8 -0
- package/dist/views/stock/components/dialog/ConvertSkuDialog.vue.d.ts +22 -0
- package/dist/views/stock/components/dialog/ConvertSkuDialogProps.d.ts +9 -0
- package/dist/views/stock/components/dialog/constant/adjustment-type-options.d.ts +7 -0
- package/dist/views/stock/components/dialog/helper/adjust.d.ts +3 -0
- package/dist/views/stock/components/dialog/helper/form-adjust.d.ts +10 -0
- package/dist/views/stock/composables/use-stock-table.d.ts +12 -0
- package/dist/views/stock/helper/compute-summary-total-test.d.ts +1 -0
- package/dist/views/stock/helper/compute-summary-total.d.ts +1 -0
- package/dist/views/stock/helper/compute-summary-total.spec.d.ts +1 -0
- package/dist/views/stock/helper/format-date-from-id.d.ts +2 -0
- package/dist/views/stock/helper/on-click-export-excel.d.ts +9 -0
- package/dist/views/stock/helper/stock-row-action.d.ts +13 -0
- package/dist/views/stock/type.d.ts +9 -0
- package/dist/views/supplier/SupplierView.vue.d.ts +2 -0
- package/dist/views/supplier/components/SupplierDialog.vue.d.ts +22 -0
- package/dist/views/supplier/components/SupplierDialogProps.d.ts +10 -0
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +58 -0
- package/dist/views/supplier/components/SupplierFormProps.d.ts +8 -0
- package/dist/views/supplier/composables/use-supplier-table.d.ts +22 -0
- package/dist/views/unit/UnitView.vue.d.ts +2 -0
- package/dist/views/unit/components/unit-dialog/UnitDialog.vue.d.ts +31 -0
- package/dist/views/unit/components/unit-dialog/UnitDialogProps.d.ts +9 -0
- package/dist/views/unit/components/unit-form/UnitForm.vue.d.ts +50 -0
- package/dist/views/unit/components/unit-form/UnitFormProps.d.ts +10 -0
- package/dist/views/unit/components/unit-summary/UnitSummary.vue.d.ts +43 -0
- package/dist/views/unit/components/unit-used-by/UnitUsedBy.vue.d.ts +12 -0
- package/dist/views/unit/components/unit-used-by/UnitUsedByProps.d.ts +3 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +8 -0
- package/dist/views/unit/composables/use-unit-table.d.ts +19 -0
- package/dist/views/unit/type.d.ts +2 -0
- package/dist/views/warehouse/WarehouseView.vue.d.ts +2 -0
- package/dist/views/warehouse/components/WarehouseDialog.vue.d.ts +22 -0
- package/dist/views/warehouse/components/WarehouseDialogProps.d.ts +10 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +174 -0
- package/dist/views/warehouse/components/WarehouseFormProps.d.ts +8 -0
- package/dist/views/warehouse/composables/use-warehouse-table.d.ts +12 -0
- package/dist/xlsx-BljO4Lx2.js +15510 -0
- package/package.json +93 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { MarkerChangeEvent, PolygonChangeEvent, MapCoordinate, MapPolygon } from './type';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
markers: {
|
|
5
|
+
type: PropType<MapCoordinate[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
polygons: {
|
|
9
|
+
type: PropType<MapPolygon[]>;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
zoom: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
editable: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
center: {
|
|
21
|
+
type: PropType<{
|
|
22
|
+
lat: number;
|
|
23
|
+
lng: number;
|
|
24
|
+
}>;
|
|
25
|
+
default: {
|
|
26
|
+
lat: number;
|
|
27
|
+
lng: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
setCenter: (coordinate: MapCoordinate) => void;
|
|
32
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
|
+
"map-click": (ev: MapCoordinate) => void;
|
|
34
|
+
"marker-change": (ev: MarkerChangeEvent) => void;
|
|
35
|
+
"polygon-change": (ev: PolygonChangeEvent) => void;
|
|
36
|
+
"polygon-right-click": (ev: number) => void;
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
+
markers: {
|
|
39
|
+
type: PropType<MapCoordinate[]>;
|
|
40
|
+
default: () => never[];
|
|
41
|
+
};
|
|
42
|
+
polygons: {
|
|
43
|
+
type: PropType<MapPolygon[]>;
|
|
44
|
+
default: () => never[];
|
|
45
|
+
};
|
|
46
|
+
zoom: {
|
|
47
|
+
type: NumberConstructor;
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
50
|
+
editable: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
center: {
|
|
55
|
+
type: PropType<{
|
|
56
|
+
lat: number;
|
|
57
|
+
lng: number;
|
|
58
|
+
}>;
|
|
59
|
+
default: {
|
|
60
|
+
lat: number;
|
|
61
|
+
lng: number;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}>> & {
|
|
65
|
+
"onMap-click"?: ((ev: MapCoordinate) => any) | undefined;
|
|
66
|
+
"onMarker-change"?: ((ev: MarkerChangeEvent) => any) | undefined;
|
|
67
|
+
"onPolygon-change"?: ((ev: PolygonChangeEvent) => any) | undefined;
|
|
68
|
+
"onPolygon-right-click"?: ((ev: number) => any) | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
markers: MapCoordinate[];
|
|
71
|
+
polygons: MapPolygon[];
|
|
72
|
+
zoom: number;
|
|
73
|
+
editable: boolean;
|
|
74
|
+
center: {
|
|
75
|
+
lat: number;
|
|
76
|
+
lng: number;
|
|
77
|
+
};
|
|
78
|
+
}, {}>;
|
|
79
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CoordinateArray, MapCoordinate } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* for mongodb, geo coordinates are stored in this order: Longitude, Latitude
|
|
4
|
+
*
|
|
5
|
+
* reference: https://www.mongodb.com/docs/manual/reference/geojson
|
|
6
|
+
*/
|
|
7
|
+
export declare function coordinateArrayToObject([lng, lat]: CoordinateArray): MapCoordinate;
|
|
8
|
+
export declare function coordinateObjectToArray({ lng, lat }: MapCoordinate): CoordinateArray;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type Longitude = number;
|
|
2
|
+
type Latitude = number;
|
|
3
|
+
export type CoordinateArray = [Longitude, Latitude];
|
|
4
|
+
export interface MapCoordinate {
|
|
5
|
+
lat: number;
|
|
6
|
+
lng: number;
|
|
7
|
+
}
|
|
8
|
+
export interface MapPolygon {
|
|
9
|
+
paths: MapCoordinate[];
|
|
10
|
+
strokeColor?: string;
|
|
11
|
+
fillColor?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface MarkerChangeEvent {
|
|
14
|
+
index: number;
|
|
15
|
+
position: MapCoordinate;
|
|
16
|
+
}
|
|
17
|
+
export interface PolygonChangeEvent {
|
|
18
|
+
index: number;
|
|
19
|
+
path: MapCoordinate[];
|
|
20
|
+
}
|
|
21
|
+
export interface Address extends FdoAddress {
|
|
22
|
+
formatted: string;
|
|
23
|
+
isValidPostcode: boolean;
|
|
24
|
+
isValid: boolean;
|
|
25
|
+
isValidCoordinate: boolean;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MultiselectItem } from './FmNestedMultiselectDialogProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
modelValue: import("vue").PropType<MultiselectItem[]>;
|
|
4
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5
|
+
modelValue: import("vue").PropType<MultiselectItem[]>;
|
|
6
|
+
}>>, {}, {}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface MultiselectBase {
|
|
2
|
+
label: string;
|
|
3
|
+
sublabel?: string;
|
|
4
|
+
value: any;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
selectable?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** A parent must NOT have `active` prop */
|
|
9
|
+
export interface MultiselectParent extends MultiselectBase {
|
|
10
|
+
children: MultiselectItem[];
|
|
11
|
+
}
|
|
12
|
+
/** A child item must have `active` prop */
|
|
13
|
+
export interface MultiselectChild extends MultiselectBase {
|
|
14
|
+
active: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type MultiselectItem = MultiselectParent | MultiselectChild;
|
|
17
|
+
export interface FmNestedMultiselectDialogProps {
|
|
18
|
+
modelValue: MultiselectItem[];
|
|
19
|
+
}
|
|
20
|
+
export interface FmNestedMultiselectDialogEvents {
|
|
21
|
+
(event: 'update:model-value', mv: MultiselectItem[]): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type RowActionProps = {
|
|
2
|
+
label: string;
|
|
3
|
+
color: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare enum RowActionEnum {
|
|
7
|
+
Print = "Print",
|
|
8
|
+
Update = "Update",
|
|
9
|
+
Details = "Details",
|
|
10
|
+
Edit = "Edit",
|
|
11
|
+
Delete = "Delete"
|
|
12
|
+
}
|
|
13
|
+
export declare const DefaultRowActions: Record<RowActionEnum, RowActionProps>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
export interface DialogProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
initialValue: FdoInventoryBinding[];
|
|
5
|
+
context: string;
|
|
6
|
+
name: string;
|
|
7
|
+
onClose?: (data: FdoInventoryBinding[]) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("vue").DefineComponent<{
|
|
10
|
+
isOpen: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
initialValue: {
|
|
15
|
+
type: PropType<{
|
|
16
|
+
measurement?: {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
abbrev: string;
|
|
20
|
+
conversion: {
|
|
21
|
+
amount: number;
|
|
22
|
+
precision: number;
|
|
23
|
+
};
|
|
24
|
+
} | null | undefined;
|
|
25
|
+
type: "RECIPE" | "SKU";
|
|
26
|
+
amount: {
|
|
27
|
+
amount: number;
|
|
28
|
+
precision: number;
|
|
29
|
+
};
|
|
30
|
+
id: string;
|
|
31
|
+
}[]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
context: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
name: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
onClose: {
|
|
43
|
+
type: PropType<(data: FdoInventoryBinding[]) => void>;
|
|
44
|
+
required: false;
|
|
45
|
+
};
|
|
46
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
|
+
isOpen: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
initialValue: {
|
|
52
|
+
type: PropType<{
|
|
53
|
+
measurement?: {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
abbrev: string;
|
|
57
|
+
conversion: {
|
|
58
|
+
amount: number;
|
|
59
|
+
precision: number;
|
|
60
|
+
};
|
|
61
|
+
} | null | undefined;
|
|
62
|
+
type: "RECIPE" | "SKU";
|
|
63
|
+
amount: {
|
|
64
|
+
amount: number;
|
|
65
|
+
precision: number;
|
|
66
|
+
};
|
|
67
|
+
id: string;
|
|
68
|
+
}[]>;
|
|
69
|
+
required: true;
|
|
70
|
+
};
|
|
71
|
+
context: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
required: true;
|
|
74
|
+
};
|
|
75
|
+
name: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
required: true;
|
|
78
|
+
};
|
|
79
|
+
onClose: {
|
|
80
|
+
type: PropType<(data: FdoInventoryBinding[]) => void>;
|
|
81
|
+
required: false;
|
|
82
|
+
};
|
|
83
|
+
}>>, {}, {}>;
|
|
84
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { InventoryBinding } from './utils';
|
|
2
|
+
export interface BindingUIProps {
|
|
3
|
+
items?: InventoryBinding[];
|
|
4
|
+
recipes?: FdoInventoryRecipe[];
|
|
5
|
+
skus?: FdoInventorySku[];
|
|
6
|
+
type?: string;
|
|
7
|
+
editable?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BindingUIProps>, {
|
|
10
|
+
items: () => never[];
|
|
11
|
+
recipes: () => never[];
|
|
12
|
+
skus: () => never[];
|
|
13
|
+
type: string;
|
|
14
|
+
editable: boolean;
|
|
15
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
"click:open-binding-dialog": (key: string, binding: InventoryBinding) => void;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BindingUIProps>, {
|
|
18
|
+
items: () => never[];
|
|
19
|
+
recipes: () => never[];
|
|
20
|
+
skus: () => never[];
|
|
21
|
+
type: string;
|
|
22
|
+
editable: boolean;
|
|
23
|
+
}>>> & {
|
|
24
|
+
"onClick:open-binding-dialog"?: ((key: string, binding: InventoryBinding) => any) | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
type: string;
|
|
27
|
+
skus: {
|
|
28
|
+
trackingMeasurement?: string | null | undefined;
|
|
29
|
+
convert?: {
|
|
30
|
+
measurement?: string | null | undefined;
|
|
31
|
+
inventoryBindings?: {
|
|
32
|
+
measurement?: {
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
abbrev: string;
|
|
36
|
+
conversion: {
|
|
37
|
+
amount: number;
|
|
38
|
+
precision: number;
|
|
39
|
+
};
|
|
40
|
+
} | null | undefined;
|
|
41
|
+
type: "RECIPE" | "SKU";
|
|
42
|
+
amount: {
|
|
43
|
+
amount: number;
|
|
44
|
+
precision: number;
|
|
45
|
+
};
|
|
46
|
+
id: string;
|
|
47
|
+
}[] | null | undefined;
|
|
48
|
+
} | null | undefined;
|
|
49
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
50
|
+
unit: {
|
|
51
|
+
_id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
abbrev: string;
|
|
54
|
+
precision: number;
|
|
55
|
+
measurements: {
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
abbrev: string;
|
|
59
|
+
conversion: {
|
|
60
|
+
amount: number;
|
|
61
|
+
precision: number;
|
|
62
|
+
};
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
65
|
+
code: string;
|
|
66
|
+
_id: string;
|
|
67
|
+
name: string;
|
|
68
|
+
}[];
|
|
69
|
+
items: InventoryBinding[];
|
|
70
|
+
editable: boolean;
|
|
71
|
+
recipes: {
|
|
72
|
+
_id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
contains: {
|
|
75
|
+
measurement?: {
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
abbrev: string;
|
|
79
|
+
conversion: {
|
|
80
|
+
amount: number;
|
|
81
|
+
precision: number;
|
|
82
|
+
};
|
|
83
|
+
} | null | undefined;
|
|
84
|
+
type: "RECIPE" | "SKU";
|
|
85
|
+
amount: {
|
|
86
|
+
amount: number;
|
|
87
|
+
precision: number;
|
|
88
|
+
};
|
|
89
|
+
id: string;
|
|
90
|
+
}[];
|
|
91
|
+
}[];
|
|
92
|
+
}, {}>;
|
|
93
|
+
export default _default;
|
|
94
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
95
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
96
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
97
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
98
|
+
} : {
|
|
99
|
+
type: import('vue').PropType<T[K]>;
|
|
100
|
+
required: true;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
type __VLS_WithDefaults<P, D> = {
|
|
104
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
105
|
+
default: D[K];
|
|
106
|
+
}> : P[K];
|
|
107
|
+
};
|
|
108
|
+
type __VLS_Prettify<T> = {
|
|
109
|
+
[K in keyof T]: T[K];
|
|
110
|
+
} & {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
interface DateRange {
|
|
2
|
+
startDate: string;
|
|
3
|
+
endDate: string;
|
|
4
|
+
}
|
|
5
|
+
export interface FmDateRangePickerChipProps {
|
|
6
|
+
modelValue?: DateRange;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmDateRangePickerChipProps>, {
|
|
9
|
+
modelValue: (p: any) => any;
|
|
10
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmDateRangePickerChipProps>, {
|
|
13
|
+
modelValue: (p: any) => any;
|
|
14
|
+
}>>> & {
|
|
15
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
modelValue: DateRange;
|
|
18
|
+
}, {}>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
22
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
23
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
24
|
+
} : {
|
|
25
|
+
type: import('vue').PropType<T[K]>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
type __VLS_WithDefaults<P, D> = {
|
|
30
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
31
|
+
default: D[K];
|
|
32
|
+
}> : P[K];
|
|
33
|
+
};
|
|
34
|
+
type __VLS_Prettify<T> = {
|
|
35
|
+
[K in keyof T]: T[K];
|
|
36
|
+
} & {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export type FmChipVariant = 'plain' | 'neutral' | 'info' | 'success' | 'warning' | 'critical';
|
|
2
|
+
export interface FmChipProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
textColorClass?: string;
|
|
5
|
+
prependIcon?: string;
|
|
6
|
+
appendIcon?: string;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
selectable?: boolean;
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Note: once a variant is chosen, the behaviour with `selected` or `disabled`
|
|
13
|
+
* is not covered by this props
|
|
14
|
+
*/
|
|
15
|
+
variant?: FmChipVariant;
|
|
16
|
+
maxWidth?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmChipProps>, {
|
|
19
|
+
label: string;
|
|
20
|
+
prependIcon: string;
|
|
21
|
+
appendIcon: string;
|
|
22
|
+
selected: boolean;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
selectable: boolean;
|
|
25
|
+
compact: boolean;
|
|
26
|
+
variant: string;
|
|
27
|
+
maxWidth: string;
|
|
28
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
+
"chip-closed": () => void;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmChipProps>, {
|
|
31
|
+
label: string;
|
|
32
|
+
prependIcon: string;
|
|
33
|
+
appendIcon: string;
|
|
34
|
+
selected: boolean;
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
selectable: boolean;
|
|
37
|
+
compact: boolean;
|
|
38
|
+
variant: string;
|
|
39
|
+
maxWidth: string;
|
|
40
|
+
}>>> & {
|
|
41
|
+
"onChip-closed"?: (() => any) | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
variant: FmChipVariant;
|
|
44
|
+
label: string;
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
prependIcon: string;
|
|
47
|
+
appendIcon: string;
|
|
48
|
+
maxWidth: string;
|
|
49
|
+
selectable: boolean;
|
|
50
|
+
compact: boolean;
|
|
51
|
+
selected: boolean;
|
|
52
|
+
}, {}>, {
|
|
53
|
+
default?(_: {}): any;
|
|
54
|
+
label?(_: {}): any;
|
|
55
|
+
"close-action"?(_: {}): any;
|
|
56
|
+
}>;
|
|
57
|
+
export default _default;
|
|
58
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
59
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
60
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
61
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
62
|
+
} : {
|
|
63
|
+
type: import('vue').PropType<T[K]>;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
type __VLS_WithDefaults<P, D> = {
|
|
68
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
69
|
+
default: D[K];
|
|
70
|
+
}> : P[K];
|
|
71
|
+
};
|
|
72
|
+
type __VLS_Prettify<T> = {
|
|
73
|
+
[K in keyof T]: T[K];
|
|
74
|
+
} & {};
|
|
75
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
76
|
+
new (): {
|
|
77
|
+
$slots: S;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useApiStore } from '@/stores/api';
|
|
2
|
+
export interface HttpClient {
|
|
3
|
+
withBaseUrl(url: string): Omit<HttpClient, 'withBaseUrl'>;
|
|
4
|
+
get<ResponseBody = any>(url: string): Promise<ResponseBody>;
|
|
5
|
+
post<ResponseBody = any>(url: string, body?: any): Promise<ResponseBody>;
|
|
6
|
+
put<ResponseBody = any>(url: string, body?: any): Promise<ResponseBody>;
|
|
7
|
+
patch<ResponseBody = any>(url: string, body?: any): Promise<ResponseBody>;
|
|
8
|
+
delete<ResponseBody = any>(url: string, body?: any): Promise<ResponseBody>;
|
|
9
|
+
errorHandler: (error: any) => Promise<void>;
|
|
10
|
+
onError: (handler: (error: any) => Promise<void>) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const HTTP_TIMEOUT = 30000;
|
|
13
|
+
/**
|
|
14
|
+
* Deprecates all Axios usage using built-in fetch method.
|
|
15
|
+
* Provides retry capability with 401.
|
|
16
|
+
* with JSON serialization
|
|
17
|
+
*/
|
|
18
|
+
export declare function defineApi<Fn>(factory: (urls: ReturnType<typeof useApiStore>['backendUrls'], client: HttpClient) => Fn): () => Fn;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { CountryCode } from '@/helper/core/country/codes';
|
|
2
|
+
import type { FmpBusiness } from 'node_modules/@feedmepos/mf-common/dist/store';
|
|
3
|
+
export interface IframeMessage {
|
|
4
|
+
event: string;
|
|
5
|
+
data?: any;
|
|
6
|
+
}
|
|
7
|
+
export declare function debugIframe(onMessage: (data: IframeMessage) => void): {
|
|
8
|
+
sendMessage: (message: IframeMessage) => undefined;
|
|
9
|
+
};
|
|
10
|
+
export interface IframeMessagingClientOnMessage {
|
|
11
|
+
(event: string, handler: (data: any) => void): {
|
|
12
|
+
removeEventListener: () => void;
|
|
13
|
+
onMessage: IframeMessagingClientOnMessage;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface IframeMessagingClient {
|
|
17
|
+
prepareMessage(event: string, data?: any): {
|
|
18
|
+
sendAndExpectEvent<T = any>(event: string): Promise<T>;
|
|
19
|
+
};
|
|
20
|
+
sendMessage(event: string, data?: any): void;
|
|
21
|
+
onMessage(event: string, handler: (data: any) => void): {
|
|
22
|
+
removeEventListener: () => void;
|
|
23
|
+
onMessage: IframeMessagingClientOnMessage;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export declare function initIframeMode({ businesses, user, token, country }: {
|
|
27
|
+
businesses: FmpBusiness[];
|
|
28
|
+
user: FeedMeUser;
|
|
29
|
+
token: string;
|
|
30
|
+
country?: CountryCode;
|
|
31
|
+
}): void;
|
|
32
|
+
export declare const iframeMode: import("vue").Ref<boolean>;
|
|
33
|
+
export declare function useIframeMode(): {
|
|
34
|
+
readonly isIframeMode: boolean;
|
|
35
|
+
};
|
|
36
|
+
/** NOTE: Calling this function will assign iframeMode.value to true */
|
|
37
|
+
export declare function useIframe(onIframeReady: () => any): IframeMessagingClient;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
interface ToastStore {
|
|
2
|
+
toasts: ToastInfo[];
|
|
3
|
+
}
|
|
4
|
+
export type SnackbarVariant = 'info' | 'success' | 'warning' | 'error' | 'neutral';
|
|
5
|
+
export interface ToastInfo {
|
|
6
|
+
id: string;
|
|
7
|
+
message: string;
|
|
8
|
+
type: SnackbarVariant;
|
|
9
|
+
mountStage: 'opacity-0' | 'opacity-full';
|
|
10
|
+
toastHeight: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const useToastStore: import("pinia").StoreDefinition<"toast", ToastStore, {}, {
|
|
13
|
+
addToast(toastInfo: ToastInfo, showDuration?: number): void;
|
|
14
|
+
remove(toastInfo: ToastInfo): void;
|
|
15
|
+
updateToastHeight(toastInfo: ToastInfo): void;
|
|
16
|
+
animateShowToast(toastInfo: ToastInfo): void;
|
|
17
|
+
animateHideToast(toastInfo: ToastInfo): void;
|
|
18
|
+
}>;
|
|
19
|
+
export declare function useToast(): {
|
|
20
|
+
info: (message: string) => {
|
|
21
|
+
remove: () => void;
|
|
22
|
+
};
|
|
23
|
+
success: (message: string) => {
|
|
24
|
+
remove: () => void;
|
|
25
|
+
};
|
|
26
|
+
warning: (message: string) => {
|
|
27
|
+
remove: () => void;
|
|
28
|
+
};
|
|
29
|
+
error: (message: string) => {
|
|
30
|
+
remove: () => void;
|
|
31
|
+
};
|
|
32
|
+
neutral: (message: string) => {
|
|
33
|
+
remove: () => void;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export {};
|
package/dist/core.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Since `dartTojs` is using CommonJS `exports`, we just import the js file
|
|
3
|
+
* and we include type definition file manually
|
|
4
|
+
*
|
|
5
|
+
* Reference: https://stackoverflow.com/a/62806068
|
|
6
|
+
*/
|
|
7
|
+
import '@feedmepos/inventory-core';
|
|
8
|
+
import type { InvalidSkuAndRecipeParam } from '@feedmepos/inventory-core';
|
|
9
|
+
export declare function getInvalidSkuAndRecipe(param: InvalidSkuAndRecipeParam): {
|
|
10
|
+
skus: string[];
|
|
11
|
+
recipes: string[];
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './commands';
|