@pdg/react-form 1.2.13 → 1.2.15
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/PFormItemCustom/PFormAutocomplete/PFormAutocomplete.d.ts +1 -1
- package/dist/PFormItemCustom/PFormAutocomplete/PFormAutocomplete.types.d.ts +1 -1
- package/dist/PFormLayout/PFormRow/PFormRow.d.ts +1 -1
- package/dist/PFormLayout/PFormRow/PFormRow.types.d.ts +1 -0
- package/dist/index.esm.js +384 -371
- package/dist/index.js +384 -371
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ declare function PFormAutocomplete<T extends PFormAutocompleteSingleValue, Multi
|
|
|
4
4
|
/********************************************************************************************************************/
|
|
5
5
|
variant: initVariant, size: initSize, color: initColor, focused: initFocused, labelShrink: initLabelShrink, fullWidth: initFullWidth,
|
|
6
6
|
/********************************************************************************************************************/
|
|
7
|
-
name, labelIcon, label, loading: initLoading, items: initItems, value: initValue, data: initData, error: initError, helperText, disabled: initDisabled, readOnly, required, exceptValue, width, placeholder, multiple, formValueSeparator, formValueSort, disablePortal, noOptionsText, loadingText, limitTags, getLimitTagsText, openOnFocus, disableClearable, async, autoFocus, hidden: initHidden, onLoadItems, onAsyncLoadValueItem, onRenderItem, onRenderTag, onRenderValue,
|
|
7
|
+
name, labelIcon, label, loading: initLoading, items: initItems, value: initValue, data: initData, error: initError, helperText, disabled: initDisabled, readOnly, required, exceptValue, width, placeholder, multiple, formValueSeparator, formValueSort, disablePortal, noOptionsText, loadingText, limitTags, getLimitTagsText, openOnFocus, disableClearable, async, autoFocus, hidden: initHidden, onLoadItems, onAsyncLoadValueItem, onRenderItem, onRenderTag, onRenderValue, onGetDisplayValue, onAddItem, getOptionDisabled,
|
|
8
8
|
/********************************************************************************************************************/
|
|
9
9
|
onChange, onValue, onValidate, onFocus, onBlur,
|
|
10
10
|
/********************************************************************************************************************/
|
|
@@ -34,7 +34,7 @@ export interface PFormAutocompleteProps<T extends PFormAutocompleteSingleValue,
|
|
|
34
34
|
onRenderItem?: (item: Item) => ReactNode;
|
|
35
35
|
onRenderTag?: (item: Item) => ReactNode;
|
|
36
36
|
onRenderValue?: (item: Item) => ReactNode;
|
|
37
|
-
|
|
37
|
+
onGetDisplayValue?: (value: ComponentValue) => ComponentValue;
|
|
38
38
|
onValue?: (value: Value | undefined) => Value | undefined;
|
|
39
39
|
onAddItem?: (item: Item) => boolean | Promise<boolean>;
|
|
40
40
|
getOptionDisabled?: (item: Item) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PFormRowProps as Props } from './PFormRow.types';
|
|
3
|
-
declare const PFormRow: ({ ref, variant: initVariant, size: initSize, color: initColor, spacing: initSpacing, focused: initFocused, labelShrink: initLabelShrink, fullWidth: initFullWidth, icon, label, line, lineVerticalMargin, fullHeight, hidden, error, warning, helperText, children, className, style: initStyle, sx, }: Props) => React.JSX.Element;
|
|
3
|
+
declare const PFormRow: ({ ref, variant: initVariant, size: initSize, color: initColor, spacing: initSpacing, focused: initFocused, labelShrink: initLabelShrink, fullWidth: initFullWidth, icon, label, line, lineVerticalMargin, fullHeight, endAdornment, hidden, error, warning, helperText, children, className, style: initStyle, sx, }: Props) => React.JSX.Element;
|
|
4
4
|
export default PFormRow;
|
|
@@ -7,6 +7,7 @@ export interface PFormRowProps extends PCommonSxProps, PartialPick<PFormContextV
|
|
|
7
7
|
ref?: React.Ref<HTMLDivElement>;
|
|
8
8
|
fullHeight?: boolean;
|
|
9
9
|
helperText?: ReactNode;
|
|
10
|
+
endAdornment?: ReactNode;
|
|
10
11
|
}
|
|
11
12
|
export interface PFormColsInRowMap {
|
|
12
13
|
[key: string]: number | undefined;
|