diff --git a/src/components/BusolaExtensions/ColumnsInput.js b/src/components/BusolaExtensions/ColumnsInput.js index 0adf9c2d58..ae8f1437e8 100644 --- a/src/components/BusolaExtensions/ColumnsInput.js +++ b/src/components/BusolaExtensions/ColumnsInput.js @@ -1,6 +1,5 @@ import { useTranslation } from 'react-i18next'; -import { CheckBox, MessageStrip } from '@ui5/webcomponents-react'; -import { FormInput } from 'fundamental-react'; +import { CheckBox, Input, MessageStrip } from '@ui5/webcomponents-react'; export function ColumnsInput({ value: columns, setValue: setColumns }) { const { t } = useTranslation(); @@ -23,10 +22,9 @@ export function ColumnsInput({ value: columns, setValue: setColumns }) { setColumns([...columns]); }} /> - { + onInput={e => { value.name = e.target.value; setColumns([...columns]); }} @@ -34,8 +32,8 @@ export function ColumnsInput({ value: columns, setValue: setColumns }) { placeholder={t('extensibility.starter-modal.headers.field-name')} readOnly={!value.isSelected} /> - - + + ); }); diff --git a/src/components/Extensibility/components-form/Jsonata.js b/src/components/Extensibility/components-form/Jsonata.js index 965d55da04..f70947dd6e 100644 --- a/src/components/Extensibility/components-form/Jsonata.js +++ b/src/components/Extensibility/components-form/Jsonata.js @@ -1,5 +1,5 @@ import React from 'react'; -import { InputGroup, FormInput } from 'fundamental-react'; +import { InputGroup } from 'fundamental-react'; import { useValidation } from 'shared/hooks/useValidation'; import { ResourceForm } from 'shared/ResourceForm'; @@ -8,7 +8,7 @@ import { getPropsFromSchema, } from 'components/Extensibility/helpers'; import { Tooltip } from 'shared/components/Tooltip/Tooltip'; -import { Icon } from '@ui5/webcomponents-react'; +import { Icon, Input } from '@ui5/webcomponents-react'; export function JsonataInput({ value, @@ -36,12 +36,7 @@ export function JsonataInput({ - + ); diff --git a/src/shared/ResourceForm/fields/RuntimeResources.js b/src/shared/ResourceForm/fields/RuntimeResources.js index 32141e7a75..5e8bfd07aa 100644 --- a/src/shared/ResourceForm/fields/RuntimeResources.js +++ b/src/shared/ResourceForm/fields/RuntimeResources.js @@ -1,11 +1,6 @@ import React from 'react'; import { useTranslation } from 'react-i18next'; -import { - FormItem, - FormInput, - FormLabel, - FormFieldset, -} from 'fundamental-react'; +import { FormItem, FormLabel, FormFieldset } from 'fundamental-react'; import * as jp from 'jsonpath'; import { Dropdown } from 'shared/components/Dropdown/Dropdown'; @@ -14,6 +9,7 @@ import { ResourceForm } from '..'; import * as Inputs from '../inputs'; import './RuntimeResources.scss'; +import { Input } from '@ui5/webcomponents-react'; function MemoryInput({ label, propertyPath, container = {}, setContainer }) { const units = ['K', 'Ki', 'M', 'Mi', 'G', 'Gi', 'Ti', 'T']; @@ -39,12 +35,11 @@ function MemoryInput({ label, propertyPath, container = {}, setContainer }) { {label}
- setValue(e.target.value + selectedUnit)} + onInput={e => setValue(e.target.value + selectedUnit)} /> ( - { + onInput={e => { setValue(e.target.value); updateValue(); }} - onKeyDown={e => focus(e)} - onBlur={() => { - const fieldValue = internalValue?.filter(val => !!val); - setMultiValue( - typeof customFormatFn === 'function' - ? customFormatFn(fieldValue) - : fieldValue, - ); - }} + // onKeyDown={e => focus(e)} + // onBlur={() => { + // const fieldValue = internalValue?.filter(val => !!val); + // setMultiValue( + // typeof customFormatFn === 'function' + // ? customFormatFn(fieldValue) + // : fieldValue, + // ); + // }} readOnly={readOnly} {...inputProps} - ariaLabel={ariaLabel} + aria-label={ariaLabel} /> ), ]} diff --git a/src/shared/ResourceForm/inputs/Number.js b/src/shared/ResourceForm/inputs/Number.js index 82c7422c9c..ddbc6f2082 100644 --- a/src/shared/ResourceForm/inputs/Number.js +++ b/src/shared/ResourceForm/inputs/Number.js @@ -1,14 +1,13 @@ import React from 'react'; -import { FormInput } from 'fundamental-react'; +import { Input } from '@ui5/webcomponents-react'; export function Number({ value = '', setValue, ...props }) { return (
- setValue(e.target.valueAsNumber ?? null)} + onInput={e => setValue(e.target.valueAsNumber ?? null)} {...props} />
diff --git a/src/shared/ResourceForm/inputs/Text.js b/src/shared/ResourceForm/inputs/Text.js index 7dcdfd952a..b64c16b0e5 100644 --- a/src/shared/ResourceForm/inputs/Text.js +++ b/src/shared/ResourceForm/inputs/Text.js @@ -1,6 +1,6 @@ import React from 'react'; -import { FormInput } from 'fundamental-react'; import { useValidation } from 'shared/hooks/useValidation'; +import { Input } from '@ui5/webcomponents-react'; export function Text(props) { return ; @@ -24,12 +24,7 @@ export function WrappedText({ value, setValue, onChange, inputRef, ...props }) { return (
- +
); } diff --git a/src/shared/components/MemoryInput.js b/src/shared/components/MemoryInput.js index 7d806df00a..26fb955bf0 100644 --- a/src/shared/components/MemoryInput.js +++ b/src/shared/components/MemoryInput.js @@ -1,7 +1,7 @@ import React from 'react'; -import { FormInput } from 'fundamental-react'; import { Dropdown } from 'shared/components/Dropdown/Dropdown'; +import { Input } from '@ui5/webcomponents-react'; export function MemoryInput({ label, propertyPath, value = '', setValue }) { const units = ['K', 'Ki', 'M', 'Mi', 'G', 'Gi', 'Ti', 'T']; @@ -19,13 +19,12 @@ export function MemoryInput({ label, propertyPath, value = '', setValue }) { return (
- setValue(`${e.target.value}${selectedUnit}`)} + onInput={e => setValue(`${e.target.value}${selectedUnit}`)} />