@oliasoft-open-source/react-ui-library 5.8.0-beta-2 → 5.8.0-beta-4
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 +4 -50
- package/dist/index.js +922 -1418
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1053,23 +1053,6 @@ export declare interface INumberInputProps {
|
|
|
1053
1053
|
disableValidationOnFocus?: boolean;
|
|
1054
1054
|
}
|
|
1055
1055
|
|
|
1056
|
-
declare interface IOnImportPasteResult {
|
|
1057
|
-
allValues: string[][];
|
|
1058
|
-
affectedRange: {
|
|
1059
|
-
row: {
|
|
1060
|
-
start: number;
|
|
1061
|
-
end: number;
|
|
1062
|
-
};
|
|
1063
|
-
column: {
|
|
1064
|
-
start: number;
|
|
1065
|
-
end: number;
|
|
1066
|
-
};
|
|
1067
|
-
};
|
|
1068
|
-
insertedValues: string[][];
|
|
1069
|
-
errors: string[];
|
|
1070
|
-
isValid: boolean;
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
1056
|
export declare interface IOptionDropdownProps {
|
|
1074
1057
|
name?: string;
|
|
1075
1058
|
label: string;
|
|
@@ -1530,7 +1513,6 @@ export declare interface ITableImportExportProps {
|
|
|
1530
1513
|
config: ITableImportExportConfig;
|
|
1531
1514
|
smartUploadConfig?: ISmartUploadConfig;
|
|
1532
1515
|
testId?: string;
|
|
1533
|
-
__validationScopeId?: string;
|
|
1534
1516
|
}
|
|
1535
1517
|
|
|
1536
1518
|
export declare interface ITableImportExportState {
|
|
@@ -1563,8 +1545,6 @@ export declare interface ITableProps {
|
|
|
1563
1545
|
row: TRowType;
|
|
1564
1546
|
rowIndex: number;
|
|
1565
1547
|
}) => TRowType;
|
|
1566
|
-
enableMultiSelect?: boolean;
|
|
1567
|
-
onPasteApply?: (props: IOnImportPasteResult) => void;
|
|
1568
1548
|
}
|
|
1569
1549
|
|
|
1570
1550
|
declare interface ITableTableProps {
|
|
@@ -1589,9 +1569,7 @@ declare interface ITableTableProps {
|
|
|
1589
1569
|
stickyHeaders?: string | boolean;
|
|
1590
1570
|
actions?: any;
|
|
1591
1571
|
rowCount?: number;
|
|
1592
|
-
|
|
1593
|
-
onPasteApply?: (props: IOnImportPasteResult) => void;
|
|
1594
|
-
validationRules?: TValidationRule_2[];
|
|
1572
|
+
triggerScrollToActiveRow?: boolean;
|
|
1595
1573
|
}
|
|
1596
1574
|
|
|
1597
1575
|
declare interface ITabOption {
|
|
@@ -1878,7 +1856,6 @@ export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
|
|
|
1878
1856
|
row: IUnitTableRow;
|
|
1879
1857
|
rowIndex: number;
|
|
1880
1858
|
}) => IUnitTableRow;
|
|
1881
|
-
enableMultiSelect?: boolean;
|
|
1882
1859
|
}
|
|
1883
1860
|
|
|
1884
1861
|
export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {
|
|
@@ -1972,9 +1949,9 @@ declare const SPLIT_VIEW = "split";
|
|
|
1972
1949
|
|
|
1973
1950
|
declare type StringNumberOrNode = TStringOrNumber | ReactNode;
|
|
1974
1951
|
|
|
1975
|
-
export declare const Table:
|
|
1952
|
+
export declare const Table: (props: ITableProps) => JSX_2.Element;
|
|
1976
1953
|
|
|
1977
|
-
export declare const TableImportExport: ({ config, smartUploadConfig, testId,
|
|
1954
|
+
export declare const TableImportExport: ({ config, smartUploadConfig, testId, }: ITableImportExportProps) => JSX_2.Element;
|
|
1978
1955
|
|
|
1979
1956
|
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;
|
|
1980
1957
|
|
|
@@ -2231,36 +2208,13 @@ export declare interface TValidationRule {
|
|
|
2231
2208
|
columnMessage?: Record<string, any>;
|
|
2232
2209
|
}
|
|
2233
2210
|
|
|
2234
|
-
declare interface TValidationRule_2 {
|
|
2235
|
-
fieldName: string;
|
|
2236
|
-
defaultUnit: string;
|
|
2237
|
-
validUnits: string[];
|
|
2238
|
-
optionalColumn?: boolean;
|
|
2239
|
-
validator?: (value: string) => string | boolean | undefined | null;
|
|
2240
|
-
fieldNameValidator?: (params: {
|
|
2241
|
-
value: string;
|
|
2242
|
-
defaultAllowedValues: string[];
|
|
2243
|
-
columnIndex: number;
|
|
2244
|
-
fields: string[];
|
|
2245
|
-
units: string[];
|
|
2246
|
-
}) => boolean;
|
|
2247
|
-
unitsValidator?: (params: {
|
|
2248
|
-
value: string;
|
|
2249
|
-
defaultAllowedValues: string[];
|
|
2250
|
-
columnIndex: number;
|
|
2251
|
-
fields: string[];
|
|
2252
|
-
units: string[];
|
|
2253
|
-
}) => boolean;
|
|
2254
|
-
columnMessage?: Record<string, any>;
|
|
2255
|
-
}
|
|
2256
|
-
|
|
2257
2211
|
declare const UNIFIED_VIEW = "unified";
|
|
2258
2212
|
|
|
2259
2213
|
declare type UnitContextType = any;
|
|
2260
2214
|
|
|
2261
2215
|
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;
|
|
2262
2216
|
|
|
2263
|
-
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, onListReorder, canListReorder, beforeRenderRow: beforeRenderRowProp,
|
|
2217
|
+
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, onListReorder, canListReorder, beforeRenderRow: beforeRenderRowProp, }: IUnitTableProps) => JSX_2.Element;
|
|
2264
2218
|
|
|
2265
2219
|
export declare const useFocus: () => UseFocusReturnType;
|
|
2266
2220
|
|