@oliasoft-open-source/react-ui-library 10.2.5-beta-3 → 10.2.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 +18 -10
- package/dist/index.js +1904 -1955
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1841,13 +1841,12 @@ export declare interface ITooltipProps {
|
|
|
1841
1841
|
triggerOffset?: number;
|
|
1842
1842
|
fontSize?: TStringOrNumber;
|
|
1843
1843
|
padding?: TStringOrNumber;
|
|
1844
|
-
forceOpen?: boolean;
|
|
1845
|
-
/** @deprecated Aria positioning replaces floating-ui animation-frame updates. */
|
|
1846
|
-
updateOnAnimationFrame?: boolean;
|
|
1847
|
-
children?: ReactNode;
|
|
1848
1844
|
display?: string;
|
|
1849
1845
|
flex?: string;
|
|
1850
1846
|
triggerStyle?: CSSProperties;
|
|
1847
|
+
forceOpen?: boolean;
|
|
1848
|
+
updateOnAnimationFrame?: boolean;
|
|
1849
|
+
children?: ReactNode;
|
|
1851
1850
|
}
|
|
1852
1851
|
|
|
1853
1852
|
declare interface ITopBarAppSwitcherProps {
|
|
@@ -1958,6 +1957,10 @@ declare interface IUnitConfigItem {
|
|
|
1958
1957
|
preferredUnit?: string;
|
|
1959
1958
|
}
|
|
1960
1959
|
|
|
1960
|
+
declare interface IUnitEntry {
|
|
1961
|
+
[key: string]: string;
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1961
1964
|
export declare interface IUnitInputProps {
|
|
1962
1965
|
name?: string | {
|
|
1963
1966
|
fieldName?: string;
|
|
@@ -2024,6 +2027,14 @@ declare interface IUnitTable extends Omit<ITableProps['table'], 'rows'> {
|
|
|
2024
2027
|
rows?: IUnitTableRow[];
|
|
2025
2028
|
}
|
|
2026
2029
|
|
|
2030
|
+
export declare interface IUnitTableBeforeRenderRowParams {
|
|
2031
|
+
row: IUnitTableRow;
|
|
2032
|
+
rowIndex: number;
|
|
2033
|
+
selectedUnits: IUnitEntry;
|
|
2034
|
+
storageUnits: IUnitEntry;
|
|
2035
|
+
convertValue: (value: TStringNumberNull, unitKey: string) => TStringNumberNull;
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2027
2038
|
declare interface IUnitTableCell {
|
|
2028
2039
|
autoUnit: boolean;
|
|
2029
2040
|
unitKey: string;
|
|
@@ -2044,7 +2055,7 @@ export declare interface IUnitTableOnChangeEvent extends ITableOnChangeEvent {
|
|
|
2044
2055
|
};
|
|
2045
2056
|
}
|
|
2046
2057
|
|
|
2047
|
-
export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
|
|
2058
|
+
export declare interface IUnitTableProps extends Omit<ITableProps, 'table' | 'beforeRenderRow'> {
|
|
2048
2059
|
table: IUnitTable;
|
|
2049
2060
|
unitConfig: IUnitConfigItem[];
|
|
2050
2061
|
convertBackToStorageUnit?: boolean;
|
|
@@ -2058,10 +2069,7 @@ export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
|
|
|
2058
2069
|
from: number;
|
|
2059
2070
|
to: number;
|
|
2060
2071
|
}) => boolean;
|
|
2061
|
-
beforeRenderRow?: (
|
|
2062
|
-
row: IUnitTableRow;
|
|
2063
|
-
rowIndex: number;
|
|
2064
|
-
}) => IUnitTableRow;
|
|
2072
|
+
beforeRenderRow?: (params: IUnitTableBeforeRenderRowParams) => IUnitTableRow;
|
|
2065
2073
|
}
|
|
2066
2074
|
|
|
2067
2075
|
export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {
|
|
@@ -2336,7 +2344,7 @@ declare type TOnChangeEventTarget = TOnChangeEventBaseTarget | (TOnChangeEventBa
|
|
|
2336
2344
|
predefinedOption: IPredefinedOption;
|
|
2337
2345
|
});
|
|
2338
2346
|
|
|
2339
|
-
export declare const Tooltip: (
|
|
2347
|
+
export declare const Tooltip: (props: ITooltipProps) => JSX.Element;
|
|
2340
2348
|
|
|
2341
2349
|
export declare const TopBar: ({ title, appSwitcher, content, contentRight, warning, height, fixedPosition, }: ITopBarProps) => JSX.Element;
|
|
2342
2350
|
|