@acuteinfo/common-base 1.0.12 → 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.
- package/dist/components/context/propertiesConfig/customProperties.d.ts +4 -4
- package/dist/components/dataTableStatic/types.d.ts +5 -0
- package/dist/components/dataTableStatic/utils/attachCombineValidationFns.d.ts +1 -0
- package/dist/components/dataTableStatic/utils/attachYupSchema.d.ts +1 -0
- package/dist/components/tableCellComponents/currencyRowCellRenderer.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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?:
|
|
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
|
|
32
|
+
* sets default date format for datePicker fields
|
|
32
33
|
* @default "dd/MM/yyyy"
|
|
33
34
|
*/
|
|
34
35
|
commonDateFormat?: string;
|
|
@@ -51,7 +52,6 @@ interface CustomProperties {
|
|
|
51
52
|
interface ContextProps {
|
|
52
53
|
config?: CustomProperties;
|
|
53
54
|
}
|
|
54
|
-
export declare const CustomPropertiesConfigurationContext: import("react").Context<CustomProperties>;
|
|
55
55
|
export declare const CustomPropertiesConfigurationProvider: FC<PropsWithChildren<ContextProps>>;
|
|
56
|
-
export declare const
|
|
56
|
+
export declare const usePropertiesConfigContext: () => CustomProperties;
|
|
57
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
|
}[];
|
package/dist/index.d.ts
CHANGED
|
@@ -52,3 +52,4 @@ export * from "./components/report/serverReport/ReportWrapper";
|
|
|
52
52
|
export * from "./components/utils/reportExport/context/exportWorkerContext";
|
|
53
53
|
export * from "./components/customNotistack";
|
|
54
54
|
export type { RetrievalParametersProps } from "./components/report/types";
|
|
55
|
+
export * from "./components/context/propertiesConfig/customProperties";
|