intelicoreact 2.0.8 → 2.0.10

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.
Files changed (101) hide show
  1. package/dist/Atomic/FormElements/Dropdown/components/DropdownLoader.d.ts +4 -0
  2. package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN_old.d.ts +11 -0
  3. package/dist/Atomic/FormElements/NumericInput/NumericInput.d.ts +36 -0
  4. package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.d.ts +2 -0
  5. package/dist/Atomic/FormElements/RangeSlider/RangeSlider.d.ts +19 -0
  6. package/dist/Atomic/FormElements/SwitcherTagsDropdown/partial/States.d.ts +5 -0
  7. package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.d.ts +17 -0
  8. package/dist/Atomic/FormElements/VariantsListRadio/partials/VariantsListRadioItem.d.ts +12 -0
  9. package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.d.ts +2 -0
  10. package/dist/Atomic/FormElements/WidgetPseudoTable/partial/constructor.d.ts +23 -0
  11. package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.d.ts +2 -0
  12. package/dist/Atomic/FormElements/WidgetWithSwitchableRows/partial/constructor.d.ts +38 -0
  13. package/dist/Atomic/UI/AccordionTable/AccordionTable.d.ts +10 -0
  14. package/dist/Atomic/UI/AccordionText/AccordionText.d.ts +8 -0
  15. package/dist/Atomic/UI/Chart/partial/Chart.constants.d.ts +78 -0
  16. package/dist/Atomic/UI/Chart/partial/datasetSetters.d.ts +13 -0
  17. package/dist/Atomic/UI/Chart/partial/optionsConstructor.d.ts +145 -0
  18. package/dist/Atomic/UI/Chart/partial/optionsSetters.d.ts +4 -0
  19. package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.d.ts +14 -0
  20. package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.d.ts +2 -0
  21. package/dist/Atomic/UI/ExampleChartIntegration/partial/utils.d.ts +4 -0
  22. package/dist/Atomic/UI/MonoAccordion/MonoAccordion._test.d.ts +1 -0
  23. package/dist/Atomic/UI/MonoAccordion/MonoAccordion.d.ts +12 -0
  24. package/dist/Atomic/UI/PieChart/PieChart.d.ts +8 -0
  25. package/dist/Atomic/UI/Table/Partials/TdCell.d.ts +13 -0
  26. package/dist/Atomic/UI/Table/Partials/TdHeader.d.ts +5 -0
  27. package/dist/Atomic/UI/Table/Partials/TdRow.d.ts +17 -0
  28. package/dist/Atomic/UI/Table/Partials/TdTitle.d.ts +5 -0
  29. package/dist/Atomic/UI/Table/Table.d.ts +9 -0
  30. package/dist/Atomic/UI/Table/TdTypes/TdActions.d.ts +6 -0
  31. package/dist/Atomic/UI/Table/TdTypes/TdPriority.d.ts +6 -0
  32. package/dist/Atomic/UI/Table/TdTypes/TdRange.d.ts +4 -0
  33. package/dist/Atomic/UI/Table/TdTypes/TdWeight.d.ts +7 -0
  34. package/dist/Atomic/UI/WizardStepper/constructor.d.ts +51 -0
  35. package/dist/Classes/AbortableFetch.d.ts +43 -0
  36. package/dist/Classes/AnimatedHandler.d.ts +4 -0
  37. package/dist/Classes/RESTAPI/index.d.ts +31 -0
  38. package/dist/Classes/RESTAPI/partials/AbortableFetch.d.ts +48 -0
  39. package/dist/Classes/RESTAPI/partials/ApiBase.d.ts +21 -0
  40. package/dist/Classes/RESTAPI/partials/ApiRequestCreators.d.ts +58 -0
  41. package/dist/Classes/RESTAPI/partials/ApiUtils.d.ts +63 -0
  42. package/dist/Classes/RESTAPI/partials/CredentialsProcessing.d.ts +79 -0
  43. package/dist/Classes/RESTAPI/partials/Utils.d.ts +20 -0
  44. package/dist/Classes/RESTAPI/partials/_utils.d.ts +54 -0
  45. package/dist/Classes/RESTAPI/partials/sse.d.ts +27 -0
  46. package/dist/Classes/RESTAPI/partials/types.d.ts +159 -0
  47. package/dist/Constants/index.constants.d.ts +20 -0
  48. package/dist/Functions/Portal.d.ts +6 -0
  49. package/dist/Functions/customEventListener.d.ts +27 -0
  50. package/dist/Functions/dateTime.d.ts +95 -0
  51. package/dist/Functions/fieldValueFormatters.d.ts +19 -0
  52. package/dist/Functions/hooks/useFormFieldsChangesManager.d.ts +15 -0
  53. package/dist/Functions/locale/createTranslator.d.ts +3 -0
  54. package/dist/Functions/operations.d.ts +1 -0
  55. package/dist/Functions/presets/inputMaskPresets.d.ts +136 -0
  56. package/dist/Functions/presets/inputPresets.d.ts +16 -0
  57. package/dist/Functions/presets/mobileKeyboardTypesPresets.d.ts +17 -0
  58. package/dist/Functions/schemas.d.ts +3 -0
  59. package/dist/Functions/sdk/runtime-sdk/client.d.ts +1 -1
  60. package/dist/Functions/useBodyScrollLock.d.ts +2 -0
  61. package/dist/Functions/useClickOutside.d.ts +1 -0
  62. package/dist/Functions/useDebounce.d.ts +4 -0
  63. package/dist/Functions/useFieldFocus.d.ts +7 -0
  64. package/dist/Functions/useFormTools/form-drivers/ArrayWithObjects.d.ts +15 -0
  65. package/dist/Functions/useFormTools/form-drivers/ObjectWithIterableObjects.d.ts +12 -0
  66. package/dist/Functions/useFormTools/form-drivers/ObjectWithNamedKeyObjects.d.ts +15 -0
  67. package/dist/Functions/useFormTools/functions/General.d.ts +15 -0
  68. package/dist/Functions/useFormTools/functions/RenderFields.d.ts +7 -0
  69. package/dist/Functions/useFormTools/functions/usePrevious.d.ts +2 -0
  70. package/dist/Functions/useFormTools/index.d.ts +86 -0
  71. package/dist/Functions/useInputHighlightError.d.ts +12 -0
  72. package/dist/Functions/useLocalStorage.d.ts +2 -0
  73. package/dist/Functions/useLocationParams.d.ts +1 -0
  74. package/dist/Functions/useMediaQuery.d.ts +2 -0
  75. package/dist/Functions/useMetaInfo.d.ts +8 -0
  76. package/dist/Functions/useMouseUpOutside.d.ts +1 -0
  77. package/dist/Functions/useOnlineStatus.d.ts +2 -0
  78. package/dist/Functions/usePasswordChecker.d.ts +7 -0
  79. package/dist/Functions/usePrevious.d.ts +2 -0
  80. package/dist/Functions/useResize.d.ts +3 -0
  81. package/dist/Functions/useScrollTo.d.ts +2 -0
  82. package/dist/Functions/useToggle.d.ts +7 -0
  83. package/dist/Functions/utils.d.ts +40 -0
  84. package/dist/Langs.d.ts +179 -0
  85. package/dist/Molecular/FormWithDependOn/FormWithDependOn.d.ts +3 -0
  86. package/dist/Molecular/FormWithDependOn/FormWithDependOn.interface.d.ts +2 -2
  87. package/dist/Molecular/FormWithDependOn/partials/_utils.d.ts +8 -0
  88. package/dist/charts.cjs.map +1 -1
  89. package/dist/classes.cjs +629 -237
  90. package/dist/classes.cjs.map +4 -4
  91. package/dist/classes.js +629 -237
  92. package/dist/classes.js.map +4 -4
  93. package/dist/index.cjs +627 -235
  94. package/dist/index.cjs.map +4 -4
  95. package/dist/index.js +627 -235
  96. package/dist/index.js.map +4 -4
  97. package/dist/sdk.cjs.map +1 -1
  98. package/dist/sdk.d.ts +1 -1
  99. package/dist/sdk.js.map +1 -1
  100. package/package.json +5 -3
  101. package/styles.css +1 -0
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Добавляет обработчик события к элементу
3
+ * @param {HTMLElement} element - DOM элемент
4
+ * @param {string} eventName - Название события
5
+ * @param {Function} handler - Функция-обработчик
6
+ */
7
+ export function addEventListener(element: HTMLElement, eventName: string, handler: Function): void;
8
+ /**
9
+ * Удаляет обработчик события с элемента
10
+ * @param {HTMLElement} element - DOM элемент
11
+ * @param {string} eventName - Название события
12
+ * @param {Function} handler - Функция-обработчик
13
+ */
14
+ export function removeEventListener(element: HTMLElement, eventName: string, handler: Function): void;
15
+ /**
16
+ * Создает и отправляет кастомное событие
17
+ * @param {HTMLElement} element - DOM элемент
18
+ * @param {string} eventName - Название события
19
+ * @param {Object} detail - Данные события
20
+ */
21
+ export function dispatchCustomEvent(element: HTMLElement, eventName: string, detail?: any): void;
22
+ declare namespace _default {
23
+ export { addEventListener };
24
+ export { removeEventListener };
25
+ export { dispatchCustomEvent };
26
+ }
27
+ export default _default;
@@ -0,0 +1,95 @@
1
+ /**
2
+ * Функция для парсинга и форматирования строки с датой в указанный формат.
3
+ *
4
+ * @param {string} value - Строка с датой, которую необходимо распарсить и отформатировать.
5
+ * @param {string} [outputFormat=DATETIME_FORMATS.INPUT_DATE_FORMAT] - Формат, в который будет преобразована дата.
6
+ * Если не указан, используется формат по умолчанию `MM.DD.YYYY`.
7
+ *
8
+ * @returns {string} - Отформатированная дата в строковом виде, или исходная строка, если дата не распознана.
9
+ *
10
+ * @throws {Error} - Если значение даты некорректно (не строка или пустое).
11
+ */
12
+ export function parseAndFormatDate(value: string, outputFormat?: string): string;
13
+ /**
14
+ * @constant {Object} DATETIME_FORMATS
15
+ * @description Все доступные форматы дат и времени.
16
+ */
17
+ export const DATETIME_FORMATS: Readonly<{
18
+ DATE_FORMAT: "YYYY-MM-DD";
19
+ DATE_WITHOUT_SEPARATORS: "MMDDYYYY";
20
+ VALIDATION_DATE_FORMAT: "MM/DD/YYYY";
21
+ INPUT_DATE_FORMAT: "MM.DD.YYYY";
22
+ INPUT_TIME_FORMAT: "YYYY-MM-DD HH:mm:SS";
23
+ TIME_FORMAT_WSPACE: "YYYY-MM-DD HH:mm:SS";
24
+ TIME_FORMAT: "YYYY-MM-DDTHH:mm:SS";
25
+ DATE_FORMAT_WITH_SLASH: "MM/DD/YYYY";
26
+ DATE_WITH_DASHES: "MM-DD-YYYY";
27
+ DATE_WITH_DOTS: "DD.MM.YYYY";
28
+ DATE_WITH_COMMA: "DD,MM,YYYY";
29
+ FULL_DATE_TIME: "YYYY-MM-DD HH:mm:ss";
30
+ ISO_DATE_TIME: "YYYY-MM-DDTHH:mm:ss.SSSZ";
31
+ LOCALIZED_DATE: "MMMM DD, YYYY";
32
+ SHORT_DATE: "MM/DD/YY";
33
+ SHORT_DATE_WITH_TIME: "MM/DD/YY HH:mm";
34
+ TIME_24H: "HH:mm";
35
+ TIME_12H: "hh:mm A";
36
+ TIME_12H_WITH_SECONDS: "hh:mm:ss A";
37
+ TIME_24H_WITH_SECONDS: "HH:mm:ss";
38
+ MONTH_DAY: "MM/DD";
39
+ YEAR_MONTH_DAY: "YYYY/MM/DD";
40
+ }>;
41
+ /**
42
+ * @constant {Object} DATE_UNITS
43
+ * @description Единицы времени, которые могут быть использованы для работы с датами.
44
+ */
45
+ export const DATE_UNITS: Readonly<{
46
+ YEARS: Readonly<{
47
+ YEARS: "years";
48
+ YEAR: "year";
49
+ Y: "y";
50
+ TEMPLATE: "YYYY";
51
+ }>;
52
+ MONTHS: Readonly<{
53
+ MONTHS: "months";
54
+ MONTH: "month";
55
+ MON: "M";
56
+ TEMPLATE: "MM";
57
+ }>;
58
+ DAYS: Readonly<{
59
+ DAYS: "days";
60
+ DAY: "day";
61
+ D: "d";
62
+ TEMPLATE: "DD";
63
+ }>;
64
+ HOURS: Readonly<{
65
+ HOURS: "hours";
66
+ HOUR: "hour";
67
+ H: "h";
68
+ TEMPLATE: "HH";
69
+ }>;
70
+ WEEKS: Readonly<{
71
+ WEEKS: "weeks";
72
+ WEEK: "week";
73
+ W: "w";
74
+ }>;
75
+ QUARTERS: Readonly<{
76
+ QUARTERS: "quarters";
77
+ QUARTER: "quarter";
78
+ Q: "Q";
79
+ }>;
80
+ MINUTES: Readonly<{
81
+ MINUTES: "minutes";
82
+ MINUTE: "minute";
83
+ MIN: "m";
84
+ }>;
85
+ SECONDS: Readonly<{
86
+ SECONDS: "seconds";
87
+ SECOND: "second";
88
+ S: "s";
89
+ }>;
90
+ MILLISECONDS: Readonly<{
91
+ MILLISECONDS: "milliseconds";
92
+ MILLISECOND: "millisecond";
93
+ MS: "ms";
94
+ }>;
95
+ }>;
@@ -0,0 +1,19 @@
1
+ export function formatToReplaceAllWhiteSpace(str: any): any;
2
+ export function getSafelyValue(value: any): any;
3
+ export function intlNumbersFormatter(inputValue: any, settings?: {}): any;
4
+ export function formatOnlyNumbers(value: any): any;
5
+ export function formatToRemoveComa(value: any): any;
6
+ export function formatToAddBitDepthPoints(value: any, settings: any): any;
7
+ export function formatToPriceWithUSD(value: any): any;
8
+ export function formatToPriceWithCurrency(value: any, currencyCode: any, symbolPosition?: string): any;
9
+ export function formatAsPercentage(value: any, settings: any): string;
10
+ export function formatToOnlyASCIICodeText(text: any): any;
11
+ export function formatNumberValueToMask(inputValue: any, settings: any): any;
12
+ export function formatToLimitLength(inputValue: any, limit: any): any;
13
+ export function formatToHex({ inputValue, withSharp }: {
14
+ inputValue: any;
15
+ withSharp: any;
16
+ }): string;
17
+ export function filterFloat(inputValue: any, decimalPlaces: any): string;
18
+ export function filterNumeric(value: any, settings: any): any;
19
+ export function formatToHideValuePartially(value: any, settings: any): any;
@@ -0,0 +1,15 @@
1
+ export default useFormFieldsChangesManager;
2
+ declare function useFormFieldsChangesManager({ form, setForm, callback, validateField, settings }: {
3
+ form: any;
4
+ setForm: any;
5
+ callback: any;
6
+ validateField: any;
7
+ settings: any;
8
+ }): {
9
+ assignChangesToField: (data: any, key: any, settings: any) => any;
10
+ isFormMustBeChanget: boolean;
11
+ startChangesProcessing: () => void;
12
+ setIsFormMustBeChanget: () => void;
13
+ changesArray: any;
14
+ DELAY_TIME: number;
15
+ };
@@ -0,0 +1,3 @@
1
+ export default function createTranslator({ ...langCatalogs }: {
2
+ [x: string]: any;
3
+ }): (text: any, values: any) => any;
@@ -0,0 +1 @@
1
+ export function addRangeDefault(from: any, to: any, currentValues: any, decimalPlaces: any): any;
@@ -0,0 +1,136 @@
1
+ export namespace MASK_PRESETS {
2
+ export { BANK_ACCOUNT };
3
+ export { CC_EXPIRATION_DATE };
4
+ export { DATE_PRESET };
5
+ export { ZIP_PRESET };
6
+ export { SSN_PRESET };
7
+ export { MOBILE_PHONE_PRESET };
8
+ export { SHORT_SSN_PRESET };
9
+ export { ABA_PRESET };
10
+ }
11
+ declare namespace BANK_ACCOUNT {
12
+ let type: string;
13
+ let maskPattern: string;
14
+ let maskPlaceholder: string;
15
+ let isNumericMobileKeyboard: boolean;
16
+ let blinkErrors: boolean;
17
+ let showErrors: boolean;
18
+ }
19
+ declare namespace CC_EXPIRATION_DATE {
20
+ let type_1: string;
21
+ export { type_1 as type };
22
+ let maskPattern_1: string;
23
+ export { maskPattern_1 as maskPattern };
24
+ export let maskPatternPlaceholder: string;
25
+ export let usePatternPlaceholder: boolean;
26
+ let isNumericMobileKeyboard_1: boolean;
27
+ export { isNumericMobileKeyboard_1 as isNumericMobileKeyboard };
28
+ let blinkErrors_1: boolean;
29
+ export { blinkErrors_1 as blinkErrors };
30
+ let showErrors_1: boolean;
31
+ export { showErrors_1 as showErrors };
32
+ export let focusSelector: string;
33
+ }
34
+ declare namespace DATE_PRESET {
35
+ let type_2: string;
36
+ export { type_2 as type };
37
+ let maskPattern_2: string;
38
+ export { maskPattern_2 as maskPattern };
39
+ let maskPatternPlaceholder_1: string;
40
+ export { maskPatternPlaceholder_1 as maskPatternPlaceholder };
41
+ let usePatternPlaceholder_1: boolean;
42
+ export { usePatternPlaceholder_1 as usePatternPlaceholder };
43
+ let isNumericMobileKeyboard_2: boolean;
44
+ export { isNumericMobileKeyboard_2 as isNumericMobileKeyboard };
45
+ let blinkErrors_2: boolean;
46
+ export { blinkErrors_2 as blinkErrors };
47
+ let showErrors_2: boolean;
48
+ export { showErrors_2 as showErrors };
49
+ export let autocomplete: string;
50
+ let focusSelector_1: string;
51
+ export { focusSelector_1 as focusSelector };
52
+ }
53
+ declare namespace ZIP_PRESET {
54
+ let type_3: string;
55
+ export { type_3 as type };
56
+ let focusSelector_2: string;
57
+ export { focusSelector_2 as focusSelector };
58
+ let maskPattern_3: string;
59
+ export { maskPattern_3 as maskPattern };
60
+ let maskPlaceholder_1: string;
61
+ export { maskPlaceholder_1 as maskPlaceholder };
62
+ let isNumericMobileKeyboard_3: boolean;
63
+ export { isNumericMobileKeyboard_3 as isNumericMobileKeyboard };
64
+ let blinkErrors_3: boolean;
65
+ export { blinkErrors_3 as blinkErrors };
66
+ let showErrors_3: boolean;
67
+ export { showErrors_3 as showErrors };
68
+ let autocomplete_1: string;
69
+ export { autocomplete_1 as autocomplete };
70
+ export let rules: string;
71
+ }
72
+ declare namespace SSN_PRESET {
73
+ let type_4: string;
74
+ export { type_4 as type };
75
+ let maskPattern_4: string;
76
+ export { maskPattern_4 as maskPattern };
77
+ let maskPlaceholder_2: string;
78
+ export { maskPlaceholder_2 as maskPlaceholder };
79
+ let focusSelector_3: string;
80
+ export { focusSelector_3 as focusSelector };
81
+ let isNumericMobileKeyboard_4: boolean;
82
+ export { isNumericMobileKeyboard_4 as isNumericMobileKeyboard };
83
+ let blinkErrors_4: boolean;
84
+ export { blinkErrors_4 as blinkErrors };
85
+ let showErrors_4: boolean;
86
+ export { showErrors_4 as showErrors };
87
+ }
88
+ declare namespace MOBILE_PHONE_PRESET {
89
+ let type_5: string;
90
+ export { type_5 as type };
91
+ let maskPattern_5: string;
92
+ export { maskPattern_5 as maskPattern };
93
+ let maskPlaceholder_3: string;
94
+ export { maskPlaceholder_3 as maskPlaceholder };
95
+ let focusSelector_4: string;
96
+ export { focusSelector_4 as focusSelector };
97
+ let isNumericMobileKeyboard_5: boolean;
98
+ export { isNumericMobileKeyboard_5 as isNumericMobileKeyboard };
99
+ let blinkErrors_5: boolean;
100
+ export { blinkErrors_5 as blinkErrors };
101
+ let showErrors_5: boolean;
102
+ export { showErrors_5 as showErrors };
103
+ let autocomplete_2: string;
104
+ export { autocomplete_2 as autocomplete };
105
+ }
106
+ declare namespace SHORT_SSN_PRESET {
107
+ let type_6: string;
108
+ export { type_6 as type };
109
+ let maskPattern_6: string;
110
+ export { maskPattern_6 as maskPattern };
111
+ let maskPlaceholder_4: string;
112
+ export { maskPlaceholder_4 as maskPlaceholder };
113
+ let focusSelector_5: string;
114
+ export { focusSelector_5 as focusSelector };
115
+ let isNumericMobileKeyboard_6: boolean;
116
+ export { isNumericMobileKeyboard_6 as isNumericMobileKeyboard };
117
+ let blinkErrors_6: boolean;
118
+ export { blinkErrors_6 as blinkErrors };
119
+ let showErrors_6: boolean;
120
+ export { showErrors_6 as showErrors };
121
+ }
122
+ declare namespace ABA_PRESET {
123
+ let type_7: string;
124
+ export { type_7 as type };
125
+ let maskPattern_7: string;
126
+ export { maskPattern_7 as maskPattern };
127
+ let maskPlaceholder_5: string;
128
+ export { maskPlaceholder_5 as maskPlaceholder };
129
+ let isNumericMobileKeyboard_7: boolean;
130
+ export { isNumericMobileKeyboard_7 as isNumericMobileKeyboard };
131
+ let blinkErrors_7: boolean;
132
+ export { blinkErrors_7 as blinkErrors };
133
+ let showErrors_7: boolean;
134
+ export { showErrors_7 as showErrors };
135
+ }
136
+ export {};
@@ -0,0 +1,16 @@
1
+ export namespace NAME_SYMBOLS_EXCLUDER {
2
+ function fieldChangesMiddleware(value: string): string;
3
+ namespace blurTrim {
4
+ let trimStart: boolean;
5
+ let trimEnd: boolean;
6
+ let characters: string[];
7
+ }
8
+ }
9
+ export namespace ONLY_STRING_AND_DASH {
10
+ export function fieldChangesMiddleware_1(value: string): string;
11
+ export { fieldChangesMiddleware_1 as fieldChangesMiddleware };
12
+ }
13
+ export namespace INPUT_PRESETS {
14
+ export { NAME_SYMBOLS_EXCLUDER };
15
+ export { ONLY_STRING_AND_DASH };
16
+ }
@@ -0,0 +1,17 @@
1
+ export namespace ALL_KEYBOARD_TYPES {
2
+ namespace numeric {
3
+ let inputMode: string;
4
+ }
5
+ namespace email {
6
+ let inputMode_1: string;
7
+ export { inputMode_1 as inputMode };
8
+ }
9
+ }
10
+ export namespace NUMERIC_KEYBOARD {
11
+ import attributesOfNativeInput = ALL_KEYBOARD_TYPES.numeric;
12
+ export { attributesOfNativeInput };
13
+ }
14
+ export namespace EMAIL_KEYBOARD {
15
+ import attributesOfNativeInput_1 = ALL_KEYBOARD_TYPES.email;
16
+ export { attributesOfNativeInput_1 as attributesOfNativeInput };
17
+ }
@@ -0,0 +1,3 @@
1
+ export const forgotSchema: any;
2
+ export const loginSchema: any;
3
+ export const registerSchema: any;
@@ -1,7 +1,7 @@
1
1
  import type { RuntimeClient, RuntimeClientConfig } from './types';
2
2
  /**
3
3
  * Создаёт и возвращает singleton-инстанс клиента для работы с
4
- * runtime-эндпоинтами MCP Contract Intelligence сервера.
4
+ * runtime-эндпоинтами FinContract сервера.
5
5
  *
6
6
  * Вызывается один раз при инициализации фронта. Полученный инстанс
7
7
  * используется во всём приложении для отправки runtime-логов (REST/WS)
@@ -0,0 +1,2 @@
1
+ export default useBodyScrollLock;
2
+ declare function useBodyScrollLock(isScrollBodyLocked: any): void;
@@ -0,0 +1 @@
1
+ export function useClickOutside(ref: any, setOut: any, open: any): void;
@@ -0,0 +1,4 @@
1
+ export function useDebounce({ searchValue, delay }: {
2
+ searchValue: any;
3
+ delay: any;
4
+ }): any;
@@ -0,0 +1,7 @@
1
+ export default function useFieldsFocus({ form, setForm }: {
2
+ form: any;
3
+ setForm: any;
4
+ }): {
5
+ setFocusTo: (key: any) => boolean;
6
+ setFocusToErroredField: () => boolean;
7
+ };
@@ -0,0 +1,15 @@
1
+ export default function ArrayWithObjects({ form, setForm, FormFields }: {
2
+ form: any;
3
+ setForm: any;
4
+ FormFields: any;
5
+ }): {
6
+ joinData: (...args: any[]) => any;
7
+ getFieldData: (key: any) => any;
8
+ getFormFields: (argForm?: any) => any;
9
+ getFormField: (key: any, argForm?: any) => any;
10
+ setFormFields: (data: any) => void;
11
+ setFormField: (data: any, key?: any) => void;
12
+ getFormFieldsAsArray: (fields: any) => any;
13
+ getFormFieldsKeys: (fields: any) => any;
14
+ removeAllFormFields: () => void;
15
+ };
@@ -0,0 +1,12 @@
1
+ export default function ObjectWithIterableObjects({ form, setForm, FormFields, }: {
2
+ form: any;
3
+ setForm: any;
4
+ FormFields: any;
5
+ }): {
6
+ joinData: (...args: any[]) => any;
7
+ getFieldData: (key: any) => any;
8
+ getFormFields: () => any;
9
+ getFormField: (key: any) => any;
10
+ setFormFields: (data: any) => void;
11
+ setFormField: (data: any, key?: any) => void;
12
+ };
@@ -0,0 +1,15 @@
1
+ export default function ObjectWithNamedKeyObjects({ form, setForm, FormFields, }?: {
2
+ setForm?: () => void;
3
+ }): {
4
+ joinData: (...args: any[]) => any;
5
+ getFieldData: (key: any) => any;
6
+ getFormField: (key: any, argForm?: any) => any;
7
+ setFormFields: (data: any) => void;
8
+ setFormField: (data: any, key?: any) => void;
9
+ getFormFields: () => any;
10
+ getFormFieldsAsArray: () => any;
11
+ getFormFieldsKeys: () => any;
12
+ removeAllFormFields: () => void;
13
+ removeFormField: (key: any) => void;
14
+ removeFormFields: ([...keys]: Iterable<any, void, undefined>) => void;
15
+ };
@@ -0,0 +1,15 @@
1
+ export default function General({ form, FormFields }?: {
2
+ FormFields?: any[];
3
+ }): {
4
+ joinData: (...args: any[]) => any;
5
+ getFieldData: (key: any) => any;
6
+ popFormField: (fields: any, key: any) => {
7
+ item: any;
8
+ itemIndex: any;
9
+ };
10
+ updateFormField: (fields: any, data: any, key: any) => any;
11
+ getFormFields: (argForm?: any) => any;
12
+ getFormFieldsAsArray: (fields: any) => any;
13
+ getFieldClassName: (key: any, type: any) => string;
14
+ getFormFieldsKeys: (fields?: any) => any;
15
+ };
@@ -0,0 +1,7 @@
1
+ export default function RenderFields({ form, fields, cols, FormDataDriver, RenderFieldComponent, onFieldChange, onFieldBlur, }?: {
2
+ cols?: number;
3
+ FormDataDriver?: () => any;
4
+ RenderFieldComponent?: () => any;
5
+ onFieldChange?: () => any;
6
+ onFieldBlur?: () => any;
7
+ }): any;
@@ -0,0 +1,2 @@
1
+ export default usePrevious;
2
+ declare function usePrevious(value: any): undefined;
@@ -0,0 +1,86 @@
1
+ export default function useFormTools({ form, setForm, FormType, FormFields, FormDataDriverName, FormDataDriver, FocusControllerProps, goToNextFieldOnEnterPressed, }?: {
2
+ FormDataDriverName?: string;
3
+ FormDataDriver?: any;
4
+ FocusControllerProps?: {
5
+ setAutoFocus: boolean;
6
+ onlyEmptyFieldAutoFocus: boolean;
7
+ };
8
+ goToNextFieldOnEnterPressed?: boolean;
9
+ }): {
10
+ FormDataDrivers: {
11
+ ArrayWithObjects: {
12
+ handlers: typeof ArrayWithObjects;
13
+ default: boolean;
14
+ };
15
+ ObjectWithIterableObjects: {
16
+ handlers: typeof ObjectWithIterableObjects;
17
+ };
18
+ ObjectWithNamedKeyObjects: {
19
+ handlers: typeof ObjectWithNamedKeyObjects;
20
+ };
21
+ };
22
+ addOnChangeObserver: (key: any, cb: any) => any;
23
+ removeOnChangeObserver: (key: any, id: any) => void;
24
+ onChangeObservers: {};
25
+ onFieldChange: (key: any, value: any) => boolean;
26
+ toggleFormSubmitBlock: (key: any, value: any) => void;
27
+ clearFormSubmitBlockers: () => void;
28
+ isFormSubmitBlocked: boolean;
29
+ renderFormFields: any[];
30
+ setRenderFormFields: (data: any) => void;
31
+ addRenderFields: (fields: any) => void;
32
+ removeRenderFields: (fields: any) => void;
33
+ getFieldClassName: (key: any, type: any) => string;
34
+ isInitFocused: boolean;
35
+ setFirstFieldInitFocused: () => void;
36
+ resetIsInitFocused: () => void;
37
+ setFieldFocus: ({ key, cb, form: argForm, field }: {
38
+ key: any;
39
+ cb?: () => void;
40
+ form: any;
41
+ field: any;
42
+ }) => boolean;
43
+ setFieldBlur: ({ key, cb, form: argForm, field }: {
44
+ key: any;
45
+ cb?: () => void;
46
+ form: any;
47
+ field: any;
48
+ }) => boolean;
49
+ setFirstFieldFocus: () => boolean;
50
+ autoFocusedField: any;
51
+ addFocusFieldOnRender: (key: any, cb: any) => void;
52
+ removeFocusFieldOnRender: (key: any) => void;
53
+ addOnFieldRenderedObserver: (key: any, cb: any, isOnceCallable?: boolean) => any;
54
+ removeOnFieldRenderedObserver: (key: any, id: any) => void;
55
+ onFieldRenderedObservers: {};
56
+ updateFormField: (fields: any, data: any, key: any) => any;
57
+ addOnFormRenderObserver: (cb: any, { once }?: {
58
+ once?: boolean;
59
+ }) => void;
60
+ submitIsFormRendered: () => void;
61
+ resetIsFormRendered: () => void;
62
+ renderFields: ({ form: argForm, fields: argFields, cols: argCols, RenderFieldComponent, }: {
63
+ form?: any;
64
+ fields?: any[];
65
+ cols?: number;
66
+ RenderFieldComponent: any;
67
+ }) => any;
68
+ scrollToField: ({ key, field, form: argForm }: {
69
+ key?: any;
70
+ field?: any;
71
+ form: any;
72
+ }) => boolean;
73
+ getFieldData: any;
74
+ getFormField: any;
75
+ setFormFields: any;
76
+ setFormField: (data: any, key: any) => any;
77
+ getFormFieldsAsArray: any;
78
+ getFormFieldsKeys: any;
79
+ removeAllFormFields: any;
80
+ removeFormField: any;
81
+ removeFormFields: any;
82
+ addErrorsToForm: (errors: any, argForm?: any) => void;
83
+ };
84
+ import ArrayWithObjects from "./form-drivers/ArrayWithObjects";
85
+ import ObjectWithIterableObjects from "./form-drivers/ObjectWithIterableObjects";
86
+ import ObjectWithNamedKeyObjects from "./form-drivers/ObjectWithNamedKeyObjects";
@@ -0,0 +1,12 @@
1
+ export function useInputHighlightError({ value, blinkTime, isUseErrorsBlink, }: {
2
+ value: any;
3
+ blinkTime: any;
4
+ isUseErrorsBlink: any;
5
+ }): {
6
+ isToHighlightError: boolean;
7
+ setPreviousValue: React.Dispatch<any>;
8
+ setIsToHighlightError: React.Dispatch<React.SetStateAction<boolean>>;
9
+ hasHighlightError: (e: any) => void;
10
+ };
11
+ export default useInputHighlightError;
12
+ import React from "react";
@@ -0,0 +1,2 @@
1
+ export default useLocalStorage;
2
+ declare function useLocalStorage(key: any, initialValue: any): any[];
@@ -0,0 +1 @@
1
+ export default function useLocationParams(): {};
@@ -0,0 +1,2 @@
1
+ export default useMediaQuery;
2
+ declare function useMediaQuery(query: any): boolean;
@@ -0,0 +1,8 @@
1
+ export function useMetaInfo(): {
2
+ browser: string;
3
+ device: string;
4
+ isiOS: boolean;
5
+ chromeVersion: any;
6
+ iOSVersion: any;
7
+ };
8
+ export default useMetaInfo;
@@ -0,0 +1 @@
1
+ export default function useMouseUpOutside(ref: any, setOut: any, open: any): void;
@@ -0,0 +1,2 @@
1
+ export default useOnlineStatus;
2
+ declare function useOnlineStatus(): boolean;
@@ -0,0 +1,7 @@
1
+ export default function usePasswordChecker({ label }?: {
2
+ label?: string;
3
+ }): {
4
+ addCheckRule: (data: any) => void;
5
+ testCheckRules: (value: any) => boolean;
6
+ renderPasswordChecker: () => JSX.Element;
7
+ };
@@ -0,0 +1,2 @@
1
+ export default usePrevious;
2
+ declare function usePrevious(value: any): undefined;
@@ -0,0 +1,3 @@
1
+ export function useResize(element: any): {
2
+ elemPosition: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ export default useScrollTo;
2
+ declare function useScrollTo(reference: any): (import("react").Dispatch<import("react").SetStateAction<boolean>> | import("react").MutableRefObject<any>)[];
@@ -0,0 +1,7 @@
1
+ export default useToggle;
2
+ declare function useToggle(initialState: any): {
3
+ isToggled: boolean;
4
+ toggle: () => void;
5
+ toggleOn: () => void;
6
+ toggleOff: () => void;
7
+ };
@@ -0,0 +1,40 @@
1
+ export function transformUTCTimeToLocal(date: any, format?: string): string;
2
+ export function transformLocalTimeToUTC(date: any, format?: string): string;
3
+ export function transformUTCHoursToLocal(time: any, format?: string): string;
4
+ export function transformDateOrTimeOrTogetherToFormat(data: any, outputFormat: string, additional: any): string | moment.Moment;
5
+ export function transformDateOrTimeOrTogetherToFormattedLocal(data: any, outputFormat: string, additional: any): any;
6
+ export function downloadEmulation(data: any, filename: any, type?: string): void;
7
+ export function uuid(): string;
8
+ export function getIsOnlyAnObject(input: any): boolean;
9
+ export function handleObjectChange(updateObject: any, updateFunction: any): (data: any, prop: string, isNumber: any) => void;
10
+ export function useOutsideToggle(ref: any, setOut: any, open: any): void;
11
+ export function clone(input: any): any;
12
+ export function getResponseClone(res: any): Promise<any>;
13
+ export function omitKeys(obj?: {}, keys?: any[]): any;
14
+ export function logout(): void;
15
+ export function getStyles(el: any, prop: any): string | CSSStyleDeclaration;
16
+ export function getColorById(id: any, colors: any): any;
17
+ export function debounce(fn: any, ms: any): (...args: any[]) => void;
18
+ export function throttle(fn: any, ms: any): (...args: any[]) => void;
19
+ export function addBitDepthPoints(value: any, step?: number): any;
20
+ export function changeMeta(key: any, items?: any[]): void;
21
+ export function firstLetterCapital(str: any): any;
22
+ export function capitalized(str: any): any;
23
+ export function checkedRef(ref: any): any;
24
+ export function downloadFile({ url, name, type }: {
25
+ url: any;
26
+ name: any;
27
+ type?: any;
28
+ }): Promise<void>;
29
+ export function compare(first: any, second: any, keys?: any[]): boolean;
30
+ export function setCarretToEnd(input: any): void;
31
+ export function compareAlphabetical(a: any, b: any, key?: string): 0 | 1 | -1;
32
+ export function getBase64(file: any): Promise<any>;
33
+ export function renderFileSize(bytes: any, decimals?: number): string;
34
+ export function getUniqueFileExtensions(extListString: any): string;
35
+ export function getOS(): string;
36
+ export function getCorrectTestId({ testId, withTier }: {
37
+ testId?: string;
38
+ withTier?: boolean;
39
+ }): string;
40
+ import moment from "moment-timezone";