@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,15 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Array<T> {
|
|
3
|
+
/**
|
|
4
|
+
* Iterates the elements through the reducer function and return first non-null/non-undefined value
|
|
5
|
+
* @param reducer
|
|
6
|
+
*/
|
|
7
|
+
computeFirst<Result>(reducer: (input: T, index: number, arr: ReadonlyArray<T>) => Result | null | undefined): Result | null | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Iterates the elements through the reducer function and return last non-null/non-undefined value
|
|
10
|
+
* @param reducer
|
|
11
|
+
*/
|
|
12
|
+
computeLast<Result>(reducer: (input: T, index: number, arr: ReadonlyArray<T>) => Result | null | undefined): Result | null | undefined;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export {};
|
package/dist/favicon.ico
ADDED
|
Binary file
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { l as v } from "./app-BzDhmCVx.js";
|
|
2
|
+
var x = { exports: {} };
|
|
3
|
+
(function(h, m) {
|
|
4
|
+
(function() {
|
|
5
|
+
var o = {};
|
|
6
|
+
h.exports = o, o.simpleFilter = function(e, n) {
|
|
7
|
+
return n.filter(function(r) {
|
|
8
|
+
return o.test(e, r);
|
|
9
|
+
});
|
|
10
|
+
}, o.test = function(e, n) {
|
|
11
|
+
return o.match(e, n) !== null;
|
|
12
|
+
}, o.match = function(e, n, r) {
|
|
13
|
+
r = r || {};
|
|
14
|
+
var t = 0, i = [], c = n.length, f = 0, u = 0, l = r.pre || "", d = r.post || "", g = r.caseSensitive && n || n.toLowerCase(), s;
|
|
15
|
+
e = r.caseSensitive && e || e.toLowerCase();
|
|
16
|
+
for (var a = 0; a < c; a++)
|
|
17
|
+
s = n[a], g[a] === e[t] ? (s = l + s + d, t += 1, u += 1 + u) : u = 0, f += u, i[i.length] = s;
|
|
18
|
+
return t === e.length ? (f = g === e ? 1 / 0 : f, { rendered: i.join(""), score: f }) : null;
|
|
19
|
+
}, o.filter = function(e, n, r) {
|
|
20
|
+
return !n || n.length === 0 ? [] : typeof e != "string" ? n : (r = r || {}, n.reduce(function(t, i, c, f) {
|
|
21
|
+
var u = i;
|
|
22
|
+
r.extract && (u = r.extract(i));
|
|
23
|
+
var l = o.match(e, u, r);
|
|
24
|
+
return l != null && (t[t.length] = {
|
|
25
|
+
string: l.rendered,
|
|
26
|
+
score: l.score,
|
|
27
|
+
index: c,
|
|
28
|
+
original: i
|
|
29
|
+
}), t;
|
|
30
|
+
}, []).sort(function(t, i) {
|
|
31
|
+
var c = i.score - t.score;
|
|
32
|
+
return c || t.index - i.index;
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
})(x);
|
|
37
|
+
var z = x.exports;
|
|
38
|
+
const S = /* @__PURE__ */ v(z);
|
|
39
|
+
export {
|
|
40
|
+
S as f
|
|
41
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { RowActionProps } from '@/components/row-action.enum';
|
|
2
|
+
export declare function createContextMenuComponents(actions: RowActionProps[], onClick: (action: string) => void): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>;
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* imported from
|
|
3
|
+
* https://github.com/feedmepos/monorepo-merged/blob/14f25e795d03c455991fa606ba36542e4282e4ae/dart/packages/feedme_core/lib/src/entity/pos.enums.dart#L313-L812
|
|
4
|
+
*/
|
|
5
|
+
export declare enum CountryCode {
|
|
6
|
+
AF = "AF",
|
|
7
|
+
AX = "AX",
|
|
8
|
+
AL = "AL",
|
|
9
|
+
DZ = "DZ",
|
|
10
|
+
AS = "AS",
|
|
11
|
+
AD = "AD",
|
|
12
|
+
AO = "AO",
|
|
13
|
+
AI = "AI",
|
|
14
|
+
AQ = "AQ",
|
|
15
|
+
AG = "AG",
|
|
16
|
+
AR = "AR",
|
|
17
|
+
AM = "AM",
|
|
18
|
+
AW = "AW",
|
|
19
|
+
AU = "AU",
|
|
20
|
+
AT = "AT",
|
|
21
|
+
AZ = "AZ",
|
|
22
|
+
BS = "BS",
|
|
23
|
+
BH = "BH",
|
|
24
|
+
BD = "BD",
|
|
25
|
+
BB = "BB",
|
|
26
|
+
BY = "BY",
|
|
27
|
+
BE = "BE",
|
|
28
|
+
BZ = "BZ",
|
|
29
|
+
BJ = "BJ",
|
|
30
|
+
BM = "BM",
|
|
31
|
+
BT = "BT",
|
|
32
|
+
BO = "BO",
|
|
33
|
+
BQ = "BQ",
|
|
34
|
+
BA = "BA",
|
|
35
|
+
BW = "BW",
|
|
36
|
+
BV = "BV",
|
|
37
|
+
BR = "BR",
|
|
38
|
+
IO = "IO",
|
|
39
|
+
BN = "BN",
|
|
40
|
+
BG = "BG",
|
|
41
|
+
BF = "BF",
|
|
42
|
+
BI = "BI",
|
|
43
|
+
KH = "KH",
|
|
44
|
+
CM = "CM",
|
|
45
|
+
CA = "CA",
|
|
46
|
+
CV = "CV",
|
|
47
|
+
KY = "KY",
|
|
48
|
+
CF = "CF",
|
|
49
|
+
TD = "TD",
|
|
50
|
+
CL = "CL",
|
|
51
|
+
CN = "CN",
|
|
52
|
+
CX = "CX",
|
|
53
|
+
CC = "CC",
|
|
54
|
+
CO = "CO",
|
|
55
|
+
KM = "KM",
|
|
56
|
+
CG = "CG",
|
|
57
|
+
CD = "CD",
|
|
58
|
+
CK = "CK",
|
|
59
|
+
CR = "CR",
|
|
60
|
+
CI = "CI",
|
|
61
|
+
HR = "HR",
|
|
62
|
+
CU = "CU",
|
|
63
|
+
CW = "CW",
|
|
64
|
+
CY = "CY",
|
|
65
|
+
CZ = "CZ",
|
|
66
|
+
DK = "DK",
|
|
67
|
+
DJ = "DJ",
|
|
68
|
+
DM = "DM",
|
|
69
|
+
DO = "DO",
|
|
70
|
+
EC = "EC",
|
|
71
|
+
EG = "EG",
|
|
72
|
+
SV = "SV",
|
|
73
|
+
GQ = "GQ",
|
|
74
|
+
ER = "ER",
|
|
75
|
+
EE = "EE",
|
|
76
|
+
ET = "ET",
|
|
77
|
+
FK = "FK",
|
|
78
|
+
FO = "FO",
|
|
79
|
+
FJ = "FJ",
|
|
80
|
+
FI = "FI",
|
|
81
|
+
FR = "FR",
|
|
82
|
+
GF = "GF",
|
|
83
|
+
PF = "PF",
|
|
84
|
+
TF = "TF",
|
|
85
|
+
GA = "GA",
|
|
86
|
+
GM = "GM",
|
|
87
|
+
GE = "GE",
|
|
88
|
+
DE = "DE",
|
|
89
|
+
GH = "GH",
|
|
90
|
+
GI = "GI",
|
|
91
|
+
GR = "GR",
|
|
92
|
+
GL = "GL",
|
|
93
|
+
GD = "GD",
|
|
94
|
+
GP = "GP",
|
|
95
|
+
GU = "GU",
|
|
96
|
+
GT = "GT",
|
|
97
|
+
GG = "GG",
|
|
98
|
+
GN = "GN",
|
|
99
|
+
GW = "GW",
|
|
100
|
+
GY = "GY",
|
|
101
|
+
HT = "HT",
|
|
102
|
+
HM = "HM",
|
|
103
|
+
VA = "VA",
|
|
104
|
+
HN = "HN",
|
|
105
|
+
HK = "HK",
|
|
106
|
+
HU = "HU",
|
|
107
|
+
IS = "IS",
|
|
108
|
+
IN = "IN",
|
|
109
|
+
ID = "ID",
|
|
110
|
+
IR = "IR",
|
|
111
|
+
IQ = "IQ",
|
|
112
|
+
IE = "IE",
|
|
113
|
+
IM = "IM",
|
|
114
|
+
IL = "IL",
|
|
115
|
+
IT = "IT",
|
|
116
|
+
JM = "JM",
|
|
117
|
+
JP = "JP",
|
|
118
|
+
JE = "JE",
|
|
119
|
+
JO = "JO",
|
|
120
|
+
KZ = "KZ",
|
|
121
|
+
KE = "KE",
|
|
122
|
+
KI = "KI",
|
|
123
|
+
KR = "KR",
|
|
124
|
+
KP = "KP",
|
|
125
|
+
KW = "KW",
|
|
126
|
+
KG = "KG",
|
|
127
|
+
LA = "LA",
|
|
128
|
+
LV = "LV",
|
|
129
|
+
LB = "LB",
|
|
130
|
+
LS = "LS",
|
|
131
|
+
LR = "LR",
|
|
132
|
+
LY = "LY",
|
|
133
|
+
LI = "LI",
|
|
134
|
+
LT = "LT",
|
|
135
|
+
LU = "LU",
|
|
136
|
+
MO = "MO",
|
|
137
|
+
MK = "MK",
|
|
138
|
+
MG = "MG",
|
|
139
|
+
MW = "MW",
|
|
140
|
+
MY = "MY",
|
|
141
|
+
MV = "MV",
|
|
142
|
+
ML = "ML",
|
|
143
|
+
MT = "MT",
|
|
144
|
+
MH = "MH",
|
|
145
|
+
MQ = "MQ",
|
|
146
|
+
MR = "MR",
|
|
147
|
+
MU = "MU",
|
|
148
|
+
YT = "YT",
|
|
149
|
+
MX = "MX",
|
|
150
|
+
FM = "FM",
|
|
151
|
+
MD = "MD",
|
|
152
|
+
MC = "MC",
|
|
153
|
+
MN = "MN",
|
|
154
|
+
ME = "ME",
|
|
155
|
+
MS = "MS",
|
|
156
|
+
MA = "MA",
|
|
157
|
+
MZ = "MZ",
|
|
158
|
+
MM = "MM",
|
|
159
|
+
NA = "NA",
|
|
160
|
+
NR = "NR",
|
|
161
|
+
NP = "NP",
|
|
162
|
+
NL = "NL",
|
|
163
|
+
NC = "NC",
|
|
164
|
+
NZ = "NZ",
|
|
165
|
+
NI = "NI",
|
|
166
|
+
NE = "NE",
|
|
167
|
+
NG = "NG",
|
|
168
|
+
NU = "NU",
|
|
169
|
+
NF = "NF",
|
|
170
|
+
MP = "MP",
|
|
171
|
+
NO = "NO",
|
|
172
|
+
OM = "OM",
|
|
173
|
+
PK = "PK",
|
|
174
|
+
PW = "PW",
|
|
175
|
+
PS = "PS",
|
|
176
|
+
PA = "PA",
|
|
177
|
+
PG = "PG",
|
|
178
|
+
PY = "PY",
|
|
179
|
+
PE = "PE",
|
|
180
|
+
PH = "PH",
|
|
181
|
+
PN = "PN",
|
|
182
|
+
PL = "PL",
|
|
183
|
+
PT = "PT",
|
|
184
|
+
PR = "PR",
|
|
185
|
+
QA = "QA",
|
|
186
|
+
RE = "RE",
|
|
187
|
+
RO = "RO",
|
|
188
|
+
RU = "RU",
|
|
189
|
+
RW = "RW",
|
|
190
|
+
BL = "BL",
|
|
191
|
+
SH = "SH",
|
|
192
|
+
KN = "KN",
|
|
193
|
+
LC = "LC",
|
|
194
|
+
MF = "MF",
|
|
195
|
+
PM = "PM",
|
|
196
|
+
VC = "VC",
|
|
197
|
+
WS = "WS",
|
|
198
|
+
SM = "SM",
|
|
199
|
+
ST = "ST",
|
|
200
|
+
SA = "SA",
|
|
201
|
+
SN = "SN",
|
|
202
|
+
RS = "RS",
|
|
203
|
+
SC = "SC",
|
|
204
|
+
SL = "SL",
|
|
205
|
+
SG = "SG",
|
|
206
|
+
SX = "SX",
|
|
207
|
+
SK = "SK",
|
|
208
|
+
SI = "SI",
|
|
209
|
+
SB = "SB",
|
|
210
|
+
SO = "SO",
|
|
211
|
+
ZA = "ZA",
|
|
212
|
+
GS = "GS",
|
|
213
|
+
SS = "SS",
|
|
214
|
+
ES = "ES",
|
|
215
|
+
LK = "LK",
|
|
216
|
+
SD = "SD",
|
|
217
|
+
SR = "SR",
|
|
218
|
+
SJ = "SJ",
|
|
219
|
+
SZ = "SZ",
|
|
220
|
+
SE = "SE",
|
|
221
|
+
CH = "CH",
|
|
222
|
+
SY = "SY",
|
|
223
|
+
TW = "TW",
|
|
224
|
+
TJ = "TJ",
|
|
225
|
+
TZ = "TZ",
|
|
226
|
+
TH = "TH",
|
|
227
|
+
TL = "TL",
|
|
228
|
+
TG = "TG",
|
|
229
|
+
TK = "TK",
|
|
230
|
+
TO = "TO",
|
|
231
|
+
TT = "TT",
|
|
232
|
+
TN = "TN",
|
|
233
|
+
TR = "TR",
|
|
234
|
+
TM = "TM",
|
|
235
|
+
TC = "TC",
|
|
236
|
+
TV = "TV",
|
|
237
|
+
UG = "UG",
|
|
238
|
+
UA = "UA",
|
|
239
|
+
AE = "AE",
|
|
240
|
+
GB = "GB",
|
|
241
|
+
US = "US",
|
|
242
|
+
UM = "UM",
|
|
243
|
+
UY = "UY",
|
|
244
|
+
UZ = "UZ",
|
|
245
|
+
VU = "VU",
|
|
246
|
+
VE = "VE",
|
|
247
|
+
VN = "VN",
|
|
248
|
+
VG = "VG",
|
|
249
|
+
VI = "VI",
|
|
250
|
+
WF = "WF",
|
|
251
|
+
EH = "EH",
|
|
252
|
+
YE = "YE",
|
|
253
|
+
ZM = "ZM",
|
|
254
|
+
ZW = "ZW"
|
|
255
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FdoDinero } from '@feedmepos/core/entity';
|
|
2
|
+
import { CountryCode } from './codes';
|
|
3
|
+
export type CountryInfo = {
|
|
4
|
+
code: CountryCode;
|
|
5
|
+
name: string;
|
|
6
|
+
currency: FdoDinero['currency'];
|
|
7
|
+
};
|
|
8
|
+
export declare function getCodeAndName(country: CountryCode): CountryInfo | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function idToDate(id: string): string | null;
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import type { FdoDinero } from '@feedmepos/core/entity';
|
|
2
|
+
import { CountryCode } from './core/country/codes';
|
|
3
|
+
export interface Country {
|
|
4
|
+
name: string;
|
|
5
|
+
code: CountryCode;
|
|
6
|
+
currency: FdoDinero['currency'];
|
|
7
|
+
}
|
|
8
|
+
export declare const supportedCountries: {
|
|
9
|
+
AF?: Country | undefined;
|
|
10
|
+
AX?: Country | undefined;
|
|
11
|
+
AL?: Country | undefined;
|
|
12
|
+
DZ?: Country | undefined;
|
|
13
|
+
AS?: Country | undefined;
|
|
14
|
+
AD?: Country | undefined;
|
|
15
|
+
AO?: Country | undefined;
|
|
16
|
+
AI?: Country | undefined;
|
|
17
|
+
AQ?: Country | undefined;
|
|
18
|
+
AG?: Country | undefined;
|
|
19
|
+
AR?: Country | undefined;
|
|
20
|
+
AM?: Country | undefined;
|
|
21
|
+
AW?: Country | undefined;
|
|
22
|
+
AU?: Country | undefined;
|
|
23
|
+
AT?: Country | undefined;
|
|
24
|
+
AZ?: Country | undefined;
|
|
25
|
+
BS?: Country | undefined;
|
|
26
|
+
BH?: Country | undefined;
|
|
27
|
+
BD?: Country | undefined;
|
|
28
|
+
BB?: Country | undefined;
|
|
29
|
+
BY?: Country | undefined;
|
|
30
|
+
BE?: Country | undefined;
|
|
31
|
+
BZ?: Country | undefined;
|
|
32
|
+
BJ?: Country | undefined;
|
|
33
|
+
BM?: Country | undefined;
|
|
34
|
+
BT?: Country | undefined;
|
|
35
|
+
BO?: Country | undefined;
|
|
36
|
+
BQ?: Country | undefined;
|
|
37
|
+
BA?: Country | undefined;
|
|
38
|
+
BW?: Country | undefined;
|
|
39
|
+
BV?: Country | undefined;
|
|
40
|
+
BR?: Country | undefined;
|
|
41
|
+
IO?: Country | undefined;
|
|
42
|
+
BN?: Country | undefined;
|
|
43
|
+
BG?: Country | undefined;
|
|
44
|
+
BF?: Country | undefined;
|
|
45
|
+
BI?: Country | undefined;
|
|
46
|
+
KH?: Country | undefined;
|
|
47
|
+
CM?: Country | undefined;
|
|
48
|
+
CA?: Country | undefined;
|
|
49
|
+
CV?: Country | undefined;
|
|
50
|
+
KY?: Country | undefined;
|
|
51
|
+
CF?: Country | undefined;
|
|
52
|
+
TD?: Country | undefined;
|
|
53
|
+
CL?: Country | undefined;
|
|
54
|
+
CN?: Country | undefined;
|
|
55
|
+
CX?: Country | undefined;
|
|
56
|
+
CC?: Country | undefined;
|
|
57
|
+
CO?: Country | undefined;
|
|
58
|
+
KM?: Country | undefined;
|
|
59
|
+
CG?: Country | undefined;
|
|
60
|
+
CD?: Country | undefined;
|
|
61
|
+
CK?: Country | undefined;
|
|
62
|
+
CR?: Country | undefined;
|
|
63
|
+
CI?: Country | undefined;
|
|
64
|
+
HR?: Country | undefined;
|
|
65
|
+
CU?: Country | undefined;
|
|
66
|
+
CW?: Country | undefined;
|
|
67
|
+
CY?: Country | undefined;
|
|
68
|
+
CZ?: Country | undefined;
|
|
69
|
+
DK?: Country | undefined;
|
|
70
|
+
DJ?: Country | undefined;
|
|
71
|
+
DM?: Country | undefined;
|
|
72
|
+
DO?: Country | undefined;
|
|
73
|
+
EC?: Country | undefined;
|
|
74
|
+
EG?: Country | undefined;
|
|
75
|
+
SV?: Country | undefined;
|
|
76
|
+
GQ?: Country | undefined;
|
|
77
|
+
ER?: Country | undefined;
|
|
78
|
+
EE?: Country | undefined;
|
|
79
|
+
ET?: Country | undefined;
|
|
80
|
+
FK?: Country | undefined;
|
|
81
|
+
FO?: Country | undefined;
|
|
82
|
+
FJ?: Country | undefined;
|
|
83
|
+
FI?: Country | undefined;
|
|
84
|
+
FR?: Country | undefined;
|
|
85
|
+
GF?: Country | undefined;
|
|
86
|
+
PF?: Country | undefined;
|
|
87
|
+
TF?: Country | undefined;
|
|
88
|
+
GA?: Country | undefined;
|
|
89
|
+
GM?: Country | undefined;
|
|
90
|
+
GE?: Country | undefined;
|
|
91
|
+
DE?: Country | undefined;
|
|
92
|
+
GH?: Country | undefined;
|
|
93
|
+
GI?: Country | undefined;
|
|
94
|
+
GR?: Country | undefined;
|
|
95
|
+
GL?: Country | undefined;
|
|
96
|
+
GD?: Country | undefined;
|
|
97
|
+
GP?: Country | undefined;
|
|
98
|
+
GU?: Country | undefined;
|
|
99
|
+
GT?: Country | undefined;
|
|
100
|
+
GG?: Country | undefined;
|
|
101
|
+
GN?: Country | undefined;
|
|
102
|
+
GW?: Country | undefined;
|
|
103
|
+
GY?: Country | undefined;
|
|
104
|
+
HT?: Country | undefined;
|
|
105
|
+
HM?: Country | undefined;
|
|
106
|
+
VA?: Country | undefined;
|
|
107
|
+
HN?: Country | undefined;
|
|
108
|
+
HK?: Country | undefined;
|
|
109
|
+
HU?: Country | undefined;
|
|
110
|
+
IS?: Country | undefined;
|
|
111
|
+
IN?: Country | undefined;
|
|
112
|
+
ID?: Country | undefined;
|
|
113
|
+
IR?: Country | undefined;
|
|
114
|
+
IQ?: Country | undefined;
|
|
115
|
+
IE?: Country | undefined;
|
|
116
|
+
IM?: Country | undefined;
|
|
117
|
+
IL?: Country | undefined;
|
|
118
|
+
IT?: Country | undefined;
|
|
119
|
+
JM?: Country | undefined;
|
|
120
|
+
JP?: Country | undefined;
|
|
121
|
+
JE?: Country | undefined;
|
|
122
|
+
JO?: Country | undefined;
|
|
123
|
+
KZ?: Country | undefined;
|
|
124
|
+
KE?: Country | undefined;
|
|
125
|
+
KI?: Country | undefined;
|
|
126
|
+
KR?: Country | undefined;
|
|
127
|
+
KP?: Country | undefined;
|
|
128
|
+
KW?: Country | undefined;
|
|
129
|
+
KG?: Country | undefined;
|
|
130
|
+
LA?: Country | undefined;
|
|
131
|
+
LV?: Country | undefined;
|
|
132
|
+
LB?: Country | undefined;
|
|
133
|
+
LS?: Country | undefined;
|
|
134
|
+
LR?: Country | undefined;
|
|
135
|
+
LY?: Country | undefined;
|
|
136
|
+
LI?: Country | undefined;
|
|
137
|
+
LT?: Country | undefined;
|
|
138
|
+
LU?: Country | undefined;
|
|
139
|
+
MO?: Country | undefined;
|
|
140
|
+
MK?: Country | undefined;
|
|
141
|
+
MG?: Country | undefined;
|
|
142
|
+
MW?: Country | undefined;
|
|
143
|
+
MY?: Country | undefined;
|
|
144
|
+
MV?: Country | undefined;
|
|
145
|
+
ML?: Country | undefined;
|
|
146
|
+
MT?: Country | undefined;
|
|
147
|
+
MH?: Country | undefined;
|
|
148
|
+
MQ?: Country | undefined;
|
|
149
|
+
MR?: Country | undefined;
|
|
150
|
+
MU?: Country | undefined;
|
|
151
|
+
YT?: Country | undefined;
|
|
152
|
+
MX?: Country | undefined;
|
|
153
|
+
FM?: Country | undefined;
|
|
154
|
+
MD?: Country | undefined;
|
|
155
|
+
MC?: Country | undefined;
|
|
156
|
+
MN?: Country | undefined;
|
|
157
|
+
ME?: Country | undefined;
|
|
158
|
+
MS?: Country | undefined;
|
|
159
|
+
MA?: Country | undefined;
|
|
160
|
+
MZ?: Country | undefined;
|
|
161
|
+
MM?: Country | undefined;
|
|
162
|
+
NA?: Country | undefined;
|
|
163
|
+
NR?: Country | undefined;
|
|
164
|
+
NP?: Country | undefined;
|
|
165
|
+
NL?: Country | undefined;
|
|
166
|
+
NC?: Country | undefined;
|
|
167
|
+
NZ?: Country | undefined;
|
|
168
|
+
NI?: Country | undefined;
|
|
169
|
+
NE?: Country | undefined;
|
|
170
|
+
NG?: Country | undefined;
|
|
171
|
+
NU?: Country | undefined;
|
|
172
|
+
NF?: Country | undefined;
|
|
173
|
+
MP?: Country | undefined;
|
|
174
|
+
NO?: Country | undefined;
|
|
175
|
+
OM?: Country | undefined;
|
|
176
|
+
PK?: Country | undefined;
|
|
177
|
+
PW?: Country | undefined;
|
|
178
|
+
PS?: Country | undefined;
|
|
179
|
+
PA?: Country | undefined;
|
|
180
|
+
PG?: Country | undefined;
|
|
181
|
+
PY?: Country | undefined;
|
|
182
|
+
PE?: Country | undefined;
|
|
183
|
+
PH?: Country | undefined;
|
|
184
|
+
PN?: Country | undefined;
|
|
185
|
+
PL?: Country | undefined;
|
|
186
|
+
PT?: Country | undefined;
|
|
187
|
+
PR?: Country | undefined;
|
|
188
|
+
QA?: Country | undefined;
|
|
189
|
+
RE?: Country | undefined;
|
|
190
|
+
RO?: Country | undefined;
|
|
191
|
+
RU?: Country | undefined;
|
|
192
|
+
RW?: Country | undefined;
|
|
193
|
+
BL?: Country | undefined;
|
|
194
|
+
SH?: Country | undefined;
|
|
195
|
+
KN?: Country | undefined;
|
|
196
|
+
LC?: Country | undefined;
|
|
197
|
+
MF?: Country | undefined;
|
|
198
|
+
PM?: Country | undefined;
|
|
199
|
+
VC?: Country | undefined;
|
|
200
|
+
WS?: Country | undefined;
|
|
201
|
+
SM?: Country | undefined;
|
|
202
|
+
ST?: Country | undefined;
|
|
203
|
+
SA?: Country | undefined;
|
|
204
|
+
SN?: Country | undefined;
|
|
205
|
+
RS?: Country | undefined;
|
|
206
|
+
SC?: Country | undefined;
|
|
207
|
+
SL?: Country | undefined;
|
|
208
|
+
SG?: Country | undefined;
|
|
209
|
+
SX?: Country | undefined;
|
|
210
|
+
SK?: Country | undefined;
|
|
211
|
+
SI?: Country | undefined;
|
|
212
|
+
SB?: Country | undefined;
|
|
213
|
+
SO?: Country | undefined;
|
|
214
|
+
ZA?: Country | undefined;
|
|
215
|
+
GS?: Country | undefined;
|
|
216
|
+
SS?: Country | undefined;
|
|
217
|
+
ES?: Country | undefined;
|
|
218
|
+
LK?: Country | undefined;
|
|
219
|
+
SD?: Country | undefined;
|
|
220
|
+
SR?: Country | undefined;
|
|
221
|
+
SJ?: Country | undefined;
|
|
222
|
+
SZ?: Country | undefined;
|
|
223
|
+
SE?: Country | undefined;
|
|
224
|
+
CH?: Country | undefined;
|
|
225
|
+
SY?: Country | undefined;
|
|
226
|
+
TW?: Country | undefined;
|
|
227
|
+
TJ?: Country | undefined;
|
|
228
|
+
TZ?: Country | undefined;
|
|
229
|
+
TH?: Country | undefined;
|
|
230
|
+
TL?: Country | undefined;
|
|
231
|
+
TG?: Country | undefined;
|
|
232
|
+
TK?: Country | undefined;
|
|
233
|
+
TO?: Country | undefined;
|
|
234
|
+
TT?: Country | undefined;
|
|
235
|
+
TN?: Country | undefined;
|
|
236
|
+
TR?: Country | undefined;
|
|
237
|
+
TM?: Country | undefined;
|
|
238
|
+
TC?: Country | undefined;
|
|
239
|
+
TV?: Country | undefined;
|
|
240
|
+
UG?: Country | undefined;
|
|
241
|
+
UA?: Country | undefined;
|
|
242
|
+
AE?: Country | undefined;
|
|
243
|
+
GB?: Country | undefined;
|
|
244
|
+
US?: Country | undefined;
|
|
245
|
+
UM?: Country | undefined;
|
|
246
|
+
UY?: Country | undefined;
|
|
247
|
+
UZ?: Country | undefined;
|
|
248
|
+
VU?: Country | undefined;
|
|
249
|
+
VE?: Country | undefined;
|
|
250
|
+
VN?: Country | undefined;
|
|
251
|
+
VG?: Country | undefined;
|
|
252
|
+
VI?: Country | undefined;
|
|
253
|
+
WF?: Country | undefined;
|
|
254
|
+
EH?: Country | undefined;
|
|
255
|
+
YE?: Country | undefined;
|
|
256
|
+
ZM?: Country | undefined;
|
|
257
|
+
ZW?: Country | undefined;
|
|
258
|
+
};
|
|
259
|
+
export declare function getCountryByCode(code?: CountryCode): Country;
|
|
260
|
+
export declare const defaultCountry = CountryCode.MY;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DateRange } from 'node_modules/@feedmepos/ui-library/dist/components/form/calendar/date-range-picker/common';
|
|
2
|
+
export declare function formatDateToDDMMMYYYY(date: Date): string;
|
|
3
|
+
export declare function formatDateToHHMMAMPM(date: Date): string;
|
|
4
|
+
export declare function formatDateToYYYYMMM(date: Date, separator?: string): `${string}-${string}-${string}`;
|
|
5
|
+
export declare function formatDateToHHMM24Hour(date: Date): `${string}:${string}`;
|
|
6
|
+
export declare function formatDateToYYYYMMDD(date: Date, separator?: string): `${string}-${string}-${string}`;
|
|
7
|
+
export declare function formatDateToYYYYMMDDHHMM(date: Date, separator?: string, timeSeparator?: string): string;
|
|
8
|
+
export declare function toStartOfDay(date: Date): Date;
|
|
9
|
+
export declare function toEndOfDay(date: Date): Date;
|
|
10
|
+
export declare function previousDaysRange(dateRange: DateRange): DateRange;
|
|
11
|
+
export declare function nextDaysRange(dateRange: DateRange): DateRange;
|
|
12
|
+
type NonNullableMap<T extends Record<string, any>> = {
|
|
13
|
+
[K in keyof T]: NonNullable<T[K]>;
|
|
14
|
+
};
|
|
15
|
+
export type RequiredDateRange = NonNullableMap<DateRange>;
|
|
16
|
+
/** @returns date time ISO string */
|
|
17
|
+
export declare function getMonthRangeFromNow(months: number, now?: Date): RequiredDateRange;
|
|
18
|
+
export declare function getMonthRangeArray(months: number, now?: Date): Date[];
|
|
19
|
+
export declare function toStartOfMonth(date: Date): Date;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FdoInventoryUnitMeasurement } from '@/views/unit/type';
|
|
2
|
+
import { type AdjustmentAmount } from './number';
|
|
3
|
+
export declare class FfDecimal {
|
|
4
|
+
static toDouble(decimal: AdjustmentAmount): number;
|
|
5
|
+
static multiplyDecimal(left: AdjustmentAmount, right: AdjustmentAmount): AdjustmentAmount;
|
|
6
|
+
static divide(value: AdjustmentAmount, divisor: number): AdjustmentAmount;
|
|
7
|
+
static addDecimal(left: AdjustmentAmount, right: AdjustmentAmount): AdjustmentAmount;
|
|
8
|
+
static toPrecision(value: AdjustmentAmount, newPrecision: number): AdjustmentAmount;
|
|
9
|
+
static equal(left: AdjustmentAmount, right: AdjustmentAmount): boolean;
|
|
10
|
+
static normalize(decimals: Array<AdjustmentAmount>): {
|
|
11
|
+
amount: number;
|
|
12
|
+
precision: number;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
export declare function getDisplayUnit(amount: FdoSkuBalance['balance'], unit: FdoInventoryUnit, toMeasurement?: string | FdoInventoryUnitMeasurement | null, abbreviate?: boolean): string | number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ExportExcelCol<T> {
|
|
2
|
+
name: string;
|
|
3
|
+
selector: keyof T | ((v: T) => ExcelColValue);
|
|
4
|
+
}
|
|
5
|
+
export interface ExportExcelSheet<T> {
|
|
6
|
+
name: string;
|
|
7
|
+
data: T[];
|
|
8
|
+
columns: ExportExcelCol<T>[] | (keyof T)[];
|
|
9
|
+
}
|
|
10
|
+
type ExcelColValue = string | number | Date | null;
|
|
11
|
+
export declare function exportExcel<T>(sheets: ExportExcelSheet<T>[], fileName: string): Promise<void>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getLargestPrecision(unit: FdoInventoryUnit): number;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type Selector<T> = keyof T | ((item: T) => string);
|
|
2
|
+
declare function sort<T>(arr: T[], option?: {
|
|
3
|
+
selector?: Selector<T>;
|
|
4
|
+
descending?: boolean;
|
|
5
|
+
} | undefined): T[];
|
|
6
|
+
declare function group<T>(arr: T[], by: Selector<T>): {
|
|
7
|
+
[key: string]: T[];
|
|
8
|
+
};
|
|
9
|
+
declare function insertIfNotExist<T>(arr: T[], value: T): T[];
|
|
10
|
+
declare function remove<T>(arr: T[], target: T, selector?: Selector<T>): T[];
|
|
11
|
+
declare function insertOrUpdate<T>(arr: T[], value: T, selector?: keyof T): T[];
|
|
12
|
+
declare function insertOrRemove<T>(arr: T[], value: T): T[];
|
|
13
|
+
declare function intersperse(iterable: any[], separator: any): Generator<any, void, unknown>;
|
|
14
|
+
declare function chunk<T>(list: T[], size: number): T[][];
|
|
15
|
+
export { sort, group, insertIfNotExist, remove, insertOrUpdate, insertOrRemove, intersperse, chunk };
|