@acuteinfo/common-base 1.0.11 → 1.0.13
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 +56 -0
- package/dist/components/custom/getCurrencySymbol.d.ts +124 -0
- package/dist/components/dataTableStatic/types.d.ts +18 -0
- package/dist/components/dataTableStatic/utils/attachCombineValidationFns.d.ts +2 -0
- package/dist/components/dataTableStatic/utils/attachYupSchema.d.ts +2 -0
- package/dist/components/tableCellComponents/ButtonRowCell.d.ts +1 -1
- package/dist/components/tableCellComponents/deleteRowCell.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from "react";
|
|
2
|
+
import { currencySymbol } from "../../custom/getCurrencySymbol";
|
|
3
|
+
interface CustomProperties {
|
|
4
|
+
/**
|
|
5
|
+
* display _accountNumber field as single field or separated
|
|
6
|
+
* @default "separated"
|
|
7
|
+
*/
|
|
8
|
+
dynamicAccountNumberField?: "single" | "separated";
|
|
9
|
+
/**
|
|
10
|
+
* sets default currency symbol
|
|
11
|
+
* For example: INR -> ₹
|
|
12
|
+
* @default "INR"
|
|
13
|
+
*/
|
|
14
|
+
dynamicAmountSymbol?: keyof typeof currencySymbol;
|
|
15
|
+
/**
|
|
16
|
+
* sets default amount group style for amount fields
|
|
17
|
+
* @default "lakh"
|
|
18
|
+
*/
|
|
19
|
+
dynamicAmountGroupStyle?: string;
|
|
20
|
+
/**
|
|
21
|
+
* sets default currency format for gridWrapper
|
|
22
|
+
* @default "en-IN"
|
|
23
|
+
*/
|
|
24
|
+
currencyFormat?: string;
|
|
25
|
+
/**
|
|
26
|
+
* sets default decimal places for number format fields
|
|
27
|
+
* @default 2
|
|
28
|
+
*/
|
|
29
|
+
decimalCount?: number;
|
|
30
|
+
/**
|
|
31
|
+
* sets default dateTime format for dateTimePicker fields
|
|
32
|
+
* @default "dd/MM/yyyy"
|
|
33
|
+
*/
|
|
34
|
+
commonDateFormat?: string;
|
|
35
|
+
/**
|
|
36
|
+
* sets default dateTime format for dateTimePicker fields
|
|
37
|
+
* @default "dd/MM/yyyy hh:mm:ss aa"
|
|
38
|
+
*/
|
|
39
|
+
commonDateTimeFormat?: string;
|
|
40
|
+
/**
|
|
41
|
+
* sets default time format for timePicker fields
|
|
42
|
+
* @default "hh:mm:ss aa"
|
|
43
|
+
*/
|
|
44
|
+
commonTimeFormat?: string;
|
|
45
|
+
/**
|
|
46
|
+
* sets default denomination table type
|
|
47
|
+
* @default "single"
|
|
48
|
+
*/
|
|
49
|
+
denoTableType?: "single" | "dual";
|
|
50
|
+
}
|
|
51
|
+
interface ContextProps {
|
|
52
|
+
config?: CustomProperties;
|
|
53
|
+
}
|
|
54
|
+
export declare const CustomPropertiesConfigurationProvider: FC<PropsWithChildren<ContextProps>>;
|
|
55
|
+
export declare const usePropertiesConfig: () => CustomProperties;
|
|
56
|
+
export {};
|
|
@@ -1 +1,125 @@
|
|
|
1
|
+
export declare const currencySymbol: {
|
|
2
|
+
ALL: string;
|
|
3
|
+
AFN: string;
|
|
4
|
+
ARS: string;
|
|
5
|
+
AWG: string;
|
|
6
|
+
AUD: string;
|
|
7
|
+
AZN: string;
|
|
8
|
+
BSD: string;
|
|
9
|
+
BBD: string;
|
|
10
|
+
BYN: string;
|
|
11
|
+
BZD: string;
|
|
12
|
+
BMD: string;
|
|
13
|
+
BOB: string;
|
|
14
|
+
BAM: string;
|
|
15
|
+
BWP: string;
|
|
16
|
+
BGN: string;
|
|
17
|
+
BRL: string;
|
|
18
|
+
BND: string;
|
|
19
|
+
KHR: string;
|
|
20
|
+
BDT: string;
|
|
21
|
+
CAD: string;
|
|
22
|
+
KYD: string;
|
|
23
|
+
CLP: string;
|
|
24
|
+
CNY: string;
|
|
25
|
+
COP: string;
|
|
26
|
+
CRC: string;
|
|
27
|
+
HRK: string;
|
|
28
|
+
CUP: string;
|
|
29
|
+
CZK: string;
|
|
30
|
+
DKK: string;
|
|
31
|
+
DOP: string;
|
|
32
|
+
XCD: string;
|
|
33
|
+
EGP: string;
|
|
34
|
+
SVC: string;
|
|
35
|
+
EUR: string;
|
|
36
|
+
FKP: string;
|
|
37
|
+
GIP: string;
|
|
38
|
+
GTQ: string;
|
|
39
|
+
GGP: string;
|
|
40
|
+
GYD: string;
|
|
41
|
+
HNL: string;
|
|
42
|
+
HKD: string;
|
|
43
|
+
HUF: string;
|
|
44
|
+
INR: string;
|
|
45
|
+
IDR: string;
|
|
46
|
+
IRR: string;
|
|
47
|
+
IMP: string;
|
|
48
|
+
ILS: string;
|
|
49
|
+
JMD: string;
|
|
50
|
+
JPY: string;
|
|
51
|
+
JEP: string;
|
|
52
|
+
KZT: string;
|
|
53
|
+
KPW: string;
|
|
54
|
+
KRW: string;
|
|
55
|
+
KGS: string;
|
|
56
|
+
LAK: string;
|
|
57
|
+
LBP: string;
|
|
58
|
+
LRD: string;
|
|
59
|
+
MKD: string;
|
|
60
|
+
MYR: string;
|
|
61
|
+
MUR: string;
|
|
62
|
+
MXN: string;
|
|
63
|
+
MNT: string;
|
|
64
|
+
MZN: string;
|
|
65
|
+
NAD: string;
|
|
66
|
+
ANG: string;
|
|
67
|
+
NZD: string;
|
|
68
|
+
NIO: string;
|
|
69
|
+
NGN: string;
|
|
70
|
+
NOK: string;
|
|
71
|
+
OMR: string;
|
|
72
|
+
PKR: string;
|
|
73
|
+
PAB: string;
|
|
74
|
+
PYG: string;
|
|
75
|
+
PEN: string;
|
|
76
|
+
PHP: string;
|
|
77
|
+
PLN: string;
|
|
78
|
+
ZAR: string;
|
|
79
|
+
AED: string;
|
|
80
|
+
CHF: string;
|
|
81
|
+
GBP: string;
|
|
82
|
+
RUB: string;
|
|
83
|
+
SEK: string;
|
|
84
|
+
TRY: string;
|
|
85
|
+
USD: string;
|
|
86
|
+
VND: string;
|
|
87
|
+
ZWL: string;
|
|
88
|
+
BTN: string;
|
|
89
|
+
BYR: string;
|
|
90
|
+
CVE: string;
|
|
91
|
+
DJF: string;
|
|
92
|
+
DZD: string;
|
|
93
|
+
ERN: string;
|
|
94
|
+
FJD: string;
|
|
95
|
+
GEL: string;
|
|
96
|
+
GHS: string;
|
|
97
|
+
ISK: string;
|
|
98
|
+
KWD: string;
|
|
99
|
+
LKR: string;
|
|
100
|
+
LYD: string;
|
|
101
|
+
MDL: string;
|
|
102
|
+
MVR: string;
|
|
103
|
+
MWK: string;
|
|
104
|
+
NPR: string;
|
|
105
|
+
RSD: string;
|
|
106
|
+
SAR: string;
|
|
107
|
+
SCR: string;
|
|
108
|
+
SYP: string;
|
|
109
|
+
TND: string;
|
|
110
|
+
TTD: string;
|
|
111
|
+
TWD: string;
|
|
112
|
+
UGX: string;
|
|
113
|
+
YER: string;
|
|
114
|
+
ZMW: string;
|
|
115
|
+
XOF: string;
|
|
116
|
+
XAF: string;
|
|
117
|
+
TZS: string;
|
|
118
|
+
SZL: string;
|
|
119
|
+
STN: string;
|
|
120
|
+
SSP: string;
|
|
121
|
+
SOS: string;
|
|
122
|
+
SLL: string;
|
|
123
|
+
ETB: string;
|
|
124
|
+
};
|
|
1
125
|
export default function getCurrencySymbol(currencyCode: any): any;
|
|
@@ -55,7 +55,25 @@ export interface GridColumnType {
|
|
|
55
55
|
setValueFUNC?: Function;
|
|
56
56
|
isAutoFocus?: boolean;
|
|
57
57
|
isVisibleInNew?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Accepts boolean value to hide dropdown and cross icons from autocomplete
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
58
62
|
disableAdornment?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Function to set buttonRowCell button name dynamically
|
|
65
|
+
* @param value value of the buttonRowCell if exists
|
|
66
|
+
* @param original current grid row data
|
|
67
|
+
* @returns string
|
|
68
|
+
*/
|
|
69
|
+
setButtonName?: (value: string | undefined, original: any) => string;
|
|
70
|
+
/**
|
|
71
|
+
* Function to exclude component conditionally
|
|
72
|
+
* @param value value of component if exists
|
|
73
|
+
* @param original current grid row data
|
|
74
|
+
* @returns boolean
|
|
75
|
+
*/
|
|
76
|
+
shouldExclude?: (value: string | undefined, original: any) => boolean;
|
|
59
77
|
}
|
|
60
78
|
export interface GridConfigType {
|
|
61
79
|
dense?: boolean;
|
|
@@ -54,4 +54,6 @@ export declare const attachcombinedValidationFns: (columns: GridColumnType[]) =>
|
|
|
54
54
|
isAutoFocus?: boolean | undefined;
|
|
55
55
|
isVisibleInNew?: boolean | undefined;
|
|
56
56
|
disableAdornment?: boolean | undefined;
|
|
57
|
+
setButtonName?: ((value: string | undefined, original: any) => string) | undefined;
|
|
58
|
+
shouldExclude?: ((value: string | undefined, original: any) => boolean) | undefined;
|
|
57
59
|
}[];
|
|
@@ -54,4 +54,6 @@ export declare const attachYupSchemaValidator: (columns: GridColumnType[]) => {
|
|
|
54
54
|
isAutoFocus?: boolean | undefined;
|
|
55
55
|
isVisibleInNew?: boolean | undefined;
|
|
56
56
|
disableAdornment?: boolean | undefined;
|
|
57
|
+
setButtonName?: ((value: string | undefined, original: any) => string) | undefined;
|
|
58
|
+
shouldExclude?: ((value: string | undefined, original: any) => boolean) | undefined;
|
|
57
59
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ButtonRowCell: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare const ButtonRowCell: (props: any) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const DeleteRowButton: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare const DeleteRowButton: (props: any) => import("react/jsx-runtime").JSX.Element | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "regenerator-runtime/runtime";
|
|
2
2
|
import "buffer";
|
|
3
|
-
import "components/tableCellComponents";
|
|
3
|
+
import "./components/tableCellComponents";
|
|
4
4
|
export * from "./cache";
|
|
5
5
|
export * from "./components/dataTableStatic";
|
|
6
6
|
export * from "./components/tableCellComponents";
|
|
@@ -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";
|