intelicoreact 2.0.6 → 2.0.8
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/charts/package.json +5 -0
- package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.interface.d.ts +23 -3
- package/dist/Atomic/FormElements/Input/Input.d.ts +1 -1
- package/dist/Atomic/FormElements/Input/types.d.ts +0 -5
- package/dist/Atomic/FormElements/InputMask3/InputMask3.interface.d.ts +0 -3
- package/dist/Atomic/FormElements/TagListToDropdown/TagListToDropdown.interface.d.ts +1 -1
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.interface.d.ts +4 -4
- package/dist/Atomic/UI/Alert/Alert.interface.d.ts +0 -2
- package/dist/Functions/sdk/runtime-sdk/transport.d.ts +2 -2
- package/dist/charts.cjs +927 -0
- package/dist/charts.cjs.map +7 -0
- package/dist/charts.d.ts +7 -0
- package/dist/charts.js +911 -0
- package/dist/charts.js.map +7 -0
- package/dist/form.cjs +1506 -1940
- package/dist/form.cjs.map +4 -4
- package/dist/form.js +1122 -1556
- package/dist/form.js.map +4 -4
- package/dist/hooks.cjs +8 -324
- package/dist/hooks.cjs.map +4 -4
- package/dist/hooks.js +8 -324
- package/dist/hooks.js.map +4 -4
- package/dist/index.cjs +2515 -9300
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +2067 -8868
- package/dist/index.js.map +4 -4
- package/dist/layout.cjs +207 -6308
- package/dist/layout.cjs.map +4 -4
- package/dist/layout.js +202 -6303
- package/dist/layout.js.map +4 -4
- package/dist/presets.cjs +0 -643
- package/dist/presets.cjs.map +4 -4
- package/dist/presets.js +0 -633
- package/dist/presets.js.map +4 -4
- package/dist/ui.cjs +711 -7854
- package/dist/ui.cjs.map +4 -4
- package/dist/ui.d.ts +0 -5
- package/dist/ui.js +722 -7881
- package/dist/ui.js.map +4 -4
- package/dist/utils.cjs +4 -51
- package/dist/utils.cjs.map +3 -3
- package/dist/utils.js +4 -51
- package/dist/utils.js.map +3 -3
- package/package.json +16 -2
- package/dist/Atomic/FormElements/Dropdown/components/DropdownLoader.d.ts +0 -4
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN_old.d.ts +0 -11
- package/dist/Atomic/FormElements/NumericInput/NumericInput.d.ts +0 -36
- package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.d.ts +0 -2
- package/dist/Atomic/FormElements/RangeSlider/RangeSlider.d.ts +0 -19
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/partial/States.d.ts +0 -5
- package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.d.ts +0 -17
- package/dist/Atomic/FormElements/VariantsListRadio/partials/VariantsListRadioItem.d.ts +0 -12
- package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.d.ts +0 -2
- package/dist/Atomic/FormElements/WidgetPseudoTable/partial/constructor.d.ts +0 -23
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.d.ts +0 -2
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/partial/constructor.d.ts +0 -38
- package/dist/Atomic/UI/AccordionTable/AccordionTable.d.ts +0 -10
- package/dist/Atomic/UI/AccordionText/AccordionText.d.ts +0 -8
- package/dist/Atomic/UI/Chart/partial/Chart.constants.d.ts +0 -78
- package/dist/Atomic/UI/Chart/partial/datasetSetters.d.ts +0 -13
- package/dist/Atomic/UI/Chart/partial/optionsConstructor.d.ts +0 -145
- package/dist/Atomic/UI/Chart/partial/optionsSetters.d.ts +0 -4
- package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.d.ts +0 -14
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.d.ts +0 -4
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.interface.d.ts +0 -6
- package/dist/Atomic/UI/DynamicIcon/index.d.ts +0 -3
- package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.d.ts +0 -2
- package/dist/Atomic/UI/ExampleChartIntegration/partial/utils.d.ts +0 -4
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion._test.d.ts +0 -1
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.d.ts +0 -12
- package/dist/Atomic/UI/PieChart/PieChart.d.ts +0 -8
- package/dist/Atomic/UI/Table/Partials/TdCell.d.ts +0 -13
- package/dist/Atomic/UI/Table/Partials/TdHeader.d.ts +0 -5
- package/dist/Atomic/UI/Table/Partials/TdRow.d.ts +0 -17
- package/dist/Atomic/UI/Table/Partials/TdTitle.d.ts +0 -5
- package/dist/Atomic/UI/Table/Table.d.ts +0 -9
- package/dist/Atomic/UI/Table/TdTypes/TdActions.d.ts +0 -6
- package/dist/Atomic/UI/Table/TdTypes/TdPriority.d.ts +0 -6
- package/dist/Atomic/UI/Table/TdTypes/TdRange.d.ts +0 -4
- package/dist/Atomic/UI/Table/TdTypes/TdWeight.d.ts +0 -7
- package/dist/Atomic/UI/WizardStepper/constructor.d.ts +0 -51
- package/dist/Classes/AbortableFetch.d.ts +0 -43
- package/dist/Classes/AnimatedHandler.d.ts +0 -4
- package/dist/Classes/RESTAPI/index.d.ts +0 -9
- package/dist/Classes/RESTAPI/partials/AbortableFetch.d.ts +0 -43
- package/dist/Classes/RESTAPI/partials/ApiBase.d.ts +0 -10
- package/dist/Classes/RESTAPI/partials/ApiRequestCreators.d.ts +0 -9
- package/dist/Classes/RESTAPI/partials/ApiUtils.d.ts +0 -12
- package/dist/Classes/RESTAPI/partials/CredentialsProcessing.d.ts +0 -24
- package/dist/Classes/RESTAPI/partials/Utils.d.ts +0 -4
- package/dist/Classes/RESTAPI/partials/_utils.d.ts +0 -9
- package/dist/Constants/index.constants.d.ts +0 -20
- package/dist/Functions/Portal.d.ts +0 -6
- package/dist/Functions/customEventListener.d.ts +0 -27
- package/dist/Functions/dateTime.d.ts +0 -95
- package/dist/Functions/fieldValueFormatters.d.ts +0 -19
- package/dist/Functions/hooks/useFormFieldsChangesManager.d.ts +0 -15
- package/dist/Functions/locale/createTranslator.d.ts +0 -3
- package/dist/Functions/operations.d.ts +0 -1
- package/dist/Functions/presets/inputMaskPresets.d.ts +0 -136
- package/dist/Functions/presets/inputPresets.d.ts +0 -16
- package/dist/Functions/presets/mobileKeyboardTypesPresets.d.ts +0 -17
- package/dist/Functions/schemas.d.ts +0 -3
- package/dist/Functions/useBodyScrollLock.d.ts +0 -2
- package/dist/Functions/useClickOutside.d.ts +0 -1
- package/dist/Functions/useDebounce.d.ts +0 -4
- package/dist/Functions/useFieldFocus.d.ts +0 -7
- package/dist/Functions/useFormTools/form-drivers/ArrayWithObjects.d.ts +0 -15
- package/dist/Functions/useFormTools/form-drivers/ObjectWithIterableObjects.d.ts +0 -12
- package/dist/Functions/useFormTools/form-drivers/ObjectWithNamedKeyObjects.d.ts +0 -15
- package/dist/Functions/useFormTools/functions/General.d.ts +0 -15
- package/dist/Functions/useFormTools/functions/RenderFields.d.ts +0 -7
- package/dist/Functions/useFormTools/functions/usePrevious.d.ts +0 -2
- package/dist/Functions/useFormTools/index.d.ts +0 -86
- package/dist/Functions/useInputHighlightError.d.ts +0 -12
- package/dist/Functions/useLocalStorage.d.ts +0 -2
- package/dist/Functions/useLocationParams.d.ts +0 -1
- package/dist/Functions/useMediaQuery.d.ts +0 -2
- package/dist/Functions/useMetaInfo.d.ts +0 -8
- package/dist/Functions/useMouseUpOutside.d.ts +0 -1
- package/dist/Functions/useOnlineStatus.d.ts +0 -2
- package/dist/Functions/usePasswordChecker.d.ts +0 -7
- package/dist/Functions/usePrevious.d.ts +0 -2
- package/dist/Functions/useResize.d.ts +0 -3
- package/dist/Functions/useScrollTo.d.ts +0 -2
- package/dist/Functions/useToggle.d.ts +0 -7
- package/dist/Functions/utils.d.ts +0 -40
- package/dist/Langs.d.ts +0 -179
- package/dist/Molecular/FormWithDependOn/FormWithDependOn.d.ts +0 -3
- package/dist/Molecular/FormWithDependOn/partials/_utils.d.ts +0 -8
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Минимальная форма файла, с которой работает `FileLoaderDescription`.
|
|
3
|
+
* Caller может расширить тип своими полями и передать через generic-параметр
|
|
4
|
+
* `TFile` в `IFileLoaderDescriptionProps`, чтобы получить type-safe `onChange`
|
|
5
|
+
* без `as unknown as` каста на стороне consumer'а.
|
|
6
|
+
*/
|
|
1
7
|
export interface IFile {
|
|
2
8
|
id?: string | number;
|
|
3
9
|
value: string;
|
|
@@ -12,12 +18,26 @@ export interface IAccordionItem {
|
|
|
12
18
|
title: string;
|
|
13
19
|
description: string;
|
|
14
20
|
}
|
|
15
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Props `<FileLoaderDescription>`. Generic `TFile` позволяет caller'у
|
|
23
|
+
* указать конкретный shape файла (расширяющий `IFile`) и получить
|
|
24
|
+
* соответствующую типизацию `files` / `onChange`.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* type AppFile = IFile & { uploadedAt: string };
|
|
29
|
+
* <FileLoaderDescription<AppFile>
|
|
30
|
+
* files={appFiles}
|
|
31
|
+
* onChange={(next) => save(next)} // next: AppFile[]
|
|
32
|
+
* />
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export interface IFileLoaderDescriptionProps<TFile extends IFile = IFile> {
|
|
16
36
|
id?: string;
|
|
17
37
|
testId?: string;
|
|
18
38
|
fieldKey?: string;
|
|
19
|
-
files?:
|
|
20
|
-
onChange: (files:
|
|
39
|
+
files?: TFile[];
|
|
40
|
+
onChange: (files: TFile[]) => void;
|
|
21
41
|
className?: string;
|
|
22
42
|
filesDescription?: string;
|
|
23
43
|
documentName?: string;
|
|
@@ -2,7 +2,7 @@ import type { ReactElement } from 'react';
|
|
|
2
2
|
import type { InputProps } from './types';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import './Input.scss';
|
|
5
|
-
declare function Input({ ref, blurTrim, autocomplete, isSelect, onChange, onBlur, onFocus, onKeyUp, onKeyDown, isNotBlinkErrors, isPriceInput, onlyNumbers, disabled, withDelete, value, placeholder, className, type, mask, maskChar, formatChars, error, icon,
|
|
5
|
+
declare function Input({ ref, blurTrim, autocomplete, isSelect, onChange, onBlur, onFocus, onKeyUp, onKeyDown, isNotBlinkErrors, isPriceInput, onlyNumbers, disabled, withDelete, value, placeholder, className, type, mask, maskChar, formatChars, error, icon, symbolsLimit, blinkTime, isFocusDefault, isNotValidateASCII, isNumericMobileKeyboard, isCropFirstNool, testId, action, isUseAutoSelect, isReadOnly, isLoading, name, fieldKey, id, attributesOfNativeInput }: InputProps & {
|
|
6
6
|
ref?: React.RefObject<Omit<HTMLInputElement, 'value'> | null>;
|
|
7
7
|
}): ReactElement;
|
|
8
8
|
export default Input;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { FocusEvent, KeyboardEvent, ReactNode } from 'react';
|
|
2
|
-
import type * as FeatherIcons from 'react-feather';
|
|
3
2
|
import type Langs from '../../../Langs';
|
|
4
3
|
import type { DeepPartial } from '../../../types';
|
|
5
4
|
import type { IUniProps } from '../../../types/base.interface';
|
|
@@ -80,10 +79,6 @@ interface AddonsProps {
|
|
|
80
79
|
withDelete?: boolean;
|
|
81
80
|
/** Icon component */
|
|
82
81
|
icon?: ReactNode;
|
|
83
|
-
/** Icon dynamic key */
|
|
84
|
-
iconDynamicKey?: keyof typeof FeatherIcons;
|
|
85
|
-
/** Icon dynamic props */
|
|
86
|
-
iconDynamicProps?: object;
|
|
87
82
|
/** Action component */
|
|
88
83
|
action?: ReactNode;
|
|
89
84
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { KeyboardEventHandler, LegacyRef, ReactNode } from 'react';
|
|
2
2
|
import type { IUniProps } from '../../../types/base.interface';
|
|
3
|
-
import type { IDynamicIconProps } from '../../UI/DynamicIcon';
|
|
4
3
|
import type { THintPosition } from '../../UI/Hint/Hint.interface';
|
|
5
4
|
declare global {
|
|
6
5
|
interface String {
|
|
@@ -47,8 +46,6 @@ export interface IInputMask3Props extends IUniProps {
|
|
|
47
46
|
showIcon?: boolean;
|
|
48
47
|
isIconLeft?: boolean;
|
|
49
48
|
isIconRight?: boolean;
|
|
50
|
-
iconDynamicKey?: IDynamicIconProps['iconKey'];
|
|
51
|
-
iconDynamicProps?: object;
|
|
52
49
|
value?: string;
|
|
53
50
|
blinkErrors?: boolean;
|
|
54
51
|
blinkDuration?: number;
|
|
@@ -7,5 +7,5 @@ export interface ITagListToDropdownProps extends IUniProps {
|
|
|
7
7
|
dropdownProps?: ITagsDropdownProps;
|
|
8
8
|
listProps?: any;
|
|
9
9
|
useDropdownCompactMode?: boolean;
|
|
10
|
-
onChange?: (value: ITagsDropdownOption[]) => void
|
|
10
|
+
onChange?: (value: ITagsDropdownOption[]) => void | Promise<unknown>;
|
|
11
11
|
}
|
|
@@ -60,7 +60,7 @@ export interface ITagsDropdownProps extends IUniProps {
|
|
|
60
60
|
mobileSearchPlaceholder?: string;
|
|
61
61
|
isSearchable?: boolean;
|
|
62
62
|
useLiveSearch?: boolean;
|
|
63
|
-
doRequest?: (ref: LegacyRef<ReactNode>, flag?: boolean) => void;
|
|
63
|
+
doRequest?: (ref: string | LegacyRef<ReactNode>, flag?: boolean) => void;
|
|
64
64
|
attributesOfNativeInput?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
65
65
|
isUseLocalOptionsStore?: boolean;
|
|
66
66
|
isDefaultOpened?: boolean;
|
|
@@ -70,9 +70,9 @@ export interface ITagsDropdownProps extends IUniProps {
|
|
|
70
70
|
withSearchInputInList?: boolean;
|
|
71
71
|
renderOptionsAsTags?: boolean;
|
|
72
72
|
minItemsForShowMobileSearch?: number;
|
|
73
|
-
onOptionCreate?: (option?: ITagsDropdownOption | null) => void
|
|
73
|
+
onOptionCreate?: (option?: ITagsDropdownOption | null) => void | Promise<unknown>;
|
|
74
74
|
onOptionEdit?: (option?: ITagsDropdownOption | null) => void;
|
|
75
|
-
onOptionDelete?: (option?: ITagsDropdownOption | null) => void
|
|
75
|
+
onOptionDelete?: (option?: ITagsDropdownOption | null) => void | Promise<unknown>;
|
|
76
76
|
onActionConfirmClick?: () => void;
|
|
77
77
|
onActionCancelClick?: () => void;
|
|
78
78
|
onDropdownListClose?: (e?: Event | MouseEvent) => void;
|
|
@@ -85,7 +85,7 @@ export interface ITagsDropdownProps extends IUniProps {
|
|
|
85
85
|
onSearchHandler?: (name: string) => void;
|
|
86
86
|
isOpen?: boolean;
|
|
87
87
|
setIsOpen: (v: boolean) => void;
|
|
88
|
-
}) =>
|
|
88
|
+
}) => ReactNode;
|
|
89
89
|
recalculateListContainerStylesTrigger?: any;
|
|
90
90
|
isUseInTable?: boolean;
|
|
91
91
|
}
|
|
@@ -4,8 +4,6 @@ type TButtonVariant = 'primary' | 'ellipse-apply' | 'ellipse-cancel' | string;
|
|
|
4
4
|
export interface IAlertProps extends IUniProps {
|
|
5
5
|
message?: string | ReactNode;
|
|
6
6
|
icon?: ReactNode;
|
|
7
|
-
iconDynamicKey?: string;
|
|
8
|
-
iconDynamicProps?: Record<string, any>;
|
|
9
7
|
className?: string;
|
|
10
8
|
children?: ReactNode;
|
|
11
9
|
noDismiss?: boolean;
|
|
@@ -2,8 +2,8 @@ import type { ResolvedConfig } from './types';
|
|
|
2
2
|
export declare class HttpError extends Error {
|
|
3
3
|
readonly status: number;
|
|
4
4
|
readonly body: string;
|
|
5
|
-
readonly retryAfterMs?: number
|
|
6
|
-
constructor(status: number, body: string, retryAfterMs?: number
|
|
5
|
+
readonly retryAfterMs?: number;
|
|
6
|
+
constructor(status: number, body: string, retryAfterMs?: number);
|
|
7
7
|
}
|
|
8
8
|
interface RequestOptions {
|
|
9
9
|
method: 'POST' | 'DELETE' | 'GET';
|