@oliasoft-open-source/react-ui-library 5.6.5-beta-3 → 5.6.5-beta-5
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 +53 -16
- package/dist/index.js +1315 -892
- 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,
|
|
65
|
+
export declare const CheckBox: ({ noMargin, dataix, isInTable, tabIndex, checked, indeterminate, name, label, disabled, small, onChange, testId, value, helpText, onClickHelp, }: ICheckBoxProps) => JSX_2.Element;
|
|
66
66
|
|
|
67
67
|
export declare const Chevron: ({ expanded }: IChevronProps) => JSX_2.Element;
|
|
68
68
|
|
|
@@ -278,7 +278,6 @@ export declare interface ICheckBoxProps {
|
|
|
278
278
|
value?: string;
|
|
279
279
|
helpText?: string;
|
|
280
280
|
onClickHelp?: TEmpty;
|
|
281
|
-
textTransform?: TTextTransform;
|
|
282
281
|
}
|
|
283
282
|
|
|
284
283
|
export declare interface IChevronProps {
|
|
@@ -1015,6 +1014,23 @@ export declare interface INumberInputProps {
|
|
|
1015
1014
|
disableValidationOnFocus?: boolean;
|
|
1016
1015
|
}
|
|
1017
1016
|
|
|
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
|
+
|
|
1018
1034
|
export declare interface IOptionDropdownProps {
|
|
1019
1035
|
name?: string;
|
|
1020
1036
|
label: string;
|
|
@@ -1164,7 +1180,6 @@ declare interface IRadioButtonOption {
|
|
|
1164
1180
|
name?: string;
|
|
1165
1181
|
checked?: boolean;
|
|
1166
1182
|
disabled?: boolean;
|
|
1167
|
-
textTransform?: TTextTransform;
|
|
1168
1183
|
}
|
|
1169
1184
|
|
|
1170
1185
|
export declare interface IRadioButtonProps {
|
|
@@ -1470,6 +1485,7 @@ export declare interface ITableImportExportProps {
|
|
|
1470
1485
|
config: ITableImportExportConfig;
|
|
1471
1486
|
smartUploadConfig?: ISmartUploadConfig;
|
|
1472
1487
|
testId?: string;
|
|
1488
|
+
__validationScopeId?: string;
|
|
1473
1489
|
}
|
|
1474
1490
|
|
|
1475
1491
|
export declare interface ITableImportExportState {
|
|
@@ -1502,6 +1518,8 @@ export declare interface ITableProps {
|
|
|
1502
1518
|
row: TRowType;
|
|
1503
1519
|
rowIndex: number;
|
|
1504
1520
|
}) => TRowType;
|
|
1521
|
+
enableMultiSelect?: boolean;
|
|
1522
|
+
onPasteApply?: (props: IOnImportPasteResult) => void;
|
|
1505
1523
|
}
|
|
1506
1524
|
|
|
1507
1525
|
declare interface ITableTableProps {
|
|
@@ -1526,6 +1544,9 @@ declare interface ITableTableProps {
|
|
|
1526
1544
|
stickyHeaders?: string | boolean;
|
|
1527
1545
|
actions?: any;
|
|
1528
1546
|
rowCount?: number;
|
|
1547
|
+
enableMultiSelect?: boolean;
|
|
1548
|
+
onPasteApply?: (props: IOnImportPasteResult) => void;
|
|
1549
|
+
validationRules?: TValidationRule_2[];
|
|
1529
1550
|
}
|
|
1530
1551
|
|
|
1531
1552
|
declare interface ITabOption {
|
|
@@ -1624,7 +1645,6 @@ export declare interface IToggleProps {
|
|
|
1624
1645
|
testId?: string;
|
|
1625
1646
|
helpText?: string;
|
|
1626
1647
|
onClickHelp?: (evt: any) => void;
|
|
1627
|
-
textTransform?: TTextTransform;
|
|
1628
1648
|
}
|
|
1629
1649
|
|
|
1630
1650
|
export declare interface ITooltipProps {
|
|
@@ -1812,6 +1832,7 @@ export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
|
|
|
1812
1832
|
row: IUnitTableRow;
|
|
1813
1833
|
rowIndex: number;
|
|
1814
1834
|
}) => IUnitTableRow;
|
|
1835
|
+
enableMultiSelect?: boolean;
|
|
1815
1836
|
}
|
|
1816
1837
|
|
|
1817
1838
|
export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {
|
|
@@ -1903,9 +1924,9 @@ declare const SPLIT_VIEW = "split";
|
|
|
1903
1924
|
|
|
1904
1925
|
declare type StringNumberOrNode = TStringOrNumber | ReactNode;
|
|
1905
1926
|
|
|
1906
|
-
export declare const Table:
|
|
1927
|
+
export declare const Table: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<ITableProps & default_2.RefAttributes<any>>>;
|
|
1907
1928
|
|
|
1908
|
-
export declare const TableImportExport: ({ config, smartUploadConfig, testId, }: ITableImportExportProps) => JSX_2.Element;
|
|
1929
|
+
export declare const TableImportExport: ({ config, smartUploadConfig, testId, __validationScopeId, }: ITableImportExportProps) => JSX_2.Element;
|
|
1909
1930
|
|
|
1910
1931
|
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;
|
|
1911
1932
|
|
|
@@ -1983,13 +2004,6 @@ export declare const TextArea: ({ name, value, placeholder, cols, rows, disabled
|
|
|
1983
2004
|
|
|
1984
2005
|
export declare const TextLink: ({ children, href, target, testId, onClick, component: Component, }: ITextLinkProps) => JSX_2.Element;
|
|
1985
2006
|
|
|
1986
|
-
export declare enum TextTransform {
|
|
1987
|
-
UPPERCASE = "uppercase",
|
|
1988
|
-
LOWERCASE = "lowercase",
|
|
1989
|
-
CAPITALIZE = "capitalize",
|
|
1990
|
-
NONE = "none"
|
|
1991
|
-
}
|
|
1992
|
-
|
|
1993
2007
|
declare type TFileReaderMethod = TInputReaderMethods | string;
|
|
1994
2008
|
|
|
1995
2009
|
declare type TFunction = (...args: any[]) => any;
|
|
@@ -2034,7 +2048,7 @@ export declare const toast: ({ id, message, autoClose, onClose, }: IToastProps)
|
|
|
2034
2048
|
|
|
2035
2049
|
export { Toaster }
|
|
2036
2050
|
|
|
2037
|
-
export declare const Toggle: ({ name, label, checked, disabled, display, small, onChange, noMargin, testId, helpText, onClickHelp,
|
|
2051
|
+
export declare const Toggle: ({ name, label, checked, disabled, display, small, onChange, noMargin, testId, helpText, onClickHelp, }: IToggleProps) => JSX_2.Element;
|
|
2038
2052
|
|
|
2039
2053
|
export declare type TOnChangeEvent = {
|
|
2040
2054
|
target: TOnChangeEventTarget;
|
|
@@ -2105,7 +2119,7 @@ declare type TStringNumberNull = string | number | null;
|
|
|
2105
2119
|
|
|
2106
2120
|
declare type TStringOrNumber = string | number;
|
|
2107
2121
|
|
|
2108
|
-
|
|
2122
|
+
declare type TTextTransform = 'uppercase' | 'lowercase' | 'capitalize' | 'none';
|
|
2109
2123
|
|
|
2110
2124
|
export declare type TTheme = 'dark' | 'white' | 'light' | 'inherit';
|
|
2111
2125
|
|
|
@@ -2142,13 +2156,36 @@ export declare interface TValidationRule {
|
|
|
2142
2156
|
columnMessage?: Record<string, any>;
|
|
2143
2157
|
}
|
|
2144
2158
|
|
|
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
|
+
|
|
2145
2182
|
declare const UNIFIED_VIEW = "unified";
|
|
2146
2183
|
|
|
2147
2184
|
declare type UnitContextType = any;
|
|
2148
2185
|
|
|
2149
2186
|
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;
|
|
2150
2187
|
|
|
2151
|
-
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, onListReorder, canListReorder, beforeRenderRow: beforeRenderRowProp, }: IUnitTableProps) => JSX_2.Element;
|
|
2188
|
+
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, onListReorder, canListReorder, beforeRenderRow: beforeRenderRowProp, enableMultiSelect, }: IUnitTableProps) => JSX_2.Element;
|
|
2152
2189
|
|
|
2153
2190
|
export declare const useFocus: () => UseFocusReturnType;
|
|
2154
2191
|
|