@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,22 @@
|
|
|
1
|
+
import type { AdjustSkuDialogProps } from './AdjustSkuDialogProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<AdjustSkuDialogProps>, {
|
|
3
|
+
validateInputs: () => void;
|
|
4
|
+
resetInputsValidation: () => void;
|
|
5
|
+
resetInputs: () => void;
|
|
6
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:show": (show: boolean) => void;
|
|
8
|
+
submitted: () => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AdjustSkuDialogProps>>> & {
|
|
10
|
+
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
11
|
+
onSubmitted?: (() => any) | undefined;
|
|
12
|
+
}, {}, {}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import type { AdjustedItemFormProps } from './AdjustedItemFormProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<AdjustedItemFormProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
"update:modelValue": (mv: {
|
|
4
|
+
remark?: string | null | undefined;
|
|
5
|
+
measurement?: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
abbrev: string;
|
|
9
|
+
conversion: {
|
|
10
|
+
amount: number;
|
|
11
|
+
precision: number;
|
|
12
|
+
};
|
|
13
|
+
} | null | undefined;
|
|
14
|
+
costs?: {
|
|
15
|
+
adjustmentId?: string | null | undefined;
|
|
16
|
+
amount: {
|
|
17
|
+
amount: number;
|
|
18
|
+
precision: number;
|
|
19
|
+
};
|
|
20
|
+
cost: {
|
|
21
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
22
|
+
amount: number;
|
|
23
|
+
precision: number;
|
|
24
|
+
};
|
|
25
|
+
}[] | null | undefined;
|
|
26
|
+
deltaKey?: string | null | undefined;
|
|
27
|
+
parentKey?: string | null | undefined;
|
|
28
|
+
type: "RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING";
|
|
29
|
+
amount: {
|
|
30
|
+
amount: number;
|
|
31
|
+
precision: number;
|
|
32
|
+
};
|
|
33
|
+
id: string;
|
|
34
|
+
doc: {
|
|
35
|
+
trackingMeasurement?: string | null | undefined;
|
|
36
|
+
convert?: {
|
|
37
|
+
measurement?: string | null | undefined;
|
|
38
|
+
inventoryBindings?: {
|
|
39
|
+
measurement?: {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
abbrev: string;
|
|
43
|
+
conversion: {
|
|
44
|
+
amount: number;
|
|
45
|
+
precision: number;
|
|
46
|
+
};
|
|
47
|
+
} | null | undefined;
|
|
48
|
+
type: "RECIPE" | "SKU";
|
|
49
|
+
amount: {
|
|
50
|
+
amount: number;
|
|
51
|
+
precision: number;
|
|
52
|
+
};
|
|
53
|
+
id: string;
|
|
54
|
+
}[] | null | undefined;
|
|
55
|
+
} | null | undefined;
|
|
56
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
57
|
+
unit: {
|
|
58
|
+
_id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
abbrev: string;
|
|
61
|
+
precision: number;
|
|
62
|
+
measurements: {
|
|
63
|
+
id: string;
|
|
64
|
+
name: string;
|
|
65
|
+
abbrev: string;
|
|
66
|
+
conversion: {
|
|
67
|
+
amount: number;
|
|
68
|
+
precision: number;
|
|
69
|
+
};
|
|
70
|
+
}[];
|
|
71
|
+
};
|
|
72
|
+
code: string;
|
|
73
|
+
_id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
};
|
|
76
|
+
}) => void;
|
|
77
|
+
"click:delete": () => void;
|
|
78
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AdjustedItemFormProps>>> & {
|
|
79
|
+
"onUpdate:modelValue"?: ((mv: {
|
|
80
|
+
remark?: string | null | undefined;
|
|
81
|
+
measurement?: {
|
|
82
|
+
id: string;
|
|
83
|
+
name: string;
|
|
84
|
+
abbrev: string;
|
|
85
|
+
conversion: {
|
|
86
|
+
amount: number;
|
|
87
|
+
precision: number;
|
|
88
|
+
};
|
|
89
|
+
} | null | undefined;
|
|
90
|
+
costs?: {
|
|
91
|
+
adjustmentId?: string | null | undefined;
|
|
92
|
+
amount: {
|
|
93
|
+
amount: number;
|
|
94
|
+
precision: number;
|
|
95
|
+
};
|
|
96
|
+
cost: {
|
|
97
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
98
|
+
amount: number;
|
|
99
|
+
precision: number;
|
|
100
|
+
};
|
|
101
|
+
}[] | null | undefined;
|
|
102
|
+
deltaKey?: string | null | undefined;
|
|
103
|
+
parentKey?: string | null | undefined;
|
|
104
|
+
type: "RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING";
|
|
105
|
+
amount: {
|
|
106
|
+
amount: number;
|
|
107
|
+
precision: number;
|
|
108
|
+
};
|
|
109
|
+
id: string;
|
|
110
|
+
doc: {
|
|
111
|
+
trackingMeasurement?: string | null | undefined;
|
|
112
|
+
convert?: {
|
|
113
|
+
measurement?: string | null | undefined;
|
|
114
|
+
inventoryBindings?: {
|
|
115
|
+
measurement?: {
|
|
116
|
+
id: string;
|
|
117
|
+
name: string;
|
|
118
|
+
abbrev: string;
|
|
119
|
+
conversion: {
|
|
120
|
+
amount: number;
|
|
121
|
+
precision: number;
|
|
122
|
+
};
|
|
123
|
+
} | null | undefined;
|
|
124
|
+
type: "RECIPE" | "SKU";
|
|
125
|
+
amount: {
|
|
126
|
+
amount: number;
|
|
127
|
+
precision: number;
|
|
128
|
+
};
|
|
129
|
+
id: string;
|
|
130
|
+
}[] | null | undefined;
|
|
131
|
+
} | null | undefined;
|
|
132
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
133
|
+
unit: {
|
|
134
|
+
_id: string;
|
|
135
|
+
name: string;
|
|
136
|
+
abbrev: string;
|
|
137
|
+
precision: number;
|
|
138
|
+
measurements: {
|
|
139
|
+
id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
abbrev: string;
|
|
142
|
+
conversion: {
|
|
143
|
+
amount: number;
|
|
144
|
+
precision: number;
|
|
145
|
+
};
|
|
146
|
+
}[];
|
|
147
|
+
};
|
|
148
|
+
code: string;
|
|
149
|
+
_id: string;
|
|
150
|
+
name: string;
|
|
151
|
+
};
|
|
152
|
+
}) => any) | undefined;
|
|
153
|
+
"onClick:delete"?: (() => any) | undefined;
|
|
154
|
+
}, {}, {}>;
|
|
155
|
+
export default _default;
|
|
156
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
157
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
158
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
159
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
160
|
+
} : {
|
|
161
|
+
type: import('vue').PropType<T[K]>;
|
|
162
|
+
required: true;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ConvertSkuDialogProps } from './ConvertSkuDialogProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ConvertSkuDialogProps>, {
|
|
3
|
+
validateInputs: () => void;
|
|
4
|
+
resetInputsValidation: () => void;
|
|
5
|
+
resetInputs: () => void;
|
|
6
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:show": (show: boolean) => void;
|
|
8
|
+
submitted: () => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ConvertSkuDialogProps>>> & {
|
|
10
|
+
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
11
|
+
onSubmitted?: (() => any) | undefined;
|
|
12
|
+
}, {}, {}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AdjustmentAmount } from '@/helper/number';
|
|
2
|
+
export declare function fromAdjustmentAmount(amount: AdjustmentAmount): number;
|
|
3
|
+
export declare function toAdjustmentAmount(type: string, amount: any, precision: number): {
|
|
4
|
+
amount: number;
|
|
5
|
+
precision: number;
|
|
6
|
+
};
|
|
7
|
+
export declare function changeAdjustmentType(type: string | null, adj: AdjustmentAmount): {
|
|
8
|
+
amount: number;
|
|
9
|
+
precision: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ColumnDef } from '@tanstack/vue-table';
|
|
2
|
+
import type { SkuStockList } from '../type';
|
|
3
|
+
import type { ConvertSkuDialogProps } from '../components/dialog/ConvertSkuDialogProps';
|
|
4
|
+
import type { AdjustSkuDialogProps } from '../components/dialog/AdjustSkuDialogProps';
|
|
5
|
+
import type { StockHistoryProps } from '../components/StockHistoryProps';
|
|
6
|
+
export declare function useStockTable(fetchStockBalance: () => void): {
|
|
7
|
+
columnDefs: ColumnDef<SkuStockList>[];
|
|
8
|
+
stockHistoryProps: import("vue").Ref<StockHistoryProps | undefined>;
|
|
9
|
+
convertSkuDialogProps: import("vue").Ref<ConvertSkuDialogProps | undefined>;
|
|
10
|
+
adjustSkuDialogProps: import("vue").Ref<AdjustSkuDialogProps | undefined>;
|
|
11
|
+
showSkuHistory: (sku: FdoInventorySku) => Promise<void>;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function computeSummaryTotal(history: FdoInventoryAdjustment[], sku?: FdoInventorySku): Record<"RECEIVE" | "REQUEST" | "SALES" | "RETURN" | "LOSE" | "THEFT" | "DAMAGE" | "EXTRA" | "PURCHASE" | "CONVERT" | "CLOSING", string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SkuStockList } from '../type';
|
|
2
|
+
export declare function onClickExportExcel(skuStockList: SkuStockList[]): Promise<void>;
|
|
3
|
+
export declare function getSavedDisplayUnit(sku: FdoInventorySku, unit: FdoInventoryUnit): {
|
|
4
|
+
type: string;
|
|
5
|
+
measurement: string;
|
|
6
|
+
} | {
|
|
7
|
+
type: string;
|
|
8
|
+
measurement?: undefined;
|
|
9
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum StockRowAction {
|
|
2
|
+
History = "History",
|
|
3
|
+
Convert = "Convert",
|
|
4
|
+
Adjust = "Adjust"
|
|
5
|
+
}
|
|
6
|
+
export declare const RestaurantStockRowAction: {
|
|
7
|
+
label: StockRowAction;
|
|
8
|
+
color: string;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const WarehouseStockRowAction: {
|
|
11
|
+
label: StockRowAction;
|
|
12
|
+
color: string;
|
|
13
|
+
}[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface SkuStockList extends FdoInventorySku {
|
|
2
|
+
balance: FdoSkuBalance['balance'];
|
|
3
|
+
trackingUnitAbbrev: string;
|
|
4
|
+
}
|
|
5
|
+
export interface StockAdjustmentHistory {
|
|
6
|
+
date: string;
|
|
7
|
+
adjustments: FdoInventoryAdjustment[];
|
|
8
|
+
adjustmentsByTime: Array<Omit<StockAdjustmentHistory, 'adjustmentsByTime'>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { SupplierDialogProps } from './SupplierDialogProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<SupplierDialogProps>, {
|
|
3
|
+
validateInputs: () => void;
|
|
4
|
+
resetInputsValidation: () => void;
|
|
5
|
+
resetInputs: () => void;
|
|
6
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:show": (show: boolean) => void;
|
|
8
|
+
submitted: () => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SupplierDialogProps>>> & {
|
|
10
|
+
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
11
|
+
onSubmitted?: (() => any) | undefined;
|
|
12
|
+
}, {}, {}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FormMode } from '@/components/form/form-mode.enum';
|
|
2
|
+
export interface SupplierDialogProps {
|
|
3
|
+
mode?: FormMode;
|
|
4
|
+
supplier?: FdoSupplier;
|
|
5
|
+
show?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface SupplierDialogEvents {
|
|
8
|
+
(event: 'update:show', show: boolean): void;
|
|
9
|
+
(event: 'submitted'): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { SupplierFormProps } from './SupplierFormProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<SupplierFormProps>, {
|
|
3
|
+
validateInputs: () => void;
|
|
4
|
+
resetInputsValidation: () => void;
|
|
5
|
+
resetInputs: () => void;
|
|
6
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (mv: {
|
|
8
|
+
_rev?: string | null | undefined;
|
|
9
|
+
email?: string | null | undefined;
|
|
10
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
11
|
+
contactName?: string | null | undefined;
|
|
12
|
+
phoneNumber?: string | null | undefined;
|
|
13
|
+
supplyItems?: {}[] | null | undefined;
|
|
14
|
+
_id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
registrationNumber: string;
|
|
17
|
+
address: {
|
|
18
|
+
line2?: string | null | undefined;
|
|
19
|
+
line1: string;
|
|
20
|
+
state: string;
|
|
21
|
+
city: string;
|
|
22
|
+
postcode: string;
|
|
23
|
+
country: string;
|
|
24
|
+
};
|
|
25
|
+
}) => void;
|
|
26
|
+
"validation-success": () => void;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SupplierFormProps>>> & {
|
|
28
|
+
"onUpdate:modelValue"?: ((mv: {
|
|
29
|
+
_rev?: string | null | undefined;
|
|
30
|
+
email?: string | null | undefined;
|
|
31
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
32
|
+
contactName?: string | null | undefined;
|
|
33
|
+
phoneNumber?: string | null | undefined;
|
|
34
|
+
supplyItems?: {}[] | null | undefined;
|
|
35
|
+
_id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
registrationNumber: string;
|
|
38
|
+
address: {
|
|
39
|
+
line2?: string | null | undefined;
|
|
40
|
+
line1: string;
|
|
41
|
+
state: string;
|
|
42
|
+
city: string;
|
|
43
|
+
postcode: string;
|
|
44
|
+
country: string;
|
|
45
|
+
};
|
|
46
|
+
}) => any) | undefined;
|
|
47
|
+
"onValidation-success"?: (() => any) | undefined;
|
|
48
|
+
}, {}, {}>;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
51
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
52
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
53
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
54
|
+
} : {
|
|
55
|
+
type: import('vue').PropType<T[K]>;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ColumnDef } from '@tanstack/vue-table';
|
|
2
|
+
export declare function useSupplierTable(promptUpdateSupplier: (supplier: FdoSupplier) => unknown, promptDeleteSupplier: (supplier: FdoSupplier) => unknown): {
|
|
3
|
+
columnDefs: ColumnDef<{
|
|
4
|
+
_rev?: string | null | undefined;
|
|
5
|
+
email?: string | null | undefined;
|
|
6
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
7
|
+
contactName?: string | null | undefined;
|
|
8
|
+
phoneNumber?: string | null | undefined;
|
|
9
|
+
supplyItems?: {}[] | null | undefined;
|
|
10
|
+
_id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
registrationNumber: string;
|
|
13
|
+
address: {
|
|
14
|
+
line2?: string | null | undefined;
|
|
15
|
+
line1: string;
|
|
16
|
+
state: string;
|
|
17
|
+
city: string;
|
|
18
|
+
postcode: string;
|
|
19
|
+
country: string;
|
|
20
|
+
};
|
|
21
|
+
}>[];
|
|
22
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { UnitDialogProps } from './UnitDialogProps';
|
|
2
|
+
import { FormMode } from '@/components/form/form-mode.enum';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<UnitDialogProps>, {
|
|
4
|
+
mode: FormMode;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:show": (show: boolean) => void;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<UnitDialogProps>, {
|
|
8
|
+
mode: FormMode;
|
|
9
|
+
}>>> & {
|
|
10
|
+
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
mode: FormMode;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
+
} : {
|
|
20
|
+
type: import('vue').PropType<T[K]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
type __VLS_WithDefaults<P, D> = {
|
|
25
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
26
|
+
default: D[K];
|
|
27
|
+
}> : P[K];
|
|
28
|
+
};
|
|
29
|
+
type __VLS_Prettify<T> = {
|
|
30
|
+
[K in keyof T]: T[K];
|
|
31
|
+
} & {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FormMode } from '@/components/form/form-mode.enum';
|
|
2
|
+
export interface UnitDialogProps {
|
|
3
|
+
show?: boolean;
|
|
4
|
+
unit?: FdoInventoryUnit | null;
|
|
5
|
+
mode?: FormMode;
|
|
6
|
+
}
|
|
7
|
+
export interface UnitDialogEvents {
|
|
8
|
+
(event: 'update:show', show: boolean): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { UnitFormProps } from './UnitFormProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<UnitFormProps>, {
|
|
3
|
+
validateInputs: () => void;
|
|
4
|
+
resetInputsValidation: () => void;
|
|
5
|
+
resetInputs: () => void;
|
|
6
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (mv: {
|
|
8
|
+
_id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
abbrev: string;
|
|
11
|
+
precision: number;
|
|
12
|
+
measurements: {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
abbrev: string;
|
|
16
|
+
conversion: {
|
|
17
|
+
amount: number;
|
|
18
|
+
precision: number;
|
|
19
|
+
};
|
|
20
|
+
}[];
|
|
21
|
+
}) => void;
|
|
22
|
+
"click:submit": () => void;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<UnitFormProps>>> & {
|
|
24
|
+
"onUpdate:modelValue"?: ((mv: {
|
|
25
|
+
_id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
abbrev: string;
|
|
28
|
+
precision: number;
|
|
29
|
+
measurements: {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
abbrev: string;
|
|
33
|
+
conversion: {
|
|
34
|
+
amount: number;
|
|
35
|
+
precision: number;
|
|
36
|
+
};
|
|
37
|
+
}[];
|
|
38
|
+
}) => any) | undefined;
|
|
39
|
+
"onClick:submit"?: (() => any) | undefined;
|
|
40
|
+
}, {}, {}>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
43
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
44
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
45
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
46
|
+
} : {
|
|
47
|
+
type: import('vue').PropType<T[K]>;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FormMode } from '@/components/form/form-mode.enum';
|
|
2
|
+
export interface UnitFormProps {
|
|
3
|
+
mode: FormMode;
|
|
4
|
+
modelValue: FdoInventoryUnit | null;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface InventoryFormEvents {
|
|
8
|
+
(event: 'update:modelValue', mv: FdoInventoryUnit): void;
|
|
9
|
+
(event: 'click:submit'): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
unit?: {
|
|
3
|
+
_id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
abbrev: string;
|
|
6
|
+
precision: number;
|
|
7
|
+
measurements: {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
abbrev: string;
|
|
11
|
+
conversion: {
|
|
12
|
+
amount: number;
|
|
13
|
+
precision: number;
|
|
14
|
+
};
|
|
15
|
+
}[];
|
|
16
|
+
} | undefined;
|
|
17
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
18
|
+
unit?: {
|
|
19
|
+
_id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
abbrev: string;
|
|
22
|
+
precision: number;
|
|
23
|
+
measurements: {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
abbrev: string;
|
|
27
|
+
conversion: {
|
|
28
|
+
amount: number;
|
|
29
|
+
precision: number;
|
|
30
|
+
};
|
|
31
|
+
}[];
|
|
32
|
+
} | undefined;
|
|
33
|
+
}>>>, {}, {}>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
+
} : {
|
|
40
|
+
type: import('vue').PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { UnitUsedByProps } from './UnitUsedByProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<UnitUsedByProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<UnitUsedByProps>>>, {}, {}>;
|
|
3
|
+
export default _default;
|
|
4
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
5
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
6
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
7
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
8
|
+
} : {
|
|
9
|
+
type: import('vue').PropType<T[K]>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
};
|