linear-react-components-ui 1.1.25-beta.6 → 1.1.25-beta.7
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/lib/{BaseMask-78847f45.d.ts → BaseMask-0c14ef51.d.ts} +1 -1
- package/lib/{Cnpj-8366781f.d.ts → Cnpj-53bfd6ab.d.ts} +2 -1
- package/lib/{Cpf-3dfd54eb.d.ts → Cpf-019b21e0.d.ts} +2 -1
- package/lib/{Phone-1962c0f2.d.ts → Phone-2bb0b397.d.ts} +1 -1
- package/lib/{ZipCode-be9c5b3b.d.ts → ZipCode-09460e18.d.ts} +1 -1
- package/lib/index-19761a50.d.ts +26 -0
- package/lib/{index-6fcf446c.d.ts → index-208e7f62.d.ts} +20 -2
- package/lib/{index-02a27c19.d.ts → index-3b70931d.d.ts} +20 -2
- package/lib/index-4bda404f.d.ts +42 -0
- package/lib/{index-25b80f32.d.ts → index-7dfa8924.d.ts} +1 -1
- package/lib/{index-6f5c772d.d.ts → index-9e576346.d.ts} +1 -1
- package/lib/{index-696662fe.d.ts → index-afb7b5a9.d.ts} +1 -1
- package/lib/inputs2/checkboxfield/index.d.ts +2 -3
- package/lib/inputs2/checkboxfield/index.js +125 -32
- package/lib/inputs2/colorfield/index.d.ts +5 -6
- package/lib/inputs2/date/datefield/index.js +322 -34
- package/lib/inputs2/date/datefield/types.d.ts +3 -5
- package/lib/inputs2/date/dateperiodfield/index.js +587 -34
- package/lib/inputs2/date/dateperiodfield/types.d.ts +3 -5
- package/lib/inputs2/filefield/index.d.ts +5 -6
- package/lib/inputs2/index.d.ts +15 -18
- package/lib/inputs2/mask/BaseMask.d.ts +5 -6
- package/lib/inputs2/mask/Cnpj.d.ts +6 -7
- package/lib/inputs2/mask/Cnpj.js +21 -18
- package/lib/inputs2/mask/Cpf.d.ts +6 -7
- package/lib/inputs2/mask/Cpf.js +19 -12
- package/lib/inputs2/mask/Phone.d.ts +6 -7
- package/lib/inputs2/mask/ZipCode.d.ts +6 -7
- package/lib/inputs2/numberfield/currency.d.ts +4 -5
- package/lib/inputs2/numberfield/decimal.d.ts +4 -5
- package/lib/inputs2/numberfield/index.d.ts +4 -5
- package/lib/inputs2/numberfield/types.d.ts +4 -5
- package/lib/inputs2/radiofield/index.d.ts +1 -1
- package/lib/inputs2/radiofield/index.js +126 -25
- package/lib/inputs2/radiofield/types.d.ts +4 -6
- package/lib/inputs2/selectfield/index.d.ts +1 -1
- package/lib/inputs2/selectfield/index.js +502 -35
- package/lib/inputs2/selectfield/types.d.ts +6 -8
- package/lib/inputs2/textareafield/index.d.ts +3 -4
- package/lib/inputs2/textareafield/index.js +154 -30
- package/lib/inputs2/textfield/index.d.ts +4 -5
- package/lib/inputs2/textfield/index.js +120 -30
- package/package.json +1 -1
- package/lib/index-053f615b.d.ts +0 -26
- package/lib/index-7159df18.d.ts +0 -21
- package/lib/inputs2/checkboxfield/base.d.ts +0 -29
- package/lib/inputs2/checkboxfield/base.js +0 -134
- package/lib/inputs2/date/datefield/base.d.ts +0 -13
- package/lib/inputs2/date/datefield/base.js +0 -330
- package/lib/inputs2/date/dateperiodfield/base.d.ts +0 -13
- package/lib/inputs2/date/dateperiodfield/base.js +0 -595
- package/lib/inputs2/radiofield/base.d.ts +0 -12
- package/lib/inputs2/radiofield/base.js +0 -156
- package/lib/inputs2/selectfield/base.d.ts +0 -11
- package/lib/inputs2/selectfield/base.js +0 -513
- package/lib/inputs2/textareafield/base.d.ts +0 -26
- package/lib/inputs2/textareafield/base.js +0 -166
- package/lib/inputs2/textfield/base.d.ts +0 -26
- package/lib/inputs2/textfield/base.js +0 -131
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { M as MaskFieldProps } from './BaseMask-
|
|
2
|
+
import { M as MaskFieldProps } from './BaseMask-0c14ef51.js';
|
|
3
3
|
|
|
4
4
|
interface CnpjFieldProps extends MaskFieldProps {
|
|
5
|
+
enableValidation?: boolean;
|
|
5
6
|
onValidate?: (errors: string[]) => void;
|
|
6
7
|
}
|
|
7
8
|
declare const Input: React__default.ForwardRefExoticComponent<CnpjFieldProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { M as MaskFieldProps } from './BaseMask-
|
|
2
|
+
import { M as MaskFieldProps } from './BaseMask-0c14ef51.js';
|
|
3
3
|
|
|
4
4
|
interface CpfFieldProps extends MaskFieldProps {
|
|
5
|
+
enableValidation?: boolean;
|
|
5
6
|
onValidate?: (errors: string[]) => void;
|
|
6
7
|
}
|
|
7
8
|
declare const Input: React__default.ForwardRefExoticComponent<CpfFieldProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { M as MaskFieldProps } from './BaseMask-
|
|
2
|
+
import { M as MaskFieldProps } from './BaseMask-0c14ef51.js';
|
|
3
3
|
|
|
4
4
|
declare const Input: React__default.ForwardRefExoticComponent<MaskFieldProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
5
5
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
|
|
3
|
+
import { Options } from './inputs2/selectfield/options.js';
|
|
4
|
+
import { Item } from './inputs2/selectfield/item.js';
|
|
5
|
+
import { SelectFieldInputProps } from './inputs2/selectfield/types.js';
|
|
6
|
+
|
|
7
|
+
declare const Input: React__default.ForwardRefExoticComponent<Pick<SelectFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "customClass" | "permissionAttr" | "size" | "skeletonize" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "tooltip" | "tooltipWidth" | "tooltipPosition" | "checked" | "required" | "hint" | "hintPosition" | "themePopover" | "popoverAlign" | "width" | "height" | "multiple" | "readOnly" | "list" | "step" | "maxLength" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "showClearButton" | "searchOnDropdown" | "undigitable" | "openDropdownOnFocus" | "onSearch" | "striped" | "max" | "min" | "src" | "alt" | "errors" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "externalSearch" | "notFoundFilterLabel" | "searchInputPlaceholder" | "multipleInputLabelEmpty" | "multipleInputLabelManySelection" | "dropdownAlignButton"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
8
|
+
|
|
9
|
+
declare const index_Input: typeof Input;
|
|
10
|
+
declare const index_Item: typeof Item;
|
|
11
|
+
declare const index_LeftSlot: typeof LeftSlot;
|
|
12
|
+
declare const index_Options: typeof Options;
|
|
13
|
+
declare const index_RightSlot: typeof RightSlot;
|
|
14
|
+
declare const index_SelectFieldInputProps: typeof SelectFieldInputProps;
|
|
15
|
+
declare namespace index {
|
|
16
|
+
export {
|
|
17
|
+
index_Input as Input,
|
|
18
|
+
index_Item as Item,
|
|
19
|
+
index_LeftSlot as LeftSlot,
|
|
20
|
+
index_Options as Options,
|
|
21
|
+
index_RightSlot as RightSlot,
|
|
22
|
+
index_SelectFieldInputProps as SelectFieldInputProps,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { Input as I, index as i };
|
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
+
import { TextAlign } from './@types/Align.js';
|
|
3
|
+
import { ColorTheme } from './@types/ColorStyles.js';
|
|
4
|
+
import { HintPosition, Position } from './@types/Position.js';
|
|
2
5
|
import { PermissionAttr, OnDenied } from './@types/PermissionAttr.js';
|
|
3
6
|
import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
|
|
4
|
-
import {
|
|
7
|
+
import { ITooltipCommonProps } from './tooltip/types.js';
|
|
5
8
|
|
|
6
|
-
interface TextAreaFieldInputProps extends
|
|
9
|
+
interface TextAreaFieldInputProps extends React__default.ComponentPropsWithoutRef<'textarea'>, ITooltipCommonProps {
|
|
10
|
+
hint?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
errors?: string[];
|
|
7
13
|
gridLayout?: string;
|
|
14
|
+
customClass?: string;
|
|
15
|
+
customClassLabel?: string;
|
|
16
|
+
customClassWrapper?: string;
|
|
17
|
+
customClassInputContainer?: string;
|
|
18
|
+
rounded?: boolean;
|
|
19
|
+
readOnly?: boolean;
|
|
20
|
+
skeletonize?: boolean;
|
|
21
|
+
labelUppercase?: boolean;
|
|
22
|
+
textAlign?: TextAlign;
|
|
23
|
+
hintPosition?: HintPosition;
|
|
24
|
+
themePopover?: ColorTheme;
|
|
25
|
+
popoverAlign?: Extract<Position, 'left' | 'right'>;
|
|
8
26
|
permissionAttr?: PermissionAttr;
|
|
9
27
|
onDeniedActions?: OnDenied;
|
|
10
28
|
}
|
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
+
import { TextAlign } from './@types/Align.js';
|
|
3
|
+
import { ColorTheme } from './@types/ColorStyles.js';
|
|
4
|
+
import { HintPosition, Position } from './@types/Position.js';
|
|
2
5
|
import { PermissionAttr, OnDenied } from './@types/PermissionAttr.js';
|
|
3
6
|
import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
|
|
4
|
-
import {
|
|
7
|
+
import { ITooltipCommonProps } from './tooltip/types.js';
|
|
5
8
|
|
|
6
|
-
interface TextFieldInputProps extends
|
|
9
|
+
interface TextFieldInputProps extends React__default.ComponentPropsWithoutRef<'input'>, ITooltipCommonProps {
|
|
10
|
+
hint?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
errors?: string[];
|
|
7
13
|
gridLayout?: string;
|
|
14
|
+
customClass?: string;
|
|
15
|
+
customClassLabel?: string;
|
|
16
|
+
customClassWrapper?: string;
|
|
17
|
+
customClassInputContainer?: string;
|
|
18
|
+
rounded?: boolean;
|
|
19
|
+
readOnly?: boolean;
|
|
20
|
+
skeletonize?: boolean;
|
|
21
|
+
labelUppercase?: boolean;
|
|
22
|
+
textAlign?: TextAlign;
|
|
23
|
+
hintPosition?: HintPosition;
|
|
24
|
+
themePopover?: ColorTheme;
|
|
25
|
+
popoverAlign?: Extract<Position, 'left' | 'right'>;
|
|
8
26
|
permissionAttr?: PermissionAttr;
|
|
9
27
|
onDeniedActions?: OnDenied;
|
|
10
28
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Size } from './@types/Size.js';
|
|
3
|
+
import { ColorTheme } from './@types/ColorStyles.js';
|
|
4
|
+
import { ITooltipCommonProps } from './tooltip/types.js';
|
|
5
|
+
import { HintPosition, Position } from './@types/Position.js';
|
|
6
|
+
import { PermissionAttr, OnDenied } from './@types/PermissionAttr.js';
|
|
7
|
+
|
|
8
|
+
type InputHTMLProps = Omit<React__default.ComponentProps<'input'>, 'size' | 'type'>;
|
|
9
|
+
interface CheckboxFieldInputProps extends InputHTMLProps, ITooltipCommonProps {
|
|
10
|
+
hint?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
size?: Exclude<Size, 'mini'>;
|
|
13
|
+
variant?: 'default' | 'secondary';
|
|
14
|
+
errors?: string[];
|
|
15
|
+
gridLayout?: string;
|
|
16
|
+
customClass?: string;
|
|
17
|
+
customClassLabel?: string;
|
|
18
|
+
customClassWrapper?: string;
|
|
19
|
+
customClassInputContainer?: string;
|
|
20
|
+
rounded?: boolean;
|
|
21
|
+
readOnly?: boolean;
|
|
22
|
+
skeletonize?: boolean;
|
|
23
|
+
labelUppercase?: boolean;
|
|
24
|
+
hintPosition?: HintPosition;
|
|
25
|
+
themePopover?: ColorTheme;
|
|
26
|
+
popoverAlign?: Extract<Position, 'left' | 'right'>;
|
|
27
|
+
permissionAttr?: PermissionAttr;
|
|
28
|
+
onDeniedActions?: OnDenied;
|
|
29
|
+
tabIndex?: number;
|
|
30
|
+
}
|
|
31
|
+
declare const Input: React__default.ForwardRefExoticComponent<Pick<CheckboxFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "customClass" | "permissionAttr" | "size" | "skeletonize" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "tooltip" | "tooltipWidth" | "tooltipPosition" | "checked" | "required" | "labelUppercase" | "hint" | "hintPosition" | "themePopover" | "popoverAlign" | "width" | "height" | "multiple" | "readOnly" | "list" | "step" | "maxLength" | "rounded" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "max" | "min" | "src" | "alt" | "errors" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "variant"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
32
|
+
|
|
33
|
+
type index_CheckboxFieldInputProps = CheckboxFieldInputProps;
|
|
34
|
+
declare const index_Input: typeof Input;
|
|
35
|
+
declare namespace index {
|
|
36
|
+
export {
|
|
37
|
+
index_CheckboxFieldInputProps as CheckboxFieldInputProps,
|
|
38
|
+
index_Input as Input,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { CheckboxFieldInputProps as C, Input as I, index as i };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
|
|
3
|
-
import { T as TextFieldInputProps } from './index-
|
|
3
|
+
import { T as TextFieldInputProps } from './index-3b70931d.js';
|
|
4
4
|
|
|
5
5
|
interface ColorFieldInputProps extends TextFieldInputProps {
|
|
6
6
|
isTypeText?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { RadioFieldInputProps } from './inputs2/radiofield/types.js';
|
|
3
3
|
|
|
4
|
-
declare const Input: React__default.ForwardRefExoticComponent<Pick<RadioFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "customClass" | "permissionAttr" | "size" | "skeletonize" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "tooltip" | "tooltipWidth" | "tooltipPosition" | "checked" | "required" | "labelUppercase" | "hint" | "hintPosition" | "themePopover" | "popoverAlign" | "width" | "height" | "readOnly" | "list" | "step" | "maxLength" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "
|
|
4
|
+
declare const Input: React__default.ForwardRefExoticComponent<Pick<RadioFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "customClass" | "permissionAttr" | "size" | "skeletonize" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "tooltip" | "tooltipWidth" | "tooltipPosition" | "checked" | "required" | "labelUppercase" | "hint" | "hintPosition" | "themePopover" | "popoverAlign" | "width" | "height" | "readOnly" | "list" | "step" | "maxLength" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "max" | "min" | "src" | "alt" | "fieldId" | "errors" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "getFieldValue"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
5
5
|
|
|
6
6
|
declare const index_Input: typeof Input;
|
|
7
7
|
declare const index_RadioFieldInputProps: typeof RadioFieldInputProps;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import '../../@types/PermissionAttr.js';
|
|
3
|
-
import './base.js';
|
|
4
|
-
export { C as CheckboxFieldInputProps, I as Input } from '../../index-7159df18.js';
|
|
5
2
|
import '../../@types/Size.js';
|
|
6
3
|
import '../../@types/ColorStyles.js';
|
|
7
4
|
import '../../tooltip/types.js';
|
|
8
5
|
import '../../@types/Position.js';
|
|
6
|
+
import '../../@types/PermissionAttr.js';
|
|
7
|
+
export { C as CheckboxFieldInputProps, I as Input } from '../../index-4bda404f.js';
|
|
@@ -6,29 +6,48 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Input = void 0;
|
|
7
7
|
require("../../assets/styles/checkbox2.scss");
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
10
|
+
var _hint = _interopRequireDefault(require("../../hint"));
|
|
11
|
+
var _icons = _interopRequireDefault(require("../../icons"));
|
|
9
12
|
var _gridlayout = _interopRequireDefault(require("../../gridlayout"));
|
|
13
|
+
var _popover = _interopRequireWildcard(require("../../popover"));
|
|
14
|
+
var _tooltip = require("../../tooltip");
|
|
10
15
|
var _permissionValidations = require("../../permissionValidations");
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
const _excluded = ["name", "label", "errors", "onChange", "size", "onDeniedActions", "permissionAttr", "variant", "customClass", "customClassLabel", "customClassWrapper", "labelUppercase", "rounded", "customClassInputContainer", "skeletonize", "hintPosition", "gridLayout", "themePopover", "popoverAlign", "tooltip", "tooltipPosition", "tooltipWidth", "tabIndex"];
|
|
17
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
19
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
15
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
19
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
20
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
21
21
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
22
22
|
const options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible, _permissionValidations.OPTIONS_ON_DENIED.readOnly, _permissionValidations.OPTIONS_ON_DENIED.hideContent];
|
|
23
|
-
const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
24
|
+
var _props$checked, _props$hint;
|
|
25
|
+
const {
|
|
26
|
+
name,
|
|
27
|
+
label,
|
|
28
|
+
errors,
|
|
29
|
+
onChange,
|
|
30
|
+
size = 'default',
|
|
31
|
+
onDeniedActions = undefined,
|
|
32
|
+
permissionAttr = undefined,
|
|
33
|
+
variant = 'default',
|
|
34
|
+
customClass = '',
|
|
35
|
+
customClassLabel = '',
|
|
36
|
+
customClassWrapper = '',
|
|
37
|
+
labelUppercase = false,
|
|
38
|
+
rounded = false,
|
|
39
|
+
customClassInputContainer = '',
|
|
40
|
+
skeletonize = false,
|
|
41
|
+
hintPosition = 'below',
|
|
42
|
+
gridLayout = undefined,
|
|
43
|
+
themePopover = 'light',
|
|
44
|
+
popoverAlign = 'left',
|
|
45
|
+
tooltip,
|
|
46
|
+
tooltipPosition,
|
|
47
|
+
tooltipWidth,
|
|
48
|
+
tabIndex = 0
|
|
49
|
+
} = props,
|
|
50
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
32
51
|
const onDenied = _react.default.useMemo(() => {
|
|
33
52
|
return onDeniedActions || (0, _permissionValidations.actionsOnPermissionDenied)(options, permissionAttr);
|
|
34
53
|
}, [onDeniedActions, permissionAttr]);
|
|
@@ -36,22 +55,96 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((_ref, ref)
|
|
|
36
55
|
hideContent,
|
|
37
56
|
unvisible
|
|
38
57
|
} = onDenied;
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
58
|
+
const inputId = _react.default.useMemo(() => props.id || "checkboxfield-".concat(name), [props.id, name]);
|
|
59
|
+
const inputRootRef = _react.default.useRef(null);
|
|
60
|
+
const isChecked = (_props$checked = props.checked) !== null && _props$checked !== void 0 ? _props$checked : Boolean(props.value);
|
|
61
|
+
const hasLabel = !_lodash.default.isEmpty(props === null || props === void 0 ? void 0 : props.label);
|
|
62
|
+
const isReadOnly = Boolean(props.readOnly || onDenied.readOnly);
|
|
63
|
+
const isDisabled = Boolean(props.disabled || onDenied.disabled);
|
|
64
|
+
const hasHintMessages = Boolean((_props$hint = props.hint) === null || _props$hint === void 0 ? void 0 : _props$hint.length);
|
|
65
|
+
const hasValidationErrors = Boolean(errors === null || errors === void 0 ? void 0 : errors.length);
|
|
66
|
+
const handleOnChange = _react.default.useCallback(event => {
|
|
67
|
+
if (isReadOnly || isDisabled) return;
|
|
68
|
+
Object.defineProperty(event.target, 'value', {
|
|
69
|
+
value: event.target.checked,
|
|
70
|
+
writable: true,
|
|
71
|
+
enumerable: true,
|
|
72
|
+
configurable: true
|
|
73
|
+
});
|
|
74
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
75
|
+
}, [isReadOnly, isDisabled, onChange]);
|
|
45
76
|
if (unvisible || hideContent) return null;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
77
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_gridlayout.default, {
|
|
78
|
+
cols: gridLayout
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
80
|
+
ref: inputRootRef,
|
|
81
|
+
"data-testid": "test-chebox-field-root",
|
|
82
|
+
className: "checkbox-field-root ".concat(customClassWrapper),
|
|
83
|
+
"data-state-error": hasValidationErrors
|
|
84
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
85
|
+
"data-state-skeletonize": skeletonize,
|
|
86
|
+
className: "container ".concat(customClassInputContainer)
|
|
87
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
88
|
+
className: "input-root"
|
|
89
|
+
}, /*#__PURE__*/_react.default.createElement("input", _extends({
|
|
90
|
+
ref: ref,
|
|
91
|
+
id: inputId,
|
|
92
|
+
name: name,
|
|
93
|
+
readOnly: isReadOnly,
|
|
94
|
+
disabled: isDisabled,
|
|
95
|
+
className: "input ".concat(customClass),
|
|
96
|
+
tabIndex: !isReadOnly && !tabIndex ? 0 : -1,
|
|
97
|
+
"data-testid": "test-checkbox-field-input",
|
|
98
|
+
"data-state-size": size,
|
|
99
|
+
"data-state-error": hasValidationErrors,
|
|
100
|
+
"data-state-variant": variant,
|
|
101
|
+
"data-state-rounded": rounded,
|
|
102
|
+
"data-state-read-only": isReadOnly,
|
|
103
|
+
"data-state-skeletonize": skeletonize
|
|
104
|
+
}, rest, {
|
|
105
|
+
type: "checkbox",
|
|
106
|
+
checked: isChecked,
|
|
107
|
+
onChange: handleOnChange
|
|
108
|
+
})), /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
109
|
+
customClass: "checkmark",
|
|
110
|
+
name: "checkmark",
|
|
111
|
+
colorStyle: "default"
|
|
112
|
+
})), hasLabel && /*#__PURE__*/_react.default.createElement("label", {
|
|
113
|
+
className: "label ".concat(customClassLabel),
|
|
114
|
+
title: label,
|
|
115
|
+
htmlFor: inputId,
|
|
116
|
+
"aria-readonly": isReadOnly,
|
|
117
|
+
"aria-disabled": isDisabled,
|
|
118
|
+
"data-testid": "test-checkbox-field-label",
|
|
119
|
+
"data-state-skeletonize": skeletonize,
|
|
120
|
+
"data-state-disabled": isDisabled,
|
|
121
|
+
"data-state-read-only": isReadOnly,
|
|
122
|
+
"data-state-uppercase": labelUppercase,
|
|
123
|
+
"data-state-input-required": props.required
|
|
124
|
+
}, label), hasLabel && hasHintMessages && hintPosition === 'onLabelRight' && !skeletonize && /*#__PURE__*/_react.default.createElement(_popover.default, {
|
|
125
|
+
customClass: "label-popover",
|
|
126
|
+
theme: themePopover,
|
|
127
|
+
align: popoverAlign,
|
|
128
|
+
iconColor: "#03bde2"
|
|
129
|
+
}, /*#__PURE__*/_react.default.createElement(_popover.PopoverText, {
|
|
130
|
+
text: props === null || props === void 0 ? void 0 : props.hint
|
|
131
|
+
}))), hintPosition === 'below' && /*#__PURE__*/_react.default.createElement(_hint.default, {
|
|
132
|
+
customClass: "hint",
|
|
133
|
+
description: props.hint,
|
|
134
|
+
disabled: isDisabled,
|
|
135
|
+
skeletonize: skeletonize,
|
|
136
|
+
visible: hasHintMessages
|
|
137
|
+
}), hasValidationErrors && /*#__PURE__*/_react.default.createElement("span", {
|
|
138
|
+
className: "error",
|
|
139
|
+
"data-state-skeletonize": skeletonize,
|
|
140
|
+
"aria-describedby": String(name).concat('-errors')
|
|
141
|
+
}, errors === null || errors === void 0 ? void 0 : errors.map((error, index) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
142
|
+
key: "".concat(index + 1, "-").concat(error)
|
|
143
|
+
}, error, "\xA0"))))), /*#__PURE__*/_react.default.createElement(_tooltip.Tooltip, {
|
|
144
|
+
targetRef: inputRootRef,
|
|
145
|
+
text: tooltip,
|
|
146
|
+
width: tooltipWidth,
|
|
147
|
+
position: tooltipPosition
|
|
148
|
+
}));
|
|
56
149
|
});
|
|
57
150
|
Input.displayName = 'CheckboxFieldInput';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
export { LeftSlot, RightSlot } from '../slot/index.js';
|
|
3
|
-
import '../../index-
|
|
4
|
-
export { C as ColorFieldInputProps, I as Input } from '../../index-
|
|
5
|
-
import '../../@types/PermissionAttr.js';
|
|
6
|
-
import '../textfield/base.js';
|
|
7
|
-
import '../../tooltip/types.js';
|
|
8
|
-
import '../../@types/Position.js';
|
|
3
|
+
import '../../index-3b70931d.js';
|
|
4
|
+
export { C as ColorFieldInputProps, I as Input } from '../../index-9e576346.js';
|
|
9
5
|
import '../../@types/Align.js';
|
|
10
6
|
import '../../@types/ColorStyles.js';
|
|
7
|
+
import '../../@types/Position.js';
|
|
8
|
+
import '../../@types/PermissionAttr.js';
|
|
9
|
+
import '../../tooltip/types.js';
|