@oliasoft-open-source/react-ui-library 5.6.5-beta-1 → 5.6.5-beta-3
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/global.css +1 -1
- package/dist/index.d.ts +16 -53
- package/dist/index.js +892 -1315
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export declare enum ButtonType {
|
|
|
62
62
|
|
|
63
63
|
export declare const Card: ({ bordered, heading, children, margin, padding, raised, }: ICardProps) => JSX_2.Element;
|
|
64
64
|
|
|
65
|
-
export declare const CheckBox: ({ noMargin, dataix, isInTable, tabIndex, checked, indeterminate, name, label, disabled, small, onChange, testId, value, helpText, onClickHelp, }: ICheckBoxProps) => JSX_2.Element;
|
|
65
|
+
export declare const CheckBox: ({ noMargin, dataix, isInTable, tabIndex, checked, indeterminate, name, label, disabled, small, onChange, testId, value, helpText, onClickHelp, textTransform, }: ICheckBoxProps) => JSX_2.Element;
|
|
66
66
|
|
|
67
67
|
export declare const Chevron: ({ expanded }: IChevronProps) => JSX_2.Element;
|
|
68
68
|
|
|
@@ -278,6 +278,7 @@ export declare interface ICheckBoxProps {
|
|
|
278
278
|
value?: string;
|
|
279
279
|
helpText?: string;
|
|
280
280
|
onClickHelp?: TEmpty;
|
|
281
|
+
textTransform?: TTextTransform;
|
|
281
282
|
}
|
|
282
283
|
|
|
283
284
|
export declare interface IChevronProps {
|
|
@@ -1014,23 +1015,6 @@ export declare interface INumberInputProps {
|
|
|
1014
1015
|
disableValidationOnFocus?: boolean;
|
|
1015
1016
|
}
|
|
1016
1017
|
|
|
1017
|
-
declare interface IOnImportPasteResult {
|
|
1018
|
-
allValues: string[][];
|
|
1019
|
-
affectedRange: {
|
|
1020
|
-
row: {
|
|
1021
|
-
start: number;
|
|
1022
|
-
end: number;
|
|
1023
|
-
};
|
|
1024
|
-
column: {
|
|
1025
|
-
start: number;
|
|
1026
|
-
end: number;
|
|
1027
|
-
};
|
|
1028
|
-
};
|
|
1029
|
-
insertedValues: string[][];
|
|
1030
|
-
errors: string[];
|
|
1031
|
-
isValid: boolean;
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
1018
|
export declare interface IOptionDropdownProps {
|
|
1035
1019
|
name?: string;
|
|
1036
1020
|
label: string;
|
|
@@ -1180,6 +1164,7 @@ declare interface IRadioButtonOption {
|
|
|
1180
1164
|
name?: string;
|
|
1181
1165
|
checked?: boolean;
|
|
1182
1166
|
disabled?: boolean;
|
|
1167
|
+
textTransform?: TTextTransform;
|
|
1183
1168
|
}
|
|
1184
1169
|
|
|
1185
1170
|
export declare interface IRadioButtonProps {
|
|
@@ -1485,7 +1470,6 @@ export declare interface ITableImportExportProps {
|
|
|
1485
1470
|
config: ITableImportExportConfig;
|
|
1486
1471
|
smartUploadConfig?: ISmartUploadConfig;
|
|
1487
1472
|
testId?: string;
|
|
1488
|
-
__validationScopeId?: string;
|
|
1489
1473
|
}
|
|
1490
1474
|
|
|
1491
1475
|
export declare interface ITableImportExportState {
|
|
@@ -1518,8 +1502,6 @@ export declare interface ITableProps {
|
|
|
1518
1502
|
row: TRowType;
|
|
1519
1503
|
rowIndex: number;
|
|
1520
1504
|
}) => TRowType;
|
|
1521
|
-
enableMultiSelect?: boolean;
|
|
1522
|
-
onPasteApply?: (props: IOnImportPasteResult) => void;
|
|
1523
1505
|
}
|
|
1524
1506
|
|
|
1525
1507
|
declare interface ITableTableProps {
|
|
@@ -1544,9 +1526,6 @@ declare interface ITableTableProps {
|
|
|
1544
1526
|
stickyHeaders?: string | boolean;
|
|
1545
1527
|
actions?: any;
|
|
1546
1528
|
rowCount?: number;
|
|
1547
|
-
enableMultiSelect?: boolean;
|
|
1548
|
-
onPasteApply?: (props: IOnImportPasteResult) => void;
|
|
1549
|
-
validationRules?: TValidationRule_2[];
|
|
1550
1529
|
}
|
|
1551
1530
|
|
|
1552
1531
|
declare interface ITabOption {
|
|
@@ -1645,6 +1624,7 @@ export declare interface IToggleProps {
|
|
|
1645
1624
|
testId?: string;
|
|
1646
1625
|
helpText?: string;
|
|
1647
1626
|
onClickHelp?: (evt: any) => void;
|
|
1627
|
+
textTransform?: TTextTransform;
|
|
1648
1628
|
}
|
|
1649
1629
|
|
|
1650
1630
|
export declare interface ITooltipProps {
|
|
@@ -1832,7 +1812,6 @@ export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
|
|
|
1832
1812
|
row: IUnitTableRow;
|
|
1833
1813
|
rowIndex: number;
|
|
1834
1814
|
}) => IUnitTableRow;
|
|
1835
|
-
enableMultiSelect?: boolean;
|
|
1836
1815
|
}
|
|
1837
1816
|
|
|
1838
1817
|
export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {
|
|
@@ -1924,9 +1903,9 @@ declare const SPLIT_VIEW = "split";
|
|
|
1924
1903
|
|
|
1925
1904
|
declare type StringNumberOrNode = TStringOrNumber | ReactNode;
|
|
1926
1905
|
|
|
1927
|
-
export declare const Table:
|
|
1906
|
+
export declare const Table: (props: ITableProps) => JSX_2.Element;
|
|
1928
1907
|
|
|
1929
|
-
export declare const TableImportExport: ({ config, smartUploadConfig, testId,
|
|
1908
|
+
export declare const TableImportExport: ({ config, smartUploadConfig, testId, }: ITableImportExportProps) => JSX_2.Element;
|
|
1930
1909
|
|
|
1931
1910
|
export declare const Tabs: ({ name, options: rawOptions, children, value: rawValue, onChange, padding, margin, contentPadding, onChangeTab, activeTabIndex: rawActiveTabIndex, tabs: tabsConfig, testId, }: ITabsProps) => JSX_2.Element | null;
|
|
1932
1911
|
|
|
@@ -2004,6 +1983,13 @@ export declare const TextArea: ({ name, value, placeholder, cols, rows, disabled
|
|
|
2004
1983
|
|
|
2005
1984
|
export declare const TextLink: ({ children, href, target, testId, onClick, component: Component, }: ITextLinkProps) => JSX_2.Element;
|
|
2006
1985
|
|
|
1986
|
+
export declare enum TextTransform {
|
|
1987
|
+
UPPERCASE = "uppercase",
|
|
1988
|
+
LOWERCASE = "lowercase",
|
|
1989
|
+
CAPITALIZE = "capitalize",
|
|
1990
|
+
NONE = "none"
|
|
1991
|
+
}
|
|
1992
|
+
|
|
2007
1993
|
declare type TFileReaderMethod = TInputReaderMethods | string;
|
|
2008
1994
|
|
|
2009
1995
|
declare type TFunction = (...args: any[]) => any;
|
|
@@ -2048,7 +2034,7 @@ export declare const toast: ({ id, message, autoClose, onClose, }: IToastProps)
|
|
|
2048
2034
|
|
|
2049
2035
|
export { Toaster }
|
|
2050
2036
|
|
|
2051
|
-
export declare const Toggle: ({ name, label, checked, disabled, display, small, onChange, noMargin, testId, helpText, onClickHelp, }: IToggleProps) => JSX_2.Element;
|
|
2037
|
+
export declare const Toggle: ({ name, label, checked, disabled, display, small, onChange, noMargin, testId, helpText, onClickHelp, textTransform, }: IToggleProps) => JSX_2.Element;
|
|
2052
2038
|
|
|
2053
2039
|
export declare type TOnChangeEvent = {
|
|
2054
2040
|
target: TOnChangeEventTarget;
|
|
@@ -2119,7 +2105,7 @@ declare type TStringNumberNull = string | number | null;
|
|
|
2119
2105
|
|
|
2120
2106
|
declare type TStringOrNumber = string | number;
|
|
2121
2107
|
|
|
2122
|
-
declare type TTextTransform = 'uppercase' | 'lowercase' | 'capitalize' | 'none';
|
|
2108
|
+
export declare type TTextTransform = 'uppercase' | 'lowercase' | 'capitalize' | 'none';
|
|
2123
2109
|
|
|
2124
2110
|
export declare type TTheme = 'dark' | 'white' | 'light' | 'inherit';
|
|
2125
2111
|
|
|
@@ -2156,36 +2142,13 @@ export declare interface TValidationRule {
|
|
|
2156
2142
|
columnMessage?: Record<string, any>;
|
|
2157
2143
|
}
|
|
2158
2144
|
|
|
2159
|
-
declare interface TValidationRule_2 {
|
|
2160
|
-
fieldName: string;
|
|
2161
|
-
defaultUnit: string;
|
|
2162
|
-
validUnits: string[];
|
|
2163
|
-
optionalColumn?: boolean;
|
|
2164
|
-
validator?: (value: string) => string | boolean | undefined | null;
|
|
2165
|
-
fieldNameValidator?: (params: {
|
|
2166
|
-
value: string;
|
|
2167
|
-
defaultAllowedValues: string[];
|
|
2168
|
-
columnIndex: number;
|
|
2169
|
-
fields: string[];
|
|
2170
|
-
units: string[];
|
|
2171
|
-
}) => boolean;
|
|
2172
|
-
unitsValidator?: (params: {
|
|
2173
|
-
value: string;
|
|
2174
|
-
defaultAllowedValues: string[];
|
|
2175
|
-
columnIndex: number;
|
|
2176
|
-
fields: string[];
|
|
2177
|
-
units: string[];
|
|
2178
|
-
}) => boolean;
|
|
2179
|
-
columnMessage?: Record<string, any>;
|
|
2180
|
-
}
|
|
2181
|
-
|
|
2182
2145
|
declare const UNIFIED_VIEW = "unified";
|
|
2183
2146
|
|
|
2184
2147
|
declare type UnitContextType = any;
|
|
2185
2148
|
|
|
2186
2149
|
export declare const UnitInput: ({ name, placeholder, disabled, disabledUnit, error, left, small, width, value, unitkey, initUnit, noConversion, onChange, onClick, onFocus, onSwitchUnit, unitTemplate, testId, warning, predefinedOptions, initialPredefinedOption, shouldLinkAutomaticly, selectedPredefinedOptionKey, validationCallback, disabledValidation, allowEmpty, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, roundDisplayValue, selectOnFocus, groupOrder, tooltip, }: IUnitInputProps) => JSX_2.Element;
|
|
2187
2150
|
|
|
2188
|
-
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, onListReorder, canListReorder, beforeRenderRow: beforeRenderRowProp,
|
|
2151
|
+
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, onListReorder, canListReorder, beforeRenderRow: beforeRenderRowProp, }: IUnitTableProps) => JSX_2.Element;
|
|
2189
2152
|
|
|
2190
2153
|
export declare const useFocus: () => UseFocusReturnType;
|
|
2191
2154
|
|