indicator-ui 0.1.107 → 0.1.108
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.js.map +1 -1
- package/dist/ts/src/hooks/controlsInput/useKeyboardInput.d.ts +1 -1
- package/dist/ts/src/hooks/controlsInput/useKeyboardPressing.d.ts +1 -1
- package/dist/ts/src/hooks/elementObservers/useIntersectionObserver.d.ts +1 -1
- package/dist/ts/src/hooks/elementObservers/useResizeObserver.d.ts +1 -1
- package/dist/ts/src/hooks/forms/useForm.d.ts +1 -1
- package/dist/ts/src/hooks/modalWindows/useBackdropModal.d.ts +1 -1
- package/dist/ts/src/hooks/modalWindows/useModal.d.ts +1 -1
- package/dist/ts/src/hooks/placement/useSmartPlacementResolver.d.ts +1 -1
- package/dist/ts/src/hooks/ui-animations/useBackgroundModalAnim.d.ts +1 -1
- package/dist/ts/src/hooks/ui-animations/useCarousel.d.ts +1 -1
- package/dist/ts/src/hooks/ui-animations/useCollapsible.d.ts +1 -1
- package/dist/ts/src/hooks/ui-animations/useHoverAutoScrollText.d.ts +1 -1
- package/dist/ts/src/hooks/ui-animations/useModalAnim.d.ts +1 -1
- package/dist/ts/src/hooks/useInteractiveZone.d.ts +1 -1
- package/dist/ts/src/hooks/useSmartPosition.d.ts +1 -1
- package/dist/ts/src/lib/dict/compKeyWays.d.ts +1 -1
- package/dist/ts/src/lib/dict/setDeepValue.d.ts +1 -1
- package/dist/ts/src/ui/Breadcrumbs/ui/BreadcrumbButton.d.ts +1 -1
- package/dist/ts/src/ui/Breadcrumbs/ui/Breadcrumbs.d.ts +1 -1
- package/dist/ts/src/ui/CascadeSelector/ui/CascadeBlock.d.ts +1 -1
- package/dist/ts/src/ui/DateTimePicker/hooks/useDateTimePicker.d.ts +1 -1
- package/dist/ts/src/ui/DateTimePicker/lib/helperFunctions.d.ts +1 -1
- package/dist/ts/src/ui/DateTimePicker/lib/sortDates.d.ts +1 -1
- package/dist/ts/src/ui/DateTimePicker/types/DateTimePickerTypes.d.ts +1 -1
- package/dist/ts/src/ui/DateTimePicker/types/pickers/DatePickerTypes.d.ts +1 -1
- package/dist/ts/src/ui/DateTimePicker/types/pickers/TimePickerTypes.d.ts +1 -1
- package/dist/ts/src/ui/Dropdown/types/DropdownTypes.d.ts +2 -2
- package/dist/ts/src/ui/DropdownItem/types/DropdownItemTypes.d.ts +1 -1
- package/dist/ts/src/ui/FormBuilder/schemes/index.d.ts +1 -1
- package/dist/ts/src/ui/FormBuilder/types/FormBuilderTypes.d.ts +2 -2
- package/dist/ts/src/ui/FormBuilder/ui/FormBuilder.d.ts +1 -1
- package/dist/ts/src/ui/InputFields/DateTimeField/types/DateFieldBaseTypes.d.ts +1 -1
- package/dist/ts/src/ui/InputFields/DateTimeField/types/DateFieldTypes.d.ts +2 -2
- package/dist/ts/src/ui/InputFields/DateTimeField/types/DateTimeFieldTypes.d.ts +2 -2
- package/dist/ts/src/ui/InputFields/DateTimeField/types/TimeFieldBaseTypes.d.ts +1 -1
- package/dist/ts/src/ui/InputFields/DateTimeField/types/TimeFieldTypes.d.ts +2 -2
- package/dist/ts/src/ui/InputFields/DateTimeField/ui/DateField.d.ts +1 -1
- package/dist/ts/src/ui/InputFields/DateTimeField/ui/TimeField.d.ts +1 -1
- package/dist/ts/src/ui/InputFields/DateTimeRangeField/types/DateRangeFieldTypes.d.ts +2 -2
- package/dist/ts/src/ui/InputFields/DateTimeRangeField/types/DateTimeRangeFieldTypes.d.ts +1 -1
- package/dist/ts/src/ui/InputFields/DateTimeRangeField/types/TimeRangeFieldTypes.d.ts +1 -1
- package/dist/ts/src/ui/InputFields/DateTimeRangeField/ui/TimeRangeField.d.ts +1 -1
- package/dist/ts/src/ui/InputFields/FlexField/types/FlexFieldTypes.d.ts +1 -1
- package/dist/ts/src/ui/InputFields/FlexField/ui/FlexField.d.ts +5 -5
- package/dist/ts/src/ui/InputFields/InputFieldWrapper/types/InputFieldWrapperTypes.d.ts +1 -1
- package/dist/ts/src/ui/InputFields/SelectField/lib/getSelectFieldOptionsItemValue.d.ts +1 -1
- package/dist/ts/src/ui/InputFields/SelectField/types/SelectFieldTypes.d.ts +2 -2
- package/dist/ts/src/ui/InputFields/SwitcherField/types/SwitcherFieldTypes.d.ts +1 -1
- package/dist/ts/src/ui/TabFrame/ui/TabFrame.d.ts +1 -1
- package/dist/ts/src/ui/Toggle/types/ToggleTypes.d.ts +1 -1
- package/dist/ts/src/ui/formFields/FormDateField/ui/FormDateField.d.ts +1 -1
- package/dist/ts/src/ui/formFields/FormDateRangeField/ui/FormDateRangeFieldBase.d.ts +1 -1
- package/dist/ts/src/ui/formFields/FormField/ui/FormFieldBase.d.ts +2 -2
- package/dist/ts/src/ui/formFields/FormFieldWrapper/ui/FormFieldWrapper.d.ts +1 -1
- package/dist/ts/src/ui/formFields/FormPaginatedSelectField/hooks/useFormPaginatedSelectField.d.ts +10 -10
- package/dist/ts/src/ui/formFields/FormPaginatedSelectField/hooks/useSelectFieldState.d.ts +1 -1
- package/dist/ts/src/ui/formFields/FormPaginatedSelectField/hooks/useSelectValue.d.ts +1 -1
- package/dist/ts/src/ui/formFields/FormPaginatedSelectField/types/index.d.ts +1 -1
- package/dist/ts/src/ui/formFields/FormPaginatedSelectField/ui/FormPaginatedSelectField.d.ts +1 -1
- package/dist/ts/src/ui/formFields/FormRadioField/ui/FormRadioField.d.ts +1 -1
- package/dist/ts/src/ui/formFields/FormSelectField/ui/FormSelectField.d.ts +1 -1
- package/dist/ts/src/ui/formFields/FormSelectField/ui/FormSelectFieldBase.d.ts +2 -2
- package/dist/ts/src/ui/formFields/FormSwitcherField/ui/FormSwitcherField.d.ts +2 -2
- package/dist/ts/src/ui/formFields/FormTextareaField/ui/FormTextareaFieldBase.d.ts +1 -1
- package/package.json +2 -2
- package/dist/ts/test-project/src/icons/index.d.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useSimpleRefListElementWork } from "
|
|
1
|
+
import { useSimpleRefListElementWork } from "../../hooks";
|
|
2
2
|
type UseSimpleRefListElementWorkPropsType<T extends HTMLElement> = Parameters<typeof useSimpleRefListElementWork<T>>['0'];
|
|
3
3
|
type PropsType<T extends HTMLElement> = [
|
|
4
4
|
ref: UseSimpleRefListElementWorkPropsType<T>,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useSimpleRefListElementWork } from "
|
|
1
|
+
import { useSimpleRefListElementWork } from "../../hooks";
|
|
2
2
|
type UseSimpleRefListElementWorkPropsType<T extends HTMLElement> = Parameters<typeof useSimpleRefListElementWork<T>>['0'];
|
|
3
3
|
type PropsType<T extends HTMLElement> = [
|
|
4
4
|
ref: UseSimpleRefListElementWorkPropsType<T>,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FormEvent } from "react";
|
|
2
|
-
import { ExtendFormPath, FieldPropsType, FormErrorsType, FormErrorType } from "
|
|
2
|
+
import { ExtendFormPath, FieldPropsType, FormErrorsType, FormErrorType } from "../../hooks";
|
|
3
3
|
import { Nullable } from "../../types";
|
|
4
4
|
import { FormPath, FormSchemeType, FormValue } from "./types";
|
|
5
5
|
type PropsType<T, Form> = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RefObject } from "react";
|
|
2
|
-
import { SmartRefType } from "
|
|
2
|
+
import { SmartRefType } from "../../hooks";
|
|
3
3
|
import { useBackgroundModalAnim } from "../ui-animations";
|
|
4
4
|
type UseBackgroundModalAnimOptionsPropsType = Exclude<Parameters<typeof useBackgroundModalAnim>['1'], undefined>;
|
|
5
5
|
type OptionsType<C extends HTMLElement = HTMLElement> = UseBackgroundModalAnimOptionsPropsType & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SmartRefType } from "
|
|
1
|
+
import { SmartRefType } from "../../hooks";
|
|
2
2
|
import { useInteractiveZone } from "../useInteractiveZone";
|
|
3
3
|
import { useModalAnim } from "../ui-animations";
|
|
4
4
|
type UseModalAnimOptionsPropsType = Exclude<Parameters<typeof useModalAnim>['1'], undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
2
|
import { calculateAvailablePosition } from "./calculateAvailablePosition";
|
|
3
|
-
import { SmartRefType } from "
|
|
3
|
+
import { SmartRefType } from "../../hooks";
|
|
4
4
|
type CalculateAvailablePositionPropsType = Parameters<typeof calculateAvailablePosition>['0'];
|
|
5
5
|
type NewPlacementPosType = ReturnType<typeof calculateAvailablePosition>;
|
|
6
6
|
type PropsType = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
2
|
import { BACKDROP_MODAL_ANIMATIONS } from "./assets";
|
|
3
|
-
import { SmartRefType } from "
|
|
3
|
+
import { SmartRefType } from "../../hooks";
|
|
4
4
|
type OptionsType<T extends HTMLElement = HTMLElement> = {
|
|
5
5
|
targetRef?: SmartRefType<T>;
|
|
6
6
|
onViewing?: () => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
2
|
import { useSmartPlacementResolver } from "../placement/useSmartPlacementResolver";
|
|
3
3
|
import { MODAL_ANIMATIONS } from "./assets";
|
|
4
|
-
import { SmartRefType } from "
|
|
4
|
+
import { SmartRefType } from "../../hooks";
|
|
5
5
|
type UseSmartPlacementResolverOptionsType = Exclude<Parameters<typeof useSmartPlacementResolver>['1'], undefined>;
|
|
6
6
|
type OptionsType<T extends HTMLElement = HTMLElement> = Pick<UseSmartPlacementResolverOptionsType, 'position'> & {
|
|
7
7
|
targetRef?: SmartRefType<T>;
|
|
@@ -25,7 +25,7 @@ export declare function useDateTimePicker<T extends DateType>(props: PropsType<T
|
|
|
25
25
|
handleSubmit: () => void;
|
|
26
26
|
setPickerType: React.Dispatch<React.SetStateAction<"time" | "date" | "month" | "year">>;
|
|
27
27
|
getDate: () => React.ComponentProps<typeof DatePicker>["date"];
|
|
28
|
-
onClickDate: (value: [] | [string | undefined
|
|
28
|
+
onClickDate: (value: [] | [string | undefined] | [string | undefined, string | undefined]) => void;
|
|
29
29
|
onYear: () => void;
|
|
30
30
|
onMonth: () => void;
|
|
31
31
|
getHourValue: () => React.ComponentProps<typeof TimePicker>["hour"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateTimeFieldValueType, DateTimePickerTypeTypes, DateTimeRangeFieldValueType } from "
|
|
1
|
+
import { DateTimeFieldValueType, DateTimePickerTypeTypes, DateTimeRangeFieldValueType } from "../../../ui";
|
|
2
2
|
import { DateTimePickerDateType } from "../types";
|
|
3
3
|
export declare function convertDate(props: {
|
|
4
4
|
initDate?: DateTimePickerDateType;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DateTimeRangeFieldValueType } from "
|
|
1
|
+
import { DateTimeRangeFieldValueType } from "../../../ui";
|
|
2
2
|
export declare function sortDates(dates: DateTimeRangeFieldValueType): DateTimeRangeFieldValueType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
-
import { DateTimeFieldValueType, DateTimePickerTypeTypes, DateTimeRangeFieldValueType } from "
|
|
2
|
+
import { DateTimeFieldValueType, DateTimePickerTypeTypes, DateTimeRangeFieldValueType } from "../../../../ui";
|
|
3
3
|
export type DatePickerIntervalType = DateTimeRangeFieldValueType;
|
|
4
4
|
export type DatePickerIsMarkType = (date: string) => boolean;
|
|
5
5
|
export type DatePickerIsHolidayType = (date: string) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { DateTimePickerDateType } from "
|
|
2
|
+
import { DateTimePickerDateType } from "../../../../ui";
|
|
3
3
|
export type TimePickerTimeType = string;
|
|
4
4
|
export type TimePickerOnChangeTimeType = React.Dispatch<React.SetStateAction<DateTimePickerDateType>>;
|
|
5
5
|
export type TimePickerPropsType = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { CSSProperties } from "react";
|
|
2
|
-
import { DropdownItemPropsType } from "
|
|
3
|
-
import { useSmartScroll } from "
|
|
2
|
+
import { DropdownItemPropsType } from "../../../ui";
|
|
3
|
+
import { useSmartScroll } from "../../../hooks";
|
|
4
4
|
type UseSmartScrollCallbacksType = Exclude<Parameters<typeof useSmartScroll>['1'], undefined>;
|
|
5
5
|
export type DropdownItemCustomComponentType = React.ReactElement<{
|
|
6
6
|
onClick: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DictDeepActionKeyWayType } from "
|
|
2
|
-
import { UseFormDataDeleteArrayItemType, UseFormDataGetValueType, UseFormDataSetValueType, UseIsErrorFieldAddErrorFieldType, UseIsErrorFieldGetErrorMessageType, UseIsErrorFieldIsErrorFieldType, UseIsErrorFieldIsErrorType, UseIsErrorFieldRemoveErrorFieldType } from "
|
|
1
|
+
import { DictDeepActionKeyWayType } from "../../../types";
|
|
2
|
+
import { UseFormDataDeleteArrayItemType, UseFormDataGetValueType, UseFormDataSetValueType, UseIsErrorFieldAddErrorFieldType, UseIsErrorFieldGetErrorMessageType, UseIsErrorFieldIsErrorFieldType, UseIsErrorFieldIsErrorType, UseIsErrorFieldRemoveErrorFieldType } from "../../../hooks";
|
|
3
3
|
import { FORM_BUILDER_SCHEMA } from "../schemes";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
export type InputFieldClassNameType = Record<string, string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactElement } from "react";
|
|
2
2
|
import { FormBuilderPropsType } from "../types";
|
|
3
|
-
import { useFormData, useIsErrorField } from "
|
|
3
|
+
import { useFormData, useIsErrorField } from "../../../hooks";
|
|
4
4
|
type RefType<T extends Record<string, unknown>> = Pick<ReturnType<typeof useFormData<T>>, 'setValue' | 'getValue' | 'getFormData'> & Pick<ReturnType<typeof useIsErrorField>, 'addErrorField' | 'removeErrorField' | 'clearErrors'> & {
|
|
5
5
|
clearFormData: () => void;
|
|
6
6
|
resetFormData: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DateTimeFieldPropsType } from "
|
|
2
|
-
import { useModal } from "
|
|
1
|
+
import { DateTimeFieldPropsType } from "../../../../ui";
|
|
2
|
+
import { useModal } from "../../../../hooks";
|
|
3
3
|
type PositionType = Exclude<Parameters<typeof useModal>[1], undefined>['position'];
|
|
4
4
|
export type DateFieldPropsType = Omit<DateTimeFieldPropsType, 'iconTime' | 'textTime' | 'timePlaceholder' | 'timeFormat'> & {
|
|
5
5
|
/** Определяет, как будет располагать пикер даты (fixed, absolute).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldsBasePropsType } from "../../FieldsBase";
|
|
2
|
-
import { FormatNameType } from "
|
|
2
|
+
import { FormatNameType } from "../../../../lib";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { useModal } from "
|
|
4
|
+
import { useModal } from "../../../../hooks";
|
|
5
5
|
type PositionType = Exclude<Parameters<typeof useModal>[1], undefined>['position'];
|
|
6
6
|
export type DateTimeFieldValueType = string;
|
|
7
7
|
export type DateTimeFieldPropsType = FieldsBasePropsType<DateTimeFieldValueType> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DateTimeFieldPropsType } from "
|
|
2
|
-
import { useModal } from "
|
|
1
|
+
import { DateTimeFieldPropsType } from "../../../../ui";
|
|
2
|
+
import { useModal } from "../../../../hooks";
|
|
3
3
|
type PositionType = Exclude<Parameters<typeof useModal>[1], undefined>['position'];
|
|
4
4
|
export type TimeFieldPropsType = Omit<DateTimeFieldPropsType, 'iconDate' | 'textDate' | 'datePlaceholder' | 'dateFormat'> & {
|
|
5
5
|
/** Определяет, как будет располагать пикер даты (fixed, absolute).
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DateFieldPropsType } from "
|
|
1
|
+
import { DateFieldPropsType } from "../../../../ui";
|
|
2
2
|
export declare function DateField({ value, onChange, dateFormat, outFormat, additionStyle, datePlaceholder, iconDate, textDate, clearButton, isError, disabled, onFocus, onBlur, width, position, theme, ...props }: DateFieldPropsType): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TimeFieldPropsType } from "
|
|
1
|
+
import { TimeFieldPropsType } from "../../../../ui";
|
|
2
2
|
export declare function TimeField({ value, onChange, timeFormat, outFormat, additionStyle, timePlaceholder, iconTime, textTime, clearButton, isError, disabled, onFocus, onBlur, width, position, theme, ...props }: TimeFieldPropsType): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { FieldsBasePropsType } from "
|
|
3
|
-
import { useModal } from "
|
|
2
|
+
import { FieldsBasePropsType } from "../../../../ui";
|
|
3
|
+
import { useModal } from "../../../../hooks";
|
|
4
4
|
import { DateTimeRangeFieldValueType } from "./DateTimeRangeFieldTypes";
|
|
5
5
|
type PositionType = Exclude<Parameters<typeof useModal>[1], undefined>['position'];
|
|
6
6
|
export type DateRangeFieldPropsType = FieldsBasePropsType<DateTimeRangeFieldValueType> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateTimeFieldPropsType } from "
|
|
1
|
+
import { DateTimeFieldPropsType } from "../../../../ui";
|
|
2
2
|
export type DateTimeRangeFieldValueItemType = string | undefined;
|
|
3
3
|
export type DateTimeRangeFieldValueType = [DateTimeRangeFieldValueItemType, DateTimeRangeFieldValueItemType] | [DateTimeRangeFieldValueItemType] | [];
|
|
4
4
|
export type DateTimeRangeFieldPropsType = Omit<DateTimeFieldPropsType, 'value' | 'onChange'> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { FieldsBasePropsType } from "
|
|
2
|
+
import { FieldsBasePropsType } from "../../../../ui";
|
|
3
3
|
import { DateTimeRangeFieldValueType } from "./DateTimeRangeFieldTypes";
|
|
4
4
|
export type TimeRangeFieldPropsType = FieldsBasePropsType<DateTimeRangeFieldValueType> & {
|
|
5
5
|
firstPlaceholder?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TimeRangeFieldPropsType } from "
|
|
1
|
+
import { TimeRangeFieldPropsType } from "../../../../ui";
|
|
2
2
|
export declare function TimeRangeField({ value, onChange, secondPlaceholder, firstPlaceholder, secondIcon, disabled, timeFormat, required, firstIcon, onBlur, firstText, secondText, onFocus, isError, clearButton, width, additionsStyles, theme }: TimeRangeFieldPropsType): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
import { FieldsBasePropsType } from "../../FieldsBase";
|
|
3
|
-
import { UserPickUrlType } from "
|
|
3
|
+
import { UserPickUrlType } from "../../../../ui";
|
|
4
4
|
export type DisplayTypes = "small" | "large" | undefined;
|
|
5
5
|
export type BlocksType = any;
|
|
6
6
|
export type PatternType = any;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare const FlexField: React.ForwardRefExoticComponent<import("
|
|
2
|
+
export declare const FlexField: React.ForwardRefExoticComponent<import("../../../../ui").FieldsBasePropsType<string> & {
|
|
3
3
|
type?: string;
|
|
4
|
-
display?: import("
|
|
4
|
+
display?: import("../../../../ui").DisplayTypes;
|
|
5
5
|
name?: string;
|
|
6
6
|
mask?: any;
|
|
7
7
|
unmask?: any;
|
|
8
|
-
blocks?: import("
|
|
9
|
-
pattern?: import("
|
|
8
|
+
blocks?: import("../../../../ui").BlocksType;
|
|
9
|
+
pattern?: import("../../../../ui").PatternType;
|
|
10
10
|
placeholder?: string;
|
|
11
11
|
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
12
12
|
offFocus?: boolean;
|
|
13
13
|
notInput?: boolean;
|
|
14
14
|
icon?: React.ReactNode;
|
|
15
15
|
textSupport?: boolean | string | React.ReactNode;
|
|
16
|
-
userPic?: import("
|
|
16
|
+
userPic?: import("../../../../ui").UserPickUrlType | React.ReactNode | false;
|
|
17
17
|
help?: boolean | React.ReactNode;
|
|
18
18
|
dropdown?: boolean | React.ReactNode;
|
|
19
19
|
onDropdownClick?: (e: any) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SelectFieldOptionsItemType } from "
|
|
1
|
+
import { SelectFieldOptionsItemType } from "../../../../ui";
|
|
2
2
|
export declare function getSelectFieldOptionsItemValue<DataType = unknown>(item: SelectFieldOptionsItemType<DataType>): DataType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FieldsBasePropsType } from '../../FieldsBase';
|
|
3
|
-
import { DropdownItemPropsType, FlexFieldPropsType } from "
|
|
4
|
-
import { useModal } from "
|
|
3
|
+
import { DropdownItemPropsType, FlexFieldPropsType } from "../../../../ui";
|
|
4
|
+
import { useModal } from "../../../../hooks";
|
|
5
5
|
type UseModalOptionsPropsType = Exclude<Parameters<typeof useModal>['1'], undefined>;
|
|
6
6
|
export type SelectFieldOptionsItemType<T = unknown> = DropdownItemPropsType & {
|
|
7
7
|
value: T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IMaskInput } from "react-imask";
|
|
3
|
-
import { FieldPropsType } from "
|
|
4
|
-
import { IMaskBlockType } from "
|
|
3
|
+
import { FieldPropsType } from "../../../../hooks";
|
|
4
|
+
import { IMaskBlockType } from "../../../../const";
|
|
5
5
|
type FieldSettingsType = {
|
|
6
6
|
typeDisplay?: 'display' | 'display-l';
|
|
7
7
|
disabled?: boolean;
|
package/dist/ts/src/ui/formFields/FormPaginatedSelectField/hooks/useFormPaginatedSelectField.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FocusEvent } from "react";
|
|
2
|
-
import { FieldPropsType } from "
|
|
3
|
-
import { Merge } from "
|
|
2
|
+
import { FieldPropsType } from "../../../../hooks";
|
|
3
|
+
import { Merge } from "../../../../types";
|
|
4
4
|
import { FetchEventPropsType, OptionsType, ValueType } from "../types";
|
|
5
5
|
type BasePropsType<D, M extends boolean> = FieldPropsType<ValueType<D, M>> & {
|
|
6
6
|
options?: OptionsType<D>;
|
|
@@ -18,7 +18,7 @@ export declare function useFormPaginatedSelectField<D, M extends boolean = false
|
|
|
18
18
|
handleClick: (value: D) => void;
|
|
19
19
|
isActive: (value: D) => boolean;
|
|
20
20
|
viewValue: string;
|
|
21
|
-
items: import("
|
|
21
|
+
items: import("../../../../ui").DropdownItemsType<D>;
|
|
22
22
|
readOnly: boolean;
|
|
23
23
|
onChangeSearch: (newSearch: string | null | undefined) => void;
|
|
24
24
|
optionsCache: React.MutableRefObject<OptionsType<D>>;
|
|
@@ -28,7 +28,7 @@ export declare function useFormPaginatedSelectField<D, M extends boolean = false
|
|
|
28
28
|
canSearch: boolean;
|
|
29
29
|
canPaginate: boolean;
|
|
30
30
|
isLoading: boolean;
|
|
31
|
-
fieldState: "
|
|
31
|
+
fieldState: "view" | "search";
|
|
32
32
|
setIsFocus: React.Dispatch<React.SetStateAction<boolean>>;
|
|
33
33
|
isShow: boolean;
|
|
34
34
|
getIsShow: () => boolean;
|
|
@@ -40,18 +40,18 @@ export declare function useFormPaginatedSelectField<D, M extends boolean = false
|
|
|
40
40
|
modalRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
41
41
|
targetRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
42
42
|
otherProps: {
|
|
43
|
-
id?: string | undefined | undefined;
|
|
44
43
|
ref?: React.LegacyRef<HTMLDivElement> | undefined;
|
|
44
|
+
slot?: string | undefined | undefined;
|
|
45
|
+
style?: React.CSSProperties | undefined;
|
|
46
|
+
title?: string | undefined | undefined;
|
|
45
47
|
color?: string | undefined | undefined;
|
|
46
48
|
content?: string | undefined | undefined;
|
|
47
49
|
translate?: "yes" | "no" | undefined | undefined;
|
|
48
50
|
hidden?: boolean | undefined | undefined;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
title?: string | undefined | undefined;
|
|
51
|
+
id?: string | undefined | undefined;
|
|
52
|
+
key?: React.Key | null | undefined;
|
|
52
53
|
onSubmit?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
53
54
|
onReset?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
54
|
-
key?: React.Key | null | undefined;
|
|
55
55
|
defaultChecked?: boolean | undefined | undefined;
|
|
56
56
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
57
57
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -300,7 +300,7 @@ export declare function useFormPaginatedSelectField<D, M extends boolean = false
|
|
|
300
300
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
301
301
|
onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
302
302
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
303
|
-
error?: import("
|
|
303
|
+
error?: import("../../../../hooks").FormErrorType;
|
|
304
304
|
};
|
|
305
305
|
};
|
|
306
306
|
export {};
|
|
@@ -11,7 +11,7 @@ export declare function useSelectValue<D, M extends boolean = false>(props: Prop
|
|
|
11
11
|
handleClick: (value: D) => void;
|
|
12
12
|
isActive: (value: D) => boolean;
|
|
13
13
|
viewValue: string;
|
|
14
|
-
items: import("
|
|
14
|
+
items: import("../../../../ui").DropdownItemsType<D>;
|
|
15
15
|
readOnly: boolean;
|
|
16
16
|
onChangeSearch: (newSearch: string | null | undefined) => void;
|
|
17
17
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ComponentRefType } from "
|
|
2
|
+
import { ComponentRefType } from "../../../../types";
|
|
3
3
|
import { FormPaginatedSelectFieldBase } from './FormPaginatedSelectFieldBase';
|
|
4
4
|
import { FormFieldWrapper } from '../../FormFieldWrapper';
|
|
5
5
|
type RefType = ComponentRefType<typeof FormFieldWrapper>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ComponentRefType } from "
|
|
2
|
+
import { ComponentRefType } from "../../../../types";
|
|
3
3
|
import { FormSelectFieldBase } from './FormSelectFieldBase';
|
|
4
4
|
import { FormFieldWrapper } from '../../FormFieldWrapper';
|
|
5
5
|
type RefType = ComponentRefType<typeof FormFieldWrapper>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { FieldPropsType } from "
|
|
3
|
-
import { DropdownItemPropsType } from "
|
|
2
|
+
import { FieldPropsType } from "../../../../hooks";
|
|
3
|
+
import { DropdownItemPropsType } from "../../../../ui";
|
|
4
4
|
import { FormFieldBase } from '../../FormField';
|
|
5
5
|
type OptionsExtendItemType<T> = DropdownItemPropsType & {
|
|
6
6
|
value: T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TogglePropsType } from "
|
|
2
|
-
import { FieldPropsType } from "
|
|
1
|
+
import { TogglePropsType } from "../../../../ui";
|
|
2
|
+
import { FieldPropsType } from "../../../../hooks";
|
|
3
3
|
type BasePropsType = FieldPropsType<boolean>;
|
|
4
4
|
type PropsType = Omit<TogglePropsType, keyof BasePropsType> & BasePropsType;
|
|
5
5
|
export declare function FormSwitcherField(props: PropsType): JSX.Element;
|