Represents an interface for a dictionary slot.

interface IDictSlot {
    description?: string;
    dictCreateButton?: any;
    dictDelay?: number;
    dictLimit?: number;
    dictOnAppend?: (
        search: string,
        data: any,
        payload: any,
        onValueChange: (value: null | string) => void,
        onChange: (value: any) => void,
    ) => void;
    dictOnItem?: (
        value: null | string,
        data: any,
        payload: any,
        onValueChange: (value: null | string) => void,
        onChange: (data: any) => void,
    ) => void;
    dictOnText?: (
        text: string,
        data: any,
        payload: any,
        onValueChange: (value: null | string) => void,
        onChange: (data: any) => void,
    ) => void;
    dictSearch?: (
        dto: {
            data: any;
            initial: boolean;
            limit: number;
            offset: number;
            payload: any;
            rows: ISearchItem<any>[];
            search: string;
        },
    ) => ISearchItem<any>[]
    | Promise<ISearchItem<any>[]>;
    dictSearchItem?: any;
    dictSearchText?: (data: any, payload: any) => string | Promise<string>;
    dictValue?: (
        value: string,
        data: any,
        payload: any,
    ) => ISearchItem<any> | Promise<ISearchItem<any>>;
    dirty: boolean;
    disabled: boolean;
    groupRef?: (element?: null | HTMLDivElement) => void;
    incorrect: null | string;
    inputAutocomplete?: "new-password" | "on" | "off" | "false";
    inputFormatter?: (input: string) => string;
    inputFormatterAllowed?: RegExp | (char: string, idx: number) => boolean;
    inputFormatterReplace?: (char: string) => null | string;
    inputFormatterSymbol?: string;
    inputFormatterTemplate?: string;
    inputMode?:
        | "search"
        | "text"
        | "email"
        | "tel"
        | "url"
        | "none"
        | "numeric"
        | "decimal";
    inputPattern?: string;
    inputRef?: (element?: null | HTMLInputElement) => void;
    inputType?:
        | "number"
        | "color"
        | "search"
        | "text"
        | "date"
        | "email"
        | "month"
        | "password"
        | "tel"
        | "time"
        | "url"
        | "week";
    invalid: null
    | string;
    leadingIcon?: any;
    leadingIconClick?: (
        value: Value,
        data: any,
        payload: any,
        onValueChange: (v: Value) => void,
        onChange: (data: any) => void,
    ) => void;
    leadingIconRipple?: boolean;
    leadingIconTabIndex?: number;
    loading: boolean;
    name: string;
    onChange: (v: any, config?: { skipReadonly?: boolean }) => void;
    outlined?: boolean;
    placeholder?: string;
    readonly?: boolean;
    title?: string;
    trailingIcon?: any;
    trailingIconClick?: (
        value: Value,
        data: any,
        payload: any,
        onValueChange: (v: Value) => void,
        onChange: (data: any) => void,
    ) => void;
    trailingIconRipple?: boolean;
    trailingIconTabIndex?: number;
    validation?: IValidation;
    value: any;
}

Hierarchy

  • IDictBase
    • IDictSlot

Properties

description?: string

Type definition for the PickProp function.

The type of the object to pick from.

The type of the property to pick.

The object to pick from.

The property to pick from the object.

The value of the picked property.

dictCreateButton?: any

Retrieves the value of the "dictCreateButton" property from the provided object, which is of type PickProp<IField<Data, Payload>, "dictCreateButton">.

The input object.

  • Returns the value of the "dictCreateButton" property, which can be of type "undefined" or "someDataType".
dictDelay?: number

Retrieves the optional "dictDelay" property from the provided object.

The data type of the object.

The payload type of the object.

The object containing the "dictDelay" property.

The value of the "dictDelay" property, if it exists, or undefined if it does not.

dictLimit?: number

Represents the 'dictLimit' property of an object.

  • The limit for the dictionary.
dictOnAppend?: (
    search: string,
    data: any,
    payload: any,
    onValueChange: (value: null | string) => void,
    onChange: (value: any) => void,
) => void

Represents an optional configuration property for a dictionary append operation.

dictOnItem?: (
    value: null | string,
    data: any,
    payload: any,
    onValueChange: (value: null | string) => void,
    onChange: (data: any) => void,
) => void

Represents the field configuration for dictOnItem property.

dictOnText?: (
    text: string,
    data: any,
    payload: any,
    onValueChange: (value: null | string) => void,
    onChange: (data: any) => void,
) => void

Represents a variable dictOnText which is optional and can be of type PickProp<IField<Data, Payload>, "dictOnText">.

dictSearch?: (
    dto: {
        data: any;
        initial: boolean;
        limit: number;
        offset: number;
        payload: any;
        rows: ISearchItem<any>[];
        search: string;
    },
) => ISearchItem<any>[]
| Promise<ISearchItem<any>[]>
dictSearchItem?: any

Represents the 'dictSearchItem' property of an object.

This property is an optional field that is used to store information related to dictionary search item. It is extracted from the 'IField' interface using the 'PickProp' utility type.

dictSearchText?: (data: any, payload: any) => string | Promise<string>
dictValue?: (
    value: string,
    data: any,
    payload: any,
) => ISearchItem<any> | Promise<ISearchItem<any>>

Retrieves the "dictValue" property from the given object.

Type declaration

    • (
          value: string,
          data: any,
          payload: any,
      ): ISearchItem<any> | Promise<ISearchItem<any>>
    • Parameters

      • value: string
      • data: any
      • payload: any

      Returns ISearchItem<any> | Promise<ISearchItem<any>>

      • The value of the "dictValue" property, or undefined if it does not exist.
dirty: boolean
disabled: boolean

Represents the disabled property of a given field in a form.

The data type of the field.

The payload type of the field.

The interface of the field.

Utility to pick a property from an interface.

The given field in a form.

  • The value of the disabled property.
groupRef?: (element?: null | HTMLDivElement) => void

Represents the group reference property of a field in a data payload.

incorrect: null | string
inputAutocomplete?: "new-password" | "on" | "off" | "false"

Retrieves the value of the "inputAutocomplete" property from the specified object.

The type of the data object.

The type of the payload object.

The type of the object.

The object from which to retrieve the "inputAutocomplete" property.

The value of the "inputAutocomplete" property, or undefined if the property doesn't exist.

inputFormatter?: (input: string) => string

Represents an input formatter for a specific type of field in a form.

inputFormatterAllowed?: RegExp | (char: string, idx: number) => boolean

Represents the allowed input formatters for a field.

inputFormatterReplace?: (char: string) => null | string

Represents an object property inputFormatterReplace of the interface IField<Data, Payload>.

inputFormatterSymbol?: string

Represents a symbol used by the input formatter for a given field.

inputFormatterTemplate?: string

Represents a template for input formatter.

inputMode?:
    | "search"
    | "text"
    | "email"
    | "tel"
    | "url"
    | "none"
    | "numeric"
    | "decimal"

Represents the input mode configuration for a field.

inputPattern?: string

Represents the input pattern of a field in the form.

inputRef?: (element?: null | HTMLInputElement) => void

Represents a reference to the input element within a field.

inputType?:
    | "number"
    | "color"
    | "search"
    | "text"
    | "date"
    | "email"
    | "month"
    | "password"
    | "tel"
    | "time"
    | "url"
    | "week"

Represents the input type of a field.

invalid: null | string
leadingIcon?: any

Represents the leading icon for a field.

leadingIconClick?: (
    value: Value,
    data: any,
    payload: any,
    onValueChange: (v: Value) => void,
    onChange: (data: any) => void,
) => void

Represents the optional property 'leadingIconClick' from the 'IField' interface.

Type declaration

    • (
          value: Value,
          data: any,
          payload: any,
          onValueChange: (v: Value) => void,
          onChange: (data: any) => void,
      ): void
    • Parameters

      • value: Value
      • data: any
      • payload: any
      • onValueChange: (v: Value) => void
      • onChange: (data: any) => void

      Returns void

leadingIconRipple?: boolean

Represents the configuration for the leading icon ripple effect.

PickProp<IField<Data, Payload>, 'leadingIconRipple'>

leadingIconTabIndex?: number
loading: boolean
name: string
onChange: (v: any, config?: { skipReadonly?: boolean }) => void
outlined?: boolean

A type representing the picked property "outlined" from the given object type.

The object type to pick the property from.

The name of the property to pick.

placeholder?: string

Type definition for the placeholder property of PickProp type.

The placeholder property represents a subset of the IField<Data, Payload> type, where it specifically picks the placeholder property.

The type of the Data object in IField.

The type of the Payload object in IField.

readonly?: boolean

The readonly property of the IField object.

title?: string

Type declaration for the utility function PickProp.

The type of the input object.

The type of the property to pick.

trailingIcon?: any

This is a variable named trailingIcon. The variable is an optional property of type 'PickProp<IField<Data, Payload>, 'trailingIcon'>'.

trailingIconClick?: (
    value: Value,
    data: any,
    payload: any,
    onValueChange: (v: Value) => void,
    onChange: (data: any) => void,
) => void

The trailingIconClick property defines the action to be performed when the trailing icon of a field is clicked.

The trailingIconClick property accepts a function that will be executed when the trailing icon of a field is clicked.

trailingIconRipple?: boolean

Represents the trailing icon ripple configuration for a field.

trailingIconTabIndex?: number
validation?: IValidation

Validation factory config

Type representing the field object.

Type representing the data object.

Type representing the payload object.

The value of the "validation" property.

value: any