@dxtmisha/functional-basic 1.6.1 → 1.6.3
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/CHANGELOG.md +16 -0
- package/ai-description.md +16 -18
- package/ai-doc.md +6 -0
- package/ai-types.md +739 -1225
- package/package.json +1 -1
package/ai-types.md
CHANGED
|
@@ -6,313 +6,235 @@ The following is the content of "exports" from package.json:
|
|
|
6
6
|
{
|
|
7
7
|
".": {
|
|
8
8
|
"import": "./dist/library.js",
|
|
9
|
-
"types": "./dist/
|
|
9
|
+
"types": "./dist/library.d.ts"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
// File:
|
|
14
|
-
import { ApiInstance } from './ApiInstance';
|
|
15
|
-
import { ApiConfig, ApiDefaultValue, ApiFetch, ApiHeadersValue, ApiMethodItem, ApiPreparationEnd } from '../types/apiTypes';
|
|
16
|
-
import { ApiStatus } from './ApiStatus';
|
|
17
|
-
import { ApiResponse } from './ApiResponse';
|
|
18
|
-
import { ApiHydration } from './ApiHydration';
|
|
19
|
-
/**
|
|
20
|
-
* Class for working with HTTP requests.
|
|
21
|
-
*/
|
|
13
|
+
// File: classes/Api.d.ts
|
|
22
14
|
export declare class Api {
|
|
23
15
|
static isLocalhost(): boolean;
|
|
24
|
-
static getItem():
|
|
25
|
-
static getStatus():
|
|
26
|
-
static getResponse():
|
|
27
|
-
static getHydration():
|
|
16
|
+
static getItem(): any;
|
|
17
|
+
static getStatus(): any;
|
|
18
|
+
static getResponse(): any;
|
|
19
|
+
static getHydration(): any;
|
|
28
20
|
static getHydrationScript(): string;
|
|
29
21
|
static getOrigin(): string;
|
|
30
22
|
static getUrl(path: string, api?: boolean): string;
|
|
31
|
-
static getBody(request?:
|
|
32
|
-
static getBodyForGet(request:
|
|
33
|
-
static setHeaders(headers:
|
|
34
|
-
static setRequestDefault(request:
|
|
23
|
+
static getBody(request?: any, method?: any): string | FormData | undefined;
|
|
24
|
+
static getBodyForGet(request: any, path?: string, method?: any): string;
|
|
25
|
+
static setHeaders(headers: any): void;
|
|
26
|
+
static setRequestDefault(request: any): void;
|
|
35
27
|
static setUrl(url: string): void;
|
|
36
|
-
static setPreparation(callback: (apiFetch:
|
|
37
|
-
static setEnd(callback: (query: Response, apiFetch:
|
|
28
|
+
static setPreparation(callback: (apiFetch: any) => Promise<void>): void;
|
|
29
|
+
static setEnd(callback: (query: Response, apiFetch: any) => Promise<any>): void;
|
|
38
30
|
static setTimeout(timeout: number): void;
|
|
39
31
|
static setOrigin(origin: string): void;
|
|
40
|
-
static setWrapper(wrapper: <R>(callback: () => Promise<R>, apiFetch:
|
|
41
|
-
static setConfig(config?:
|
|
42
|
-
static request<T>(pathRequest: string |
|
|
43
|
-
static get<T>(request:
|
|
44
|
-
static post<T>(request:
|
|
45
|
-
static put<T>(request:
|
|
46
|
-
static patch<T>(request:
|
|
47
|
-
static delete<T>(request:
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Class for caching API responses.
|
|
53
|
-
*/
|
|
32
|
+
static setWrapper(wrapper: <R>(callback: () => Promise<R>, apiFetch: any) => Promise<R>): void;
|
|
33
|
+
static setConfig(config?: any): void;
|
|
34
|
+
static request<T>(pathRequest: string | any): Promise<T>;
|
|
35
|
+
static get<T>(request: any): Promise<T>;
|
|
36
|
+
static post<T>(request: any): Promise<T>;
|
|
37
|
+
static put<T>(request: any): Promise<T>;
|
|
38
|
+
static patch<T>(request: any): Promise<T>;
|
|
39
|
+
static delete<T>(request: any): Promise<T>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// File: classes/ApiCache.d.ts
|
|
54
43
|
export declare class ApiCache {
|
|
55
|
-
static init(getListener: (key: string) => Promise<
|
|
44
|
+
static init(getListener: (key: string) => Promise<any | undefined>, setListener: (key: string, value: any) => Promise<boolean>, removeListener: (key: string) => Promise<boolean>, cacheStepAgeClearOld?: number): void;
|
|
56
45
|
static reset(): void;
|
|
57
46
|
static get<T>(key: string): Promise<T | undefined>;
|
|
58
|
-
static getByFetch<T>(fetch:
|
|
47
|
+
static getByFetch<T>(fetch: any): Promise<T | undefined>;
|
|
59
48
|
static set<T>(key: string, value: T, age?: number): Promise<void>;
|
|
60
|
-
static setByFetch<T>(fetch:
|
|
49
|
+
static setByFetch<T>(fetch: any, value: T): Promise<void>;
|
|
61
50
|
static remove(key: string): Promise<void>;
|
|
62
51
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
import { ApiErrorItem } from './ApiErrorItem';
|
|
66
|
-
import { ApiData, ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
|
|
67
|
-
/**
|
|
68
|
-
* Class for handling API request response data.
|
|
69
|
-
*/
|
|
52
|
+
|
|
53
|
+
// File: classes/ApiDataReturn.d.ts
|
|
70
54
|
export declare class ApiDataReturn<T = any> {
|
|
71
|
-
constructor(apiFetch:
|
|
55
|
+
constructor(apiFetch: any, query: Response, end: any, error?: any);
|
|
72
56
|
init(): Promise<this>;
|
|
73
|
-
get():
|
|
74
|
-
getAndStatus(status:
|
|
75
|
-
getData():
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Class for working with default API request data.
|
|
81
|
-
*/
|
|
57
|
+
get(): any;
|
|
58
|
+
getAndStatus(status: any): any;
|
|
59
|
+
getData(): any | undefined;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// File: classes/ApiDefault.d.ts
|
|
82
63
|
export declare class ApiDefault {
|
|
83
64
|
is(): boolean;
|
|
84
65
|
get(): Record<string, any> | undefined;
|
|
85
|
-
request(request:
|
|
86
|
-
set(request:
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
import { ApiErrorStorage } from './ApiErrorStorage';
|
|
91
|
-
import { ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
|
|
92
|
-
/**
|
|
93
|
-
* Utility for managing API error storage and creating error items.
|
|
94
|
-
*/
|
|
66
|
+
request(request: any): any;
|
|
67
|
+
set(request: any): this;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// File: classes/ApiError.d.ts
|
|
95
71
|
export declare class ApiError {
|
|
96
|
-
static getStorage():
|
|
97
|
-
static add(item:
|
|
98
|
-
static getItem(method:
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Class for managing and extracting data from an API error response.
|
|
104
|
-
*/
|
|
72
|
+
static getStorage(): any;
|
|
73
|
+
static add(item: any | any[], url?: string | RegExp, method?: any): void;
|
|
74
|
+
static getItem(method: any, response: Response): Promise<any>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// File: classes/ApiErrorItem.d.ts
|
|
105
78
|
export declare class ApiErrorItem {
|
|
106
|
-
constructor(method:
|
|
107
|
-
getMethod():
|
|
79
|
+
constructor(method: any, response: Response, error: any);
|
|
80
|
+
getMethod(): any;
|
|
108
81
|
getResponse(): Response;
|
|
109
|
-
getError():
|
|
82
|
+
getError(): any;
|
|
110
83
|
getCode(): string | undefined;
|
|
111
84
|
getMessage(): string | undefined;
|
|
112
85
|
getStatus(): number;
|
|
113
86
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Manager for handling and identifying API error states.
|
|
118
|
-
*/
|
|
87
|
+
|
|
88
|
+
// File: classes/ApiErrorStorage.d.ts
|
|
119
89
|
export declare class ApiErrorStorage {
|
|
120
|
-
find(method:
|
|
121
|
-
add(item:
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Class for managing HTTP request headers.
|
|
127
|
-
*/
|
|
90
|
+
find(method: any, response: Response): Promise<any>;
|
|
91
|
+
add(item: any | any[], url?: string | RegExp, method?: any): this;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// File: classes/ApiHeaders.d.ts
|
|
128
95
|
export declare class ApiHeaders {
|
|
129
96
|
get(value?: Record<string, string> | null, type?: string | undefined | null): Record<string, string> | undefined;
|
|
130
|
-
getByRequest(request:
|
|
131
|
-
set(headers:
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
import { ApiFetch, ApiHydrationList } from '../types/apiTypes';
|
|
136
|
-
/**
|
|
137
|
-
* Class for collecting API data for hydration (SSR).
|
|
138
|
-
*/
|
|
97
|
+
getByRequest(request: any, value?: Record<string, string> | null, type?: string): Record<string, string> | undefined;
|
|
98
|
+
set(headers: any): this;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// File: classes/ApiHydration.d.ts
|
|
139
102
|
export declare class ApiHydration {
|
|
140
|
-
initResponse(response:
|
|
141
|
-
toClient<T>(apiFetch:
|
|
103
|
+
initResponse(response: any): void;
|
|
104
|
+
toClient<T>(apiFetch: any, response: T): void;
|
|
142
105
|
toString(): string;
|
|
143
106
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
147
|
-
import { ApiDefault } from './ApiDefault';
|
|
148
|
-
import { ApiHeaders } from './ApiHeaders';
|
|
149
|
-
import { ApiHydration } from './ApiHydration';
|
|
150
|
-
import { ApiPreparation } from './ApiPreparation';
|
|
151
|
-
import { ApiResponse } from './ApiResponse';
|
|
152
|
-
import { ApiStatus } from './ApiStatus';
|
|
153
|
-
import { ApiDefaultValue, ApiFetch, ApiHeadersValue, ApiMethod, ApiPreparationEnd } from '../types/apiTypes';
|
|
107
|
+
|
|
108
|
+
// File: classes/ApiInstance.d.ts
|
|
154
109
|
export type ApiInstanceOptions = {
|
|
155
|
-
headersClass?:
|
|
156
|
-
requestDefaultClass?:
|
|
157
|
-
statusClass?:
|
|
158
|
-
responseClass?:
|
|
159
|
-
preparationClass?:
|
|
160
|
-
loadingClass?:
|
|
161
|
-
errorCenterClass?:
|
|
162
|
-
hydrationClass?:
|
|
163
|
-
wrapper?: <R>(callback: () => Promise<R>, apiFetch:
|
|
110
|
+
headersClass?: any;
|
|
111
|
+
requestDefaultClass?: any;
|
|
112
|
+
statusClass?: any;
|
|
113
|
+
responseClass?: any;
|
|
114
|
+
preparationClass?: any;
|
|
115
|
+
loadingClass?: any;
|
|
116
|
+
errorCenterClass?: any;
|
|
117
|
+
hydrationClass?: any;
|
|
118
|
+
wrapper?: <R>(callback: () => Promise<R>, apiFetch: any) => Promise<R>;
|
|
164
119
|
};
|
|
165
|
-
/**
|
|
166
|
-
* Core class for managing HTTP requests using Fetch API.
|
|
167
|
-
*/
|
|
168
120
|
export declare class ApiInstance {
|
|
169
121
|
constructor(url?: string, options?: ApiInstanceOptions);
|
|
170
122
|
isLocalhost(): boolean;
|
|
171
|
-
getStatus():
|
|
172
|
-
getResponse():
|
|
173
|
-
getHydration():
|
|
123
|
+
getStatus(): any;
|
|
124
|
+
getResponse(): any;
|
|
125
|
+
getHydration(): any;
|
|
174
126
|
getOrigin(): string;
|
|
175
127
|
getUrl(path: string, api?: boolean): string;
|
|
176
|
-
getBody(request?:
|
|
177
|
-
getBodyForGet(request:
|
|
128
|
+
getBody(request?: any, method?: any): string | FormData | undefined;
|
|
129
|
+
getBodyForGet(request: any, path?: string, method?: any): string;
|
|
178
130
|
getHydrationScript(): string;
|
|
179
|
-
setHeaders(headers:
|
|
180
|
-
setRequestDefault(request:
|
|
131
|
+
setHeaders(headers: any): this;
|
|
132
|
+
setRequestDefault(request: any): this;
|
|
181
133
|
setUrl(url: string): this;
|
|
182
|
-
setPreparation(callback: (apiFetch:
|
|
183
|
-
setEnd(callback: (query: Response, apiFetch:
|
|
134
|
+
setPreparation(callback: (apiFetch: any) => Promise<void>): this;
|
|
135
|
+
setEnd(callback: (query: Response, apiFetch: any) => Promise<any>): this;
|
|
184
136
|
setTimeout(timeout: number): this;
|
|
185
137
|
setOrigin(origin: string): this;
|
|
186
|
-
setWrapper(wrapper: <R>(callback: () => Promise<R>, apiFetch:
|
|
187
|
-
request<T>(pathRequest: string |
|
|
188
|
-
get<T>(request:
|
|
189
|
-
post<T>(request:
|
|
190
|
-
put<T>(request:
|
|
191
|
-
patch<T>(request:
|
|
192
|
-
delete<T>(request:
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Class for preparing requests.
|
|
198
|
-
*/
|
|
138
|
+
setWrapper(wrapper: <R>(callback: () => Promise<R>, apiFetch: any) => Promise<R>): this;
|
|
139
|
+
request<T>(pathRequest: string | any): Promise<T>;
|
|
140
|
+
get<T>(request: any): Promise<T>;
|
|
141
|
+
post<T>(request: any): Promise<T>;
|
|
142
|
+
put<T>(request: any): Promise<T>;
|
|
143
|
+
patch<T>(request: any): Promise<T>;
|
|
144
|
+
delete<T>(request: any): Promise<T>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// File: classes/ApiPreparation.d.ts
|
|
199
148
|
export declare class ApiPreparation {
|
|
200
|
-
make(active: boolean, apiFetch:
|
|
201
|
-
makeEnd(active: boolean, query: Response, apiFetch:
|
|
202
|
-
set(callback: (apiFetch:
|
|
203
|
-
setEnd(callback: (query: Response, apiFetch:
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
import { ApiFetch, ApiMethod, ApiResponseItem } from '../types/apiTypes';
|
|
208
|
-
/**
|
|
209
|
-
* Class for working with API responses.
|
|
210
|
-
*/
|
|
149
|
+
make(active: boolean, apiFetch: any): Promise<void>;
|
|
150
|
+
makeEnd(active: boolean, query: Response, apiFetch: any): Promise<any>;
|
|
151
|
+
set(callback: (apiFetch: any) => Promise<void>): this;
|
|
152
|
+
setEnd(callback: (query: Response, apiFetch: any) => Promise<any>): this;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// File: classes/ApiResponse.d.ts
|
|
211
156
|
export declare class ApiResponse {
|
|
212
|
-
constructor(requestDefault:
|
|
213
|
-
get(path: string | undefined, method:
|
|
214
|
-
getList():
|
|
215
|
-
add(response:
|
|
157
|
+
constructor(requestDefault: any);
|
|
158
|
+
get(path: string | undefined, method: any, request?: any, devMode?: boolean): any | undefined;
|
|
159
|
+
getList(): any[];
|
|
160
|
+
add(response: any | any[]): this;
|
|
216
161
|
setDevMode(devMode: boolean): this;
|
|
217
|
-
emulator<T>(apiFetch:
|
|
218
|
-
emulatorAsync<T>(apiFetch:
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* Class for managing API request status.
|
|
224
|
-
*/
|
|
162
|
+
emulator<T>(apiFetch: any): Promise<T | undefined>;
|
|
163
|
+
emulatorAsync<T>(apiFetch: any): T | undefined;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// File: classes/ApiStatus.d.ts
|
|
225
167
|
export declare class ApiStatus {
|
|
226
|
-
get():
|
|
168
|
+
get(): any | undefined;
|
|
227
169
|
getStatus(): number | undefined;
|
|
228
170
|
getStatusText(): string | undefined;
|
|
229
|
-
getStatusType():
|
|
171
|
+
getStatusType(): any | undefined;
|
|
230
172
|
getCode(): string | undefined;
|
|
231
173
|
getError(): string | undefined;
|
|
232
174
|
getResponse<T>(): T | undefined;
|
|
233
175
|
getMessage(): string;
|
|
234
|
-
set(data:
|
|
176
|
+
set(data: any): this;
|
|
235
177
|
setStatus(status?: number, statusText?: string): this;
|
|
236
178
|
setError(error?: string): this;
|
|
237
179
|
setLastResponse(response?: any): this;
|
|
238
|
-
setLastStatus(status?:
|
|
180
|
+
setLastStatus(status?: any): this;
|
|
239
181
|
setLastCode(code?: string): this;
|
|
240
182
|
setLastMessage(message?: string): this;
|
|
241
183
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Class for working with BroadcastChannel.
|
|
246
|
-
*/
|
|
184
|
+
|
|
185
|
+
// File: classes/BroadcastMessage.d.ts
|
|
247
186
|
export declare class BroadcastMessage<Message = any> {
|
|
248
|
-
constructor(name: string, callback?: ((event: MessageEvent<Message>) => void) | undefined, callbackError?: ((event: MessageEvent<Message>) => void) | undefined, errorCenter?:
|
|
187
|
+
constructor(name: string, callback?: ((event: MessageEvent<Message>) => void) | undefined, callbackError?: ((event: MessageEvent<Message>) => void) | undefined, errorCenter?: any);
|
|
249
188
|
getChannel(): BroadcastChannel | undefined;
|
|
250
189
|
post(message: Message): this;
|
|
251
190
|
setCallback(callback: (event: MessageEvent<Message>) => void): this;
|
|
252
191
|
setCallbackError(callbackError: (event: MessageEvent<Message>) => void): this;
|
|
253
192
|
destroy(): this;
|
|
254
193
|
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
* Simple in-memory cache class.
|
|
258
|
-
* @deprecated Use alternative caching.
|
|
259
|
-
*/
|
|
194
|
+
|
|
195
|
+
// File: classes/Cache.d.ts
|
|
260
196
|
export declare class Cache {
|
|
261
197
|
get<T>(name: string, callback: () => T, comparison?: any[]): T;
|
|
262
198
|
getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
|
|
263
199
|
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
* Class for managing a single cached value.
|
|
267
|
-
* @deprecated Use alternative caching.
|
|
268
|
-
*/
|
|
200
|
+
|
|
201
|
+
// File: classes/CacheItem.d.ts
|
|
269
202
|
export declare class CacheItem<T> {
|
|
270
203
|
constructor(callback: () => T);
|
|
271
204
|
getCache(comparison: any[]): T;
|
|
272
205
|
getCacheOld(): T | undefined;
|
|
273
206
|
getCacheAsync(comparison: any[]): Promise<T>;
|
|
274
207
|
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* Static cache class.
|
|
279
|
-
* @deprecated Use alternative caching.
|
|
280
|
-
*/
|
|
208
|
+
|
|
209
|
+
// File: classes/CacheStatic.d.ts
|
|
281
210
|
export declare class CacheStatic {
|
|
282
211
|
static get<T>(name: string, callback: () => T, comparison?: any[]): T;
|
|
283
212
|
static getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
|
|
284
213
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Class for working with cookies.
|
|
289
|
-
*/
|
|
214
|
+
|
|
215
|
+
// File: classes/Cookie.d.ts
|
|
290
216
|
export declare class Cookie<T> {
|
|
291
217
|
static getInstance<T>(name: string): Cookie<T>;
|
|
292
218
|
constructor(name: string);
|
|
293
|
-
get(defaultValue?: T | string | (() => (T | string)), options?:
|
|
294
|
-
set(value?: T | string | (() => (T | string)), options?:
|
|
219
|
+
get(defaultValue?: T | string | (() => (T | string)), options?: any): string | T | undefined;
|
|
220
|
+
set(value?: T | string | (() => (T | string)), options?: any): void;
|
|
295
221
|
remove(): void;
|
|
296
222
|
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Class for changing cookie access status.
|
|
301
|
-
*/
|
|
223
|
+
|
|
224
|
+
// File: classes/CookieBlock.d.ts
|
|
302
225
|
export declare class CookieBlock {
|
|
303
|
-
static getItem():
|
|
226
|
+
static getItem(): any;
|
|
304
227
|
static get(): boolean;
|
|
305
228
|
static set(value: boolean): void;
|
|
306
229
|
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
* Class for changing cookie access status.
|
|
310
|
-
*/
|
|
230
|
+
|
|
231
|
+
// File: classes/CookieBlockInstance.d.ts
|
|
311
232
|
export declare class CookieBlockInstance {
|
|
312
233
|
get(): boolean;
|
|
313
234
|
set(value: boolean): void;
|
|
314
235
|
}
|
|
315
|
-
|
|
236
|
+
|
|
237
|
+
// File: classes/CookieStorage.d.ts
|
|
316
238
|
export type CookieSameSite = 'strict' | 'lax';
|
|
317
239
|
export type CookieOptions = {
|
|
318
240
|
age?: number;
|
|
@@ -324,9 +246,6 @@ export type CookieOptions = {
|
|
|
324
246
|
partitioned?: boolean;
|
|
325
247
|
arguments?: string[] | Record<string, string | number | boolean>;
|
|
326
248
|
};
|
|
327
|
-
/**
|
|
328
|
-
* Class for managing cookie storage.
|
|
329
|
-
*/
|
|
330
249
|
export declare class CookieStorage {
|
|
331
250
|
static init(getListener?: (key: string) => any | undefined, getListenerRaw?: () => string, setListener?: (key: string, value: any, cookie: string, options?: CookieOptions) => void): void;
|
|
332
251
|
static reset(): void;
|
|
@@ -335,36 +254,28 @@ export declare class CookieStorage {
|
|
|
335
254
|
static remove(name: string): void;
|
|
336
255
|
static update(): void;
|
|
337
256
|
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* Class for working with localStorage and sessionStorage.
|
|
342
|
-
*/
|
|
257
|
+
|
|
258
|
+
// File: classes/DataStorage.d.ts
|
|
343
259
|
export declare class DataStorage<T> {
|
|
344
260
|
static setPrefix(newPrefix: string): void;
|
|
345
|
-
constructor(name: string, isSession?: boolean, errorCenter?:
|
|
261
|
+
constructor(name: string, isSession?: boolean, errorCenter?: any);
|
|
346
262
|
get(defaultValue?: T | (() => T), cache?: number): T | undefined;
|
|
347
263
|
set(value?: T | (() => T)): T | undefined;
|
|
348
264
|
remove(): this;
|
|
349
265
|
update(): this;
|
|
350
266
|
}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
import { NumberOrStringOrDate } from '../types/basicTypes';
|
|
354
|
-
import { GeoDate, GeoFirstDay, GeoHours, GeoTimeZoneStyle } from '../types/geoTypes';
|
|
355
|
-
/**
|
|
356
|
-
* Class for working with dates.
|
|
357
|
-
*/
|
|
267
|
+
|
|
268
|
+
// File: classes/Datetime.d.ts
|
|
358
269
|
export declare class Datetime {
|
|
359
|
-
constructor(date?:
|
|
360
|
-
getIntl():
|
|
270
|
+
constructor(date?: any, type?: any, code?: string);
|
|
271
|
+
getIntl(): any;
|
|
361
272
|
getDate(): Date;
|
|
362
|
-
getType():
|
|
363
|
-
getHoursType():
|
|
273
|
+
getType(): any;
|
|
274
|
+
getHoursType(): any;
|
|
364
275
|
getHour24(): boolean;
|
|
365
276
|
getTimeZoneOffset(): number;
|
|
366
|
-
getTimeZone(style?:
|
|
367
|
-
getFirstDayCode():
|
|
277
|
+
getTimeZone(style?: any): string;
|
|
278
|
+
getFirstDayCode(): any;
|
|
368
279
|
getYear(): number;
|
|
369
280
|
getMonth(): number;
|
|
370
281
|
getDay(): number;
|
|
@@ -372,19 +283,19 @@ export declare class Datetime {
|
|
|
372
283
|
getMinute(): number;
|
|
373
284
|
getSecond(): number;
|
|
374
285
|
getMaxDay(): number;
|
|
375
|
-
locale(type?:
|
|
376
|
-
localeYear(style?:
|
|
377
|
-
localeMonth(style?:
|
|
378
|
-
localeDay(style?:
|
|
379
|
-
localeHour(style?:
|
|
380
|
-
localeMinute(style?:
|
|
381
|
-
localeSecond(style?:
|
|
286
|
+
locale(type?: any, styleOptions?: any): string;
|
|
287
|
+
localeYear(style?: any): string;
|
|
288
|
+
localeMonth(style?: any): string;
|
|
289
|
+
localeDay(style?: any): string;
|
|
290
|
+
localeHour(style?: any): string;
|
|
291
|
+
localeMinute(style?: any): string;
|
|
292
|
+
localeSecond(style?: any): string;
|
|
382
293
|
standard(timeZone?: boolean): string;
|
|
383
|
-
setDate(value:
|
|
384
|
-
setType(value:
|
|
294
|
+
setDate(value: any): this;
|
|
295
|
+
setType(value: any): this;
|
|
385
296
|
setHour24(value: boolean): this;
|
|
386
297
|
setCode(code: string): this;
|
|
387
|
-
setWatch(watch: (date: Date, type:
|
|
298
|
+
setWatch(watch: (date: Date, type: any, hour24: boolean) => void): this;
|
|
388
299
|
setYear(value: number): this;
|
|
389
300
|
setMonth(value: number): this;
|
|
390
301
|
setDay(value: number): this;
|
|
@@ -428,68 +339,54 @@ export declare class Datetime {
|
|
|
428
339
|
cloneDayNext(): Datetime;
|
|
429
340
|
cloneDayPrevious(): Datetime;
|
|
430
341
|
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
434
|
-
/**
|
|
435
|
-
* Class for managing error storage.
|
|
436
|
-
*/
|
|
342
|
+
|
|
343
|
+
// File: classes/ErrorCenter.d.ts
|
|
437
344
|
export declare class ErrorCenter {
|
|
438
|
-
static getItem():
|
|
345
|
+
static getItem(): any;
|
|
439
346
|
static has(code: string, group?: string): boolean;
|
|
440
|
-
static get(code: string, group?: string):
|
|
441
|
-
static add(cause:
|
|
442
|
-
static addList(causes:
|
|
443
|
-
static addHandler(group:
|
|
444
|
-
static addHandlerList(handlers:
|
|
445
|
-
static addCallback(callback:
|
|
446
|
-
static on(cause:
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Class for managing and triggering error handlers.
|
|
452
|
-
*/
|
|
347
|
+
static get(code: string, group?: string): any | undefined;
|
|
348
|
+
static add(cause: any): void;
|
|
349
|
+
static addList(causes: any[]): void;
|
|
350
|
+
static addHandler(group: string | undefined, handler: (cause: any) => void): void;
|
|
351
|
+
static addHandlerList(handlers: any[]): void;
|
|
352
|
+
static addCallback(callback: (cause: any) => void): void;
|
|
353
|
+
static on(cause: any): void;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
// File: classes/ErrorCenterHandler.d.ts
|
|
453
357
|
export declare class ErrorCenterHandler {
|
|
454
|
-
constructor(handlers?:
|
|
455
|
-
has(group:
|
|
456
|
-
get(group:
|
|
457
|
-
add(group:
|
|
458
|
-
addList(handlers:
|
|
459
|
-
addCallback(callback:
|
|
460
|
-
on(cause:
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
465
|
-
/**
|
|
466
|
-
* Class for managing error storage within an instance.
|
|
467
|
-
*/
|
|
358
|
+
constructor(handlers?: any[]);
|
|
359
|
+
has(group: string | undefined): boolean;
|
|
360
|
+
get(group: string | undefined): any | undefined;
|
|
361
|
+
add(group: string | undefined, handler: (cause: any) => void): this;
|
|
362
|
+
addList(handlers: any[]): this;
|
|
363
|
+
addCallback(callback: (cause: any) => void): this;
|
|
364
|
+
on(cause: any): this;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// File: classes/ErrorCenterInstance.d.ts
|
|
468
368
|
export declare class ErrorCenterInstance {
|
|
469
|
-
constructor(causes?:
|
|
369
|
+
constructor(causes?: any[], handler?: any);
|
|
470
370
|
has(code: string, group?: string): boolean;
|
|
471
|
-
get(code: string, group?: string):
|
|
472
|
-
add(cause:
|
|
473
|
-
addList(causes:
|
|
474
|
-
addHandler(group:
|
|
475
|
-
addHandlerList(handlers:
|
|
476
|
-
addCallback(callback:
|
|
477
|
-
on(cause:
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
*/
|
|
484
|
-
export declare class EventItem<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> {
|
|
485
|
-
constructor(elementSelector?: ElementOrString<E>, type?: string | string[], listener?: EventListenerDetail<O, D> | undefined, options?: EventOptions, detail?: D | undefined);
|
|
371
|
+
get(code: string, group?: string): any | undefined;
|
|
372
|
+
add(cause: any): this;
|
|
373
|
+
addList(causes: any[]): this;
|
|
374
|
+
addHandler(group: string | undefined, handler: (cause: any) => void): this;
|
|
375
|
+
addHandlerList(handlers: any[]): this;
|
|
376
|
+
addCallback(callback: (cause: any) => void): this;
|
|
377
|
+
on(cause: any): this;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
// File: classes/EventItem.d.ts
|
|
381
|
+
export declare class EventItem<E extends any, O extends Event, D extends Record<string, any> = Record<string, any>> {
|
|
382
|
+
constructor(elementSelector?: any, type?: string | string[], listener?: ((event: O, detail?: D) => void) | undefined, options?: any, detail?: D | undefined);
|
|
486
383
|
isActive(): boolean;
|
|
487
384
|
getElement(): E | undefined;
|
|
488
|
-
setElement(elementSelector?:
|
|
489
|
-
setElementControl<EC extends HTMLElement>(elementSelector?:
|
|
385
|
+
setElement(elementSelector?: any): this;
|
|
386
|
+
setElementControl<EC extends HTMLElement>(elementSelector?: any): this;
|
|
490
387
|
setType(type: string | string[]): this;
|
|
491
|
-
setListener(listener:
|
|
492
|
-
setOptions(options?:
|
|
388
|
+
setListener(listener: (event: O, detail?: D) => void): this;
|
|
389
|
+
setOptions(options?: any): this;
|
|
493
390
|
setDetail(detail?: D): this;
|
|
494
391
|
dispatch(detail?: D | undefined): this;
|
|
495
392
|
start(): this;
|
|
@@ -497,32 +394,23 @@ export declare class EventItem<E extends ElementOrWindow, O extends Event, D ext
|
|
|
497
394
|
toggle(activity: boolean): this;
|
|
498
395
|
reset(): this;
|
|
499
396
|
}
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
* Class for formatting data lists.
|
|
504
|
-
*/
|
|
505
|
-
export declare class Formatters<Options extends FormattersOptionsList = FormattersOptionsList, List extends FormattersListProp = FormattersListProp, Item extends FormattersItemProp<List> = FormattersItemProp<List>> {
|
|
397
|
+
|
|
398
|
+
// File: classes/Formatters.d.ts
|
|
399
|
+
export declare class Formatters<Options extends any = any, List extends any = any, Item extends any = any> {
|
|
506
400
|
constructor(options: Options, list?: List | undefined);
|
|
507
401
|
is(): boolean;
|
|
508
|
-
isArray():
|
|
509
|
-
list: any[];
|
|
510
|
-
};
|
|
402
|
+
isArray(): boolean;
|
|
511
403
|
length(): number;
|
|
512
404
|
getList(): any[];
|
|
513
405
|
getOptions(): Options;
|
|
514
406
|
setList(list?: List): this;
|
|
515
|
-
to():
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
520
|
-
/**
|
|
521
|
-
* Static class for geographical data.
|
|
522
|
-
*/
|
|
407
|
+
to(): any;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
// File: classes/Geo.d.ts
|
|
523
411
|
export declare class Geo {
|
|
524
|
-
static getObject():
|
|
525
|
-
static get():
|
|
412
|
+
static getObject(): any;
|
|
413
|
+
static get(): any;
|
|
526
414
|
static getCountry(): string;
|
|
527
415
|
static getLanguage(): string;
|
|
528
416
|
static getStandard(): string;
|
|
@@ -530,48 +418,40 @@ export declare class Geo {
|
|
|
530
418
|
static getLocation(): string;
|
|
531
419
|
static getLocationCountry(): string;
|
|
532
420
|
static getLocationLanguage(): string;
|
|
533
|
-
static getItem():
|
|
534
|
-
static getList():
|
|
535
|
-
static getByCode(code?: string):
|
|
536
|
-
static getByCodeFull(code: string):
|
|
537
|
-
static getByCountry(country: string):
|
|
538
|
-
static getByLanguage(language: string):
|
|
421
|
+
static getItem(): any;
|
|
422
|
+
static getList(): any[];
|
|
423
|
+
static getByCode(code?: string): any;
|
|
424
|
+
static getByCodeFull(code: string): any | undefined;
|
|
425
|
+
static getByCountry(country: string): any | undefined;
|
|
426
|
+
static getByLanguage(language: string): any | undefined;
|
|
539
427
|
static getTimezone(): number;
|
|
540
428
|
static getTimezoneFormat(): string;
|
|
541
|
-
static find(code: string):
|
|
542
|
-
static toStandard(item:
|
|
429
|
+
static find(code: string): any;
|
|
430
|
+
static toStandard(item: any): string;
|
|
543
431
|
static set(code: string, save?: boolean): void;
|
|
544
432
|
static setTimezone(timezone: number): void;
|
|
545
433
|
static setValueDefault(code?: string | (() => string)): void;
|
|
546
434
|
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
export declare const GEO_FLAG_ICON_NAME = "f";
|
|
550
|
-
/**
|
|
551
|
-
* Class for working with flags and geography.
|
|
552
|
-
*/
|
|
435
|
+
|
|
436
|
+
// File: classes/GeoFlag.d.ts
|
|
553
437
|
export declare class GeoFlag {
|
|
554
438
|
static flags: Record<string, string>;
|
|
555
439
|
constructor(code?: string);
|
|
556
|
-
get(code?: string):
|
|
557
|
-
getLanguage(code?: string):
|
|
440
|
+
get(code?: string): any | undefined;
|
|
441
|
+
getLanguage(code?: string): any | undefined;
|
|
558
442
|
getCode(): string;
|
|
559
443
|
getFlag(code?: string): string | undefined;
|
|
560
|
-
getList(codes?: string[], sort?: boolean):
|
|
561
|
-
getListLanguage(codes?: string[], sort?: boolean):
|
|
562
|
-
getNational(codes?: string[], sort?: boolean):
|
|
563
|
-
getNationalLanguage(codes?: string[], sort?: boolean):
|
|
444
|
+
getList(codes?: string[], sort?: boolean): any[];
|
|
445
|
+
getListLanguage(codes?: string[], sort?: boolean): any[];
|
|
446
|
+
getNational(codes?: string[], sort?: boolean): any[];
|
|
447
|
+
getNationalLanguage(codes?: string[], sort?: boolean): any[];
|
|
564
448
|
setCode(code: string): this;
|
|
565
449
|
}
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
export declare const UI_GEO_COOKIE_KEY = "ui-geo-code";
|
|
569
|
-
/**
|
|
570
|
-
* Base class for geographic data.
|
|
571
|
-
*/
|
|
450
|
+
|
|
451
|
+
// File: classes/GeoInstance.d.ts
|
|
572
452
|
export declare class GeoInstance {
|
|
573
453
|
constructor();
|
|
574
|
-
get():
|
|
454
|
+
get(): any;
|
|
575
455
|
getCountry(): string;
|
|
576
456
|
getLanguage(): string;
|
|
577
457
|
getStandard(): string;
|
|
@@ -579,196 +459,155 @@ export declare class GeoInstance {
|
|
|
579
459
|
getLocation(): string;
|
|
580
460
|
getLocationCountry(): string;
|
|
581
461
|
getLocationLanguage(): string;
|
|
582
|
-
getItem():
|
|
583
|
-
getList():
|
|
584
|
-
getByCode(code?: string):
|
|
585
|
-
getByCodeFull(code: string):
|
|
586
|
-
getByCountry(country: string):
|
|
587
|
-
getByLanguage(language: string):
|
|
462
|
+
getItem(): any;
|
|
463
|
+
getList(): any[];
|
|
464
|
+
getByCode(code?: string): any;
|
|
465
|
+
getByCodeFull(code: string): any | undefined;
|
|
466
|
+
getByCountry(country: string): any | undefined;
|
|
467
|
+
getByLanguage(language: string): any | undefined;
|
|
588
468
|
getTimezone(): number;
|
|
589
469
|
getTimezoneFormat(): string;
|
|
590
|
-
find(code: string):
|
|
591
|
-
toStandard(item:
|
|
470
|
+
find(code: string): any;
|
|
471
|
+
toStandard(item: any, language?: string): string;
|
|
592
472
|
set(code: string, save?: boolean): void;
|
|
593
473
|
setTimezone(timezone: number): void;
|
|
594
474
|
setValueDefault(code?: string | (() => string)): void;
|
|
595
475
|
}
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
import { NumberOrStringOrDate, NumberOrString } from '../types/basicTypes';
|
|
599
|
-
import { GeoDate } from '../types/geoTypes';
|
|
600
|
-
/**
|
|
601
|
-
* Intl API wrapper for internationalization.
|
|
602
|
-
*/
|
|
476
|
+
|
|
477
|
+
// File: classes/GeoIntl.d.ts
|
|
603
478
|
export declare class GeoIntl {
|
|
604
479
|
static isItem(code?: string): boolean;
|
|
605
480
|
static getLocation(code?: string): string;
|
|
606
481
|
static getInstance(code?: string): GeoIntl;
|
|
607
|
-
constructor(code?: string, errorCenter?:
|
|
482
|
+
constructor(code?: string, errorCenter?: any);
|
|
608
483
|
getLocation(): string;
|
|
609
484
|
getFirstDay(): string;
|
|
610
|
-
display(value?: string, typeOptions?:
|
|
611
|
-
languageName(value?: string, style?:
|
|
612
|
-
countryName(value?: string, style?:
|
|
485
|
+
display(value?: string, typeOptions?: any): string;
|
|
486
|
+
languageName(value?: string, style?: any): string;
|
|
487
|
+
countryName(value?: string, style?: any): string;
|
|
613
488
|
fullName(last: string, first: string, surname?: string, short?: boolean): string;
|
|
614
|
-
number(value:
|
|
489
|
+
number(value: any, options?: Intl.NumberFormatOptions): string;
|
|
615
490
|
decimal(): string;
|
|
616
|
-
currency(value:
|
|
617
|
-
currencySymbol(currency: string, currencyDisplay?:
|
|
618
|
-
unit(value:
|
|
619
|
-
sizeFile(value:
|
|
620
|
-
percent(value:
|
|
621
|
-
percentBy100(value:
|
|
622
|
-
plural(value:
|
|
623
|
-
date(value:
|
|
624
|
-
relative(value:
|
|
625
|
-
relativeLimit(value:
|
|
626
|
-
relativeByValue(value:
|
|
627
|
-
month(value?:
|
|
628
|
-
months(style?:
|
|
629
|
-
weekday(value?:
|
|
630
|
-
weekdays(style?:
|
|
631
|
-
time(value:
|
|
491
|
+
currency(value: any, currencyOptions?: string | Intl.NumberFormatOptions, numberOnly?: boolean): string;
|
|
492
|
+
currencySymbol(currency: string, currencyDisplay?: any): string;
|
|
493
|
+
unit(value: any, unitOptions?: string | Intl.NumberFormatOptions): string;
|
|
494
|
+
sizeFile(value: any, unitOptions?: any): string;
|
|
495
|
+
percent(value: any, options?: Intl.NumberFormatOptions): string;
|
|
496
|
+
percentBy100(value: any, options?: Intl.NumberFormatOptions): string;
|
|
497
|
+
plural(value: any, words: string, options?: Intl.PluralRulesOptions, optionsNumber?: Intl.NumberFormatOptions): string;
|
|
498
|
+
date(value: any, type?: any, styleOptions?: any, hour24?: boolean): string;
|
|
499
|
+
relative(value: any, styleOptions?: any, todayValue?: Date): string;
|
|
500
|
+
relativeLimit(value: any, limit: number, todayValue?: Date, relativeOptions?: any, dateOptions?: any, type?: any, hour24?: boolean): string;
|
|
501
|
+
relativeByValue(value: any, unit: any, styleOptions?: any): string;
|
|
502
|
+
month(value?: any, style?: any): string;
|
|
503
|
+
months(style?: any): any[];
|
|
504
|
+
weekday(value?: any, style?: any): string;
|
|
505
|
+
weekdays(style?: any): any[];
|
|
506
|
+
time(value: any): string;
|
|
632
507
|
sort<T>(data: T[], compareFn?: (a: T, b: T) => [string, string]): T[];
|
|
633
508
|
}
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
/**
|
|
637
|
-
* Class for phone mask processing.
|
|
638
|
-
*/
|
|
509
|
+
|
|
510
|
+
// File: classes/GeoPhone.d.ts
|
|
639
511
|
export declare class GeoPhone {
|
|
640
|
-
static get(code: string):
|
|
641
|
-
static getByPhone(phone: string):
|
|
642
|
-
static getByCode(code: string):
|
|
643
|
-
static getList():
|
|
644
|
-
static getMap(): Record<string,
|
|
512
|
+
static get(code: string): any | undefined;
|
|
513
|
+
static getByPhone(phone: string): any;
|
|
514
|
+
static getByCode(code: string): any | undefined;
|
|
515
|
+
static getList(): any[];
|
|
516
|
+
static getMap(): Record<string, any>;
|
|
645
517
|
static toMask(phone: string, masks?: string[]): string | undefined;
|
|
646
518
|
static removeZero(phone: string): string;
|
|
647
519
|
}
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
/**
|
|
651
|
-
* Class for localized unit formatting.
|
|
652
|
-
*/
|
|
520
|
+
|
|
521
|
+
// File: classes/GeoUnit.d.ts
|
|
653
522
|
export declare class GeoUnit {
|
|
654
523
|
static getInstance(code?: string): GeoUnit;
|
|
655
524
|
constructor(code?: string);
|
|
656
525
|
getLocation(): string;
|
|
657
|
-
millimeter(value:
|
|
658
|
-
centimeter(value:
|
|
659
|
-
meter(value:
|
|
660
|
-
kilometer(value:
|
|
661
|
-
squareMeter(value:
|
|
662
|
-
hectare(value:
|
|
663
|
-
gram(value:
|
|
664
|
-
kilogram(value:
|
|
665
|
-
tonne(value:
|
|
666
|
-
milliliter(value:
|
|
667
|
-
liter(value:
|
|
668
|
-
celsius(value:
|
|
669
|
-
kilometerPerHour(value:
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
*/
|
|
526
|
+
millimeter(value: any, options?: Intl.NumberFormatOptions): string;
|
|
527
|
+
centimeter(value: any, options?: Intl.NumberFormatOptions): string;
|
|
528
|
+
meter(value: any, options?: Intl.NumberFormatOptions): string;
|
|
529
|
+
kilometer(value: any, options?: Intl.NumberFormatOptions): string;
|
|
530
|
+
squareMeter(value: any, options?: Intl.NumberFormatOptions): string;
|
|
531
|
+
hectare(value: any, options?: Intl.NumberFormatOptions): string;
|
|
532
|
+
gram(value: any, options?: Intl.NumberFormatOptions): string;
|
|
533
|
+
kilogram(value: any, options?: Intl.NumberFormatOptions): string;
|
|
534
|
+
tonne(value: any, options?: Intl.NumberFormatOptions): string;
|
|
535
|
+
milliliter(value: any, options?: Intl.NumberFormatOptions): string;
|
|
536
|
+
liter(value: any, options?: Intl.NumberFormatOptions): string;
|
|
537
|
+
celsius(value: any, options?: Intl.NumberFormatOptions): string;
|
|
538
|
+
kilometerPerHour(value: any, options?: Intl.NumberFormatOptions): string;
|
|
539
|
+
format(value: any, unit: string, options?: Intl.NumberFormatOptions): string;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
// File: classes/Global.d.ts
|
|
675
543
|
export declare class Global {
|
|
676
544
|
static getItem(): Record<string, any>;
|
|
677
545
|
static get<R = any>(name: string): R;
|
|
678
546
|
static add(data: Record<string, any>): void;
|
|
679
547
|
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* Static class for URL hash parameters.
|
|
684
|
-
*/
|
|
548
|
+
|
|
549
|
+
// File: classes/Hash.d.ts
|
|
685
550
|
export declare class Hash {
|
|
686
|
-
static getItem():
|
|
551
|
+
static getItem(): any;
|
|
687
552
|
static get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
688
553
|
static set<T>(name: string, callback: T | (() => T)): void;
|
|
689
554
|
static addWatch<T>(name: string, callback: (value: T) => void): void;
|
|
690
555
|
static removeWatch<T>(name: string, callback: (value: T) => void): void;
|
|
691
556
|
static reload(): void;
|
|
692
557
|
}
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
}
|
|
700
|
-
// File: src/classes/Icons.d.ts
|
|
701
|
-
export type IconsItem = string | Promise<string | any> | (() => Promise<string | any>);
|
|
702
|
-
export type IconsConfig = {
|
|
703
|
-
url?: string;
|
|
704
|
-
list?: Record<string, IconsItem>;
|
|
705
|
-
};
|
|
706
|
-
/**
|
|
707
|
-
* Class for managing icons.
|
|
708
|
-
*/
|
|
558
|
+
|
|
559
|
+
// File: classes/HashInstance.d.ts
|
|
560
|
+
export declare class HashInstance extends any {
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
// File: classes/Icons.d.ts
|
|
709
564
|
export declare class Icons {
|
|
710
565
|
static is(index: string): boolean;
|
|
711
566
|
static get(index: string, url?: string, wait?: number): Promise<string>;
|
|
712
567
|
static getAsync(index: string, url?: string): string;
|
|
713
568
|
static getNameList(): string[];
|
|
714
569
|
static getUrlGlobal(): string;
|
|
715
|
-
static add(index: string, file:
|
|
570
|
+
static add(index: string, file: any): void;
|
|
716
571
|
static addLoad(index: string): void;
|
|
717
572
|
static addGlobal(index: string, file: string): void;
|
|
718
|
-
static addByList(list: Record<string,
|
|
573
|
+
static addByList(list: Record<string, any>): void;
|
|
719
574
|
static setUrl(url: string): void;
|
|
720
|
-
static setConfig(config:
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
|
|
725
|
-
/**
|
|
726
|
-
* Class for global loading management.
|
|
727
|
-
*/
|
|
575
|
+
static setConfig(config: any): void;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
// File: classes/Loading.d.ts
|
|
728
579
|
export declare class Loading {
|
|
729
580
|
static is(): boolean;
|
|
730
581
|
static get(): number;
|
|
731
|
-
static getItem():
|
|
582
|
+
static getItem(): any;
|
|
732
583
|
static show(): void;
|
|
733
584
|
static hide(): void;
|
|
734
|
-
static registrationEvent(listener:
|
|
735
|
-
static unregistrationEvent(listener:
|
|
585
|
+
static registrationEvent(listener: (event: any, detail?: any) => void, element?: any): void;
|
|
586
|
+
static unregistrationEvent(listener: (event: any, detail?: any) => void, element?: any): void;
|
|
736
587
|
}
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
export type LoadingDetail = {
|
|
740
|
-
loading: boolean;
|
|
741
|
-
};
|
|
742
|
-
/**
|
|
743
|
-
* Class for global loading management.
|
|
744
|
-
*/
|
|
588
|
+
|
|
589
|
+
// File: classes/LoadingInstance.d.ts
|
|
745
590
|
export declare class LoadingInstance {
|
|
746
591
|
constructor(eventName?: string);
|
|
747
592
|
is(): boolean;
|
|
748
593
|
get(): number;
|
|
749
594
|
show(): void;
|
|
750
595
|
hide(): void;
|
|
751
|
-
registrationEvent(listener:
|
|
752
|
-
unregistrationEvent(listener:
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
import { MetaTwitter } from './MetaTwitter';
|
|
758
|
-
import { MetaRobots, MetaTag } from '../types/metaTypes';
|
|
759
|
-
/**
|
|
760
|
-
* Class for managing meta tags.
|
|
761
|
-
*/
|
|
762
|
-
export declare class Meta extends MetaManager<MetaTag[]> {
|
|
596
|
+
registrationEvent(listener: (event: any, detail?: any) => void, element?: any): void;
|
|
597
|
+
unregistrationEvent(listener: (event: any, detail?: any) => void, element?: any): void;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
// File: classes/Meta.d.ts
|
|
601
|
+
export declare class Meta extends any {
|
|
763
602
|
constructor();
|
|
764
|
-
getOg():
|
|
765
|
-
getTwitter():
|
|
603
|
+
getOg(): any;
|
|
604
|
+
getTwitter(): any;
|
|
766
605
|
getTitle(): string;
|
|
767
606
|
getKeywords(): string;
|
|
768
607
|
getDescription(): string;
|
|
769
608
|
getImage(): string;
|
|
770
609
|
getCanonical(): string;
|
|
771
|
-
getRobots():
|
|
610
|
+
getRobots(): any;
|
|
772
611
|
getAuthor(): string;
|
|
773
612
|
getSiteName(): string;
|
|
774
613
|
getLocale(): string;
|
|
@@ -777,7 +616,7 @@ export declare class Meta extends MetaManager<MetaTag[]> {
|
|
|
777
616
|
setDescription(description: string): this;
|
|
778
617
|
setImage(image: string): this;
|
|
779
618
|
setCanonical(canonical: string): this;
|
|
780
|
-
setRobots(robots:
|
|
619
|
+
setRobots(robots: any): this;
|
|
781
620
|
setAuthor(author: string): this;
|
|
782
621
|
setSiteName(siteName: string): this;
|
|
783
622
|
setLocale(locale: string): this;
|
|
@@ -785,60 +624,48 @@ export declare class Meta extends MetaManager<MetaTag[]> {
|
|
|
785
624
|
html(): string;
|
|
786
625
|
htmlTitle(): string;
|
|
787
626
|
}
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
*/
|
|
792
|
-
export declare class MetaManager<T extends readonly string[], Key extends keyof any = any> {
|
|
627
|
+
|
|
628
|
+
// File: classes/MetaManager.d.ts
|
|
629
|
+
export declare class MetaManager<T extends readonly string[], Key extends any = any> {
|
|
793
630
|
constructor(listMeta: T, isProperty?: boolean);
|
|
794
631
|
getListMeta(): T;
|
|
795
632
|
get(name: Key): string;
|
|
796
|
-
getItems():
|
|
633
|
+
getItems(): any;
|
|
797
634
|
html(): string;
|
|
798
635
|
set(name: Key, content: string): this;
|
|
799
|
-
setByList(metaList:
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
/**
|
|
805
|
-
* Class for Open Graph tags.
|
|
806
|
-
*/
|
|
807
|
-
export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
|
|
636
|
+
setByList(metaList: any): this;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
// File: classes/MetaOg.d.ts
|
|
640
|
+
export declare class MetaOg extends any {
|
|
808
641
|
constructor();
|
|
809
642
|
getTitle(): string;
|
|
810
|
-
getType():
|
|
643
|
+
getType(): any;
|
|
811
644
|
getUrl(): string;
|
|
812
645
|
getImage(): string;
|
|
813
646
|
getDescription(): string;
|
|
814
647
|
getLocale(): string;
|
|
815
648
|
getSiteName(): string;
|
|
816
649
|
setTitle(title: string): this;
|
|
817
|
-
setType(type:
|
|
650
|
+
setType(type: any): this;
|
|
818
651
|
setUrl(url: string): this;
|
|
819
652
|
setImage(url: string): this;
|
|
820
653
|
setDescription(description: string): this;
|
|
821
654
|
setLocale(locale: string): this;
|
|
822
655
|
setSiteName(siteName: string): this;
|
|
823
656
|
}
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
import { MetaOg } from './MetaOg';
|
|
827
|
-
import { MetaTwitter } from './MetaTwitter';
|
|
828
|
-
import { MetaRobots } from '../types/metaTypes';
|
|
829
|
-
/**
|
|
830
|
-
* Static class for meta tags.
|
|
831
|
-
*/
|
|
657
|
+
|
|
658
|
+
// File: classes/MetaStatic.d.ts
|
|
832
659
|
export declare class MetaStatic {
|
|
833
|
-
static getItem():
|
|
834
|
-
static getOg():
|
|
835
|
-
static getTwitter():
|
|
660
|
+
static getItem(): any;
|
|
661
|
+
static getOg(): any;
|
|
662
|
+
static getTwitter(): any;
|
|
836
663
|
static getTitle(): string;
|
|
837
664
|
static getKeywords(): string;
|
|
838
665
|
static getDescription(): string;
|
|
839
666
|
static getImage(): string;
|
|
840
667
|
static getCanonical(): string;
|
|
841
|
-
static getRobots():
|
|
668
|
+
static getRobots(): any;
|
|
842
669
|
static getAuthor(): string;
|
|
843
670
|
static getSiteName(): string;
|
|
844
671
|
static getLocale(): string;
|
|
@@ -847,7 +674,7 @@ export declare class MetaStatic {
|
|
|
847
674
|
static setDescription(description: string): typeof MetaStatic;
|
|
848
675
|
static setImage(image: string): typeof MetaStatic;
|
|
849
676
|
static setCanonical(canonical: string): typeof MetaStatic;
|
|
850
|
-
static setRobots(robots:
|
|
677
|
+
static setRobots(robots: any): typeof MetaStatic;
|
|
851
678
|
static setAuthor(author: string): typeof MetaStatic;
|
|
852
679
|
static setSiteName(siteName: string): typeof MetaStatic;
|
|
853
680
|
static setLocale(locale: string): typeof MetaStatic;
|
|
@@ -855,22 +682,18 @@ export declare class MetaStatic {
|
|
|
855
682
|
static html(): string;
|
|
856
683
|
static htmlTitle(): string;
|
|
857
684
|
}
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
* Class for Twitter Card tags.
|
|
863
|
-
*/
|
|
864
|
-
export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
685
|
+
|
|
686
|
+
// File: classes/MetaTwitter.d.ts
|
|
687
|
+
export declare class MetaTwitter extends any {
|
|
865
688
|
constructor();
|
|
866
|
-
getCard():
|
|
689
|
+
getCard(): any;
|
|
867
690
|
getSite(): string;
|
|
868
691
|
getCreator(): string;
|
|
869
692
|
getUrl(): string;
|
|
870
693
|
getTitle(): string;
|
|
871
694
|
getDescription(): string;
|
|
872
695
|
getImage(): string;
|
|
873
|
-
setCard(card:
|
|
696
|
+
setCard(card: any): this;
|
|
874
697
|
setSite(site: string): this;
|
|
875
698
|
setCreator(creator: string): this;
|
|
876
699
|
setUrl(url: string): this;
|
|
@@ -878,139 +701,99 @@ export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
|
878
701
|
setDescription(description: string): this;
|
|
879
702
|
setImage(image: string): this;
|
|
880
703
|
}
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
/**
|
|
884
|
-
* Static class for URL query parameters.
|
|
885
|
-
*/
|
|
704
|
+
|
|
705
|
+
// File: classes/Query.d.ts
|
|
886
706
|
export declare class Query {
|
|
887
|
-
static getItem():
|
|
707
|
+
static getItem(): any;
|
|
888
708
|
static get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
889
709
|
static set<T>(name: string, callback: T | (() => T)): void;
|
|
890
710
|
static addWatch<T>(name: string, callback: (value: T) => void): void;
|
|
891
711
|
static removeWatch<T>(name: string, callback: (value: T) => void): void;
|
|
892
712
|
static reload(): void;
|
|
893
713
|
}
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
}
|
|
901
|
-
// File: src/classes/ResumableTimer.d.ts
|
|
902
|
-
import { FunctionVoid } from '../types/basicTypes';
|
|
903
|
-
/**
|
|
904
|
-
* Timer class with pause/resume support.
|
|
905
|
-
*/
|
|
714
|
+
|
|
715
|
+
// File: classes/QueryInstance.d.ts
|
|
716
|
+
export declare class QueryInstance extends any {
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
// File: classes/ResumableTimer.d.ts
|
|
906
720
|
export declare class ResumableTimer {
|
|
907
|
-
constructor(callback:
|
|
721
|
+
constructor(callback: () => void, delay?: number, blockStart?: boolean);
|
|
908
722
|
resume(): this;
|
|
909
723
|
pause(): this;
|
|
910
724
|
reset(): this;
|
|
911
725
|
clear(): this;
|
|
912
726
|
}
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
/**
|
|
916
|
-
* Class for getting the scroll width.
|
|
917
|
-
*/
|
|
727
|
+
|
|
728
|
+
// File: classes/ScrollbarWidth.d.ts
|
|
918
729
|
export declare class ScrollbarWidth {
|
|
919
730
|
static is(): Promise<boolean>;
|
|
920
731
|
static get(): Promise<number>;
|
|
921
|
-
static getStorage():
|
|
732
|
+
static getStorage(): any;
|
|
922
733
|
static getCalculate(): boolean;
|
|
923
734
|
}
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
* Main class for searchable lists.
|
|
931
|
-
*/
|
|
932
|
-
export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>> {
|
|
933
|
-
constructor(list: SearchListValue<T>, columns?: K, value?: string, options?: SearchOptions);
|
|
934
|
-
getData(): SearchListData<T, K>;
|
|
935
|
-
getList(): SearchListValue<T>;
|
|
735
|
+
|
|
736
|
+
// File: classes/SearchList.d.ts
|
|
737
|
+
export declare class SearchList<T extends any, K extends any> {
|
|
738
|
+
constructor(list: any, columns?: K, value?: string, options?: any);
|
|
739
|
+
getData(): any;
|
|
740
|
+
getList(): any;
|
|
936
741
|
getColumns(): K | undefined;
|
|
937
|
-
getItem():
|
|
742
|
+
getItem(): any;
|
|
938
743
|
getValue(): string | undefined;
|
|
939
|
-
getOptions():
|
|
940
|
-
setList(list:
|
|
744
|
+
getOptions(): any;
|
|
745
|
+
setList(list: any): this;
|
|
941
746
|
setColumns(columns?: K): this;
|
|
942
747
|
setValue(value?: string): this;
|
|
943
|
-
setOptions(options:
|
|
944
|
-
to():
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
export declare class SearchListData<T extends SearchItem, K extends SearchColumns<T>> {
|
|
954
|
-
constructor(list: SearchListValue<T>, columns: K | undefined, item: SearchListItem, options: SearchListOptions);
|
|
955
|
-
is(): this is this & {
|
|
956
|
-
list: T[];
|
|
957
|
-
columns: string[];
|
|
958
|
-
};
|
|
959
|
-
isList(): this is this & {
|
|
960
|
-
list: T[];
|
|
961
|
-
};
|
|
962
|
-
getList(): SearchListValue<T>;
|
|
748
|
+
setOptions(options: any): this;
|
|
749
|
+
to(): any;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
// File: classes/SearchListData.d.ts
|
|
753
|
+
export declare class SearchListData<T extends any, K extends any> {
|
|
754
|
+
constructor(list: any, columns: K | undefined, item: any, options: any);
|
|
755
|
+
is(): boolean;
|
|
756
|
+
isList(): boolean;
|
|
757
|
+
getList(): any;
|
|
963
758
|
getColumns(): K | undefined;
|
|
964
|
-
setList(list:
|
|
965
|
-
setColumns(columns?:
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
*/
|
|
759
|
+
setList(list: any): this;
|
|
760
|
+
setColumns(columns?: any): this;
|
|
761
|
+
findCacheItem(item: T): any | undefined;
|
|
762
|
+
forEach(callback: (item: any, value: any) => any | undefined): any;
|
|
763
|
+
toFormatItem(item: T, selection: boolean): any;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
// File: classes/SearchListItem.d.ts
|
|
973
767
|
export declare class SearchListItem {
|
|
974
|
-
constructor(value: string | undefined, options:
|
|
975
|
-
is():
|
|
976
|
-
value: string;
|
|
977
|
-
};
|
|
768
|
+
constructor(value: string | undefined, options: any);
|
|
769
|
+
is(): boolean;
|
|
978
770
|
isSearch(): boolean;
|
|
979
771
|
get(): string;
|
|
980
772
|
set(value?: string): this;
|
|
981
773
|
}
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
import { SearchListOptions } from './SearchListOptions';
|
|
985
|
-
/**
|
|
986
|
-
* Class for matching search queries.
|
|
987
|
-
*/
|
|
774
|
+
|
|
775
|
+
// File: classes/SearchListMatcher.d.ts
|
|
988
776
|
export declare class SearchListMatcher {
|
|
989
|
-
constructor(item:
|
|
777
|
+
constructor(item: any, options: any);
|
|
990
778
|
is(): boolean;
|
|
991
779
|
isSelection(value: any): boolean;
|
|
992
780
|
get(): RegExp | undefined;
|
|
993
781
|
update(): void;
|
|
994
782
|
}
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
/**
|
|
998
|
-
* Class for search options.
|
|
999
|
-
*/
|
|
783
|
+
|
|
784
|
+
// File: classes/SearchListOptions.d.ts
|
|
1000
785
|
export declare class SearchListOptions {
|
|
1001
|
-
constructor(options?:
|
|
1002
|
-
getOptions():
|
|
786
|
+
constructor(options?: any);
|
|
787
|
+
getOptions(): any;
|
|
1003
788
|
getLimit(): number;
|
|
1004
789
|
getReturnEverything(): boolean;
|
|
1005
790
|
getDelay(): number;
|
|
1006
791
|
getFindExactMatch(): boolean;
|
|
1007
792
|
getClassName(): string;
|
|
1008
|
-
setOptions(options:
|
|
793
|
+
setOptions(options: any): this;
|
|
1009
794
|
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
* Class for storage during SSR.
|
|
1013
|
-
*/
|
|
795
|
+
|
|
796
|
+
// File: classes/ServerStorage.d.ts
|
|
1014
797
|
export declare class ServerStorage {
|
|
1015
798
|
static init(listener: () => Record<string, any> | undefined): typeof ServerStorage;
|
|
1016
799
|
static reset(): void;
|
|
@@ -1021,10 +804,8 @@ export declare class ServerStorage {
|
|
|
1021
804
|
static remove(key: string): void;
|
|
1022
805
|
static toString(): string;
|
|
1023
806
|
}
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
* Class for storage callback lists.
|
|
1027
|
-
*/
|
|
807
|
+
|
|
808
|
+
// File: classes/StorageCallback.d.ts
|
|
1028
809
|
export declare class StorageCallback<T = any, Callback = (value: T) => void | Promise<void>> {
|
|
1029
810
|
static getInstance<T>(name: string, group?: string): StorageCallback<T, (value: T) => void | Promise<void>>;
|
|
1030
811
|
constructor(name: string, group?: string);
|
|
@@ -1036,66 +817,53 @@ export declare class StorageCallback<T = any, Callback = (value: T) => void | Pr
|
|
|
1036
817
|
preparation(): this;
|
|
1037
818
|
run(value: T): Promise<this>;
|
|
1038
819
|
}
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
import { TranslateCode, TranslateConfig, TranslateDataFile, TranslateList } from '../types/translateTypes';
|
|
1042
|
-
/**
|
|
1043
|
-
* Class for translations.
|
|
1044
|
-
*/
|
|
820
|
+
|
|
821
|
+
// File: classes/Translate.d.ts
|
|
1045
822
|
export declare class Translate {
|
|
1046
823
|
static get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
|
|
1047
|
-
static getItem():
|
|
824
|
+
static getItem(): any;
|
|
1048
825
|
static getSync(name: string, first?: boolean, replacement?: string[] | Record<string, string | number>): string;
|
|
1049
|
-
static getList<T extends
|
|
1050
|
-
static getListSync<T extends
|
|
826
|
+
static getList<T extends string[]>(names: T): Promise<any>;
|
|
827
|
+
static getListSync<T extends string[]>(names: T, first?: boolean): any;
|
|
1051
828
|
static add(names: string | string[]): Promise<void>;
|
|
1052
829
|
static addSync(data: Record<string, string>): void;
|
|
1053
830
|
static addNormalOrSync(data: Record<string, string>): Promise<void>;
|
|
1054
831
|
static addSyncByLocation(data: Record<string, Record<string, string>>): void;
|
|
1055
|
-
static addSyncByFile(data:
|
|
832
|
+
static addSyncByFile(data: any): void;
|
|
1056
833
|
static setUrl(url: string): void;
|
|
1057
834
|
static setPropsName(name: string): void;
|
|
1058
835
|
static setReadApi(value: boolean): void;
|
|
1059
|
-
static setConfig(config:
|
|
836
|
+
static setConfig(config: any): void;
|
|
1060
837
|
}
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
/**
|
|
1064
|
-
* Class for translation files.
|
|
1065
|
-
*/
|
|
838
|
+
|
|
839
|
+
// File: classes/TranslateFile.d.ts
|
|
1066
840
|
export declare class TranslateFile {
|
|
1067
|
-
constructor(data?:
|
|
841
|
+
constructor(data?: any, language?: string | (() => string), location?: string | (() => string));
|
|
1068
842
|
isFile(): boolean;
|
|
1069
843
|
getLocation(): string;
|
|
1070
844
|
getLanguage(): string;
|
|
1071
|
-
getList(): Promise<
|
|
1072
|
-
add(data:
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
import { TranslateCode, TranslateDataFile, TranslateList } from '../types/translateTypes';
|
|
1077
|
-
/**
|
|
1078
|
-
* Class for translations.
|
|
1079
|
-
*/
|
|
845
|
+
getList(): Promise<any | undefined>;
|
|
846
|
+
add(data: any): void;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
// File: classes/TranslateInstance.d.ts
|
|
1080
850
|
export declare class TranslateInstance {
|
|
1081
|
-
constructor(url?: string, propsName?: string, files?:
|
|
851
|
+
constructor(url?: string, propsName?: string, files?: any);
|
|
1082
852
|
get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
|
|
1083
853
|
getSync(name: string, first?: boolean, replacement?: string[] | Record<string, string | number>): string;
|
|
1084
|
-
getList<T extends
|
|
1085
|
-
getListSync<T extends
|
|
854
|
+
getList<T extends string[]>(names: T): Promise<any>;
|
|
855
|
+
getListSync<T extends string[]>(names: T, first?: boolean): any;
|
|
1086
856
|
add(names: string | string[]): Promise<void>;
|
|
1087
857
|
addSync(data: Record<string, string>): void;
|
|
1088
858
|
addNormalOrSync(data: Record<string, string>): Promise<void>;
|
|
1089
859
|
addSyncByLocation(data: Record<string, Record<string, string>>): void;
|
|
1090
|
-
addSyncByFile(data:
|
|
860
|
+
addSyncByFile(data: any): void;
|
|
1091
861
|
setUrl(url: string): this;
|
|
1092
862
|
setPropsName(name: string): this;
|
|
1093
863
|
setReadApi(value: boolean): this;
|
|
1094
864
|
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
* Abstract class for URL-based states.
|
|
1098
|
-
*/
|
|
865
|
+
|
|
866
|
+
// File: classes/UrlInstanceAbstract.d.ts
|
|
1099
867
|
export declare abstract class UrlInstanceAbstract {
|
|
1100
868
|
get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
1101
869
|
set<T>(name: string, callback: T | (() => T)): this;
|
|
@@ -1103,10 +871,8 @@ export declare abstract class UrlInstanceAbstract {
|
|
|
1103
871
|
removeWatch<T>(name: string, callback: (value: T) => void): this;
|
|
1104
872
|
reload(): this;
|
|
1105
873
|
}
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
* Utility class for URLs.
|
|
1109
|
-
*/
|
|
874
|
+
|
|
875
|
+
// File: classes/UrlItem.d.ts
|
|
1110
876
|
export declare class UrlItem {
|
|
1111
877
|
static getInstance(): UrlItem;
|
|
1112
878
|
constructor(url?: string | URL);
|
|
@@ -1132,451 +898,356 @@ export declare class UrlItem {
|
|
|
1132
898
|
toString(): string;
|
|
1133
899
|
toJSON(): string;
|
|
1134
900
|
}
|
|
1135
|
-
|
|
901
|
+
|
|
902
|
+
// File: functions/addTagHighlightMatch.d.ts
|
|
1136
903
|
export declare function addTagHighlightMatch(value: string, search?: string | RegExp, className?: string, shouldEscape?: boolean): string;
|
|
1137
|
-
|
|
904
|
+
|
|
905
|
+
// File: functions/anyToString.d.ts
|
|
1138
906
|
export declare function anyToString<V>(value: V, isArrayString?: boolean, trim?: boolean): string;
|
|
1139
|
-
|
|
907
|
+
|
|
908
|
+
// File: functions/applyTemplate.d.ts
|
|
1140
909
|
export declare const applyTemplate: (text: string, replacement?: Record<string, string | number | boolean> | string[]) => string;
|
|
1141
|
-
|
|
910
|
+
|
|
911
|
+
// File: functions/arrFill.d.ts
|
|
1142
912
|
export declare function arrFill<T>(value: T, count: number): T[];
|
|
1143
|
-
|
|
913
|
+
|
|
914
|
+
// File: functions/blobToBase64.d.ts
|
|
1144
915
|
export declare function blobToBase64(blob: Blob, clean?: boolean): Promise<string | undefined>;
|
|
1145
|
-
|
|
916
|
+
|
|
917
|
+
// File: functions/capitalize.d.ts
|
|
1146
918
|
export declare function capitalize(value: string, isLocale?: boolean): string;
|
|
1147
|
-
|
|
919
|
+
|
|
920
|
+
// File: functions/copyObject.d.ts
|
|
1148
921
|
export declare function copyObject<T>(value: T): T;
|
|
1149
|
-
|
|
922
|
+
|
|
923
|
+
// File: functions/copyObjectLite.d.ts
|
|
1150
924
|
export declare function copyObjectLite<T, R = T>(value: T, source?: any): R;
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
925
|
+
|
|
926
|
+
// File: functions/createElement.d.ts
|
|
927
|
+
export declare function createElement<T extends HTMLElement>(parentElement?: HTMLElement, tagName?: string, options?: any, referenceElement?: HTMLElement): T | undefined;
|
|
928
|
+
|
|
929
|
+
// File: functions/domQuerySelector.d.ts
|
|
1154
930
|
export declare function domQuerySelector<E extends Element = Element>(selectors: string): E | undefined;
|
|
1155
|
-
|
|
931
|
+
|
|
932
|
+
// File: functions/domQuerySelectorAll.d.ts
|
|
1156
933
|
export declare function domQuerySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E> | undefined;
|
|
1157
|
-
|
|
934
|
+
|
|
935
|
+
// File: functions/encodeAttribute.d.ts
|
|
1158
936
|
export declare function encodeAttribute(text: string): string;
|
|
1159
|
-
|
|
937
|
+
|
|
938
|
+
// File: functions/encodeLiteAttribute.d.ts
|
|
1160
939
|
export declare function encodeLiteAttribute(text: string): string;
|
|
1161
|
-
|
|
940
|
+
|
|
941
|
+
// File: functions/ensureMaxSize.d.ts
|
|
1162
942
|
export declare function ensureMaxSize(file: Uint8Array, compress?: number, type?: string): Promise<string>;
|
|
1163
|
-
|
|
943
|
+
|
|
944
|
+
// File: functions/escapeExp.d.ts
|
|
1164
945
|
export declare function escapeExp(value: string): string;
|
|
1165
|
-
|
|
946
|
+
|
|
947
|
+
// File: functions/eventStopPropagation.d.ts
|
|
1166
948
|
export declare function eventStopPropagation(event: Event): void;
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
export declare function executeFunction<T>(callback: T |
|
|
1170
|
-
|
|
949
|
+
|
|
950
|
+
// File: functions/executeFunction.d.ts
|
|
951
|
+
export declare function executeFunction<T>(callback: T | ((...args: any[]) => T), ...args: any[]): T;
|
|
952
|
+
|
|
953
|
+
// File: functions/executePromise.d.ts
|
|
1171
954
|
export declare function executePromise<T>(callback: ((...args: any[]) => Promise<T>) | ((...args: any[]) => T) | T, ...args: any[]): Promise<T>;
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
955
|
+
|
|
956
|
+
// File: functions/forEach.d.ts
|
|
957
|
+
export declare function forEach<T, R>(data: any, callback: (item: T, key: any, dataMain: any) => R, saveUndefined?: boolean): R[];
|
|
958
|
+
|
|
959
|
+
// File: functions/frame.d.ts
|
|
1175
960
|
export declare function frame(callback: () => void, next?: () => boolean, end?: () => void): void;
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
export declare function getArrayHighlightMatch(value: string, search?: string | RegExp):
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
export declare function getAttributes<E extends
|
|
1182
|
-
|
|
961
|
+
|
|
962
|
+
// File: functions/getArrayHighlightMatch.d.ts
|
|
963
|
+
export declare function getArrayHighlightMatch(value: string, search?: string | RegExp): any[];
|
|
964
|
+
|
|
965
|
+
// File: functions/getAttributes.d.ts
|
|
966
|
+
export declare function getAttributes<E extends any>(element?: any): Record<string, string | undefined>;
|
|
967
|
+
|
|
968
|
+
// File: functions/getClipboardData.d.ts
|
|
1183
969
|
export declare function getClipboardData(event?: ClipboardEvent): Promise<string>;
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
export declare function getColumn<T, K extends keyof T>(array:
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
export declare function getCurrentDate(format?:
|
|
1190
|
-
|
|
970
|
+
|
|
971
|
+
// File: functions/getColumn.d.ts
|
|
972
|
+
export declare function getColumn<T, K extends keyof T>(array: any, column: K): (T[K] | undefined)[];
|
|
973
|
+
|
|
974
|
+
// File: functions/getCurrentDate.d.ts
|
|
975
|
+
export declare function getCurrentDate(format?: any): string;
|
|
976
|
+
|
|
977
|
+
// File: functions/getCurrentTime.d.ts
|
|
1191
978
|
export declare function getCurrentTime(): number;
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
export declare function getElement<E extends
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
export declare function getElementId<E extends
|
|
979
|
+
|
|
980
|
+
// File: functions/getElement.d.ts
|
|
981
|
+
export declare function getElement<E extends any, R extends Exclude<E, Window>>(element?: any): R | undefined;
|
|
982
|
+
|
|
983
|
+
// File: functions/getElementId.d.ts
|
|
984
|
+
export declare function getElementId<E extends any>(element?: any, selector?: string): string;
|
|
1198
985
|
export declare function initGetElementId(newListener: () => string | number): void;
|
|
1199
|
-
|
|
986
|
+
|
|
987
|
+
// File: functions/getElementImage.d.ts
|
|
1200
988
|
export declare function getElementImage(image: HTMLImageElement | string): HTMLImageElement | undefined;
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
export declare function getElementItem<T extends
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
export declare function getElementOrWindow<E extends
|
|
1207
|
-
|
|
989
|
+
|
|
990
|
+
// File: functions/getElementItem.d.ts
|
|
991
|
+
export declare function getElementItem<T extends any, K extends keyof T, D>(element: any, index: K | string, defaultValue?: D): T[K] | D | undefined;
|
|
992
|
+
|
|
993
|
+
// File: functions/getElementOrWindow.d.ts
|
|
994
|
+
export declare function getElementOrWindow<E extends any>(element?: any): E | undefined;
|
|
995
|
+
|
|
996
|
+
// File: functions/getElementSafeScript.d.ts
|
|
1208
997
|
export declare function getElementSafeScript(id: string, data: any): string;
|
|
1209
|
-
|
|
998
|
+
|
|
999
|
+
// File: functions/getExactSearchExp.d.ts
|
|
1210
1000
|
export declare function getExactSearchExp(search: string): RegExp;
|
|
1211
|
-
|
|
1001
|
+
|
|
1002
|
+
// File: functions/getExp.d.ts
|
|
1212
1003
|
export declare function getExp(value: string, flags?: string, pattern?: string): RegExp;
|
|
1213
|
-
|
|
1004
|
+
|
|
1005
|
+
// File: functions/getFirst.d.ts
|
|
1214
1006
|
export declare function getFirst<T>(value: T | T[] | Record<string, T>): T | undefined;
|
|
1215
|
-
|
|
1007
|
+
|
|
1008
|
+
// File: functions/getHydrationData.d.ts
|
|
1216
1009
|
export declare function getHydrationData<T>(id: string, defaultValue: T, remove?: boolean): T;
|
|
1217
|
-
|
|
1010
|
+
|
|
1011
|
+
// File: functions/getItemByPath.d.ts
|
|
1218
1012
|
export declare function getItemByPath<T extends Record<string, any>, R = string>(item: T, path: string): R | undefined;
|
|
1219
|
-
|
|
1013
|
+
|
|
1014
|
+
// File: functions/getKey.d.ts
|
|
1220
1015
|
export declare function getKey(event: KeyboardEvent): string | number | undefined;
|
|
1221
|
-
|
|
1016
|
+
|
|
1017
|
+
// File: functions/getLength.d.ts
|
|
1222
1018
|
export declare function getLength(value: any): number;
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
export declare function getLengthOfAllArray(value:
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
export declare function getMaxLengthAllArray(data:
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
export declare function getMinLengthAllArray(data:
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
export declare function getMouseClient(event: MouseEvent & TouchEvent):
|
|
1235
|
-
|
|
1019
|
+
|
|
1020
|
+
// File: functions/getLengthOfAllArray.d.ts
|
|
1021
|
+
export declare function getLengthOfAllArray(value: any): number[];
|
|
1022
|
+
|
|
1023
|
+
// File: functions/getMaxLengthAllArray.d.ts
|
|
1024
|
+
export declare function getMaxLengthAllArray(data: any): number;
|
|
1025
|
+
|
|
1026
|
+
// File: functions/getMinLengthAllArray.d.ts
|
|
1027
|
+
export declare function getMinLengthAllArray(data: any): number;
|
|
1028
|
+
|
|
1029
|
+
// File: functions/getMouseClient.d.ts
|
|
1030
|
+
export declare function getMouseClient(event: MouseEvent & TouchEvent): any;
|
|
1031
|
+
|
|
1032
|
+
// File: functions/getMouseClientX.d.ts
|
|
1236
1033
|
export declare function getMouseClientX(event: MouseEvent & TouchEvent): number;
|
|
1237
|
-
|
|
1034
|
+
|
|
1035
|
+
// File: functions/getMouseClientY.d.ts
|
|
1238
1036
|
export declare function getMouseClientY(event: MouseEvent & TouchEvent): number;
|
|
1239
|
-
|
|
1037
|
+
|
|
1038
|
+
// File: functions/getObjectByKeys.d.ts
|
|
1240
1039
|
export declare function getObjectByKeys<T extends Record<string, any>, K extends keyof T>(data: T, keys: K[]): Pick<T, K>;
|
|
1241
|
-
|
|
1040
|
+
|
|
1041
|
+
// File: functions/getObjectNoUndefined.d.ts
|
|
1242
1042
|
export declare function getObjectNoUndefined<T extends Record<string | number, any>>(data: T, exception?: any): T;
|
|
1243
|
-
|
|
1043
|
+
|
|
1044
|
+
// File: functions/getObjectOrNone.d.ts
|
|
1244
1045
|
export declare function getObjectOrNone<T>(value: T): T & Record<string, any>;
|
|
1245
|
-
|
|
1046
|
+
|
|
1047
|
+
// File: functions/getOnlyText.d.ts
|
|
1246
1048
|
export declare function getOnlyText(text: any): string;
|
|
1247
|
-
|
|
1049
|
+
|
|
1050
|
+
// File: functions/getRandomText.d.ts
|
|
1248
1051
|
export declare function getRandomText(min: number, max: number, symbol?: string, lengthMin?: number, lengthMax?: number): string;
|
|
1249
|
-
|
|
1052
|
+
|
|
1053
|
+
// File: functions/getRequestString.d.ts
|
|
1250
1054
|
export declare function getRequestString(request: Record<string, any> | any[], sign?: string, separator?: string, subKey?: string): string;
|
|
1251
|
-
|
|
1055
|
+
|
|
1056
|
+
// File: functions/getSearchExp.d.ts
|
|
1252
1057
|
export declare function getSearchExp(search: string, limit?: number): RegExp;
|
|
1253
|
-
|
|
1058
|
+
|
|
1059
|
+
// File: functions/getSeparatingSearchExp.d.ts
|
|
1254
1060
|
export declare function getSeparatingSearchExp(search: string | RegExp, limit?: number): RegExp;
|
|
1255
|
-
|
|
1061
|
+
|
|
1062
|
+
// File: functions/getStepPercent.d.ts
|
|
1256
1063
|
export declare function getStepPercent(min: number | undefined, max: number): number;
|
|
1257
|
-
|
|
1064
|
+
|
|
1065
|
+
// File: functions/getStepValue.d.ts
|
|
1258
1066
|
export declare function getStepValue(min: number | undefined, max: number): number;
|
|
1259
|
-
|
|
1067
|
+
|
|
1068
|
+
// File: functions/goScroll.d.ts
|
|
1260
1069
|
export declare function goScroll(selector: string, elementTo: HTMLElement | undefined, elementCenter?: HTMLElement): void;
|
|
1261
|
-
|
|
1070
|
+
|
|
1071
|
+
// File: functions/goScrollSmooth.d.ts
|
|
1262
1072
|
export declare function goScrollSmooth<E extends HTMLElement>(element: E, options?: ScrollIntoViewOptions, shift?: number): void;
|
|
1263
|
-
|
|
1073
|
+
|
|
1074
|
+
// File: functions/goScrollTo.d.ts
|
|
1264
1075
|
export declare function goScrollTo(element?: HTMLElement, elementTo?: HTMLElement, behavior?: ScrollBehavior): void;
|
|
1265
|
-
|
|
1076
|
+
|
|
1077
|
+
// File: functions/handleShare.d.ts
|
|
1266
1078
|
export declare function handleShare(data: ShareData): Promise<boolean>;
|
|
1267
|
-
|
|
1079
|
+
|
|
1080
|
+
// File: functions/inArray.d.ts
|
|
1268
1081
|
export declare function inArray<T>(array: T[], value: T): boolean;
|
|
1269
|
-
|
|
1082
|
+
|
|
1083
|
+
// File: functions/initScrollbarOffset.d.ts
|
|
1270
1084
|
export declare function initScrollbarOffset(): Promise<void>;
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
// File:
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
// File:
|
|
1085
|
+
|
|
1086
|
+
// File: functions/intersectKey.d.ts
|
|
1087
|
+
export declare function intersectKey<T, KT extends keyof T, C, KC extends keyof C>(data?: T, comparison?: C): Record<string, any>;
|
|
1088
|
+
|
|
1089
|
+
// File: functions/isApiSuccess.d.ts
|
|
1090
|
+
export declare const isApiSuccess: <T>(data: any) => boolean;
|
|
1091
|
+
|
|
1092
|
+
// File: functions/isArray.d.ts
|
|
1093
|
+
export declare function isArray<T, R>(value: T): boolean;
|
|
1094
|
+
|
|
1095
|
+
// File: functions/isDifferent.d.ts
|
|
1096
|
+
export declare function isDifferent<T>(value: any, old: any): boolean;
|
|
1097
|
+
|
|
1098
|
+
// File: functions/isDomData.d.ts
|
|
1282
1099
|
export declare function isDomData(): boolean;
|
|
1283
|
-
|
|
1100
|
+
|
|
1101
|
+
// File: functions/isDomRuntime.d.ts
|
|
1284
1102
|
export declare function isDomRuntime(): boolean;
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
export declare function isElementVisible<E extends
|
|
1288
|
-
|
|
1103
|
+
|
|
1104
|
+
// File: functions/isElementVisible.d.ts
|
|
1105
|
+
export declare function isElementVisible<E extends any>(elementSelectors?: any): boolean;
|
|
1106
|
+
|
|
1107
|
+
// File: functions/isEnter.d.ts
|
|
1289
1108
|
export declare const isEnter: (event: KeyboardEvent, isInputElement?: boolean) => boolean;
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
export declare function isFilled<T>(value: T, zeroTrue?: boolean):
|
|
1293
|
-
|
|
1109
|
+
|
|
1110
|
+
// File: functions/isFilled.d.ts
|
|
1111
|
+
export declare function isFilled<T>(value: T, zeroTrue?: boolean): boolean;
|
|
1112
|
+
|
|
1113
|
+
// File: functions/isFloat.d.ts
|
|
1294
1114
|
export declare function isFloat(value: any): boolean;
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
export declare function isFunction<T>(callback: T):
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
export declare function isInDom<E extends
|
|
1301
|
-
|
|
1115
|
+
|
|
1116
|
+
// File: functions/isFunction.d.ts
|
|
1117
|
+
export declare function isFunction<T>(callback: T): boolean;
|
|
1118
|
+
|
|
1119
|
+
// File: functions/isInDom.d.ts
|
|
1120
|
+
export declare function isInDom<E extends any>(element?: any): boolean;
|
|
1121
|
+
|
|
1122
|
+
// File: functions/isInput.d.ts
|
|
1302
1123
|
export declare const isInput: (element: HTMLElement | EventTarget | null) => boolean;
|
|
1303
|
-
|
|
1124
|
+
|
|
1125
|
+
// File: functions/isIntegerBetween.d.ts
|
|
1304
1126
|
export declare function isIntegerBetween(value: number, between: number): boolean;
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
export declare
|
|
1308
|
-
|
|
1127
|
+
|
|
1128
|
+
// File: functions/isMetaKey.d.ts
|
|
1129
|
+
export declare const isMetaKey: (event: KeyboardEvent) => boolean;
|
|
1130
|
+
|
|
1131
|
+
// File: functions/isNull.d.ts
|
|
1132
|
+
export declare function isNull<T>(value: T): boolean;
|
|
1133
|
+
|
|
1134
|
+
// File: functions/isNumber.d.ts
|
|
1309
1135
|
export declare function isNumber(value: any): boolean;
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
// File:
|
|
1136
|
+
|
|
1137
|
+
// File: functions/isObject.d.ts
|
|
1138
|
+
export declare function isObject<T>(value: T): boolean;
|
|
1139
|
+
|
|
1140
|
+
// File: functions/isObjectNotArray.d.ts
|
|
1141
|
+
export declare function isObjectNotArray<T>(value: T): boolean;
|
|
1142
|
+
|
|
1143
|
+
// File: functions/isOnLine.d.ts
|
|
1315
1144
|
export declare function isOnLine(): boolean;
|
|
1316
|
-
|
|
1145
|
+
|
|
1146
|
+
// File: functions/isSelected.d.ts
|
|
1317
1147
|
export declare function isSelected<T, S>(value: T, selected: T | T[] | S): boolean;
|
|
1318
|
-
|
|
1148
|
+
|
|
1149
|
+
// File: functions/isSelectedByList.d.ts
|
|
1319
1150
|
export declare function isSelectedByList<T>(values: T | T[], selected: T | T[]): boolean;
|
|
1320
|
-
|
|
1151
|
+
|
|
1152
|
+
// File: functions/isShare.d.ts
|
|
1321
1153
|
export declare function isShare(): boolean;
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1154
|
+
|
|
1155
|
+
// File: functions/isString.d.ts
|
|
1156
|
+
export declare function isString<T>(value: T): boolean;
|
|
1157
|
+
|
|
1158
|
+
// File: functions/isTab.d.ts
|
|
1325
1159
|
export declare const isTab: (event: KeyboardEvent) => boolean;
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1160
|
+
|
|
1161
|
+
// File: functions/isWindow.d.ts
|
|
1162
|
+
export declare function isWindow<E>(element: E): boolean;
|
|
1163
|
+
|
|
1164
|
+
// File: functions/random.d.ts
|
|
1329
1165
|
export declare function random(min: number, max: number): number;
|
|
1330
|
-
|
|
1166
|
+
|
|
1167
|
+
// File: functions/removeCommonPrefix.d.ts
|
|
1331
1168
|
export declare function removeCommonPrefix(mainStr: string, prefix: string): string;
|
|
1332
|
-
|
|
1169
|
+
|
|
1170
|
+
// File: functions/replaceComponentName.d.ts
|
|
1333
1171
|
export declare const replaceComponentName: (text: string | undefined, name: string, componentName: string) => string | undefined;
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
export declare function replaceRecursive<I>(array:
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
export declare function replaceTemplate(value: string, replaces: Record<string, string |
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1172
|
+
|
|
1173
|
+
// File: functions/replaceRecursive.d.ts
|
|
1174
|
+
export declare function replaceRecursive<I>(array: any, replacement?: any, isMerge?: boolean): any;
|
|
1175
|
+
|
|
1176
|
+
// File: functions/replaceTemplate.d.ts
|
|
1177
|
+
export declare function replaceTemplate(value: string, replaces: Record<string, string | (() => string)>): string;
|
|
1178
|
+
|
|
1179
|
+
// File: functions/resizeImageByMax.d.ts
|
|
1180
|
+
export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?: any, typeData?: string): string | undefined;
|
|
1181
|
+
|
|
1182
|
+
// File: functions/secondToTime.d.ts
|
|
1343
1183
|
export declare function secondToTime(second: number | string | undefined, hasHour?: boolean): string;
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
export declare function setElementItem<E extends
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1184
|
+
|
|
1185
|
+
// File: functions/setElementItem.d.ts
|
|
1186
|
+
export declare function setElementItem<E extends any, K extends keyof E, V extends E[K] = E[K]>(element: any, index: K, value: V | Record<string, V>): E | undefined;
|
|
1187
|
+
|
|
1188
|
+
// File: functions/setValues.d.ts
|
|
1189
|
+
export declare function setValues<T>(selected: T | T[] | undefined, value: any, options: {
|
|
1190
|
+
multiple?: boolean;
|
|
1191
|
+
maxlength?: number;
|
|
1192
|
+
alwaysChange?: boolean;
|
|
1193
|
+
notEmpty?: boolean;
|
|
1353
1194
|
}): T | T[] | undefined;
|
|
1354
|
-
|
|
1195
|
+
|
|
1196
|
+
// File: functions/sleep.d.ts
|
|
1355
1197
|
export declare function sleep(ms: number): Promise<void>;
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
export declare function splice<I>(array:
|
|
1359
|
-
|
|
1198
|
+
|
|
1199
|
+
// File: functions/splice.d.ts
|
|
1200
|
+
export declare function splice<I>(array: any, replacement?: any, indexStart?: string): any;
|
|
1201
|
+
|
|
1202
|
+
// File: functions/strFill.d.ts
|
|
1360
1203
|
export declare function strFill(value: string, count: number): string;
|
|
1361
|
-
|
|
1204
|
+
|
|
1205
|
+
// File: functions/strSplit.d.ts
|
|
1362
1206
|
export declare function strSplit(value: number | string, separator: string, limit?: number): string[];
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1207
|
+
|
|
1208
|
+
// File: functions/toArray.d.ts
|
|
1209
|
+
export declare function toArray<T>(value: T): any;
|
|
1210
|
+
|
|
1211
|
+
// File: functions/toCamelCase.d.ts
|
|
1366
1212
|
export declare function toCamelCase(value: string): string;
|
|
1367
|
-
|
|
1213
|
+
|
|
1214
|
+
// File: functions/toCamelCaseFirst.d.ts
|
|
1368
1215
|
export declare function toCamelCaseFirst(value: string): string;
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1216
|
+
|
|
1217
|
+
// File: functions/toDate.d.ts
|
|
1218
|
+
export declare function toDate<T extends Date | number | string>(value?: T): Date;
|
|
1219
|
+
|
|
1220
|
+
// File: functions/toKebabCase.d.ts
|
|
1372
1221
|
export declare function toKebabCase(value: string): string;
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
export declare function toNumber(value?:
|
|
1376
|
-
|
|
1222
|
+
|
|
1223
|
+
// File: functions/toNumber.d.ts
|
|
1224
|
+
export declare function toNumber(value?: any): number;
|
|
1225
|
+
|
|
1226
|
+
// File: functions/toNumberByMax.d.ts
|
|
1377
1227
|
export declare function toNumberByMax(value: string | number, max?: string | number, formatting?: boolean, language?: string): string | number;
|
|
1378
|
-
|
|
1228
|
+
|
|
1229
|
+
// File: functions/toPercent.d.ts
|
|
1379
1230
|
export declare function toPercent(maxValue: number, value: number): number;
|
|
1380
|
-
|
|
1231
|
+
|
|
1232
|
+
// File: functions/toPercentBy100.d.ts
|
|
1381
1233
|
export declare function toPercentBy100(maxValue: number, value: number): number;
|
|
1382
|
-
|
|
1234
|
+
|
|
1235
|
+
// File: functions/toString.d.ts
|
|
1383
1236
|
export declare function toString<T>(value: T): string;
|
|
1384
|
-
|
|
1237
|
+
|
|
1238
|
+
// File: functions/transformation.d.ts
|
|
1385
1239
|
export declare function transformation(value: any, isFunction?: boolean): any;
|
|
1386
|
-
|
|
1240
|
+
|
|
1241
|
+
// File: functions/uint8ArrayToBase64.d.ts
|
|
1387
1242
|
export declare function uint8ArrayToBase64(bytes: Uint8Array): string;
|
|
1388
|
-
|
|
1243
|
+
|
|
1244
|
+
// File: functions/uniqueArray.d.ts
|
|
1389
1245
|
export declare function uniqueArray<T>(value: T[]): T[];
|
|
1390
|
-
|
|
1246
|
+
|
|
1247
|
+
// File: functions/writeClipboardData.d.ts
|
|
1391
1248
|
export declare function writeClipboardData(text: string): Promise<void>;
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
export * from './classes/ApiCache';
|
|
1395
|
-
export * from './classes/ApiDataReturn';
|
|
1396
|
-
export * from './classes/ApiDefault';
|
|
1397
|
-
export * from './classes/ApiError';
|
|
1398
|
-
export * from './classes/ApiErrorItem';
|
|
1399
|
-
export * from './classes/ApiErrorStorage';
|
|
1400
|
-
export * from './classes/ApiHeaders';
|
|
1401
|
-
export * from './classes/ApiHydration';
|
|
1402
|
-
export * from './classes/ApiInstance';
|
|
1403
|
-
export * from './classes/ApiPreparation';
|
|
1404
|
-
export * from './classes/ApiResponse';
|
|
1405
|
-
export * from './classes/ApiStatus';
|
|
1406
|
-
export * from './classes/BroadcastMessage';
|
|
1407
|
-
export * from './classes/Cache';
|
|
1408
|
-
export * from './classes/CacheItem';
|
|
1409
|
-
export * from './classes/CacheStatic';
|
|
1410
|
-
export * from './classes/Cookie';
|
|
1411
|
-
export * from './classes/CookieBlock';
|
|
1412
|
-
export * from './classes/CookieBlockInstance';
|
|
1413
|
-
export * from './classes/CookieStorage';
|
|
1414
|
-
export * from './classes/DataStorage';
|
|
1415
|
-
export * from './classes/Datetime';
|
|
1416
|
-
export * from './classes/ErrorCenter';
|
|
1417
|
-
export * from './classes/ErrorCenterHandler';
|
|
1418
|
-
export * from './classes/ErrorCenterInstance';
|
|
1419
|
-
export * from './classes/EventItem';
|
|
1420
|
-
export * from './classes/Formatters';
|
|
1421
|
-
export * from './classes/Geo';
|
|
1422
|
-
export * from './classes/GeoFlag';
|
|
1423
|
-
export * from './classes/GeoInstance';
|
|
1424
|
-
export * from './classes/GeoIntl';
|
|
1425
|
-
export * from './classes/GeoPhone';
|
|
1426
|
-
export * from './classes/GeoUnit';
|
|
1427
|
-
export * from './classes/Global';
|
|
1428
|
-
export * from './classes/Hash';
|
|
1429
|
-
export * from './classes/HashInstance';
|
|
1430
|
-
export * from './classes/Icons';
|
|
1431
|
-
export * from './classes/Loading';
|
|
1432
|
-
export * from './classes/LoadingInstance';
|
|
1433
|
-
export * from './classes/Meta';
|
|
1434
|
-
export * from './classes/MetaManager';
|
|
1435
|
-
export * from './classes/MetaOg';
|
|
1436
|
-
export * from './classes/MetaStatic';
|
|
1437
|
-
export * from './classes/MetaTwitter';
|
|
1438
|
-
export * from './classes/Query';
|
|
1439
|
-
export * from './classes/QueryInstance';
|
|
1440
|
-
export * from './classes/ResumableTimer';
|
|
1441
|
-
export * from './classes/ScrollbarWidth';
|
|
1442
|
-
export * from './classes/SearchList';
|
|
1443
|
-
export * from './classes/SearchListData';
|
|
1444
|
-
export * from './classes/SearchListItem';
|
|
1445
|
-
export * from './classes/SearchListMatcher';
|
|
1446
|
-
export * from './classes/SearchListOptions';
|
|
1447
|
-
export * from './classes/ServerStorage';
|
|
1448
|
-
export * from './classes/StorageCallback';
|
|
1449
|
-
export * from './classes/Translate';
|
|
1450
|
-
export * from './classes/TranslateFile';
|
|
1451
|
-
export * from './classes/TranslateInstance';
|
|
1452
|
-
export * from './classes/UrlInstanceAbstract';
|
|
1453
|
-
export * from './classes/UrlItem';
|
|
1454
|
-
export * from './functions/addTagHighlightMatch';
|
|
1455
|
-
export * from './functions/anyToString';
|
|
1456
|
-
export * from './functions/applyTemplate';
|
|
1457
|
-
export * from './functions/arrFill';
|
|
1458
|
-
export * from './functions/blobToBase64';
|
|
1459
|
-
export * from './functions/capitalize';
|
|
1460
|
-
export * from './functions/copyObject';
|
|
1461
|
-
export * from './functions/copyObjectLite';
|
|
1462
|
-
export * from './functions/createElement';
|
|
1463
|
-
export * from './functions/domQuerySelector';
|
|
1464
|
-
export * from './functions/domQuerySelectorAll';
|
|
1465
|
-
export * from './functions/encodeAttribute';
|
|
1466
|
-
export * from './functions/encodeLiteAttribute';
|
|
1467
|
-
export * from './functions/ensureMaxSize';
|
|
1468
|
-
export * from './functions/escapeExp';
|
|
1469
|
-
export * from './functions/eventStopPropagation';
|
|
1470
|
-
export * from './functions/executeFunction';
|
|
1471
|
-
export * from './functions/executePromise';
|
|
1472
|
-
export * from './functions/forEach';
|
|
1473
|
-
export * from './functions/frame';
|
|
1474
|
-
export * from './functions/getArrayHighlightMatch';
|
|
1475
|
-
export * from './functions/getAttributes';
|
|
1476
|
-
export * from './functions/getClipboardData';
|
|
1477
|
-
export * from './functions/getColumn';
|
|
1478
|
-
export * from './functions/getCurrentDate';
|
|
1479
|
-
export * from './functions/getCurrentTime';
|
|
1480
|
-
export * from './functions/getElement';
|
|
1481
|
-
export * from './functions/getElementId';
|
|
1482
|
-
export * from './functions/getElementImage';
|
|
1483
|
-
export * from './functions/getElementItem';
|
|
1484
|
-
export * from './functions/getElementOrWindow';
|
|
1485
|
-
export * from './functions/getElementSafeScript';
|
|
1486
|
-
export * from './functions/getExactSearchExp';
|
|
1487
|
-
export * from './functions/getExp';
|
|
1488
|
-
export * from './functions/getFirst';
|
|
1489
|
-
export * from './functions/getHydrationData';
|
|
1490
|
-
export * from './functions/getItemByPath';
|
|
1491
|
-
export * from './functions/getKey';
|
|
1492
|
-
export * from './functions/getLength';
|
|
1493
|
-
export * from './functions/getLengthOfAllArray';
|
|
1494
|
-
export * from './functions/getMaxLengthAllArray';
|
|
1495
|
-
export * from './functions/getMinLengthAllArray';
|
|
1496
|
-
export * from './functions/getMouseClient';
|
|
1497
|
-
export * from './functions/getMouseClientX';
|
|
1498
|
-
export * from './functions/getMouseClientY';
|
|
1499
|
-
export * from './functions/getObjectByKeys';
|
|
1500
|
-
export * from './functions/getObjectNoUndefined';
|
|
1501
|
-
export * from './functions/getObjectOrNone';
|
|
1502
|
-
export * from './functions/getOnlyText';
|
|
1503
|
-
export * from './functions/getRandomText';
|
|
1504
|
-
export * from './functions/getRequestString';
|
|
1505
|
-
export * from './functions/getSearchExp';
|
|
1506
|
-
export * from './functions/getSeparatingSearchExp';
|
|
1507
|
-
export * from './functions/getStepPercent';
|
|
1508
|
-
export * from './functions/getStepValue';
|
|
1509
|
-
export * from './functions/goScroll';
|
|
1510
|
-
export * from './functions/goScrollSmooth';
|
|
1511
|
-
export * from './functions/goScrollTo';
|
|
1512
|
-
export * from './functions/handleShare';
|
|
1513
|
-
export * from './functions/inArray';
|
|
1514
|
-
export * from './functions/initScrollbarOffset';
|
|
1515
|
-
export * from './functions/intersectKey';
|
|
1516
|
-
export * from './functions/isApiSuccess';
|
|
1517
|
-
export * from './functions/isArray';
|
|
1518
|
-
export * from './functions/isDifferent';
|
|
1519
|
-
export * from './functions/isDomData';
|
|
1520
|
-
export * from './functions/isDomRuntime';
|
|
1521
|
-
export * from './functions/isElementVisible';
|
|
1522
|
-
export * from './functions/isEnter';
|
|
1523
|
-
export * from './functions/isFilled';
|
|
1524
|
-
export * from './functions/isFloat';
|
|
1525
|
-
export * from './functions/isFunction';
|
|
1526
|
-
export * from './functions/isInDom';
|
|
1527
|
-
export * from './functions/isInput';
|
|
1528
|
-
export * from './functions/isIntegerBetween';
|
|
1529
|
-
export * from './functions/isNull';
|
|
1530
|
-
export * from './functions/isNumber';
|
|
1531
|
-
export * from './functions/isObject';
|
|
1532
|
-
export * from './functions/isObjectNotArray';
|
|
1533
|
-
export * from './functions/isOnLine';
|
|
1534
|
-
export * from './functions/isSelected';
|
|
1535
|
-
export * from './functions/isSelectedByList';
|
|
1536
|
-
export * from './functions/isShare';
|
|
1537
|
-
export * from './functions/isString';
|
|
1538
|
-
export * from './functions/isTab';
|
|
1539
|
-
export * from './functions/isWindow';
|
|
1540
|
-
export * from './functions/random';
|
|
1541
|
-
export * from './functions/removeCommonPrefix';
|
|
1542
|
-
export * from './functions/replaceComponentName';
|
|
1543
|
-
export * from './functions/replaceRecursive';
|
|
1544
|
-
export * from './functions/replaceTemplate';
|
|
1545
|
-
export * from './functions/resizeImageByMax';
|
|
1546
|
-
export * from './functions/secondToTime';
|
|
1547
|
-
export * from './functions/setElementItem';
|
|
1548
|
-
export * from './functions/setValues';
|
|
1549
|
-
export * from './functions/sleep';
|
|
1550
|
-
export * from './functions/splice';
|
|
1551
|
-
export * from './functions/strFill';
|
|
1552
|
-
export * from './functions/strSplit';
|
|
1553
|
-
export * from './functions/toArray';
|
|
1554
|
-
export * from './functions/toCamelCase';
|
|
1555
|
-
export * from './functions/toCamelCaseFirst';
|
|
1556
|
-
export * from './functions/toDate';
|
|
1557
|
-
export * from './functions/toKebabCase';
|
|
1558
|
-
export * from './functions/toNumber';
|
|
1559
|
-
export * from './functions/toNumberByMax';
|
|
1560
|
-
export * from './functions/toPercent';
|
|
1561
|
-
export * from './functions/toPercentBy100';
|
|
1562
|
-
export * from './functions/toString';
|
|
1563
|
-
export * from './functions/transformation';
|
|
1564
|
-
export * from './functions/uint8ArrayToBase64';
|
|
1565
|
-
export * from './functions/uniqueArray';
|
|
1566
|
-
export * from './functions/writeClipboardData';
|
|
1567
|
-
export * from './types/apiTypes';
|
|
1568
|
-
export * from './types/basicTypes';
|
|
1569
|
-
export * from './types/errorCenter';
|
|
1570
|
-
export * from './types/formattersTypes';
|
|
1571
|
-
export * from './types/geoTypes';
|
|
1572
|
-
export * from './types/metaTypes';
|
|
1573
|
-
export * from './types/searchTypes';
|
|
1574
|
-
export * from './types/translateTypes';
|
|
1575
|
-
// File: src/media/errorCauseList.d.ts
|
|
1576
|
-
import { ErrorCenterCauseList } from '../types/errorCenter';
|
|
1577
|
-
export declare const errorCauseList: ErrorCenterCauseList;
|
|
1578
|
-
// File: src/types/apiTypes.d.ts
|
|
1579
|
-
import { ApiErrorItem } from '../classes/ApiErrorItem';
|
|
1249
|
+
|
|
1250
|
+
// File: types/apiTypes.d.ts
|
|
1580
1251
|
export declare enum ApiMethodItem {
|
|
1581
1252
|
delete = "DELETE",
|
|
1582
1253
|
get = "GET",
|
|
@@ -1590,105 +1261,24 @@ export type ApiCacheItem<T = any> = {
|
|
|
1590
1261
|
cacheAge: number;
|
|
1591
1262
|
};
|
|
1592
1263
|
export type ApiCacheList = Record<string, ApiCacheItem>;
|
|
1593
|
-
export type ApiConfig =
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
requestDefault?: ApiDefaultValue;
|
|
1598
|
-
preparation?: (apiFetch: ApiFetch) => Promise<void>;
|
|
1599
|
-
end?: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>;
|
|
1600
|
-
timeout?: number;
|
|
1601
|
-
devMode?: boolean;
|
|
1602
|
-
wrapper?: <R>(callback: () => Promise<R>, apiFetch: ApiFetch) => Promise<R>;
|
|
1603
|
-
};
|
|
1604
|
-
export type ApiData<T = any> = T extends any[] ? T : ApiDataItem<T>;
|
|
1605
|
-
export type ApiDataValidation = {
|
|
1606
|
-
status?: ApiStatusType;
|
|
1607
|
-
code?: string | number;
|
|
1608
|
-
message?: string;
|
|
1609
|
-
error?: {
|
|
1610
|
-
code?: string | number;
|
|
1611
|
-
message?: string;
|
|
1612
|
-
};
|
|
1613
|
-
};
|
|
1614
|
-
export type ApiDataItem<T = any> = T & ApiDataValidation & {
|
|
1615
|
-
data?: T;
|
|
1616
|
-
success?: boolean;
|
|
1617
|
-
statusObject?: ApiStatusItem;
|
|
1618
|
-
errorObject?: ApiErrorItem;
|
|
1619
|
-
};
|
|
1264
|
+
export type ApiConfig = any;
|
|
1265
|
+
export type ApiData<T = any> = any;
|
|
1266
|
+
export type ApiDataValidation = any;
|
|
1267
|
+
export type ApiDataItem<T = any> = any;
|
|
1620
1268
|
export type ApiHeadersValue = Record<string, string> | (() => Record<string, string>);
|
|
1621
1269
|
export type ApiDefaultValue = Record<string, any> | (() => Record<string, any>);
|
|
1622
|
-
export type ApiFetch =
|
|
1623
|
-
|
|
1624
|
-
path?: string;
|
|
1625
|
-
pathFull?: string;
|
|
1626
|
-
method?: ApiMethod;
|
|
1627
|
-
request?: FormData | Record<string, any> | string;
|
|
1628
|
-
auth?: boolean;
|
|
1629
|
-
headers?: Record<string, string> | null;
|
|
1630
|
-
type?: string;
|
|
1631
|
-
toData?: boolean;
|
|
1632
|
-
global?: boolean;
|
|
1633
|
-
devMode?: boolean;
|
|
1634
|
-
hideError?: boolean;
|
|
1635
|
-
hideLoading?: boolean;
|
|
1636
|
-
retry?: number;
|
|
1637
|
-
retryDelay?: number;
|
|
1638
|
-
queryReturn?: (query: Response) => Promise<any | ApiDataValidation>;
|
|
1639
|
-
globalPreparation?: boolean;
|
|
1640
|
-
globalEnd?: boolean;
|
|
1641
|
-
init?: RequestInit;
|
|
1642
|
-
initError?: boolean;
|
|
1643
|
-
timeout?: number;
|
|
1644
|
-
controller?: AbortController;
|
|
1645
|
-
cache?: number;
|
|
1646
|
-
enableClientCache?: boolean;
|
|
1647
|
-
cacheId?: number | string;
|
|
1648
|
-
endResetLimit?: number;
|
|
1649
|
-
wrapper?: <R>(callback: () => Promise<R>, apiFetch: ApiFetch) => Promise<R>;
|
|
1650
|
-
};
|
|
1651
|
-
export type ApiHydrationItem = {
|
|
1652
|
-
path: string;
|
|
1653
|
-
method: ApiMethod;
|
|
1654
|
-
request?: ApiFetch['request'];
|
|
1655
|
-
response: any;
|
|
1656
|
-
};
|
|
1270
|
+
export type ApiFetch = any;
|
|
1271
|
+
export type ApiHydrationItem = any;
|
|
1657
1272
|
export type ApiHydrationList = ApiHydrationItem[];
|
|
1658
|
-
export type ApiErrorStorageItem =
|
|
1659
|
-
url: string | RegExp;
|
|
1660
|
-
method: ApiMethodItem;
|
|
1661
|
-
code?: string;
|
|
1662
|
-
status?: number;
|
|
1663
|
-
validation?: (response: Response) => boolean;
|
|
1664
|
-
message?: string | ((response?: Response) => string);
|
|
1665
|
-
};
|
|
1273
|
+
export type ApiErrorStorageItem = any;
|
|
1666
1274
|
export type ApiErrorStorageList = ApiErrorStorageItem[];
|
|
1667
1275
|
export type ApiMethod = string | ApiMethodItem;
|
|
1668
|
-
export type ApiPreparationEnd =
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
};
|
|
1672
|
-
export type ApiResponseItem = {
|
|
1673
|
-
path: string | RegExp;
|
|
1674
|
-
method: ApiMethod;
|
|
1675
|
-
request?: ApiFetch['request'] | '*any';
|
|
1676
|
-
response: any | ((request?: ApiFetch['request']) => any);
|
|
1677
|
-
disable?: any;
|
|
1678
|
-
isForGlobal?: boolean;
|
|
1679
|
-
lag?: any;
|
|
1680
|
-
};
|
|
1681
|
-
export type ApiStatusItem = {
|
|
1682
|
-
status?: number;
|
|
1683
|
-
statusText?: string;
|
|
1684
|
-
error?: string;
|
|
1685
|
-
lastResponse?: any;
|
|
1686
|
-
lastStatus?: ApiStatusType;
|
|
1687
|
-
lastCode?: string;
|
|
1688
|
-
lastMessage?: string;
|
|
1689
|
-
};
|
|
1276
|
+
export type ApiPreparationEnd = any;
|
|
1277
|
+
export type ApiResponseItem = any;
|
|
1278
|
+
export type ApiStatusItem = any;
|
|
1690
1279
|
export type ApiStatusType = 'success' | 'error' | 'warning' | 'info';
|
|
1691
|
-
|
|
1280
|
+
|
|
1281
|
+
// File: types/basicTypes.d.ts
|
|
1692
1282
|
export type Undefined = undefined | null;
|
|
1693
1283
|
export type EmptyValue = Undefined | 0 | false | '' | 'undefined' | 'null' | '0' | 'false' | '[]';
|
|
1694
1284
|
export type NumberOrString = number | string;
|
|
@@ -1720,36 +1310,21 @@ export type ElementOrWindow = HTMLElement | Window;
|
|
|
1720
1310
|
export type ElementOrString<E extends ElementOrWindow> = E | string;
|
|
1721
1311
|
export type EventOptions = AddEventListenerOptions | boolean | undefined;
|
|
1722
1312
|
export type EventListenerDetail<O extends Event, D extends Record<string, any>> = (event: O, detail?: D) => void;
|
|
1723
|
-
export type EventActivityItem<E extends ElementOrWindow> =
|
|
1724
|
-
element: E | undefined;
|
|
1725
|
-
type: string;
|
|
1726
|
-
listener?: (event: any | Event) => void;
|
|
1727
|
-
observer?: ResizeObserver;
|
|
1728
|
-
};
|
|
1313
|
+
export type EventActivityItem<E extends ElementOrWindow> = any;
|
|
1729
1314
|
export type ImageCoordinator = {
|
|
1730
1315
|
x: number;
|
|
1731
1316
|
y: number;
|
|
1732
1317
|
};
|
|
1733
|
-
|
|
1318
|
+
|
|
1319
|
+
// File: types/errorCenter.d.ts
|
|
1734
1320
|
export type ErrorCenterGroup = string | undefined;
|
|
1735
|
-
export type ErrorCenterCauseItem<D = any> =
|
|
1736
|
-
group?: ErrorCenterGroup;
|
|
1737
|
-
code: string;
|
|
1738
|
-
priority?: number;
|
|
1739
|
-
label?: string;
|
|
1740
|
-
message?: string;
|
|
1741
|
-
details?: D;
|
|
1742
|
-
};
|
|
1321
|
+
export type ErrorCenterCauseItem<D = any> = any;
|
|
1743
1322
|
export type ErrorCenterCauseList = ErrorCenterCauseItem[];
|
|
1744
1323
|
export type ErrorCenterHandlerCallback = (cause: ErrorCenterCauseItem) => void;
|
|
1745
|
-
export type ErrorCenterHandlerItem =
|
|
1746
|
-
group?: ErrorCenterGroup;
|
|
1747
|
-
handlers: ErrorCenterHandlerCallback[];
|
|
1748
|
-
};
|
|
1324
|
+
export type ErrorCenterHandlerItem = any;
|
|
1749
1325
|
export type ErrorCenterHandlerList = ErrorCenterHandlerItem[];
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
import { GeoDate } from './geoTypes';
|
|
1326
|
+
|
|
1327
|
+
// File: types/formattersTypes.d.ts
|
|
1753
1328
|
export declare enum FormattersType {
|
|
1754
1329
|
currency = "currency",
|
|
1755
1330
|
date = "date",
|
|
@@ -1758,55 +1333,29 @@ export declare enum FormattersType {
|
|
|
1758
1333
|
plural = "plural",
|
|
1759
1334
|
unit = "unit"
|
|
1760
1335
|
}
|
|
1761
|
-
export type FormattersOptionsCurrency =
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
export type
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
hour24?: boolean;
|
|
1770
|
-
};
|
|
1771
|
-
export type FormattersOptionsName = {
|
|
1772
|
-
lastPropName?: string;
|
|
1773
|
-
firstPropName?: string;
|
|
1774
|
-
surname?: string;
|
|
1775
|
-
short?: boolean;
|
|
1776
|
-
};
|
|
1777
|
-
export type FormattersOptionsNumber = {
|
|
1778
|
-
options?: Intl.NumberFormatOptions;
|
|
1779
|
-
};
|
|
1780
|
-
export type FormattersOptionsPlural = {
|
|
1781
|
-
words: string;
|
|
1782
|
-
options?: Intl.PluralRulesOptions;
|
|
1783
|
-
optionsNumber?: Intl.NumberFormatOptions;
|
|
1784
|
-
};
|
|
1785
|
-
export type FormattersOptionsUnit = {
|
|
1786
|
-
unit: string | Intl.NumberFormatOptions;
|
|
1787
|
-
};
|
|
1788
|
-
export type FormattersOptionsInformation<Type extends FormattersType> = Type extends FormattersType.currency ? FormattersOptionsCurrency : Type extends FormattersType.date ? FormattersOptionsDate : Type extends FormattersType.name ? FormattersOptionsName : Type extends FormattersType.number ? FormattersOptionsNumber : Type extends FormattersType.plural ? FormattersOptionsPlural : Type extends FormattersType.unit ? FormattersOptionsUnit : Record<string, any>;
|
|
1789
|
-
export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = {
|
|
1790
|
-
type?: Type;
|
|
1791
|
-
transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R;
|
|
1792
|
-
options?: FormattersOptionsInformation<Type>;
|
|
1793
|
-
};
|
|
1336
|
+
export type FormattersOptionsCurrency = any;
|
|
1337
|
+
export type FormattersOptionsDate = any;
|
|
1338
|
+
export type FormattersOptionsName = any;
|
|
1339
|
+
export type FormattersOptionsNumber = any;
|
|
1340
|
+
export type FormattersOptionsPlural = any;
|
|
1341
|
+
export type FormattersOptionsUnit = any;
|
|
1342
|
+
export type FormattersOptionsInformation<Type extends FormattersType> = any;
|
|
1343
|
+
export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = any;
|
|
1794
1344
|
export type FormattersOptionsList = Record<string, FormattersOptionsItem>;
|
|
1795
1345
|
export type FormattersListItem = Record<string, any>;
|
|
1796
1346
|
export type FormattersList<Item extends FormattersListItem> = Item[];
|
|
1797
|
-
export type FormattersCapitalize<K extends string> =
|
|
1347
|
+
export type FormattersCapitalize<K extends string> = any;
|
|
1798
1348
|
export type FormattersColumns<T extends FormattersOptionsList> = (keyof T & string)[];
|
|
1799
|
-
export type FormattersKey<K, A extends string = 'Format'> =
|
|
1800
|
-
export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> =
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
export type
|
|
1804
|
-
export type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersDataItem<T, FormattersColumns<O>>;
|
|
1805
|
-
export type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersListFormat<T, FormattersColumns<O>>;
|
|
1349
|
+
export type FormattersKey<K, A extends string = 'Format'> = any;
|
|
1350
|
+
export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = any;
|
|
1351
|
+
export type FormattersListFormat<T extends FormattersListItem, K extends string[]> = any;
|
|
1352
|
+
export type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> = any;
|
|
1353
|
+
export type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> = any;
|
|
1806
1354
|
export type FormattersListProp = FormattersList<FormattersListItem> | FormattersListItem;
|
|
1807
|
-
export type FormattersItemProp<List extends FormattersListProp> =
|
|
1808
|
-
export type FormattersReturn<List extends FormattersListProp, Options extends FormattersOptionsList = FormattersOptionsList, Item extends FormattersItemProp<List> = FormattersItemProp<List>> =
|
|
1809
|
-
|
|
1355
|
+
export type FormattersItemProp<List extends FormattersListProp> = any;
|
|
1356
|
+
export type FormattersReturn<List extends FormattersListProp, Options extends FormattersOptionsList = FormattersOptionsList, Item extends FormattersItemProp<List> = FormattersItemProp<List>> = any;
|
|
1357
|
+
|
|
1358
|
+
// File: types/geoTypes.d.ts
|
|
1810
1359
|
export type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'month' | 'day' | 'day-month' | 'time' | 'hour-minute' | 'hour' | 'minute' | 'second';
|
|
1811
1360
|
export type GeoFirstDay = 1 | 6 | 0;
|
|
1812
1361
|
export type GeoHours = '12' | '24';
|
|
@@ -1822,21 +1371,7 @@ export interface GeoItem {
|
|
|
1822
1371
|
phoneWithin?: string;
|
|
1823
1372
|
phoneMask?: string | string[];
|
|
1824
1373
|
nameFormat?: 'fl' | 'fsl' | 'lf' | 'lsf' | string;
|
|
1825
|
-
unit?:
|
|
1826
|
-
'millimeter'?: string;
|
|
1827
|
-
'centimeter'?: string;
|
|
1828
|
-
'meter'?: string;
|
|
1829
|
-
'kilometer'?: string;
|
|
1830
|
-
'square-meter'?: string;
|
|
1831
|
-
'hectare'?: string;
|
|
1832
|
-
'gram'?: string;
|
|
1833
|
-
'kilogram'?: string;
|
|
1834
|
-
'tonne'?: string;
|
|
1835
|
-
'milliliter'?: string;
|
|
1836
|
-
'liter'?: string;
|
|
1837
|
-
'celsius'?: string;
|
|
1838
|
-
'kilometer-per-hour'?: string;
|
|
1839
|
-
};
|
|
1374
|
+
unit?: any;
|
|
1840
1375
|
}
|
|
1841
1376
|
export interface GeoItemFull extends Omit<GeoItem, 'firstDay'> {
|
|
1842
1377
|
standard: string;
|
|
@@ -1879,7 +1414,8 @@ export interface GeoPhoneMapInfo {
|
|
|
1879
1414
|
item?: GeoPhoneMap;
|
|
1880
1415
|
phone?: string;
|
|
1881
1416
|
}
|
|
1882
|
-
|
|
1417
|
+
|
|
1418
|
+
// File: types/metaTypes.d.ts
|
|
1883
1419
|
export declare enum MetaTag {
|
|
1884
1420
|
title = "title",
|
|
1885
1421
|
description = "description",
|
|
@@ -2065,49 +1601,27 @@ export declare enum MetaTwitterCard {
|
|
|
2065
1601
|
audio = "audio",
|
|
2066
1602
|
poll = "poll"
|
|
2067
1603
|
}
|
|
2068
|
-
|
|
1604
|
+
|
|
1605
|
+
// File: types/searchTypes.d.ts
|
|
2069
1606
|
export type SearchItem = Record<string, any>;
|
|
2070
|
-
export type SearchColumnPath<K, P> =
|
|
2071
|
-
export type SearchColumn<T extends SearchItem> =
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
export type
|
|
2075
|
-
export type
|
|
2076
|
-
export type
|
|
2077
|
-
export type SearchFormatItem<T extends SearchItem, KT extends string[]> = {
|
|
2078
|
-
[K in keyof T | SearchFormatKey<KT[number]>]: K extends keyof T ? T[K] : string;
|
|
2079
|
-
} & {
|
|
2080
|
-
searchActive?: boolean;
|
|
2081
|
-
};
|
|
2082
|
-
export type SearchFormatList<T extends SearchItem, K extends string[]> = SearchFormatItem<T, K>[];
|
|
1607
|
+
export type SearchColumnPath<K, P> = any;
|
|
1608
|
+
export type SearchColumn<T extends SearchItem> = any;
|
|
1609
|
+
export type SearchColumns<T extends SearchItem> = any;
|
|
1610
|
+
export type SearchFormatCapitalize<K extends string> = any;
|
|
1611
|
+
export type SearchFormatKey<K> = any;
|
|
1612
|
+
export type SearchFormatItem<T extends SearchItem, KT extends string[]> = any;
|
|
1613
|
+
export type SearchFormatList<T extends SearchItem, K extends string[]> = any;
|
|
2083
1614
|
export type SearchListValue<T extends SearchItem> = T[] | undefined;
|
|
2084
|
-
export type SearchOptions =
|
|
2085
|
-
|
|
2086
|
-
returnEverything?: boolean;
|
|
2087
|
-
delay?: number;
|
|
2088
|
-
findExactMatch?: boolean;
|
|
2089
|
-
classSearchName?: string;
|
|
2090
|
-
};
|
|
2091
|
-
export type SearchCacheItem<T extends SearchItem> = {
|
|
2092
|
-
item: T;
|
|
2093
|
-
value: string;
|
|
2094
|
-
};
|
|
1615
|
+
export type SearchOptions = any;
|
|
1616
|
+
export type SearchCacheItem<T extends SearchItem> = any;
|
|
2095
1617
|
export type SearchCache<T extends SearchItem> = SearchCacheItem<T>[];
|
|
2096
|
-
export type HighlightMatchItem =
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
// File: src/types/translateTypes.d.ts
|
|
2101
|
-
export type TranslateConfig = {
|
|
2102
|
-
url?: string;
|
|
2103
|
-
propsName?: string;
|
|
2104
|
-
readApi?: boolean;
|
|
2105
|
-
};
|
|
1618
|
+
export type HighlightMatchItem = any;
|
|
1619
|
+
|
|
1620
|
+
// File: types/translateTypes.d.ts
|
|
1621
|
+
export type TranslateConfig = any;
|
|
2106
1622
|
export type TranslateCode = string | string[];
|
|
2107
|
-
export type TranslateList<T extends TranslateCode[]> =
|
|
2108
|
-
|
|
2109
|
-
};
|
|
2110
|
-
export type TranslateItemOrList<T extends TranslateCode> = T extends string[] ? TranslateList<T> : string;
|
|
1623
|
+
export type TranslateList<T extends TranslateCode[]> = any;
|
|
1624
|
+
export type TranslateItemOrList<T extends TranslateCode> = any;
|
|
2111
1625
|
export type TranslateDataFileList = Record<string, string>;
|
|
2112
1626
|
export type TranslateDataFileItem = () => Promise<TranslateDataFileList>;
|
|
2113
1627
|
export type TranslateDataFile = Record<string, TranslateDataFileItem>;
|