@acuteinfo/common-base 1.0.13 → 1.0.14

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.
@@ -14,9 +14,10 @@ interface CustomProperties {
14
14
  dynamicAmountSymbol?: keyof typeof currencySymbol;
15
15
  /**
16
16
  * sets default amount group style for amount fields
17
+ * works for form fields
17
18
  * @default "lakh"
18
19
  */
19
- dynamicAmountGroupStyle?: string;
20
+ dynamicAmountGroupStyle?: "lakh" | "thousand" | "wan" | "none";
20
21
  /**
21
22
  * sets default currency format for gridWrapper
22
23
  * @default "en-IN"
@@ -28,7 +29,7 @@ interface CustomProperties {
28
29
  */
29
30
  decimalCount?: number;
30
31
  /**
31
- * sets default dateTime format for dateTimePicker fields
32
+ * sets default date format for datePicker fields
32
33
  * @default "dd/MM/yyyy"
33
34
  */
34
35
  commonDateFormat?: string;
@@ -52,5 +53,5 @@ interface ContextProps {
52
53
  config?: CustomProperties;
53
54
  }
54
55
  export declare const CustomPropertiesConfigurationProvider: FC<PropsWithChildren<ContextProps>>;
55
- export declare const usePropertiesConfig: () => CustomProperties;
56
+ export declare const usePropertiesConfigContext: () => CustomProperties;
56
57
  export {};
@@ -74,6 +74,11 @@ export interface GridColumnType {
74
74
  * @returns boolean
75
75
  */
76
76
  shouldExclude?: (value: string | undefined, original: any) => boolean;
77
+ /**
78
+ * Sets currency symbol position to start or end for currency component in grid
79
+ * @default "start"
80
+ */
81
+ currencySymbolPosition?: "start" | "end";
77
82
  }
78
83
  export interface GridConfigType {
79
84
  dense?: boolean;
@@ -56,4 +56,5 @@ export declare const attachcombinedValidationFns: (columns: GridColumnType[]) =>
56
56
  disableAdornment?: boolean | undefined;
57
57
  setButtonName?: ((value: string | undefined, original: any) => string) | undefined;
58
58
  shouldExclude?: ((value: string | undefined, original: any) => boolean) | undefined;
59
+ currencySymbolPosition?: "end" | "start" | undefined;
59
60
  }[];
@@ -56,4 +56,5 @@ export declare const attachYupSchemaValidator: (columns: GridColumnType[]) => {
56
56
  disableAdornment?: boolean | undefined;
57
57
  setButtonName?: ((value: string | undefined, original: any) => string) | undefined;
58
58
  shouldExclude?: ((value: string | undefined, original: any) => boolean) | undefined;
59
+ currencySymbolPosition?: "end" | "start" | undefined;
59
60
  }[];
@@ -1 +1,2 @@
1
+ export declare function formatCurrency(amount: any, symbol: any, currencyFormat?: string, decimalCount?: number, symbolPosi?: string, textString?: string): string;
1
2
  export declare const CurrencyRowCellRenderer: (props: any) => import("react/jsx-runtime").JSX.Element;