@acuteinfo/common-base 1.2.97 → 1.2.99

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.
@@ -3,6 +3,9 @@ import { AlertProps } from "@mui/material/Alert";
3
3
  interface MyAlertProps {
4
4
  errorMsg: string;
5
5
  errorDetail?: string;
6
+ setShowMore?: boolean;
7
+ handleViewMoreAction?: () => void;
8
+ handleOnClose?: () => void;
6
9
  }
7
10
  export declare const MyAlert: FC<MyAlertProps & AlertProps>;
8
11
  export {};
@@ -136,4 +136,8 @@ export interface DynamicLocaleConfig {
136
136
  decimalScale: number;
137
137
  }
138
138
  export declare function resolveThousandsGroupStyle(locale: string): ThousandsGroupStyle;
139
+ /**
140
+ * Extracts a 3-letter ISO-4217 currency code from raw input (string, code, or symbol).
141
+ */
142
+ export declare function extractCurrencyCode(val?: any): string | undefined;
139
143
  export declare function getLocaleCurrencyConfig(locale: string, currency: string): DynamicLocaleConfig;
@@ -1,3 +1,3 @@
1
1
  export { useDebouncedValue } from "./useDebouncedValue";
2
- export { useNumericFormatConfig } from "./useNumericFormatConfig";
2
+ export { useNumericFormatConfig, extractCurrencyCode, getDynamicLocaleForCurrency, } from "./useNumericFormatConfig";
3
3
  export type { ResolvedNumericFormatConfig, UseNumericFormatConfigOptions, } from "./useNumericFormatConfig";
@@ -1,4 +1,5 @@
1
- import { ThousandsGroupStyle } from "components/custom/getCurrencySymbol";
1
+ import { ThousandsGroupStyle, extractCurrencyCode } from "components/custom/getCurrencySymbol";
2
+ export { extractCurrencyCode };
2
3
  export interface ResolvedNumericFormatConfig {
3
4
  prefix: string;
4
5
  suffix: string;
@@ -21,8 +22,15 @@ export interface UseNumericFormatConfigOptions {
21
22
  locale?: string;
22
23
  isCurrencyField?: boolean;
23
24
  suffix?: any;
25
+ adornment?: any;
26
+ StartAdornment?: any;
24
27
  [key: string]: any;
25
28
  }
29
+ /**
30
+ * Dynamically resolves standard banking locale for a given currency code
31
+ * without requiring rigid static mapping for each country.
32
+ */
33
+ export declare function getDynamicLocaleForCurrency(currencyCode: string, envLocale?: string): string;
26
34
  /**
27
35
  * Common hook/helper to resolve all Dynamic NumericFormat properties
28
36
  * identically across form inputs, AG-Grid editors, and filters.
@@ -61,7 +61,7 @@ export declare const attachcombinedValidationFns: (columns: GridColumnType[], au
61
61
  setValueFUNC?: Function | undefined;
62
62
  isAutoFocus?: boolean | undefined;
63
63
  isVisibleInNew?: boolean | undefined;
64
- currencyRefColumn?: "USA" | "USD" | "INR" | "JPY" | "KRW" | "VND" | "CLP" | "PYG" | "DJF" | "ISK" | "UGX" | "ALL" | "AFN" | "ARS" | "AWG" | "AUD" | "AZN" | "BSD" | "BBD" | "BYN" | "BZD" | "BMD" | "BOB" | "BAM" | "BWP" | "BGN" | "BRL" | "BND" | "KHR" | "BDT" | "CAD" | "KYD" | "CNY" | "COP" | "CRC" | "HRK" | "CUP" | "CZK" | "DKK" | "DOP" | "XCD" | "EGP" | "SVC" | "EUR" | "FKP" | "GIP" | "GTQ" | "GGP" | "GYD" | "HNL" | "HKD" | "HUF" | "IDR" | "IRR" | "IMP" | "ILS" | "JMD" | "JEP" | "KZT" | "KPW" | "KGS" | "LAK" | "LBP" | "LRD" | "MKD" | "MYR" | "MUR" | "MXN" | "MNT" | "MZN" | "NAD" | "ANG" | "NZD" | "NIO" | "NGN" | "NOK" | "OMR" | "PKR" | "PAB" | "PEN" | "PHP" | "PLN" | "ZAR" | "AED" | "CHF" | "GBP" | "RUB" | "SEK" | "TRY" | "ZWL" | "BTN" | "BYR" | "CVE" | "DZD" | "ERN" | "FJD" | "GEL" | "GHS" | "KWD" | "LKR" | "LYD" | "MDL" | "MVR" | "MWK" | "NPR" | "RSD" | "SAR" | "SCR" | "SYP" | "TND" | "TTD" | "TWD" | "YER" | "ZMW" | "XOF" | "XAF" | "TZS" | "SZL" | "STN" | "SSP" | "SOS" | "SLL" | "ETB" | "MMK" | "BLANK" | (string & Record<never, never>) | undefined;
64
+ currencyRefColumn?: "USA" | "USD" | "INR" | "EUR" | "GBP" | "JPY" | "IDR" | "AED" | "KRW" | "VND" | "CLP" | "PYG" | "DJF" | "ISK" | "UGX" | "ALL" | "AFN" | "ARS" | "AWG" | "AUD" | "AZN" | "BSD" | "BBD" | "BYN" | "BZD" | "BMD" | "BOB" | "BAM" | "BWP" | "BGN" | "BRL" | "BND" | "KHR" | "BDT" | "CAD" | "KYD" | "CNY" | "COP" | "CRC" | "HRK" | "CUP" | "CZK" | "DKK" | "DOP" | "XCD" | "EGP" | "SVC" | "FKP" | "GIP" | "GTQ" | "GGP" | "GYD" | "HNL" | "HKD" | "HUF" | "IRR" | "IMP" | "ILS" | "JMD" | "JEP" | "KZT" | "KPW" | "KGS" | "LAK" | "LBP" | "LRD" | "MKD" | "MYR" | "MUR" | "MXN" | "MNT" | "MZN" | "NAD" | "ANG" | "NZD" | "NIO" | "NGN" | "NOK" | "OMR" | "PKR" | "PAB" | "PEN" | "PHP" | "PLN" | "ZAR" | "CHF" | "RUB" | "SEK" | "TRY" | "ZWL" | "BTN" | "BYR" | "CVE" | "DZD" | "ERN" | "FJD" | "GEL" | "GHS" | "KWD" | "LKR" | "LYD" | "MDL" | "MVR" | "MWK" | "NPR" | "RSD" | "SAR" | "SCR" | "SYP" | "TND" | "TTD" | "TWD" | "YER" | "ZMW" | "XOF" | "XAF" | "TZS" | "SZL" | "STN" | "SSP" | "SOS" | "SLL" | "ETB" | "MMK" | "BLANK" | (string & Record<never, never>) | undefined;
65
65
  isCurrencyCode?: boolean | undefined;
66
66
  isSelectedTotal?: boolean | undefined;
67
67
  isTotalWithCurrency?: boolean | undefined;
@@ -61,7 +61,7 @@ export declare const attachYupSchemaValidator: (columns: GridColumnType[]) => {
61
61
  setValueFUNC?: Function | undefined;
62
62
  isAutoFocus?: boolean | undefined;
63
63
  isVisibleInNew?: boolean | undefined;
64
- currencyRefColumn?: "USA" | "USD" | "INR" | "JPY" | "KRW" | "VND" | "CLP" | "PYG" | "DJF" | "ISK" | "UGX" | "ALL" | "AFN" | "ARS" | "AWG" | "AUD" | "AZN" | "BSD" | "BBD" | "BYN" | "BZD" | "BMD" | "BOB" | "BAM" | "BWP" | "BGN" | "BRL" | "BND" | "KHR" | "BDT" | "CAD" | "KYD" | "CNY" | "COP" | "CRC" | "HRK" | "CUP" | "CZK" | "DKK" | "DOP" | "XCD" | "EGP" | "SVC" | "EUR" | "FKP" | "GIP" | "GTQ" | "GGP" | "GYD" | "HNL" | "HKD" | "HUF" | "IDR" | "IRR" | "IMP" | "ILS" | "JMD" | "JEP" | "KZT" | "KPW" | "KGS" | "LAK" | "LBP" | "LRD" | "MKD" | "MYR" | "MUR" | "MXN" | "MNT" | "MZN" | "NAD" | "ANG" | "NZD" | "NIO" | "NGN" | "NOK" | "OMR" | "PKR" | "PAB" | "PEN" | "PHP" | "PLN" | "ZAR" | "AED" | "CHF" | "GBP" | "RUB" | "SEK" | "TRY" | "ZWL" | "BTN" | "BYR" | "CVE" | "DZD" | "ERN" | "FJD" | "GEL" | "GHS" | "KWD" | "LKR" | "LYD" | "MDL" | "MVR" | "MWK" | "NPR" | "RSD" | "SAR" | "SCR" | "SYP" | "TND" | "TTD" | "TWD" | "YER" | "ZMW" | "XOF" | "XAF" | "TZS" | "SZL" | "STN" | "SSP" | "SOS" | "SLL" | "ETB" | "MMK" | "BLANK" | (string & Record<never, never>) | undefined;
64
+ currencyRefColumn?: "USA" | "USD" | "INR" | "EUR" | "GBP" | "JPY" | "IDR" | "AED" | "KRW" | "VND" | "CLP" | "PYG" | "DJF" | "ISK" | "UGX" | "ALL" | "AFN" | "ARS" | "AWG" | "AUD" | "AZN" | "BSD" | "BBD" | "BYN" | "BZD" | "BMD" | "BOB" | "BAM" | "BWP" | "BGN" | "BRL" | "BND" | "KHR" | "BDT" | "CAD" | "KYD" | "CNY" | "COP" | "CRC" | "HRK" | "CUP" | "CZK" | "DKK" | "DOP" | "XCD" | "EGP" | "SVC" | "FKP" | "GIP" | "GTQ" | "GGP" | "GYD" | "HNL" | "HKD" | "HUF" | "IRR" | "IMP" | "ILS" | "JMD" | "JEP" | "KZT" | "KPW" | "KGS" | "LAK" | "LBP" | "LRD" | "MKD" | "MYR" | "MUR" | "MXN" | "MNT" | "MZN" | "NAD" | "ANG" | "NZD" | "NIO" | "NGN" | "NOK" | "OMR" | "PKR" | "PAB" | "PEN" | "PHP" | "PLN" | "ZAR" | "CHF" | "RUB" | "SEK" | "TRY" | "ZWL" | "BTN" | "BYR" | "CVE" | "DZD" | "ERN" | "FJD" | "GEL" | "GHS" | "KWD" | "LKR" | "LYD" | "MDL" | "MVR" | "MWK" | "NPR" | "RSD" | "SAR" | "SCR" | "SYP" | "TND" | "TTD" | "TWD" | "YER" | "ZMW" | "XOF" | "XAF" | "TZS" | "SZL" | "STN" | "SSP" | "SOS" | "SLL" | "ETB" | "MMK" | "BLANK" | (string & Record<never, never>) | undefined;
65
65
  isCurrencyCode?: boolean | undefined;
66
66
  isSelectedTotal?: boolean | undefined;
67
67
  isTotalWithCurrency?: boolean | undefined;