@oliasoft-open-source/react-ui-library 5.6.5-beta-7 → 5.7.0-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
@@ -35,6 +35,22 @@ export declare enum Align {
35
35
  CENTER = "center"
36
36
  }
37
37
 
38
+ export declare interface AuditLogItem {
39
+ id: string;
40
+ userName: string;
41
+ operation: AuditLogOperation;
42
+ source: AuditLogSource;
43
+ createdAt: string;
44
+ diffs: any[];
45
+ operationMetaData?: string;
46
+ }
47
+
48
+ declare type AuditLogOperation = 'Created' | 'Cloned' | 'Reverted' | 'Imported' | 'Updated';
49
+
50
+ declare type AuditLogSource = 'System' | 'Application' | 'API';
51
+
52
+ export declare function AuditLogTable({ logs, onClick, loading }: IAuditLogTableProps): JSX_2.Element;
53
+
38
54
  export declare const Badge: ({ children, color, title, dot, margin, small, }: IBadgeProps) => JSX_2.Element;
39
55
 
40
56
  export declare const Breadcrumb: ({ links, small }: IBreadcrumbProps) => JSX_2.Element;
@@ -62,7 +78,7 @@ export declare enum ButtonType {
62
78
 
63
79
  export declare const Card: ({ bordered, heading, children, margin, padding, raised, }: ICardProps) => JSX_2.Element;
64
80
 
65
- export declare const CheckBox: ({ noMargin, dataix, isInTable, tabIndex, checked, indeterminate, name, label, disabled, small, onChange, testId, value, helpText, onClickHelp, }: ICheckBoxProps) => JSX_2.Element;
81
+ export declare const CheckBox: ({ noMargin, dataix, isInTable, tabIndex, checked, indeterminate, name, label, disabled, small, onChange, testId, value, helpText, onClickHelp, textTransform, }: ICheckBoxProps) => JSX_2.Element;
66
82
 
67
83
  export declare const Chevron: ({ expanded }: IChevronProps) => JSX_2.Element;
68
84
 
@@ -168,6 +184,12 @@ export declare interface IActionProps {
168
184
  closeLayer?: TEmpty;
169
185
  }
170
186
 
187
+ declare interface IAuditLogTableProps {
188
+ logs: AuditLogItem[];
189
+ loading?: boolean;
190
+ onClick: (log: AuditLogItem) => void;
191
+ }
192
+
171
193
  export declare interface IBadgeProps {
172
194
  children?: ReactNode;
173
195
  color?: string;
@@ -278,6 +300,7 @@ export declare interface ICheckBoxProps {
278
300
  value?: string;
279
301
  helpText?: string;
280
302
  onClickHelp?: TEmpty;
303
+ textTransform?: TTextTransform;
281
304
  }
282
305
 
283
306
  export declare interface IChevronProps {
@@ -1014,23 +1037,6 @@ export declare interface INumberInputProps {
1014
1037
  disableValidationOnFocus?: boolean;
1015
1038
  }
1016
1039
 
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
-
1034
1040
  export declare interface IOptionDropdownProps {
1035
1041
  name?: string;
1036
1042
  label: string;
@@ -1180,6 +1186,7 @@ declare interface IRadioButtonOption {
1180
1186
  name?: string;
1181
1187
  checked?: boolean;
1182
1188
  disabled?: boolean;
1189
+ textTransform?: TTextTransform;
1183
1190
  }
1184
1191
 
1185
1192
  export declare interface IRadioButtonProps {
@@ -1485,7 +1492,6 @@ export declare interface ITableImportExportProps {
1485
1492
  config: ITableImportExportConfig;
1486
1493
  smartUploadConfig?: ISmartUploadConfig;
1487
1494
  testId?: string;
1488
- __validationScopeId?: string;
1489
1495
  }
1490
1496
 
1491
1497
  export declare interface ITableImportExportState {
@@ -1518,8 +1524,6 @@ export declare interface ITableProps {
1518
1524
  row: TRowType;
1519
1525
  rowIndex: number;
1520
1526
  }) => TRowType;
1521
- enableMultiSelect?: boolean;
1522
- onPasteApply?: (props: IOnImportPasteResult) => void;
1523
1527
  }
1524
1528
 
1525
1529
  declare interface ITableTableProps {
@@ -1544,9 +1548,6 @@ declare interface ITableTableProps {
1544
1548
  stickyHeaders?: string | boolean;
1545
1549
  actions?: any;
1546
1550
  rowCount?: number;
1547
- enableMultiSelect?: boolean;
1548
- onPasteApply?: (props: IOnImportPasteResult) => void;
1549
- validationRules?: TValidationRule_2[];
1550
1551
  }
1551
1552
 
1552
1553
  declare interface ITabOption {
@@ -1645,6 +1646,7 @@ export declare interface IToggleProps {
1645
1646
  testId?: string;
1646
1647
  helpText?: string;
1647
1648
  onClickHelp?: (evt: any) => void;
1649
+ textTransform?: TTextTransform;
1648
1650
  }
1649
1651
 
1650
1652
  export declare interface ITooltipProps {
@@ -1832,7 +1834,6 @@ export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
1832
1834
  row: IUnitTableRow;
1833
1835
  rowIndex: number;
1834
1836
  }) => IUnitTableRow;
1835
- enableMultiSelect?: boolean;
1836
1837
  }
1837
1838
 
1838
1839
  export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {
@@ -1924,9 +1925,9 @@ declare const SPLIT_VIEW = "split";
1924
1925
 
1925
1926
  declare type StringNumberOrNode = TStringOrNumber | ReactNode;
1926
1927
 
1927
- export declare const Table: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<ITableProps & default_2.RefAttributes<any>>>;
1928
+ export declare const Table: (props: ITableProps) => JSX_2.Element;
1928
1929
 
1929
- export declare const TableImportExport: ({ config, smartUploadConfig, testId, __validationScopeId, }: ITableImportExportProps) => JSX_2.Element;
1930
+ export declare const TableImportExport: ({ config, smartUploadConfig, testId, }: ITableImportExportProps) => JSX_2.Element;
1930
1931
 
1931
1932
  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;
1932
1933
 
@@ -2004,6 +2005,13 @@ export declare const TextArea: ({ name, value, placeholder, cols, rows, disabled
2004
2005
 
2005
2006
  export declare const TextLink: ({ children, href, target, testId, onClick, component: Component, }: ITextLinkProps) => JSX_2.Element;
2006
2007
 
2008
+ export declare enum TextTransform {
2009
+ UPPERCASE = "uppercase",
2010
+ LOWERCASE = "lowercase",
2011
+ CAPITALIZE = "capitalize",
2012
+ NONE = "none"
2013
+ }
2014
+
2007
2015
  declare type TFileReaderMethod = TInputReaderMethods | string;
2008
2016
 
2009
2017
  declare type TFunction = (...args: any[]) => any;
@@ -2048,7 +2056,7 @@ export declare const toast: ({ id, message, autoClose, onClose, }: IToastProps)
2048
2056
 
2049
2057
  export { Toaster }
2050
2058
 
2051
- export declare const Toggle: ({ name, label, checked, disabled, display, small, onChange, noMargin, testId, helpText, onClickHelp, }: IToggleProps) => JSX_2.Element;
2059
+ export declare const Toggle: ({ name, label, checked, disabled, display, small, onChange, noMargin, testId, helpText, onClickHelp, textTransform, }: IToggleProps) => JSX_2.Element;
2052
2060
 
2053
2061
  export declare type TOnChangeEvent = {
2054
2062
  target: TOnChangeEventTarget;
@@ -2119,7 +2127,7 @@ declare type TStringNumberNull = string | number | null;
2119
2127
 
2120
2128
  declare type TStringOrNumber = string | number;
2121
2129
 
2122
- declare type TTextTransform = 'uppercase' | 'lowercase' | 'capitalize' | 'none';
2130
+ export declare type TTextTransform = 'uppercase' | 'lowercase' | 'capitalize' | 'none';
2123
2131
 
2124
2132
  export declare type TTheme = 'dark' | 'white' | 'light' | 'inherit';
2125
2133
 
@@ -2156,36 +2164,13 @@ export declare interface TValidationRule {
2156
2164
  columnMessage?: Record<string, any>;
2157
2165
  }
2158
2166
 
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
-
2182
2167
  declare const UNIFIED_VIEW = "unified";
2183
2168
 
2184
2169
  declare type UnitContextType = any;
2185
2170
 
2186
2171
  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;
2187
2172
 
2188
- export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, onListReorder, canListReorder, beforeRenderRow: beforeRenderRowProp, enableMultiSelect, }: IUnitTableProps) => JSX_2.Element;
2173
+ export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, onListReorder, canListReorder, beforeRenderRow: beforeRenderRowProp, }: IUnitTableProps) => JSX_2.Element;
2189
2174
 
2190
2175
  export declare const useFocus: () => UseFocusReturnType;
2191
2176