@oliasoft-open-source/react-ui-library 4.16.4-beta-1 → 4.17.0-beta-2

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
@@ -43,7 +43,7 @@ export declare enum BreadcrumbLinkType {
43
43
  CUSTOM = "custom"
44
44
  }
45
45
 
46
- export declare const Button: ({ active, basic, colored, disabled, groupOrder, icon, label, loading, name, pill, round, small, styles, width, title, type, onClick, error, warning, testId, tooltip, inverted, component: Component, url, }: IButtonProps) => JSX_2.Element;
46
+ export declare const Button: ({ active, basic, colored, disabled, ignoreDisabledContext, groupOrder, icon, label, loading, name, pill, round, small, styles, width, title, type, onClick, error, warning, testId, tooltip, inverted, component: Component, url, }: IButtonProps) => JSX_2.Element;
47
47
 
48
48
  export declare const ButtonGroup: (props: IButtonGroupProps) => JSX_2.Element;
49
49
 
@@ -206,6 +206,7 @@ export declare interface IButtonProps {
206
206
  basic?: boolean;
207
207
  colored?: boolean | string;
208
208
  disabled?: boolean;
209
+ ignoreDisabledContext?: boolean;
209
210
  groupOrder?: string | null;
210
211
  icon?: ReactNode | string;
211
212
  label?: ReactNode | string | null;
@@ -437,6 +438,7 @@ declare interface IFooterProps {
437
438
  pagination: IPagination;
438
439
  actions?: IAction[];
439
440
  content?: ReactNode;
441
+ testId?: string;
440
442
  }
441
443
 
442
444
  export declare interface IFormRowProps {
@@ -502,6 +504,7 @@ declare interface IInputCell extends TCommonCell {
502
504
  warning?: string;
503
505
  disabled?: boolean;
504
506
  maxTooltipWidth?: TStringOrNumber;
507
+ selectOnFocus?: boolean;
505
508
  tooltip?: StringNumberOrNode;
506
509
  }
507
510
 
@@ -528,6 +531,7 @@ export declare interface IInputProps {
528
531
  onFocus?: (evt: FocusEvent_2<HTMLInputElement>) => void;
529
532
  onBlur?: (evt: FocusEvent_2<HTMLInputElement>) => void;
530
533
  onPaste?: default_2.ClipboardEventHandler<HTMLInputElement>;
534
+ selectOnFocus?: boolean;
531
535
  small?: boolean;
532
536
  placeholder?: string | null;
533
537
  tabIndex?: number;
@@ -907,6 +911,7 @@ declare interface INumberInputCell extends TCommonCell {
907
911
  enableCosmeticRounding: boolean;
908
912
  enableDisplayRounding: boolean;
909
913
  roundDisplayValue: (value: TStringOrNumber) => TStringOrNumber;
914
+ selectOnFocus?: boolean;
910
915
  }
911
916
 
912
917
  export declare interface INumberInputProps {
@@ -923,6 +928,7 @@ export declare interface INumberInputProps {
923
928
  onChange?: TChangeEventHandler;
924
929
  onFocus?: (evt: FocusEvent_2<HTMLInputElement>) => void;
925
930
  onBlur?: (evt: FocusEvent_2<HTMLInputElement>) => void;
931
+ selectOnFocus?: boolean;
926
932
  tabIndex?: number;
927
933
  testId?: string;
928
934
  tooltip?: TStringOrNumber | default_2.ReactNode;
@@ -1122,12 +1128,8 @@ export declare interface IRowProps {
1122
1128
  }
1123
1129
 
1124
1130
  declare interface IScrollDetails {
1125
- scrollable?: boolean;
1126
1131
  hideScrollbar?: boolean;
1127
1132
  triggerScrollToActiveItem?: boolean;
1128
- infiniteScroll?: boolean;
1129
- infiniteScrollTarget?: string;
1130
- limit?: number;
1131
1133
  }
1132
1134
 
1133
1135
  declare interface ISelectCell extends TCommonCell {
@@ -1331,28 +1333,30 @@ export declare interface ITableProps {
1331
1333
  from: number;
1332
1334
  to: number;
1333
1335
  }) => void;
1334
- table: {
1335
- name?: TStringOrNumber | ReactNode;
1336
- actionsRight?: boolean;
1337
- fixedWidth?: TStringOrNumber;
1338
- maxHeight?: TStringOrNumber;
1339
- columnWidths?: string[];
1340
- className?: string;
1341
- columnHeaderAlignments?: Array<TAlign | string>;
1342
- columnAlignment?: Array<TAlign | string>;
1343
- infiniteScroll?: boolean;
1344
- headers?: any[];
1345
- rows?: TRowsType;
1346
- footer?: IFooterProps;
1347
- draggable?: boolean;
1348
- bordered?: boolean;
1349
- striped?: boolean;
1350
- testId?: string;
1351
- onAddRow?: any;
1352
- defaultEmptyRow?: any;
1353
- stickyHeaders?: string | boolean;
1354
- actions?: any;
1355
- };
1336
+ table: ITableTableProps;
1337
+ }
1338
+
1339
+ declare interface ITableTableProps {
1340
+ name?: TStringOrNumber | ReactNode;
1341
+ actionsRight?: boolean;
1342
+ fixedWidth?: TStringOrNumber;
1343
+ maxHeight?: TStringOrNumber;
1344
+ columnWidths?: string[];
1345
+ className?: string;
1346
+ columnHeaderAlignments?: Array<TAlign | string>;
1347
+ columnAlignment?: Array<TAlign | string>;
1348
+ infiniteScroll?: boolean;
1349
+ headers?: any[];
1350
+ rows?: TRowsType;
1351
+ footer?: IFooterProps;
1352
+ draggable?: boolean;
1353
+ bordered?: boolean;
1354
+ striped?: boolean;
1355
+ testId?: string;
1356
+ onAddRow?: any;
1357
+ defaultEmptyRow?: any;
1358
+ stickyHeaders?: string | boolean;
1359
+ actions?: any;
1356
1360
  }
1357
1361
 
1358
1362
  declare interface ITabOption {
@@ -1588,6 +1592,7 @@ export declare interface IUnitInputProps {
1588
1592
  enableCosmeticRounding?: boolean;
1589
1593
  enableDisplayRounding?: boolean;
1590
1594
  roundDisplayValue?: (args: TStringOrNumber) => TStringOrNumber;
1595
+ selectOnFocus?: boolean;
1591
1596
  }
1592
1597
 
1593
1598
  declare interface IUnitTable extends Omit<ITableProps['table'], 'rows'> {
@@ -1669,7 +1674,7 @@ export declare const Modal: ({ children, visible, centered, width, onEnter, onEs
1669
1674
 
1670
1675
  export declare const NativeSelect: ({ disabled, error, warning, tooltip, options, onChange, onFocus, onBlur, right, small, tabIndex, selectedOption, width, groupOrder, testId, isInTable, clearable, placeholder, hasNonExistentValue, maxTooltipWidth, borderRadius, }: INativeSelectProps) => JSX_2.Element;
1671
1676
 
1672
- export declare const NumberInput: ({ name, placeholder, disabled, error, left, small, width, value, onChange, onFocus, onBlur, tabIndex, testId, tooltip, warning, validationCallback, allowEmpty, isInTable, groupOrder, enableCosmeticRounding, enableDisplayRounding, roundDisplayValue, disableInternalErrorValidationMessages, }: INumberInputProps) => JSX_2.Element;
1677
+ export declare const NumberInput: ({ name, placeholder, disabled, error, left, small, width, value, onChange, onFocus, onBlur, selectOnFocus, tabIndex, testId, tooltip, warning, validationCallback, allowEmpty, isInTable, groupOrder, enableCosmeticRounding, enableDisplayRounding, roundDisplayValue, disableInternalErrorValidationMessages, }: INumberInputProps) => JSX_2.Element;
1673
1678
 
1674
1679
  export declare const OptionDropdown: ({ name, label, options, onChange, small, showHeader, maxHeight, }: IOptionDropdownProps) => ReactElement;
1675
1680
 
@@ -1885,7 +1890,7 @@ declare type TUnitTableCellShape = TCellShape | IUnitTableStaticCell | IUnitTabl
1885
1890
 
1886
1891
  declare type UnitContextType = any;
1887
1892
 
1888
- 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, }: IUnitInputProps) => JSX_2.Element;
1893
+ 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, }: IUnitInputProps) => JSX_2.Element;
1889
1894
 
1890
1895
  export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, }: IUnitTableProps) => JSX_2.Element;
1891
1896