@oliasoft-open-source/react-ui-library 4.15.4-beta-2 → 4.15.4-beta-4
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 +1 -5
- package/dist/index.js +1 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -502,7 +502,6 @@ declare interface IInputCell extends TCommonCell {
|
|
|
502
502
|
warning?: string;
|
|
503
503
|
disabled?: boolean;
|
|
504
504
|
maxTooltipWidth?: TStringOrNumber;
|
|
505
|
-
selectOnFocus?: boolean;
|
|
506
505
|
tooltip?: StringNumberOrNode;
|
|
507
506
|
}
|
|
508
507
|
|
|
@@ -529,7 +528,6 @@ export declare interface IInputProps {
|
|
|
529
528
|
onFocus?: (evt: FocusEvent_2<HTMLInputElement>) => void;
|
|
530
529
|
onBlur?: (evt: FocusEvent_2<HTMLInputElement>) => void;
|
|
531
530
|
onPaste?: default_2.ClipboardEventHandler<HTMLInputElement>;
|
|
532
|
-
selectOnFocus?: boolean;
|
|
533
531
|
small?: boolean;
|
|
534
532
|
placeholder?: string | null;
|
|
535
533
|
tabIndex?: number;
|
|
@@ -909,7 +907,6 @@ declare interface INumberInputCell extends TCommonCell {
|
|
|
909
907
|
enableCosmeticRounding: boolean;
|
|
910
908
|
enableDisplayRounding: boolean;
|
|
911
909
|
roundDisplayValue: (value: TStringOrNumber) => TStringOrNumber;
|
|
912
|
-
selectOnFocus?: boolean;
|
|
913
910
|
}
|
|
914
911
|
|
|
915
912
|
export declare interface INumberInputProps {
|
|
@@ -926,7 +923,6 @@ export declare interface INumberInputProps {
|
|
|
926
923
|
onChange?: TChangeEventHandler;
|
|
927
924
|
onFocus?: (evt: FocusEvent_2<HTMLInputElement>) => void;
|
|
928
925
|
onBlur?: (evt: FocusEvent_2<HTMLInputElement>) => void;
|
|
929
|
-
selectOnFocus?: boolean;
|
|
930
926
|
tabIndex?: number;
|
|
931
927
|
testId?: string;
|
|
932
928
|
tooltip?: TStringOrNumber | default_2.ReactNode;
|
|
@@ -1673,7 +1669,7 @@ export declare const Modal: ({ children, visible, centered, width, onEnter, onEs
|
|
|
1673
1669
|
|
|
1674
1670
|
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;
|
|
1675
1671
|
|
|
1676
|
-
export declare const NumberInput: ({ name, placeholder, disabled, error, left, small, width, value, onChange, onFocus, onBlur,
|
|
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
1673
|
|
|
1678
1674
|
export declare const OptionDropdown: ({ name, label, options, onChange, small, showHeader, maxHeight, }: IOptionDropdownProps) => ReactElement;
|
|
1679
1675
|
|
package/dist/index.js
CHANGED
|
@@ -9082,7 +9082,6 @@ const Input$1 = forwardRef(
|
|
|
9082
9082
|
},
|
|
9083
9083
|
onPaste = () => {
|
|
9084
9084
|
},
|
|
9085
|
-
selectOnFocus = false,
|
|
9086
9085
|
name: name2 = void 0,
|
|
9087
9086
|
type = "text",
|
|
9088
9087
|
tabIndex = 0,
|
|
@@ -9111,12 +9110,6 @@ const Input$1 = forwardRef(
|
|
|
9111
9110
|
return "";
|
|
9112
9111
|
})();
|
|
9113
9112
|
const width2 = propWidth || (size2 ? "auto" : "100%");
|
|
9114
|
-
const handleFocus = (e2) => {
|
|
9115
|
-
onFocus(e2);
|
|
9116
|
-
if (selectOnFocus) {
|
|
9117
|
-
e2.target.select();
|
|
9118
|
-
}
|
|
9119
|
-
};
|
|
9120
9113
|
return /* @__PURE__ */ jsx("div", { style: { width: width2 }, className: order2, children: /* @__PURE__ */ jsx(
|
|
9121
9114
|
Tooltip,
|
|
9122
9115
|
{
|
|
@@ -9137,7 +9130,7 @@ const Input$1 = forwardRef(
|
|
|
9137
9130
|
value: value ?? "",
|
|
9138
9131
|
onChange,
|
|
9139
9132
|
onKeyPress,
|
|
9140
|
-
onFocus
|
|
9133
|
+
onFocus,
|
|
9141
9134
|
onBlur,
|
|
9142
9135
|
onPaste,
|
|
9143
9136
|
name: name2,
|
|
@@ -19583,7 +19576,6 @@ const OptionDropdown = ({
|
|
|
19583
19576
|
{
|
|
19584
19577
|
options,
|
|
19585
19578
|
onChangeOptions: (evt, nextOptions) => {
|
|
19586
|
-
evt.stopPropagation();
|
|
19587
19579
|
evt.target.name = name2;
|
|
19588
19580
|
evt.target.value = nextOptions;
|
|
19589
19581
|
onChange(evt);
|
|
@@ -55642,7 +55634,6 @@ const InputCell = ({
|
|
|
55642
55634
|
isInTable: true,
|
|
55643
55635
|
maxTooltipWidth: cell2.maxTooltipWidth,
|
|
55644
55636
|
right: columnAlignment === Align.RIGHT,
|
|
55645
|
-
selectOnFocus: cell2.selectOnFocus,
|
|
55646
55637
|
testId,
|
|
55647
55638
|
tabIndex: cell2.disabled ? -1 : 0,
|
|
55648
55639
|
tooltip: cell2.tooltip,
|
|
@@ -55682,7 +55673,6 @@ const NumberInput = ({
|
|
|
55682
55673
|
},
|
|
55683
55674
|
onBlur = () => {
|
|
55684
55675
|
},
|
|
55685
|
-
selectOnFocus = false,
|
|
55686
55676
|
tabIndex = 0,
|
|
55687
55677
|
testId,
|
|
55688
55678
|
tooltip: tooltip2 = null,
|
|
@@ -55765,7 +55755,6 @@ const NumberInput = ({
|
|
|
55765
55755
|
}
|
|
55766
55756
|
};
|
|
55767
55757
|
useEffect(() => {
|
|
55768
|
-
if (selectOnFocus) return;
|
|
55769
55758
|
if (inputRef && (inputRef == null ? void 0 : inputRef.current) && enableDisplayRounding && focus2) {
|
|
55770
55759
|
const textInput = inputRef.current;
|
|
55771
55760
|
if (textInput) {
|
|
@@ -55811,7 +55800,6 @@ const NumberInput = ({
|
|
|
55811
55800
|
width: width2,
|
|
55812
55801
|
isInTable: isInTable2,
|
|
55813
55802
|
groupOrder,
|
|
55814
|
-
selectOnFocus,
|
|
55815
55803
|
tabIndex,
|
|
55816
55804
|
tooltip: tooltip2,
|
|
55817
55805
|
ref: inputRef
|
|
@@ -55843,7 +55831,6 @@ const NumberInputCell = ({
|
|
|
55843
55831
|
disabled: cell2.disabled,
|
|
55844
55832
|
isInTable: true,
|
|
55845
55833
|
left: cell2.left ?? columnAlignment === Align.LEFT,
|
|
55846
|
-
selectOnFocus: cell2.selectOnFocus,
|
|
55847
55834
|
tabIndex: cell2.disabled ? -1 : 0,
|
|
55848
55835
|
testId,
|
|
55849
55836
|
tooltip: cell2.tooltip,
|
|
@@ -70710,7 +70697,6 @@ const convertVisibleRows = ({
|
|
|
70710
70697
|
enableCosmeticRounding,
|
|
70711
70698
|
enableDisplayRounding,
|
|
70712
70699
|
roundDisplayValue,
|
|
70713
|
-
selectOnFocus: true,
|
|
70714
70700
|
onChange: (evt) => {
|
|
70715
70701
|
const { value: value2 } = evt.target;
|
|
70716
70702
|
const storageUnit2 = storageUnits[unitKey];
|