@acuteinfo/common-base 1.2.95 → 1.2.96
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/custom/getCurrencySymbol.d.ts +13 -1
- package/dist/components/custom-hooks/index.d.ts +3 -0
- package/dist/components/custom-hooks/useNumericFormatConfig.d.ts +30 -0
- package/dist/components/dataTable/backdrop.d.ts +1 -1
- package/dist/components/dataTable/styledComponents/slider.d.ts +1 -1
- package/dist/components/dataTableStatic/utils/attachCombineValidationFns.d.ts +1 -1
- package/dist/components/dataTableStatic/utils/attachYupSchema.d.ts +1 -1
- package/dist/components/derived/numberFormat/index.d.ts +2 -0
- package/dist/components/derived/numberFormat/numberFormat.d.ts +1 -1
- package/dist/components/styledComponent/inputLabel/inputLabel.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -83,6 +83,7 @@ export declare const currencySymbol: {
|
|
|
83
83
|
SEK: string;
|
|
84
84
|
TRY: string;
|
|
85
85
|
USD: string;
|
|
86
|
+
USA: string;
|
|
86
87
|
VND: string;
|
|
87
88
|
ZWL: string;
|
|
88
89
|
BTN: string;
|
|
@@ -124,4 +125,15 @@ export declare const currencySymbol: {
|
|
|
124
125
|
MMK: string;
|
|
125
126
|
BLANK: string;
|
|
126
127
|
};
|
|
127
|
-
export declare function getCurrencySymbol(currencyCode
|
|
128
|
+
export declare function getCurrencySymbol(currencyCode?: any, sendCodeBack?: boolean): any;
|
|
129
|
+
export type ThousandsGroupStyle = "thousand" | "lakh" | "wan" | "none";
|
|
130
|
+
export interface DynamicLocaleConfig {
|
|
131
|
+
prefix: string;
|
|
132
|
+
suffix: string;
|
|
133
|
+
thousandSeparator: string;
|
|
134
|
+
decimalSeparator: string;
|
|
135
|
+
thousandsGroupStyle: ThousandsGroupStyle;
|
|
136
|
+
decimalScale: number;
|
|
137
|
+
}
|
|
138
|
+
export declare function resolveThousandsGroupStyle(locale: string): ThousandsGroupStyle;
|
|
139
|
+
export declare function getLocaleCurrencyConfig(locale: string, currency: string): DynamicLocaleConfig;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ThousandsGroupStyle } from "components/custom/getCurrencySymbol";
|
|
2
|
+
export interface ResolvedNumericFormatConfig {
|
|
3
|
+
prefix: string;
|
|
4
|
+
suffix: string;
|
|
5
|
+
thousandSeparator: string | undefined;
|
|
6
|
+
decimalSeparator: string;
|
|
7
|
+
thousandsGroupStyle: ThousandsGroupStyle;
|
|
8
|
+
decimalScale: number | undefined;
|
|
9
|
+
fixedDecimalScale: boolean;
|
|
10
|
+
allowedDecimalSeparators: string[];
|
|
11
|
+
allowNegative: boolean;
|
|
12
|
+
valueIsNumericString: boolean;
|
|
13
|
+
currencyCode: string;
|
|
14
|
+
locale: string;
|
|
15
|
+
effectiveDecimalSeparator: string;
|
|
16
|
+
}
|
|
17
|
+
export interface UseNumericFormatConfigOptions {
|
|
18
|
+
FormatProps?: any;
|
|
19
|
+
currency?: string;
|
|
20
|
+
currencyCode?: string;
|
|
21
|
+
locale?: string;
|
|
22
|
+
isCurrencyField?: boolean;
|
|
23
|
+
suffix?: any;
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Common hook/helper to resolve all Dynamic NumericFormat properties
|
|
28
|
+
* identically across form inputs, AG-Grid editors, and filters.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useNumericFormatConfig(props?: UseNumericFormatConfigOptions): ResolvedNumericFormatConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const CustomBackdrop: import("react").JSXElementConstructor<Omit<import("@mui/material/Backdrop").BackdropOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
}, "onChange" | "onBlur" | "defaultValue" | "children" | "ref" | "color" | "content" | "transitionDuration" | "translate" | "exit" | "hidden" | "
|
|
4
|
+
}, "onChange" | "onBlur" | "defaultValue" | "children" | "ref" | "style" | "color" | "content" | "transitionDuration" | "translate" | "exit" | "hidden" | "open" | "classes" | "className" | "sx" | "slot" | "title" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "components" | "componentsProps" | "slotProps" | "slots" | "enter" | "in" | "TransitionComponent" | "mountOnEnter" | "unmountOnExit" | "timeout" | "easing" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "invisible">, "classes"> & import("@mui/styles").StyledComponentProps<"root"> & object>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledSlider: import("react").JSXElementConstructor<Omit<import("@mui/material/Slider").SliderOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
4
|
-
}, "onChange" | "value" | "defaultValue" | "name" | "
|
|
4
|
+
}, "onChange" | "value" | "defaultValue" | "name" | "style" | "color" | "scale" | "size" | "disabled" | "classes" | "className" | "sx" | "track" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "components" | "componentsProps" | "slotProps" | "slots" | "step" | "max" | "min" | "orientation" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "marks" | "onChangeCommitted" | "shiftStep" | "valueLabelDisplay" | "valueLabelFormat">, "classes"> & import("@mui/styles").StyledComponentProps<"active" | "root" | "track" | "rail" | "thumb" | "valueLabel"> & object>;
|
|
@@ -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?: "ALL" | "AFN" | "ARS" | "AWG" | "AUD" | "AZN" | "BSD" | "BBD" | "BYN" | "BZD" | "BMD" | "BOB" | "BAM" | "BWP" | "BGN" | "BRL" | "BND" | "KHR" | "BDT" | "CAD" | "KYD" | "
|
|
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;
|
|
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?: "ALL" | "AFN" | "ARS" | "AWG" | "AUD" | "AZN" | "BSD" | "BBD" | "BYN" | "BZD" | "BMD" | "BOB" | "BAM" | "BWP" | "BGN" | "BRL" | "BND" | "KHR" | "BDT" | "CAD" | "KYD" | "
|
|
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;
|
|
65
65
|
isCurrencyCode?: boolean | undefined;
|
|
66
66
|
isSelectedTotal?: boolean | undefined;
|
|
67
67
|
isTotalWithCurrency?: boolean | undefined;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export type { AllNumberFormatProps as NumberFormatProps } from "./numberFormat";
|
|
2
2
|
export { default, default as NumberFormat, NumberFormatCustom, } from "./numberFormat";
|
|
3
|
+
export { useNumericFormatConfig } from "components/custom-hooks/useNumericFormatConfig";
|
|
4
|
+
export type { ResolvedNumericFormatConfig, UseNumericFormatConfigOptions, } from "components/custom-hooks/useNumericFormatConfig";
|
|
@@ -4,7 +4,7 @@ import { TextFieldProps } from "components/common/textField";
|
|
|
4
4
|
import { Merge } from "components/common/types";
|
|
5
5
|
export declare const NumberFormatCustom: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<any>>;
|
|
6
6
|
interface extendedProps {
|
|
7
|
-
FormatProps
|
|
7
|
+
FormatProps?: NumericFormatProps;
|
|
8
8
|
formattedValue?: boolean;
|
|
9
9
|
isFieldFocused?: boolean;
|
|
10
10
|
maxPercent?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const MyInputLabel: import("react").JSXElementConstructor<Omit<import("@mui/material/InputLabel").InputLabelOwnProps & Pick<import("@mui/material").FormLabelOwnProps, "color" | "filled"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLLabelElement | null) => void) | import("react").RefObject<HTMLLabelElement> | null | undefined;
|
|
4
|
-
}, "error" | "children" | "
|
|
4
|
+
}, "error" | "children" | "style" | "color" | "margin" | "size" | "filled" | "disabled" | "variant" | "classes" | "className" | "focused" | "required" | "sx" | "disableAnimation" | "shrink">, "classes"> & import("@mui/styles").StyledComponentProps<"root" | "shrink"> & object>;
|
|
5
5
|
export default MyInputLabel;
|
package/dist/index.d.ts
CHANGED
|
@@ -65,4 +65,6 @@ export type { AgGridMetaData } from "./components/agGridTable/types";
|
|
|
65
65
|
export { LayoutReport } from "./components/layoutReport/LayoutReportParent";
|
|
66
66
|
export type { GroupReportMetaDataType, LayoutReportTypes, } from "./components/layoutReport/types";
|
|
67
67
|
export { ColorPicker } from "components/common/universal-color-picker";
|
|
68
|
+
export * from "./components/derived/numberFormat";
|
|
69
|
+
export * from "./components/custom-hooks";
|
|
68
70
|
export * from "./theme";
|