@oliasoft-open-source/react-ui-library 5.6.0-beta-27 → 5.6.1-beta-1
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 +50 -3
- package/dist/index.js +2759 -2318
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1012,6 +1012,23 @@ export declare interface INumberInputProps {
|
|
|
1012
1012
|
disableValidationOnFocus?: boolean;
|
|
1013
1013
|
}
|
|
1014
1014
|
|
|
1015
|
+
declare interface IOnImportPasteResult {
|
|
1016
|
+
allValues: string[][];
|
|
1017
|
+
affectedRange: {
|
|
1018
|
+
row: {
|
|
1019
|
+
start: number;
|
|
1020
|
+
end: number;
|
|
1021
|
+
};
|
|
1022
|
+
column: {
|
|
1023
|
+
start: number;
|
|
1024
|
+
end: number;
|
|
1025
|
+
};
|
|
1026
|
+
};
|
|
1027
|
+
insertedValues: string[][];
|
|
1028
|
+
errors: string[];
|
|
1029
|
+
isValid: boolean;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1015
1032
|
export declare interface IOptionDropdownProps {
|
|
1016
1033
|
name?: string;
|
|
1017
1034
|
label: string;
|
|
@@ -1466,6 +1483,7 @@ export declare interface ITableImportExportProps {
|
|
|
1466
1483
|
config: ITableImportExportConfig;
|
|
1467
1484
|
smartUploadConfig?: ISmartUploadConfig;
|
|
1468
1485
|
testId?: string;
|
|
1486
|
+
__validationScopeId?: string;
|
|
1469
1487
|
}
|
|
1470
1488
|
|
|
1471
1489
|
export declare interface ITableImportExportState {
|
|
@@ -1498,6 +1516,8 @@ export declare interface ITableProps {
|
|
|
1498
1516
|
row: TRowType;
|
|
1499
1517
|
rowIndex: number;
|
|
1500
1518
|
}) => TRowType;
|
|
1519
|
+
enableMultiSelect?: boolean;
|
|
1520
|
+
onPasteApply?: (props: IOnImportPasteResult) => void;
|
|
1501
1521
|
}
|
|
1502
1522
|
|
|
1503
1523
|
declare interface ITableTableProps {
|
|
@@ -1522,6 +1542,9 @@ declare interface ITableTableProps {
|
|
|
1522
1542
|
stickyHeaders?: string | boolean;
|
|
1523
1543
|
actions?: any;
|
|
1524
1544
|
rowCount?: number;
|
|
1545
|
+
enableMultiSelect?: boolean;
|
|
1546
|
+
onPasteApply?: (props: IOnImportPasteResult) => void;
|
|
1547
|
+
validationRules?: TValidationRule_2[];
|
|
1525
1548
|
}
|
|
1526
1549
|
|
|
1527
1550
|
declare interface ITabOption {
|
|
@@ -1807,6 +1830,7 @@ export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
|
|
|
1807
1830
|
row: IUnitTableRow;
|
|
1808
1831
|
rowIndex: number;
|
|
1809
1832
|
}) => IUnitTableRow;
|
|
1833
|
+
enableMultiSelect?: boolean;
|
|
1810
1834
|
}
|
|
1811
1835
|
|
|
1812
1836
|
export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {
|
|
@@ -1898,9 +1922,9 @@ declare const SPLIT_VIEW = "split";
|
|
|
1898
1922
|
|
|
1899
1923
|
declare type StringNumberOrNode = TStringOrNumber | ReactNode;
|
|
1900
1924
|
|
|
1901
|
-
export declare const Table:
|
|
1925
|
+
export declare const Table: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<ITableProps & default_2.RefAttributes<any>>>;
|
|
1902
1926
|
|
|
1903
|
-
export declare const TableImportExport: ({ config, smartUploadConfig, testId, }: ITableImportExportProps) => JSX_2.Element;
|
|
1927
|
+
export declare const TableImportExport: ({ config, smartUploadConfig, testId, __validationScopeId, }: ITableImportExportProps) => JSX_2.Element;
|
|
1904
1928
|
|
|
1905
1929
|
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;
|
|
1906
1930
|
|
|
@@ -2128,13 +2152,36 @@ export declare interface TValidationRule {
|
|
|
2128
2152
|
columnMessage?: Record<string, any>;
|
|
2129
2153
|
}
|
|
2130
2154
|
|
|
2155
|
+
declare interface TValidationRule_2 {
|
|
2156
|
+
fieldName: string;
|
|
2157
|
+
defaultUnit: string;
|
|
2158
|
+
validUnits: string[];
|
|
2159
|
+
optionalColumn?: boolean;
|
|
2160
|
+
validator?: (value: string) => string | boolean | undefined | null;
|
|
2161
|
+
fieldNameValidator?: (params: {
|
|
2162
|
+
value: string;
|
|
2163
|
+
defaultAllowedValues: string[];
|
|
2164
|
+
columnIndex: number;
|
|
2165
|
+
fields: string[];
|
|
2166
|
+
units: string[];
|
|
2167
|
+
}) => boolean;
|
|
2168
|
+
unitsValidator?: (params: {
|
|
2169
|
+
value: string;
|
|
2170
|
+
defaultAllowedValues: string[];
|
|
2171
|
+
columnIndex: number;
|
|
2172
|
+
fields: string[];
|
|
2173
|
+
units: string[];
|
|
2174
|
+
}) => boolean;
|
|
2175
|
+
columnMessage?: Record<string, any>;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2131
2178
|
declare const UNIFIED_VIEW = "unified";
|
|
2132
2179
|
|
|
2133
2180
|
declare type UnitContextType = any;
|
|
2134
2181
|
|
|
2135
2182
|
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;
|
|
2136
2183
|
|
|
2137
|
-
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, onListReorder, canListReorder, beforeRenderRow: beforeRenderRowProp, }: IUnitTableProps) => JSX_2.Element;
|
|
2184
|
+
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, onListReorder, canListReorder, beforeRenderRow: beforeRenderRowProp, enableMultiSelect, }: IUnitTableProps) => JSX_2.Element;
|
|
2138
2185
|
|
|
2139
2186
|
export declare const useFocus: () => UseFocusReturnType;
|
|
2140
2187
|
|