@steroidsjs/core 3.0.0-beta.103 → 3.0.0-beta.104
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/components/HttpComponent.d.ts +4 -4
- package/components/JwtHttpComponent.d.ts +2 -2
- package/components/LocaleComponent.d.ts +5 -5
- package/components/ResourceComponent.d.ts +2 -2
- package/components/WebSocketComponent.d.ts +6 -6
- package/docs-autogen-result.json +7426 -2731
- package/en.json +119 -110
- package/hooks/useFile.d.ts +1 -0
- package/hooks/useFile.js +2 -0
- package/package.json +2 -1
- package/ui/content/DropDown/DropDown.d.ts +1 -1
- package/ui/content/DropDown/DropDown.js +4 -4
- package/ui/form/Form/Form.js +4 -1
- package/ui/form/NumberField/NumberField.js +34 -7
- package/ui/nav/Router/Router.js +3 -0
- package/utils/calculateComponentAbsolutePosition.js +57 -21
- package/utils/form.d.ts +1 -0
- package/utils/form.js +16 -1
|
@@ -100,10 +100,10 @@ export interface IHttpComponent extends IHttpComponentConfig {
|
|
|
100
100
|
* Обертка над Axios для запросов на бекенд. Поддерживает токен авторизации, CSRF и обработку ошибок.
|
|
101
101
|
*/
|
|
102
102
|
export default class HttpComponent implements IHttpComponent {
|
|
103
|
-
accessTokenKey
|
|
104
|
-
apiUrl
|
|
105
|
-
clientStorageName
|
|
106
|
-
clientStorageExpiresIn
|
|
103
|
+
accessTokenKey?: string;
|
|
104
|
+
apiUrl?: string;
|
|
105
|
+
clientStorageName?: string;
|
|
106
|
+
clientStorageExpiresIn?: number;
|
|
107
107
|
_accessToken: any;
|
|
108
108
|
_axios: any;
|
|
109
109
|
_components: any;
|
|
@@ -18,8 +18,8 @@ export interface IJwtHttpComponentConfig {
|
|
|
18
18
|
* Вариация HttpComponent с функционалом обновления токена авторизации
|
|
19
19
|
*/
|
|
20
20
|
export default class JwtHttpComponent extends BaseHttpComponent implements IJwtHttpComponentConfig {
|
|
21
|
-
refreshTokenRequest
|
|
22
|
-
refreshTokenKey
|
|
21
|
+
refreshTokenRequest?: IRefreshTokenRequest;
|
|
22
|
+
refreshTokenKey?: string;
|
|
23
23
|
_refreshToken: any;
|
|
24
24
|
constructor(components: any, config?: any);
|
|
25
25
|
getAxiosConfig(): Promise<{
|
|
@@ -55,15 +55,15 @@ export interface ILocaleComponent extends ILocaleComponentConfig {
|
|
|
55
55
|
* Компонент для локализации приложения. Поддерживает конфигурацию языка и временной зоны
|
|
56
56
|
*/
|
|
57
57
|
export default class LocaleComponent implements ILocaleComponent {
|
|
58
|
-
backendTimeDiff
|
|
59
|
-
backendTimeZone
|
|
58
|
+
backendTimeDiff?: null;
|
|
59
|
+
backendTimeZone?: any;
|
|
60
60
|
/**
|
|
61
61
|
* Язык приложения
|
|
62
62
|
* @example ru
|
|
63
63
|
*/
|
|
64
|
-
language
|
|
65
|
-
sourceLanguage
|
|
66
|
-
translations
|
|
64
|
+
language?: string;
|
|
65
|
+
sourceLanguage?: string;
|
|
66
|
+
translations?: any;
|
|
67
67
|
constructor(components: any, config: any);
|
|
68
68
|
/**
|
|
69
69
|
* Получение экземпляра `dayjs` с учетом временной зоны бекенда
|
|
@@ -89,9 +89,9 @@ export interface IResourceComponent extends IResourceComponentConfig {
|
|
|
89
89
|
export default class ResourceComponent implements IResourceComponent {
|
|
90
90
|
protected _callbacks: any;
|
|
91
91
|
protected _components: any;
|
|
92
|
-
googleApiKey
|
|
92
|
+
googleApiKey?: string;
|
|
93
93
|
googleCaptchaSiteKey: string;
|
|
94
|
-
language
|
|
94
|
+
language?: string;
|
|
95
95
|
readonly RESOURCE_GOOGLE_MAP_API = "//maps.googleapis.com/maps/api/js";
|
|
96
96
|
readonly RESOURCE_YANDEX_MAP_API = "https://api-maps.yandex.ru/2.1/";
|
|
97
97
|
readonly RESOURCE_TWITTER_WIDGET = "https://platform.twitter.com/widgets.js";
|
|
@@ -63,12 +63,12 @@ export interface IWebSocketComponent extends IWebSocketComponentConfig {
|
|
|
63
63
|
* Компонент для создания websocket взаимодействия
|
|
64
64
|
*/
|
|
65
65
|
export default class WebSocketComponent implements IWebSocketComponent {
|
|
66
|
-
wsUrl
|
|
67
|
-
streams
|
|
68
|
-
authHandler
|
|
69
|
-
onOpen
|
|
70
|
-
onClose
|
|
71
|
-
onMessage
|
|
66
|
+
wsUrl?: string;
|
|
67
|
+
streams?: TStreams;
|
|
68
|
+
authHandler?: (components: IComponents) => Promise<string>;
|
|
69
|
+
onOpen?: (event: any, components: IComponents) => any;
|
|
70
|
+
onClose?: (event: any, components: IComponents) => any;
|
|
71
|
+
onMessage?: (data: Record<string, unknown>, components: IComponents) => any;
|
|
72
72
|
_components: IComponents;
|
|
73
73
|
_connection: any;
|
|
74
74
|
_tryCount: any;
|