@oliasoft-open-source/react-ui-library 5.6.1-beta-1 → 5.6.1-beta-3
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 +9 -52
- package/dist/index.js +2264 -2698
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export declare enum ElementType {
|
|
|
98
98
|
|
|
99
99
|
export declare const Empty: ({ width, height, text, children, testId, }: IEmptyProps) => JSX_2.Element;
|
|
100
100
|
|
|
101
|
-
export declare const Field: ({ label, labelLeft, labelWidth, children, helpText, helpTextMaxWidth, onClickHelp, lock, info, libraryIcon, testId, }: IFieldProps) => JSX_2.Element;
|
|
101
|
+
export declare const Field: ({ label, labelLeft, labelWidth, children, helpText, helpTextMaxWidth, onClickHelp, lock, info, libraryIcon, testId, textTransform, }: IFieldProps) => JSX_2.Element;
|
|
102
102
|
|
|
103
103
|
export declare const FileButton: ({ file, accept, multi, name, disabled, onChange, ...buttonProps }: IFileButtonProps) => JSX_2.Element;
|
|
104
104
|
|
|
@@ -446,6 +446,7 @@ export declare interface IFieldProps {
|
|
|
446
446
|
info?: string;
|
|
447
447
|
libraryIcon?: ILabelIcon;
|
|
448
448
|
testId?: string;
|
|
449
|
+
textTransform?: TTextTransform;
|
|
449
450
|
}
|
|
450
451
|
|
|
451
452
|
export declare interface IFileButtonProps extends IButtonProps {
|
|
@@ -629,6 +630,7 @@ export declare interface ILabelProps {
|
|
|
629
630
|
lock?: ILabelLockProps;
|
|
630
631
|
libraryIcon?: ILabelIcon;
|
|
631
632
|
labelLeft?: boolean;
|
|
633
|
+
textTransform?: TTextTransform;
|
|
632
634
|
}
|
|
633
635
|
|
|
634
636
|
export declare interface ILayoutColumnProps {
|
|
@@ -1012,23 +1014,6 @@ export declare interface INumberInputProps {
|
|
|
1012
1014
|
disableValidationOnFocus?: boolean;
|
|
1013
1015
|
}
|
|
1014
1016
|
|
|
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
|
-
|
|
1032
1017
|
export declare interface IOptionDropdownProps {
|
|
1033
1018
|
name?: string;
|
|
1034
1019
|
label: string;
|
|
@@ -1483,7 +1468,6 @@ export declare interface ITableImportExportProps {
|
|
|
1483
1468
|
config: ITableImportExportConfig;
|
|
1484
1469
|
smartUploadConfig?: ISmartUploadConfig;
|
|
1485
1470
|
testId?: string;
|
|
1486
|
-
__validationScopeId?: string;
|
|
1487
1471
|
}
|
|
1488
1472
|
|
|
1489
1473
|
export declare interface ITableImportExportState {
|
|
@@ -1516,8 +1500,6 @@ export declare interface ITableProps {
|
|
|
1516
1500
|
row: TRowType;
|
|
1517
1501
|
rowIndex: number;
|
|
1518
1502
|
}) => TRowType;
|
|
1519
|
-
enableMultiSelect?: boolean;
|
|
1520
|
-
onPasteApply?: (props: IOnImportPasteResult) => void;
|
|
1521
1503
|
}
|
|
1522
1504
|
|
|
1523
1505
|
declare interface ITableTableProps {
|
|
@@ -1542,9 +1524,6 @@ declare interface ITableTableProps {
|
|
|
1542
1524
|
stickyHeaders?: string | boolean;
|
|
1543
1525
|
actions?: any;
|
|
1544
1526
|
rowCount?: number;
|
|
1545
|
-
enableMultiSelect?: boolean;
|
|
1546
|
-
onPasteApply?: (props: IOnImportPasteResult) => void;
|
|
1547
|
-
validationRules?: TValidationRule_2[];
|
|
1548
1527
|
}
|
|
1549
1528
|
|
|
1550
1529
|
declare interface ITabOption {
|
|
@@ -1830,7 +1809,6 @@ export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
|
|
|
1830
1809
|
row: IUnitTableRow;
|
|
1831
1810
|
rowIndex: number;
|
|
1832
1811
|
}) => IUnitTableRow;
|
|
1833
|
-
enableMultiSelect?: boolean;
|
|
1834
1812
|
}
|
|
1835
1813
|
|
|
1836
1814
|
export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {
|
|
@@ -1840,7 +1818,7 @@ export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {
|
|
|
1840
1818
|
declare interface IUnitTableStaticCell extends IStaticCell, IUnitTableCell {
|
|
1841
1819
|
}
|
|
1842
1820
|
|
|
1843
|
-
export declare const Label: ({ label, width, helpText, helpTextMaxWidth, onClickHelp, lock, info, libraryIcon, labelLeft, }: ILabelProps) => JSX_2.Element;
|
|
1821
|
+
export declare const Label: ({ label, width, helpText, helpTextMaxWidth, onClickHelp, lock, info, libraryIcon, labelLeft, textTransform, }: ILabelProps) => JSX_2.Element;
|
|
1844
1822
|
|
|
1845
1823
|
export declare const List: ({ list, bordered, expanding, narrow, toggleNarrow, onToggleNarrow, invokeEditOnRowClick, noHeader, stickyHeader, draggable, onListReorder, marginBottom, height, testId, scrollDetails, }: IListProps) => JSX_2.Element;
|
|
1846
1824
|
|
|
@@ -1922,9 +1900,9 @@ declare const SPLIT_VIEW = "split";
|
|
|
1922
1900
|
|
|
1923
1901
|
declare type StringNumberOrNode = TStringOrNumber | ReactNode;
|
|
1924
1902
|
|
|
1925
|
-
export declare const Table:
|
|
1903
|
+
export declare const Table: (props: ITableProps) => JSX_2.Element;
|
|
1926
1904
|
|
|
1927
|
-
export declare const TableImportExport: ({ config, smartUploadConfig, testId,
|
|
1905
|
+
export declare const TableImportExport: ({ config, smartUploadConfig, testId, }: ITableImportExportProps) => JSX_2.Element;
|
|
1928
1906
|
|
|
1929
1907
|
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;
|
|
1930
1908
|
|
|
@@ -2117,6 +2095,8 @@ declare type TStringNumberNull = string | number | null;
|
|
|
2117
2095
|
|
|
2118
2096
|
declare type TStringOrNumber = string | number;
|
|
2119
2097
|
|
|
2098
|
+
declare type TTextTransform = 'uppercase' | 'lowercase' | 'capitalize' | 'none';
|
|
2099
|
+
|
|
2120
2100
|
export declare type TTheme = 'dark' | 'white' | 'light' | 'inherit';
|
|
2121
2101
|
|
|
2122
2102
|
declare type TTopBarContent = TLinkElement | TButtonElement | TMenuElement | TComponentElement;
|
|
@@ -2152,36 +2132,13 @@ export declare interface TValidationRule {
|
|
|
2152
2132
|
columnMessage?: Record<string, any>;
|
|
2153
2133
|
}
|
|
2154
2134
|
|
|
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
|
-
|
|
2178
2135
|
declare const UNIFIED_VIEW = "unified";
|
|
2179
2136
|
|
|
2180
2137
|
declare type UnitContextType = any;
|
|
2181
2138
|
|
|
2182
2139
|
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;
|
|
2183
2140
|
|
|
2184
|
-
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, onListReorder, canListReorder, beforeRenderRow: beforeRenderRowProp,
|
|
2141
|
+
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, onListReorder, canListReorder, beforeRenderRow: beforeRenderRowProp, }: IUnitTableProps) => JSX_2.Element;
|
|
2185
2142
|
|
|
2186
2143
|
export declare const useFocus: () => UseFocusReturnType;
|
|
2187
2144
|
|