@oliasoft-open-source/react-ui-library 5.6.4 → 5.6.5-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/index.d.ts CHANGED
@@ -1014,6 +1014,23 @@ export declare interface INumberInputProps {
1014
1014
  disableValidationOnFocus?: boolean;
1015
1015
  }
1016
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
+
1017
1034
  export declare interface IOptionDropdownProps {
1018
1035
  name?: string;
1019
1036
  label: string;
@@ -1468,6 +1485,7 @@ export declare interface ITableImportExportProps {
1468
1485
  config: ITableImportExportConfig;
1469
1486
  smartUploadConfig?: ISmartUploadConfig;
1470
1487
  testId?: string;
1488
+ __validationScopeId?: string;
1471
1489
  }
1472
1490
 
1473
1491
  export declare interface ITableImportExportState {
@@ -1500,6 +1518,8 @@ export declare interface ITableProps {
1500
1518
  row: TRowType;
1501
1519
  rowIndex: number;
1502
1520
  }) => TRowType;
1521
+ enableMultiSelect?: boolean;
1522
+ onPasteApply?: (props: IOnImportPasteResult) => void;
1503
1523
  }
1504
1524
 
1505
1525
  declare interface ITableTableProps {
@@ -1524,6 +1544,9 @@ declare interface ITableTableProps {
1524
1544
  stickyHeaders?: string | boolean;
1525
1545
  actions?: any;
1526
1546
  rowCount?: number;
1547
+ enableMultiSelect?: boolean;
1548
+ onPasteApply?: (props: IOnImportPasteResult) => void;
1549
+ validationRules?: TValidationRule_2[];
1527
1550
  }
1528
1551
 
1529
1552
  declare interface ITabOption {
@@ -1809,6 +1832,7 @@ export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
1809
1832
  row: IUnitTableRow;
1810
1833
  rowIndex: number;
1811
1834
  }) => IUnitTableRow;
1835
+ enableMultiSelect?: boolean;
1812
1836
  }
1813
1837
 
1814
1838
  export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {
@@ -1900,9 +1924,9 @@ declare const SPLIT_VIEW = "split";
1900
1924
 
1901
1925
  declare type StringNumberOrNode = TStringOrNumber | ReactNode;
1902
1926
 
1903
- export declare const Table: (props: ITableProps) => JSX_2.Element;
1927
+ export declare const Table: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<ITableProps & default_2.RefAttributes<any>>>;
1904
1928
 
1905
- export declare const TableImportExport: ({ config, smartUploadConfig, testId, }: ITableImportExportProps) => JSX_2.Element;
1929
+ export declare const TableImportExport: ({ config, smartUploadConfig, testId, __validationScopeId, }: ITableImportExportProps) => JSX_2.Element;
1906
1930
 
1907
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;
1908
1932
 
@@ -2132,13 +2156,36 @@ export declare interface TValidationRule {
2132
2156
  columnMessage?: Record<string, any>;
2133
2157
  }
2134
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
+
2135
2182
  declare const UNIFIED_VIEW = "unified";
2136
2183
 
2137
2184
  declare type UnitContextType = any;
2138
2185
 
2139
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;
2140
2187
 
2141
- 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;
2142
2189
 
2143
2190
  export declare const useFocus: () => UseFocusReturnType;
2144
2191