@acuteinfo/common-base 1.2.4 → 1.2.6
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/common/textField/textField.d.ts +3 -2
- package/dist/components/dataTableStatic/types.d.ts +15 -2
- package/dist/components/dataTableStatic/utils/attachCombineValidationFns.d.ts +4 -2
- package/dist/components/dataTableStatic/utils/attachYupSchema.d.ts +4 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/packages/form/src/field.d.ts +2 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ interface MyGridExtendedProps {
|
|
|
10
10
|
enableNumWords?: boolean;
|
|
11
11
|
maxLength?: number;
|
|
12
12
|
GridProps?: GridProps;
|
|
13
|
-
StartAdornment?: string;
|
|
13
|
+
StartAdornment?: string | Function;
|
|
14
14
|
EndAdornment?: string;
|
|
15
15
|
CircularProgressProps?: CircularProgressProps;
|
|
16
16
|
enableGrid: boolean;
|
|
@@ -33,7 +33,7 @@ interface MyGridExtendedProps {
|
|
|
33
33
|
placeholder?: string;
|
|
34
34
|
} | null | undefined;
|
|
35
35
|
label?: string;
|
|
36
|
-
preventSpecialChars?: string | null;
|
|
36
|
+
preventSpecialChars?: string | Function | null;
|
|
37
37
|
handleKeyDown?: (event: any, dependentValues: any, authState: any, formState: any, externalValueSet: (data: any) => void) => void;
|
|
38
38
|
/**
|
|
39
39
|
* CBS: Adds handleKeyDown to current textField from extended metadata field (accountCode)
|
|
@@ -41,6 +41,7 @@ interface MyGridExtendedProps {
|
|
|
41
41
|
*/
|
|
42
42
|
addHandleKeyDownFromExtendedType?: boolean;
|
|
43
43
|
runPostValidationForInitValue?: boolean;
|
|
44
|
+
isCurrencyField?: boolean;
|
|
44
45
|
}
|
|
45
46
|
type MyTextFieldAllProps = Merge<TextFieldProps, MyGridExtendedProps>;
|
|
46
47
|
export type MyTextFieldProps = UseFieldHookProps & MyTextFieldAllProps;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SxProps } from "@mui/material";
|
|
2
2
|
import { CustomProperties } from "components/context/propertiesConfig/customProperties";
|
|
3
|
+
import { currencySymbol } from "components/custom/getCurrencySymbol";
|
|
3
4
|
import { ActionTypes } from "components/dataTable/types";
|
|
4
5
|
import { CellComponentType } from "components/tableCellComponents";
|
|
5
6
|
import { ReactNode } from "react";
|
|
@@ -66,9 +67,21 @@ export interface GridColumnType {
|
|
|
66
67
|
setValueFUNC?: Function;
|
|
67
68
|
isAutoFocus?: boolean;
|
|
68
69
|
isVisibleInNew?: boolean;
|
|
69
|
-
|
|
70
|
+
/**
|
|
71
|
+
* Sets currency symbol reference to the provided column accessor that contains valid currency code OR provide currency code directly and use `isCurrencyCode` to true.
|
|
72
|
+
*/
|
|
73
|
+
currencyRefColumn?: keyof typeof currencySymbol | (string & Record<never, never>);
|
|
74
|
+
/**
|
|
75
|
+
* Set true if the currencyRefColumn contains valid currency code.
|
|
76
|
+
*/
|
|
70
77
|
isCurrencyCode?: boolean;
|
|
71
|
-
isSelectedTotal?:
|
|
78
|
+
isSelectedTotal?: boolean;
|
|
79
|
+
isTotalWithCurrency?: boolean;
|
|
80
|
+
isTotalWithoutCurrency?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* @deprecated will be removed in future versions.
|
|
83
|
+
* Use `isTotalWithCurrency` instead.
|
|
84
|
+
*/
|
|
72
85
|
isDisplayTotal?: Boolean;
|
|
73
86
|
totalDecimalCount?: number;
|
|
74
87
|
/**
|
|
@@ -59,9 +59,11 @@ export declare const attachcombinedValidationFns: (columns: GridColumnType[], au
|
|
|
59
59
|
setValueFUNC?: Function | undefined;
|
|
60
60
|
isAutoFocus?: boolean | undefined;
|
|
61
61
|
isVisibleInNew?: boolean | undefined;
|
|
62
|
-
currencyRefColumn?: string | undefined;
|
|
62
|
+
currencyRefColumn?: "ALL" | "AFN" | "ARS" | "AWG" | "AUD" | "AZN" | "BSD" | "BBD" | "BYN" | "BZD" | "BMD" | "BOB" | "BAM" | "BWP" | "BGN" | "BRL" | "BND" | "KHR" | "BDT" | "CAD" | "KYD" | "CLP" | "CNY" | "COP" | "CRC" | "HRK" | "CUP" | "CZK" | "DKK" | "DOP" | "XCD" | "EGP" | "SVC" | "EUR" | "FKP" | "GIP" | "GTQ" | "GGP" | "GYD" | "HNL" | "HKD" | "HUF" | "INR" | "IDR" | "IRR" | "IMP" | "ILS" | "JMD" | "JPY" | "JEP" | "KZT" | "KPW" | "KRW" | "KGS" | "LAK" | "LBP" | "LRD" | "MKD" | "MYR" | "MUR" | "MXN" | "MNT" | "MZN" | "NAD" | "ANG" | "NZD" | "NIO" | "NGN" | "NOK" | "OMR" | "PKR" | "PAB" | "PYG" | "PEN" | "PHP" | "PLN" | "ZAR" | "AED" | "CHF" | "GBP" | "RUB" | "SEK" | "TRY" | "USD" | "VND" | "ZWL" | "BTN" | "BYR" | "CVE" | "DJF" | "DZD" | "ERN" | "FJD" | "GEL" | "GHS" | "ISK" | "KWD" | "LKR" | "LYD" | "MDL" | "MVR" | "MWK" | "NPR" | "RSD" | "SAR" | "SCR" | "SYP" | "TND" | "TTD" | "TWD" | "UGX" | "YER" | "ZMW" | "XOF" | "XAF" | "TZS" | "SZL" | "STN" | "SSP" | "SOS" | "SLL" | "ETB" | "MMK" | "BLANK" | (string & Record<never, never>) | undefined;
|
|
63
63
|
isCurrencyCode?: boolean | undefined;
|
|
64
|
-
isSelectedTotal?:
|
|
64
|
+
isSelectedTotal?: boolean | undefined;
|
|
65
|
+
isTotalWithCurrency?: boolean | undefined;
|
|
66
|
+
isTotalWithoutCurrency?: boolean | undefined;
|
|
65
67
|
isDisplayTotal?: Boolean | undefined;
|
|
66
68
|
totalDecimalCount?: number | undefined;
|
|
67
69
|
disableAdornment?: boolean | undefined;
|
|
@@ -59,9 +59,11 @@ export declare const attachYupSchemaValidator: (columns: GridColumnType[]) => {
|
|
|
59
59
|
setValueFUNC?: Function | undefined;
|
|
60
60
|
isAutoFocus?: boolean | undefined;
|
|
61
61
|
isVisibleInNew?: boolean | undefined;
|
|
62
|
-
currencyRefColumn?: string | undefined;
|
|
62
|
+
currencyRefColumn?: "ALL" | "AFN" | "ARS" | "AWG" | "AUD" | "AZN" | "BSD" | "BBD" | "BYN" | "BZD" | "BMD" | "BOB" | "BAM" | "BWP" | "BGN" | "BRL" | "BND" | "KHR" | "BDT" | "CAD" | "KYD" | "CLP" | "CNY" | "COP" | "CRC" | "HRK" | "CUP" | "CZK" | "DKK" | "DOP" | "XCD" | "EGP" | "SVC" | "EUR" | "FKP" | "GIP" | "GTQ" | "GGP" | "GYD" | "HNL" | "HKD" | "HUF" | "INR" | "IDR" | "IRR" | "IMP" | "ILS" | "JMD" | "JPY" | "JEP" | "KZT" | "KPW" | "KRW" | "KGS" | "LAK" | "LBP" | "LRD" | "MKD" | "MYR" | "MUR" | "MXN" | "MNT" | "MZN" | "NAD" | "ANG" | "NZD" | "NIO" | "NGN" | "NOK" | "OMR" | "PKR" | "PAB" | "PYG" | "PEN" | "PHP" | "PLN" | "ZAR" | "AED" | "CHF" | "GBP" | "RUB" | "SEK" | "TRY" | "USD" | "VND" | "ZWL" | "BTN" | "BYR" | "CVE" | "DJF" | "DZD" | "ERN" | "FJD" | "GEL" | "GHS" | "ISK" | "KWD" | "LKR" | "LYD" | "MDL" | "MVR" | "MWK" | "NPR" | "RSD" | "SAR" | "SCR" | "SYP" | "TND" | "TTD" | "TWD" | "UGX" | "YER" | "ZMW" | "XOF" | "XAF" | "TZS" | "SZL" | "STN" | "SSP" | "SOS" | "SLL" | "ETB" | "MMK" | "BLANK" | (string & Record<never, never>) | undefined;
|
|
63
63
|
isCurrencyCode?: boolean | undefined;
|
|
64
|
-
isSelectedTotal?:
|
|
64
|
+
isSelectedTotal?: boolean | undefined;
|
|
65
|
+
isTotalWithCurrency?: boolean | undefined;
|
|
66
|
+
isTotalWithoutCurrency?: boolean | undefined;
|
|
65
67
|
isDisplayTotal?: Boolean | undefined;
|
|
66
68
|
totalDecimalCount?: number | undefined;
|
|
67
69
|
disableAdornment?: boolean | undefined;
|