@dxtmisha/functional-basic 1.3.15 → 1.4.1
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 +14 -0
- package/ai-description.md +20 -13
- package/ai-types.md +642 -332
- package/dist/library.js +493 -400
- package/dist/src/classes/GeoFlag.d.ts +29 -1
- package/dist/src/classes/HashInstance.d.ts +8 -74
- package/dist/src/classes/Query.d.ts +57 -0
- package/dist/src/classes/QueryInstance.d.ts +29 -0
- package/dist/src/classes/UrlInstanceAbstract.d.ts +94 -0
- package/dist/src/classes/UrlItem.d.ts +48 -0
- package/dist/src/library.d.ts +3 -0
- package/dist/src/types/geoTypes.d.ts +4 -0
- package/package.json +1 -1
package/ai-types.md
CHANGED
|
@@ -16,7 +16,6 @@ import { ApiConfig, ApiDefaultValue, ApiFetch, ApiHeadersValue, ApiMethodItem, A
|
|
|
16
16
|
import { ApiStatus } from './ApiStatus';
|
|
17
17
|
import { ApiResponse } from './ApiResponse';
|
|
18
18
|
import { ApiHydration } from './ApiHydration';
|
|
19
|
-
|
|
20
19
|
/**
|
|
21
20
|
* Class for working with HTTP requests.
|
|
22
21
|
*/
|
|
@@ -46,10 +45,8 @@ export declare class Api {
|
|
|
46
45
|
static patch<T>(request: ApiFetch): Promise<T>;
|
|
47
46
|
static delete<T>(request: ApiFetch): Promise<T>;
|
|
48
47
|
}
|
|
49
|
-
|
|
50
48
|
// File: src/classes/ApiCache.d.ts
|
|
51
49
|
import { ApiCacheItem, ApiCacheList, ApiFetch } from '../types/apiTypes';
|
|
52
|
-
|
|
53
50
|
/**
|
|
54
51
|
* Class for caching API responses.
|
|
55
52
|
*/
|
|
@@ -62,12 +59,10 @@ export declare class ApiCache {
|
|
|
62
59
|
static setByFetch<T>(fetch: ApiFetch, value: T): Promise<void>;
|
|
63
60
|
static remove(key: string): Promise<void>;
|
|
64
61
|
}
|
|
65
|
-
|
|
66
62
|
// File: src/classes/ApiDataReturn.d.ts
|
|
67
63
|
import { ApiStatus } from './ApiStatus';
|
|
68
64
|
import { ApiErrorItem } from './ApiErrorItem';
|
|
69
65
|
import { ApiData, ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
|
|
70
|
-
|
|
71
66
|
/**
|
|
72
67
|
* Class for processing API response data.
|
|
73
68
|
*/
|
|
@@ -78,12 +73,10 @@ export declare class ApiDataReturn<T = any> {
|
|
|
78
73
|
getAndStatus(status: ApiStatus): ApiData<T>;
|
|
79
74
|
getData(): ApiData<T> | undefined;
|
|
80
75
|
}
|
|
81
|
-
|
|
82
76
|
// File: src/classes/ApiDefault.d.ts
|
|
83
77
|
import { ApiDefaultValue, ApiFetch } from '../types/apiTypes';
|
|
84
|
-
|
|
85
78
|
/**
|
|
86
|
-
* Class for default API request data.
|
|
79
|
+
* Class for working with default API request data.
|
|
87
80
|
*/
|
|
88
81
|
export declare class ApiDefault {
|
|
89
82
|
is(): boolean;
|
|
@@ -91,26 +84,22 @@ export declare class ApiDefault {
|
|
|
91
84
|
request(request: ApiFetch['request']): ApiFetch['request'];
|
|
92
85
|
set(request: ApiDefaultValue): this;
|
|
93
86
|
}
|
|
94
|
-
|
|
95
87
|
// File: src/classes/ApiError.d.ts
|
|
96
88
|
import { ApiErrorItem } from './ApiErrorItem';
|
|
97
89
|
import { ApiErrorStorage } from './ApiErrorStorage';
|
|
98
90
|
import { ApiMethodItem } from '../types/apiTypes';
|
|
99
|
-
|
|
100
91
|
/**
|
|
101
|
-
* API error
|
|
92
|
+
* Utility for managing API error storage and creating error items.
|
|
102
93
|
*/
|
|
103
94
|
export declare class ApiError {
|
|
104
95
|
static getStorage(): ApiErrorStorage;
|
|
105
|
-
static add(item: any, url?: string | RegExp, method?: ApiMethodItem): void;
|
|
96
|
+
static add(item: any | any[], url?: string | RegExp, method?: ApiMethodItem): void;
|
|
106
97
|
static getItem(method: ApiMethodItem, response: Response): Promise<ApiErrorItem>;
|
|
107
98
|
}
|
|
108
|
-
|
|
109
99
|
// File: src/classes/ApiErrorItem.d.ts
|
|
110
100
|
import { ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
|
|
111
|
-
|
|
112
101
|
/**
|
|
113
|
-
* Class for extracting data from API error
|
|
102
|
+
* Class for managing and extracting data from an API error response.
|
|
114
103
|
*/
|
|
115
104
|
export declare class ApiErrorItem {
|
|
116
105
|
constructor(method: ApiMethodItem, response: Response, error: ApiErrorStorageItem);
|
|
@@ -121,21 +110,17 @@ export declare class ApiErrorItem {
|
|
|
121
110
|
getMessage(): string | undefined;
|
|
122
111
|
getStatus(): number;
|
|
123
112
|
}
|
|
124
|
-
|
|
125
113
|
// File: src/classes/ApiErrorStorage.d.ts
|
|
126
114
|
import { ApiErrorStorageList, ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
|
|
127
|
-
|
|
128
115
|
/**
|
|
129
|
-
* Manager for API error states.
|
|
116
|
+
* Manager for handling and identifying API error states.
|
|
130
117
|
*/
|
|
131
118
|
export declare class ApiErrorStorage {
|
|
132
119
|
find(method: ApiMethodItem, response: Response): Promise<ApiErrorStorageItem>;
|
|
133
|
-
add(item: any, url?: string | RegExp, method?: ApiMethodItem): this;
|
|
120
|
+
add(item: any | any[], url?: string | RegExp, method?: ApiMethodItem): this;
|
|
134
121
|
}
|
|
135
|
-
|
|
136
122
|
// File: src/classes/ApiHeaders.d.ts
|
|
137
123
|
import { ApiFetch, ApiHeadersValue } from '../types/apiTypes';
|
|
138
|
-
|
|
139
124
|
/**
|
|
140
125
|
* Class for managing HTTP request headers.
|
|
141
126
|
*/
|
|
@@ -144,20 +129,17 @@ export declare class ApiHeaders {
|
|
|
144
129
|
getByRequest(request: ApiFetch['request'], value?: Record<string, string> | null, type?: string): Record<string, string> | undefined;
|
|
145
130
|
set(headers: ApiHeadersValue): this;
|
|
146
131
|
}
|
|
147
|
-
|
|
148
132
|
// File: src/classes/ApiHydration.d.ts
|
|
149
133
|
import { ApiResponse } from './ApiResponse';
|
|
150
134
|
import { ApiFetch, ApiHydrationList } from '../types/apiTypes';
|
|
151
|
-
|
|
152
135
|
/**
|
|
153
|
-
*
|
|
136
|
+
* Class for collecting API data for hydration on the client side during SSR.
|
|
154
137
|
*/
|
|
155
138
|
export declare class ApiHydration {
|
|
156
139
|
initResponse(response: ApiResponse): void;
|
|
157
140
|
toClient<T>(apiFetch: ApiFetch, response: T): void;
|
|
158
141
|
toString(): string;
|
|
159
142
|
}
|
|
160
|
-
|
|
161
143
|
// File: src/classes/ApiInstance.d.ts
|
|
162
144
|
import { LoadingInstance } from './LoadingInstance';
|
|
163
145
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
@@ -168,7 +150,6 @@ import { ApiPreparation } from './ApiPreparation';
|
|
|
168
150
|
import { ApiResponse } from './ApiResponse';
|
|
169
151
|
import { ApiStatus } from './ApiStatus';
|
|
170
152
|
import { ApiDefaultValue, ApiFetch, ApiHeadersValue, ApiMethod, ApiPreparationEnd } from '../types/apiTypes';
|
|
171
|
-
|
|
172
153
|
export type ApiInstanceOptions = {
|
|
173
154
|
headersClass?: typeof ApiHeaders;
|
|
174
155
|
requestDefaultClass?: typeof ApiDefault;
|
|
@@ -179,9 +160,8 @@ export type ApiInstanceOptions = {
|
|
|
179
160
|
errorCenterClass?: ErrorCenterInstance;
|
|
180
161
|
hydrationClass?: typeof ApiHydration;
|
|
181
162
|
};
|
|
182
|
-
|
|
183
163
|
/**
|
|
184
|
-
* Core class for HTTP requests
|
|
164
|
+
* Core class for managing HTTP requests using the Fetch API.
|
|
185
165
|
*/
|
|
186
166
|
export declare class ApiInstance {
|
|
187
167
|
constructor(url?: string, options?: ApiInstanceOptions);
|
|
@@ -208,12 +188,10 @@ export declare class ApiInstance {
|
|
|
208
188
|
patch<T>(request: ApiFetch): Promise<T>;
|
|
209
189
|
delete<T>(request: ApiFetch): Promise<T>;
|
|
210
190
|
}
|
|
211
|
-
|
|
212
191
|
// File: src/classes/ApiPreparation.d.ts
|
|
213
192
|
import { ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
|
|
214
|
-
|
|
215
193
|
/**
|
|
216
|
-
* Class for
|
|
194
|
+
* Class for preparing requests.
|
|
217
195
|
*/
|
|
218
196
|
export declare class ApiPreparation {
|
|
219
197
|
make(active: boolean, apiFetch: ApiFetch): Promise<void>;
|
|
@@ -221,13 +199,11 @@ export declare class ApiPreparation {
|
|
|
221
199
|
set(callback: (apiFetch: ApiFetch) => Promise<void>): this;
|
|
222
200
|
setEnd(callback: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>): this;
|
|
223
201
|
}
|
|
224
|
-
|
|
225
202
|
// File: src/classes/ApiResponse.d.ts
|
|
226
203
|
import { ApiDefault } from './ApiDefault';
|
|
227
204
|
import { ApiFetch, ApiMethod, ApiResponseItem } from '../types/apiTypes';
|
|
228
|
-
|
|
229
205
|
/**
|
|
230
|
-
* Class for API
|
|
206
|
+
* Class for working with API responses.
|
|
231
207
|
*/
|
|
232
208
|
export declare class ApiResponse {
|
|
233
209
|
constructor(requestDefault: ApiDefault);
|
|
@@ -238,12 +214,10 @@ export declare class ApiResponse {
|
|
|
238
214
|
emulator<T>(apiFetch: ApiFetch): Promise<T | undefined>;
|
|
239
215
|
emulatorAsync<T>(apiFetch: ApiFetch): T | undefined;
|
|
240
216
|
}
|
|
241
|
-
|
|
242
217
|
// File: src/classes/ApiStatus.d.ts
|
|
243
218
|
import { ApiStatusItem, ApiStatusType } from '../types/apiTypes';
|
|
244
|
-
|
|
245
219
|
/**
|
|
246
|
-
* Class for API request status.
|
|
220
|
+
* Class for managing API request status.
|
|
247
221
|
*/
|
|
248
222
|
export declare class ApiStatus {
|
|
249
223
|
get(): ApiStatusItem | undefined;
|
|
@@ -262,12 +236,10 @@ export declare class ApiStatus {
|
|
|
262
236
|
setLastCode(code?: string): this;
|
|
263
237
|
setLastMessage(message?: string): this;
|
|
264
238
|
}
|
|
265
|
-
|
|
266
239
|
// File: src/classes/BroadcastMessage.d.ts
|
|
267
240
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
268
|
-
|
|
269
241
|
/**
|
|
270
|
-
* Class for BroadcastChannel
|
|
242
|
+
* Class for working with BroadcastChannel messages.
|
|
271
243
|
*/
|
|
272
244
|
export declare class BroadcastMessage<Message = any> {
|
|
273
245
|
constructor(name: string, callback?: ((event: MessageEvent<Message>) => void) | undefined, callbackError?: ((event: MessageEvent<Message>) => void) | undefined, errorCenter?: ErrorCenterInstance);
|
|
@@ -277,18 +249,18 @@ export declare class BroadcastMessage<Message = any> {
|
|
|
277
249
|
setCallbackError(callbackError: (event: MessageEvent<Message>) => void): this;
|
|
278
250
|
destroy(): this;
|
|
279
251
|
}
|
|
280
|
-
|
|
281
252
|
// File: src/classes/Cache.d.ts
|
|
282
253
|
/**
|
|
283
|
-
*
|
|
254
|
+
* Simple in-memory cache class.
|
|
255
|
+
* @deprecated
|
|
284
256
|
*/
|
|
285
257
|
export declare class Cache {
|
|
286
258
|
get<T>(name: string, callback: () => T, comparison?: any[]): T;
|
|
287
259
|
getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
|
|
288
260
|
}
|
|
289
|
-
|
|
290
261
|
// File: src/classes/CacheItem.d.ts
|
|
291
262
|
/**
|
|
263
|
+
* Class for managing a single cached value.
|
|
292
264
|
* @deprecated
|
|
293
265
|
*/
|
|
294
266
|
export declare class CacheItem<T> {
|
|
@@ -297,21 +269,20 @@ export declare class CacheItem<T> {
|
|
|
297
269
|
getCacheOld(): T | undefined;
|
|
298
270
|
getCacheAsync(comparison: any[]): Promise<T>;
|
|
299
271
|
}
|
|
300
|
-
|
|
301
272
|
// File: src/classes/CacheStatic.d.ts
|
|
273
|
+
import { Cache } from './Cache';
|
|
302
274
|
/**
|
|
275
|
+
* Static cache class.
|
|
303
276
|
* @deprecated
|
|
304
277
|
*/
|
|
305
278
|
export declare class CacheStatic {
|
|
306
279
|
static get<T>(name: string, callback: () => T, comparison?: any[]): T;
|
|
307
280
|
static getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
|
|
308
281
|
}
|
|
309
|
-
|
|
310
282
|
// File: src/classes/Cookie.d.ts
|
|
311
283
|
import { CookieOptions } from './CookieStorage';
|
|
312
|
-
|
|
313
284
|
/**
|
|
314
|
-
* Class for
|
|
285
|
+
* Class for working with cookies.
|
|
315
286
|
*/
|
|
316
287
|
export declare class Cookie<T> {
|
|
317
288
|
static getInstance<T>(name: string): Cookie<T>;
|
|
@@ -320,25 +291,24 @@ export declare class Cookie<T> {
|
|
|
320
291
|
set(value?: T | string | (() => (T | string)), options?: CookieOptions): void;
|
|
321
292
|
remove(): void;
|
|
322
293
|
}
|
|
323
|
-
|
|
324
294
|
// File: src/classes/CookieBlock.d.ts
|
|
325
295
|
import { CookieBlockInstance } from './CookieBlockInstance';
|
|
326
|
-
|
|
327
296
|
/**
|
|
328
|
-
*
|
|
297
|
+
* Class for changing cookie access status.
|
|
329
298
|
*/
|
|
330
299
|
export declare class CookieBlock {
|
|
331
300
|
static getItem(): CookieBlockInstance;
|
|
332
301
|
static get(): boolean;
|
|
333
302
|
static set(value: boolean): void;
|
|
334
303
|
}
|
|
335
|
-
|
|
336
304
|
// File: src/classes/CookieBlockInstance.d.ts
|
|
305
|
+
/**
|
|
306
|
+
* Class for changing cookie access status.
|
|
307
|
+
*/
|
|
337
308
|
export declare class CookieBlockInstance {
|
|
338
309
|
get(): boolean;
|
|
339
310
|
set(value: boolean): void;
|
|
340
311
|
}
|
|
341
|
-
|
|
342
312
|
// File: src/classes/CookieStorage.d.ts
|
|
343
313
|
export type CookieSameSite = 'strict' | 'lax';
|
|
344
314
|
export type CookieOptions = {
|
|
@@ -351,9 +321,8 @@ export type CookieOptions = {
|
|
|
351
321
|
partitioned?: boolean;
|
|
352
322
|
arguments?: string[] | Record<string, string | number | boolean>;
|
|
353
323
|
};
|
|
354
|
-
|
|
355
324
|
/**
|
|
356
|
-
*
|
|
325
|
+
* Class for managing cookie storage.
|
|
357
326
|
*/
|
|
358
327
|
export declare class CookieStorage {
|
|
359
328
|
static init(getListener?: (key: string) => any | undefined, getListenerRaw?: () => string, setListener?: (key: string, value: any, cookie: string, options?: CookieOptions) => void): void;
|
|
@@ -363,12 +332,10 @@ export declare class CookieStorage {
|
|
|
363
332
|
static remove(name: string): void;
|
|
364
333
|
static update(): void;
|
|
365
334
|
}
|
|
366
|
-
|
|
367
335
|
// File: src/classes/DataStorage.d.ts
|
|
368
336
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
369
|
-
|
|
370
337
|
/**
|
|
371
|
-
* localStorage
|
|
338
|
+
* Class for working with localStorage and sessionStorage.
|
|
372
339
|
*/
|
|
373
340
|
export declare class DataStorage<T> {
|
|
374
341
|
static setPrefix(newPrefix: string): void;
|
|
@@ -378,14 +345,12 @@ export declare class DataStorage<T> {
|
|
|
378
345
|
remove(): this;
|
|
379
346
|
update(): this;
|
|
380
347
|
}
|
|
381
|
-
|
|
382
348
|
// File: src/classes/Datetime.d.ts
|
|
383
349
|
import { GeoIntl } from './GeoIntl';
|
|
384
350
|
import { NumberOrStringOrDate } from '../types/basicTypes';
|
|
385
351
|
import { GeoDate, GeoFirstDay, GeoHours, GeoTimeZoneStyle } from '../types/geoTypes';
|
|
386
|
-
|
|
387
352
|
/**
|
|
388
|
-
*
|
|
353
|
+
* A class for working with dates.
|
|
389
354
|
*/
|
|
390
355
|
export declare class Datetime {
|
|
391
356
|
constructor(date?: NumberOrStringOrDate, type?: GeoDate, code?: string);
|
|
@@ -460,13 +425,11 @@ export declare class Datetime {
|
|
|
460
425
|
cloneDayNext(): Datetime;
|
|
461
426
|
cloneDayPrevious(): Datetime;
|
|
462
427
|
}
|
|
463
|
-
|
|
464
428
|
// File: src/classes/ErrorCenter.d.ts
|
|
465
429
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
466
430
|
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
467
|
-
|
|
468
431
|
/**
|
|
469
|
-
*
|
|
432
|
+
* Class for managing error storage and handling.
|
|
470
433
|
*/
|
|
471
434
|
export declare class ErrorCenter {
|
|
472
435
|
static getItem(): ErrorCenterInstance;
|
|
@@ -478,23 +441,25 @@ export declare class ErrorCenter {
|
|
|
478
441
|
static addHandlerList(handlers: ErrorCenterHandlerList): void;
|
|
479
442
|
static on(cause: ErrorCenterCauseItem): void;
|
|
480
443
|
}
|
|
481
|
-
|
|
482
444
|
// File: src/classes/ErrorCenterHandler.d.ts
|
|
483
|
-
import { ErrorCenterCauseItem, ErrorCenterGroup, ErrorCenterHandlerCallback,
|
|
484
|
-
|
|
445
|
+
import { ErrorCenterCauseItem, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
446
|
+
/**
|
|
447
|
+
* Class for managing and triggering error handlers.
|
|
448
|
+
*/
|
|
485
449
|
export declare class ErrorCenterHandler {
|
|
486
450
|
constructor(handlers?: ErrorCenterHandlerList);
|
|
487
451
|
has(group: ErrorCenterGroup): boolean;
|
|
488
|
-
get(group: ErrorCenterGroup):
|
|
452
|
+
get(group: ErrorCenterGroup): any | undefined;
|
|
489
453
|
add(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): this;
|
|
490
454
|
addList(handlers: ErrorCenterHandlerList): this;
|
|
491
455
|
on(cause: ErrorCenterCauseItem): this;
|
|
492
456
|
}
|
|
493
|
-
|
|
494
457
|
// File: src/classes/ErrorCenterInstance.d.ts
|
|
495
458
|
import { ErrorCenterHandler } from './ErrorCenterHandler';
|
|
496
459
|
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
497
|
-
|
|
460
|
+
/**
|
|
461
|
+
* Class for managing error storage and handling within an instance.
|
|
462
|
+
*/
|
|
498
463
|
export declare class ErrorCenterInstance {
|
|
499
464
|
constructor(causes?: ErrorCenterCauseList, handler?: ErrorCenterHandler);
|
|
500
465
|
has(code: string, group?: string): boolean;
|
|
@@ -505,12 +470,10 @@ export declare class ErrorCenterInstance {
|
|
|
505
470
|
addHandlerList(handlers: ErrorCenterHandlerList): this;
|
|
506
471
|
on(cause: ErrorCenterCauseItem): this;
|
|
507
472
|
}
|
|
508
|
-
|
|
509
473
|
// File: src/classes/EventItem.d.ts
|
|
510
|
-
import { ElementOrString, ElementOrWindow,
|
|
511
|
-
|
|
474
|
+
import { ElementOrString, ElementOrWindow, EventListenerDetail, EventOptions } from '../types/basicTypes';
|
|
512
475
|
/**
|
|
513
|
-
*
|
|
476
|
+
* Advanced wrapper for managing event listeners.
|
|
514
477
|
*/
|
|
515
478
|
export declare class EventItem<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> {
|
|
516
479
|
constructor(elementSelector?: ElementOrString<E>, type?: string | string[], listener?: EventListenerDetail<O, D> | undefined, options?: EventOptions, detail?: D | undefined);
|
|
@@ -528,30 +491,26 @@ export declare class EventItem<E extends ElementOrWindow, O extends Event, D ext
|
|
|
528
491
|
toggle(activity: boolean): this;
|
|
529
492
|
reset(): this;
|
|
530
493
|
}
|
|
531
|
-
|
|
532
494
|
// File: src/classes/Formatters.d.ts
|
|
533
|
-
import { FormattersType, FormattersOptionsList,
|
|
534
|
-
|
|
495
|
+
import { FormattersType, FormattersOptionsList, FormattersListProp, FormattersItemProp, FormattersReturn } from '../types/formattersTypes';
|
|
535
496
|
/**
|
|
536
|
-
*
|
|
497
|
+
* Class for formatting a list of data.
|
|
537
498
|
*/
|
|
538
499
|
export declare class Formatters<Options extends FormattersOptionsList = FormattersOptionsList, List extends FormattersListProp = FormattersListProp, Item extends FormattersItemProp<List> = FormattersItemProp<List>> {
|
|
539
500
|
constructor(options: Options, list?: List | undefined);
|
|
540
501
|
is(): boolean;
|
|
541
|
-
isArray():
|
|
502
|
+
isArray(): this is this & { list: any[] };
|
|
542
503
|
length(): number;
|
|
543
|
-
getList(): any;
|
|
504
|
+
getList(): any[];
|
|
544
505
|
getOptions(): Options;
|
|
545
506
|
setList(list?: List): this;
|
|
546
507
|
to(): FormattersReturn<List, Options>;
|
|
547
508
|
}
|
|
548
|
-
|
|
549
509
|
// File: src/classes/Geo.d.ts
|
|
550
510
|
import { GeoInstance } from './GeoInstance';
|
|
551
511
|
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
552
|
-
|
|
553
512
|
/**
|
|
554
|
-
* Static
|
|
513
|
+
* Static class for working with geographical data.
|
|
555
514
|
*/
|
|
556
515
|
export declare class Geo {
|
|
557
516
|
static getObject(): GeoInstance;
|
|
@@ -577,15 +536,11 @@ export declare class Geo {
|
|
|
577
536
|
static setTimezone(timezone: number): void;
|
|
578
537
|
static setValueDefault(code?: string | (() => string)): void;
|
|
579
538
|
}
|
|
580
|
-
|
|
581
539
|
// File: src/classes/GeoFlag.d.ts
|
|
582
|
-
import { GeoIntl } from './GeoIntl';
|
|
583
540
|
import { GeoFlagItem, GeoFlagNational } from '../types/geoTypes';
|
|
584
|
-
|
|
585
541
|
export declare const GEO_FLAG_ICON_NAME = "f";
|
|
586
|
-
|
|
587
542
|
/**
|
|
588
|
-
*
|
|
543
|
+
* Class for working with flags and geographic information.
|
|
589
544
|
*/
|
|
590
545
|
export declare class GeoFlag {
|
|
591
546
|
static flags: Record<string, string>;
|
|
@@ -597,14 +552,11 @@ export declare class GeoFlag {
|
|
|
597
552
|
getNational(codes?: string[], sort?: boolean): GeoFlagNational[];
|
|
598
553
|
setCode(code: string): this;
|
|
599
554
|
}
|
|
600
|
-
|
|
601
555
|
// File: src/classes/GeoInstance.d.ts
|
|
602
556
|
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
603
|
-
|
|
604
557
|
export declare const UI_GEO_COOKIE_KEY = "ui-geo-code";
|
|
605
|
-
|
|
606
558
|
/**
|
|
607
|
-
*
|
|
559
|
+
* Base class for working with geographic data.
|
|
608
560
|
*/
|
|
609
561
|
export declare class GeoInstance {
|
|
610
562
|
constructor();
|
|
@@ -625,19 +577,17 @@ export declare class GeoInstance {
|
|
|
625
577
|
getTimezone(): number;
|
|
626
578
|
getTimezoneFormat(): string;
|
|
627
579
|
find(code: string): GeoItemFull;
|
|
628
|
-
toStandard(item: GeoItem): string;
|
|
580
|
+
toStandard(item: GeoItem, language?: string): string;
|
|
629
581
|
set(code: string, save?: boolean): void;
|
|
630
582
|
setTimezone(timezone: number): void;
|
|
631
583
|
setValueDefault(code?: string | (() => string)): void;
|
|
632
584
|
}
|
|
633
|
-
|
|
634
585
|
// File: src/classes/GeoIntl.d.ts
|
|
635
586
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
636
587
|
import { NumberOrStringOrDate, NumberOrString, ItemValue } from '../types/basicTypes';
|
|
637
588
|
import { GeoDate } from '../types/geoTypes';
|
|
638
|
-
|
|
639
589
|
/**
|
|
640
|
-
*
|
|
590
|
+
* API for internationalization.
|
|
641
591
|
*/
|
|
642
592
|
export declare class GeoIntl {
|
|
643
593
|
static isItem(code?: string): boolean;
|
|
@@ -670,10 +620,11 @@ export declare class GeoIntl {
|
|
|
670
620
|
time(value: NumberOrStringOrDate): string;
|
|
671
621
|
sort<T>(data: T[], compareFn?: (a: T, b: T) => [string, string]): T[];
|
|
672
622
|
}
|
|
673
|
-
|
|
674
623
|
// File: src/classes/GeoPhone.d.ts
|
|
675
624
|
import { GeoPhoneValue, GeoPhoneMap, GeoPhoneMapInfo } from '../types/geoTypes';
|
|
676
|
-
|
|
625
|
+
/**
|
|
626
|
+
* A class for storing and processing phone number masks.
|
|
627
|
+
*/
|
|
677
628
|
export declare class GeoPhone {
|
|
678
629
|
static get(code: string): GeoPhoneValue | undefined;
|
|
679
630
|
static getByPhone(phone: string): GeoPhoneMapInfo;
|
|
@@ -683,17 +634,20 @@ export declare class GeoPhone {
|
|
|
683
634
|
static toMask(phone: string, masks?: string[]): string | undefined;
|
|
684
635
|
static removeZero(phone: string): string;
|
|
685
636
|
}
|
|
686
|
-
|
|
687
637
|
// File: src/classes/Global.d.ts
|
|
638
|
+
/**
|
|
639
|
+
* Static utility for global application data.
|
|
640
|
+
*/
|
|
688
641
|
export declare class Global {
|
|
689
642
|
static getItem(): Record<string, any>;
|
|
690
643
|
static get<R = any>(name: string): R;
|
|
691
644
|
static add(data: Record<string, any>): void;
|
|
692
645
|
}
|
|
693
|
-
|
|
694
646
|
// File: src/classes/Hash.d.ts
|
|
695
647
|
import { HashInstance } from './HashInstance';
|
|
696
|
-
|
|
648
|
+
/**
|
|
649
|
+
* Static class for URL hash data.
|
|
650
|
+
*/
|
|
697
651
|
export declare class Hash {
|
|
698
652
|
static getItem(): HashInstance;
|
|
699
653
|
static get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
@@ -702,20 +656,22 @@ export declare class Hash {
|
|
|
702
656
|
static removeWatch<T>(name: string, callback: (value: T) => void): void;
|
|
703
657
|
static reload(): void;
|
|
704
658
|
}
|
|
705
|
-
|
|
706
659
|
// File: src/classes/HashInstance.d.ts
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
reload(): this;
|
|
660
|
+
import { UrlInstanceAbstract } from './UrlInstanceAbstract';
|
|
661
|
+
/**
|
|
662
|
+
* Class for URL hash data.
|
|
663
|
+
*/
|
|
664
|
+
export declare class HashInstance extends UrlInstanceAbstract {
|
|
713
665
|
}
|
|
714
|
-
|
|
715
666
|
// File: src/classes/Icons.d.ts
|
|
716
667
|
export type IconsItem = string | Promise<string | any> | (() => Promise<string | any>);
|
|
717
|
-
export type IconsConfig = {
|
|
718
|
-
|
|
668
|
+
export type IconsConfig = {
|
|
669
|
+
url?: string;
|
|
670
|
+
list?: Record<string, IconsItem>;
|
|
671
|
+
};
|
|
672
|
+
/**
|
|
673
|
+
* Class for managing icons.
|
|
674
|
+
*/
|
|
719
675
|
export declare class Icons {
|
|
720
676
|
static is(index: string): boolean;
|
|
721
677
|
static get(index: string, url?: string, wait?: number): Promise<string>;
|
|
@@ -729,11 +685,12 @@ export declare class Icons {
|
|
|
729
685
|
static setUrl(url: string): void;
|
|
730
686
|
static setConfig(config: IconsConfig): void;
|
|
731
687
|
}
|
|
732
|
-
|
|
733
688
|
// File: src/classes/Loading.d.ts
|
|
734
689
|
import { LoadingInstance } from './LoadingInstance';
|
|
735
690
|
import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
|
|
736
|
-
|
|
691
|
+
/**
|
|
692
|
+
* Class for working with global loading.
|
|
693
|
+
*/
|
|
737
694
|
export declare class Loading {
|
|
738
695
|
static is(): boolean;
|
|
739
696
|
static get(): number;
|
|
@@ -743,12 +700,14 @@ export declare class Loading {
|
|
|
743
700
|
static registrationEvent(listener: EventListenerDetail<CustomEvent, any>, element?: ElementOrString<HTMLElement>): void;
|
|
744
701
|
static unregistrationEvent(listener: EventListenerDetail<CustomEvent, any>, element?: ElementOrString<HTMLElement>): void;
|
|
745
702
|
}
|
|
746
|
-
|
|
747
703
|
// File: src/classes/LoadingInstance.d.ts
|
|
748
704
|
import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
705
|
+
export type LoadingDetail = {
|
|
706
|
+
loading: boolean;
|
|
707
|
+
};
|
|
708
|
+
/**
|
|
709
|
+
* Class for working with global loading.
|
|
710
|
+
*/
|
|
752
711
|
export declare class LoadingInstance {
|
|
753
712
|
constructor(eventName?: string);
|
|
754
713
|
is(): boolean;
|
|
@@ -758,13 +717,14 @@ export declare class LoadingInstance {
|
|
|
758
717
|
registrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
|
|
759
718
|
unregistrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
|
|
760
719
|
}
|
|
761
|
-
|
|
762
720
|
// File: src/classes/Meta.d.ts
|
|
763
721
|
import { MetaManager } from './MetaManager';
|
|
764
722
|
import { MetaOg } from './MetaOg';
|
|
765
723
|
import { MetaTwitter } from './MetaTwitter';
|
|
766
724
|
import { MetaRobots, MetaTag } from '../types/metaTypes';
|
|
767
|
-
|
|
725
|
+
/**
|
|
726
|
+
* Unified class for managing all types of meta tags.
|
|
727
|
+
*/
|
|
768
728
|
export declare class Meta extends MetaManager<MetaTag[]> {
|
|
769
729
|
constructor();
|
|
770
730
|
getOg(): MetaOg;
|
|
@@ -791,9 +751,8 @@ export declare class Meta extends MetaManager<MetaTag[]> {
|
|
|
791
751
|
html(): string;
|
|
792
752
|
htmlTitle(): string;
|
|
793
753
|
}
|
|
794
|
-
|
|
795
754
|
// File: src/classes/MetaManager.d.ts
|
|
796
|
-
export declare class MetaManager<T extends readonly string[], Key extends
|
|
755
|
+
export declare class MetaManager<T extends readonly string[], Key extends any = any> {
|
|
797
756
|
constructor(listMeta: T, isProperty?: boolean);
|
|
798
757
|
getListMeta(): T;
|
|
799
758
|
get(name: Key): string;
|
|
@@ -802,11 +761,12 @@ export declare class MetaManager<T extends readonly string[], Key extends keyof
|
|
|
802
761
|
set(name: Key, content: string): this;
|
|
803
762
|
setByList(metaList: any): this;
|
|
804
763
|
}
|
|
805
|
-
|
|
806
764
|
// File: src/classes/MetaOg.d.ts
|
|
807
765
|
import { MetaManager } from './MetaManager';
|
|
808
766
|
import { MetaOpenGraphTag, MetaOpenGraphType } from '../types/metaTypes';
|
|
809
|
-
|
|
767
|
+
/**
|
|
768
|
+
* Class for Open Graph meta tags.
|
|
769
|
+
*/
|
|
810
770
|
export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
|
|
811
771
|
constructor();
|
|
812
772
|
getTitle(): string;
|
|
@@ -824,13 +784,14 @@ export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
|
|
|
824
784
|
setLocale(locale: string): this;
|
|
825
785
|
setSiteName(siteName: string): this;
|
|
826
786
|
}
|
|
827
|
-
|
|
828
787
|
// File: src/classes/MetaStatic.d.ts
|
|
829
788
|
import { Meta } from './Meta';
|
|
830
789
|
import { MetaOg } from './MetaOg';
|
|
831
790
|
import { MetaTwitter } from './MetaTwitter';
|
|
832
791
|
import { MetaRobots } from '../types/metaTypes';
|
|
833
|
-
|
|
792
|
+
/**
|
|
793
|
+
* Static class for managing meta tags.
|
|
794
|
+
*/
|
|
834
795
|
export declare class MetaStatic {
|
|
835
796
|
static getItem(): Meta;
|
|
836
797
|
static getOg(): MetaOg;
|
|
@@ -857,11 +818,12 @@ export declare class MetaStatic {
|
|
|
857
818
|
static html(): string;
|
|
858
819
|
static htmlTitle(): string;
|
|
859
820
|
}
|
|
860
|
-
|
|
861
821
|
// File: src/classes/MetaTwitter.d.ts
|
|
862
822
|
import { MetaManager } from './MetaManager';
|
|
863
823
|
import { MetaTwitterCard, MetaTwitterTag } from '../types/metaTypes';
|
|
864
|
-
|
|
824
|
+
/**
|
|
825
|
+
* Class for Twitter Card meta tags.
|
|
826
|
+
*/
|
|
865
827
|
export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
866
828
|
constructor();
|
|
867
829
|
getCard(): MetaTwitterCard;
|
|
@@ -879,10 +841,31 @@ export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
|
879
841
|
setDescription(description: string): this;
|
|
880
842
|
setImage(image: string): this;
|
|
881
843
|
}
|
|
882
|
-
|
|
844
|
+
// File: src/classes/Query.d.ts
|
|
845
|
+
import { QueryInstance } from './QueryInstance';
|
|
846
|
+
/**
|
|
847
|
+
* Static class for URL query parameters.
|
|
848
|
+
*/
|
|
849
|
+
export declare class Query {
|
|
850
|
+
static getItem(): QueryInstance;
|
|
851
|
+
static get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
852
|
+
static set<T>(name: string, callback: T | (() => T)): void;
|
|
853
|
+
static addWatch<T>(name: string, callback: (value: T) => void): void;
|
|
854
|
+
static removeWatch<T>(name: string, callback: (value: T) => void): void;
|
|
855
|
+
static reload(): void;
|
|
856
|
+
}
|
|
857
|
+
// File: src/classes/QueryInstance.d.ts
|
|
858
|
+
import { UrlInstanceAbstract } from './UrlInstanceAbstract';
|
|
859
|
+
/**
|
|
860
|
+
* Class for URL query parameters.
|
|
861
|
+
*/
|
|
862
|
+
export declare class QueryInstance extends UrlInstanceAbstract {
|
|
863
|
+
}
|
|
883
864
|
// File: src/classes/ResumableTimer.d.ts
|
|
884
865
|
import { FunctionVoid } from '../types/basicTypes';
|
|
885
|
-
|
|
866
|
+
/**
|
|
867
|
+
* Class for creating a timer that can be paused and resumed.
|
|
868
|
+
*/
|
|
886
869
|
export declare class ResumableTimer {
|
|
887
870
|
constructor(callback: FunctionVoid, delay?: number, blockStart?: boolean);
|
|
888
871
|
resume(): this;
|
|
@@ -890,23 +873,26 @@ export declare class ResumableTimer {
|
|
|
890
873
|
reset(): this;
|
|
891
874
|
clear(): this;
|
|
892
875
|
}
|
|
893
|
-
|
|
894
876
|
// File: src/classes/ScrollbarWidth.d.ts
|
|
895
877
|
import { DataStorage } from './DataStorage';
|
|
896
|
-
|
|
878
|
+
/**
|
|
879
|
+
* Class for getting the scroll width.
|
|
880
|
+
*/
|
|
897
881
|
export declare class ScrollbarWidth {
|
|
898
882
|
static is(): Promise<boolean>;
|
|
899
883
|
static get(): Promise<number>;
|
|
900
884
|
static getStorage(): DataStorage<number>;
|
|
901
885
|
static getCalculate(): boolean;
|
|
902
886
|
}
|
|
903
|
-
|
|
904
887
|
// File: src/classes/SearchList.d.ts
|
|
905
888
|
import { SearchListData } from './SearchListData';
|
|
906
889
|
import { SearchListItem } from './SearchListItem';
|
|
890
|
+
import { SearchListMatcher } from './SearchListMatcher';
|
|
907
891
|
import { SearchListOptions } from './SearchListOptions';
|
|
908
892
|
import { SearchColumns, SearchFormatList, SearchItem, SearchListValue, SearchOptions } from '../types/searchTypes';
|
|
909
|
-
|
|
893
|
+
/**
|
|
894
|
+
* Main class for managing a searchable list.
|
|
895
|
+
*/
|
|
910
896
|
export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>> {
|
|
911
897
|
constructor(list: SearchListValue<T>, columns?: K, value?: string, options?: SearchOptions);
|
|
912
898
|
getData(): SearchListData<T, K>;
|
|
@@ -921,16 +907,17 @@ export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>
|
|
|
921
907
|
setOptions(options: SearchOptions): this;
|
|
922
908
|
to(): SearchFormatList<T, K>;
|
|
923
909
|
}
|
|
924
|
-
|
|
925
910
|
// File: src/classes/SearchListData.d.ts
|
|
926
911
|
import { SearchListItem } from './SearchListItem';
|
|
927
912
|
import { SearchListOptions } from './SearchListOptions';
|
|
928
|
-
import {
|
|
929
|
-
|
|
913
|
+
import { SearchCacheItem, SearchColumns, SearchFormatItem, SearchFormatList, SearchItem, SearchListValue } from '../types/searchTypes';
|
|
914
|
+
/**
|
|
915
|
+
* Class for managing search data list and its cache.
|
|
916
|
+
*/
|
|
930
917
|
export declare class SearchListData<T extends SearchItem, K extends SearchColumns<T>> {
|
|
931
918
|
constructor(list: SearchListValue<T>, columns: K | undefined, item: SearchListItem, options: SearchListOptions);
|
|
932
|
-
is():
|
|
933
|
-
isList():
|
|
919
|
+
is(): this is this & { list: T[]; columns: string[] };
|
|
920
|
+
isList(): this is this & { list: T[] };
|
|
934
921
|
getList(): SearchListValue<T>;
|
|
935
922
|
getColumns(): K | undefined;
|
|
936
923
|
setList(list: SearchListValue<T>): this;
|
|
@@ -939,23 +926,25 @@ export declare class SearchListData<T extends SearchItem, K extends SearchColumn
|
|
|
939
926
|
forEach(callback: (item: SearchCacheItem<T>['item'], value: SearchCacheItem<T>['value']) => SearchFormatItem<T, K> | undefined): SearchFormatList<T, K>;
|
|
940
927
|
toFormatItem(item: T, selection: boolean): SearchFormatItem<T, K>;
|
|
941
928
|
}
|
|
942
|
-
|
|
943
929
|
// File: src/classes/SearchListItem.d.ts
|
|
944
930
|
import { SearchListOptions } from './SearchListOptions';
|
|
945
|
-
|
|
931
|
+
/**
|
|
932
|
+
* Class representing a single search item's state.
|
|
933
|
+
*/
|
|
946
934
|
export declare class SearchListItem {
|
|
947
935
|
constructor(value: string | undefined, options: SearchListOptions);
|
|
948
|
-
is():
|
|
936
|
+
is(): this is this & { value: string };
|
|
949
937
|
isSearch(): boolean;
|
|
950
938
|
get(): string;
|
|
951
939
|
set(value?: string): this;
|
|
952
940
|
}
|
|
953
|
-
|
|
954
941
|
// File: src/classes/SearchListMatcher.d.ts
|
|
955
942
|
import { SearchListItem } from './SearchListItem';
|
|
956
943
|
import { SearchListOptions } from './SearchListOptions';
|
|
957
944
|
import { SearchCacheItem } from '../types/searchTypes';
|
|
958
|
-
|
|
945
|
+
/**
|
|
946
|
+
* Class for matching search values against the list.
|
|
947
|
+
*/
|
|
959
948
|
export declare class SearchListMatcher {
|
|
960
949
|
constructor(item: SearchListItem, options: SearchListOptions);
|
|
961
950
|
is(): boolean;
|
|
@@ -963,10 +952,11 @@ export declare class SearchListMatcher {
|
|
|
963
952
|
get(): RegExp | undefined;
|
|
964
953
|
update(): void;
|
|
965
954
|
}
|
|
966
|
-
|
|
967
955
|
// File: src/classes/SearchListOptions.d.ts
|
|
968
956
|
import { SearchOptions } from '../types/searchTypes';
|
|
969
|
-
|
|
957
|
+
/**
|
|
958
|
+
* Class for managing search list options.
|
|
959
|
+
*/
|
|
970
960
|
export declare class SearchListOptions {
|
|
971
961
|
constructor(options?: SearchOptions | undefined);
|
|
972
962
|
getOptions(): SearchOptions;
|
|
@@ -977,8 +967,10 @@ export declare class SearchListOptions {
|
|
|
977
967
|
getClassName(): string;
|
|
978
968
|
setOptions(options: SearchOptions): this;
|
|
979
969
|
}
|
|
980
|
-
|
|
981
970
|
// File: src/classes/ServerStorage.d.ts
|
|
971
|
+
/**
|
|
972
|
+
* Class for managing data storage during server-side rendering.
|
|
973
|
+
*/
|
|
982
974
|
export declare class ServerStorage {
|
|
983
975
|
static init(listener: () => Record<string, any> | undefined): typeof ServerStorage;
|
|
984
976
|
static reset(): void;
|
|
@@ -989,8 +981,10 @@ export declare class ServerStorage {
|
|
|
989
981
|
static remove(key: string): void;
|
|
990
982
|
static toString(): string;
|
|
991
983
|
}
|
|
992
|
-
|
|
993
984
|
// File: src/classes/StorageCallback.d.ts
|
|
985
|
+
/**
|
|
986
|
+
* A class for working with callback lists for storage.
|
|
987
|
+
*/
|
|
994
988
|
export declare class StorageCallback<T = any, Callback = (value: T) => void | Promise<void>> {
|
|
995
989
|
static getInstance<T>(name: string, group?: string): StorageCallback<T, (value: T) => void | Promise<void>>;
|
|
996
990
|
constructor(name: string, group?: string);
|
|
@@ -1002,11 +996,12 @@ export declare class StorageCallback<T = any, Callback = (value: T) => void | Pr
|
|
|
1002
996
|
preparation(): this;
|
|
1003
997
|
run(value: T): Promise<this>;
|
|
1004
998
|
}
|
|
1005
|
-
|
|
1006
999
|
// File: src/classes/Translate.d.ts
|
|
1007
1000
|
import { TranslateInstance } from './TranslateInstance';
|
|
1008
1001
|
import { TranslateCode, TranslateConfig, TranslateDataFile, TranslateList } from '../types/translateTypes';
|
|
1009
|
-
|
|
1002
|
+
/**
|
|
1003
|
+
* Class for getting the translated text.
|
|
1004
|
+
*/
|
|
1010
1005
|
export declare class Translate {
|
|
1011
1006
|
static get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
|
|
1012
1007
|
static getItem(): TranslateInstance;
|
|
@@ -1023,10 +1018,11 @@ export declare class Translate {
|
|
|
1023
1018
|
static setReadApi(value: boolean): void;
|
|
1024
1019
|
static setConfig(config: TranslateConfig): void;
|
|
1025
1020
|
}
|
|
1026
|
-
|
|
1027
1021
|
// File: src/classes/TranslateFile.d.ts
|
|
1028
1022
|
import { TranslateDataFile, TranslateDataFileList } from '../types/translateTypes';
|
|
1029
|
-
|
|
1023
|
+
/**
|
|
1024
|
+
* Class for working with translation files.
|
|
1025
|
+
*/
|
|
1030
1026
|
export declare class TranslateFile {
|
|
1031
1027
|
constructor(data?: TranslateDataFile, language?: string | (() => string), location?: string | (() => string));
|
|
1032
1028
|
isFile(): boolean;
|
|
@@ -1035,11 +1031,12 @@ export declare class TranslateFile {
|
|
|
1035
1031
|
getList(): Promise<TranslateDataFileList | undefined>;
|
|
1036
1032
|
add(data: TranslateDataFile): void;
|
|
1037
1033
|
}
|
|
1038
|
-
|
|
1039
1034
|
// File: src/classes/TranslateInstance.d.ts
|
|
1040
1035
|
import { TranslateFile } from './TranslateFile';
|
|
1041
1036
|
import { TranslateCode, TranslateDataFile, TranslateList } from '../types/translateTypes';
|
|
1042
|
-
|
|
1037
|
+
/**
|
|
1038
|
+
* Class for getting the translated text.
|
|
1039
|
+
*/
|
|
1043
1040
|
export declare class TranslateInstance {
|
|
1044
1041
|
constructor(url?: string, propsName?: string, files?: TranslateFile);
|
|
1045
1042
|
get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
|
|
@@ -1055,8 +1052,21 @@ export declare class TranslateInstance {
|
|
|
1055
1052
|
setPropsName(name: string): this;
|
|
1056
1053
|
setReadApi(value: boolean): this;
|
|
1057
1054
|
}
|
|
1058
|
-
|
|
1055
|
+
// File: src/classes/UrlInstanceAbstract.d.ts
|
|
1056
|
+
/**
|
|
1057
|
+
* Base abstract class for working with URL-based states.
|
|
1058
|
+
*/
|
|
1059
|
+
export declare abstract class UrlInstanceAbstract {
|
|
1060
|
+
get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
1061
|
+
set<T>(name: string, callback: T | (() => T)): this;
|
|
1062
|
+
addWatch<T>(name: string, callback: (value: T) => void): this;
|
|
1063
|
+
removeWatch<T>(name: string, callback: (value: T) => void): this;
|
|
1064
|
+
reload(): this;
|
|
1065
|
+
}
|
|
1059
1066
|
// File: src/classes/UrlItem.d.ts
|
|
1067
|
+
/**
|
|
1068
|
+
* Isomorphic utility for URLs.
|
|
1069
|
+
*/
|
|
1060
1070
|
export declare class UrlItem {
|
|
1061
1071
|
static getInstance(): UrlItem;
|
|
1062
1072
|
constructor(url?: string | URL);
|
|
@@ -1072,376 +1082,273 @@ export declare class UrlItem {
|
|
|
1072
1082
|
get searchParams(): URLSearchParams;
|
|
1073
1083
|
get hash(): string;
|
|
1074
1084
|
get origin(): string;
|
|
1085
|
+
hasParam(name: string): boolean;
|
|
1086
|
+
getParam(name: string): string | undefined;
|
|
1087
|
+
getParams(): Record<string, any>;
|
|
1075
1088
|
set(url?: string | URL): this;
|
|
1089
|
+
setParam(name: string, value: string): this;
|
|
1090
|
+
setParams(params: Record<string, any>): this;
|
|
1091
|
+
deleteParam(name: string): this;
|
|
1076
1092
|
toString(): string;
|
|
1077
1093
|
toJSON(): string;
|
|
1078
1094
|
}
|
|
1079
|
-
|
|
1080
1095
|
// File: src/functions/addTagHighlightMatch.d.ts
|
|
1081
1096
|
export declare function addTagHighlightMatch(value: string, search?: string | RegExp, className?: string, shouldEscape?: boolean): string;
|
|
1082
|
-
|
|
1083
1097
|
// File: src/functions/anyToString.d.ts
|
|
1084
1098
|
export declare function anyToString<V>(value: V, isArrayString?: boolean, trim?: boolean): string;
|
|
1085
|
-
|
|
1086
1099
|
// File: src/functions/applyTemplate.d.ts
|
|
1087
1100
|
export declare const applyTemplate: (text: string, replacement?: Record<string, string | number | boolean> | string[]) => string;
|
|
1088
|
-
|
|
1089
1101
|
// File: src/functions/arrFill.d.ts
|
|
1090
1102
|
export declare function arrFill<T>(value: T, count: number): T[];
|
|
1091
|
-
|
|
1092
1103
|
// File: src/functions/blobToBase64.d.ts
|
|
1093
1104
|
export declare function blobToBase64(blob: Blob, clean?: boolean): Promise<string | undefined>;
|
|
1094
|
-
|
|
1095
1105
|
// File: src/functions/capitalize.d.ts
|
|
1096
1106
|
export declare function capitalize(value: string, isLocale?: boolean): string;
|
|
1097
|
-
|
|
1098
1107
|
// File: src/functions/copyObject.d.ts
|
|
1099
1108
|
export declare function copyObject<T>(value: T): T;
|
|
1100
|
-
|
|
1101
1109
|
// File: src/functions/copyObjectLite.d.ts
|
|
1102
1110
|
export declare function copyObjectLite<T, R = T>(value: T, source?: any): R;
|
|
1103
|
-
|
|
1104
1111
|
// File: src/functions/createElement.d.ts
|
|
1105
|
-
export declare function createElement<T extends HTMLElement>(parentElement?: HTMLElement, tagName?: string, options?:
|
|
1106
|
-
|
|
1112
|
+
export declare function createElement<T extends HTMLElement>(parentElement?: HTMLElement, tagName?: string, options?: Partial<T> | Record<keyof T, T[keyof T]> | ((element: T) => void), referenceElement?: HTMLElement): T | undefined;
|
|
1107
1113
|
// File: src/functions/domQuerySelector.d.ts
|
|
1108
1114
|
export declare function domQuerySelector<E extends Element = Element>(selectors: string): E | undefined;
|
|
1109
|
-
|
|
1110
1115
|
// File: src/functions/domQuerySelectorAll.d.ts
|
|
1111
1116
|
export declare function domQuerySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E> | undefined;
|
|
1112
|
-
|
|
1113
1117
|
// File: src/functions/encodeAttribute.d.ts
|
|
1114
1118
|
export declare function encodeAttribute(text: string): string;
|
|
1115
|
-
|
|
1116
1119
|
// File: src/functions/encodeLiteAttribute.d.ts
|
|
1117
1120
|
export declare function encodeLiteAttribute(text: string): string;
|
|
1118
|
-
|
|
1119
1121
|
// File: src/functions/ensureMaxSize.d.ts
|
|
1120
1122
|
export declare function ensureMaxSize(file: Uint8Array, compress?: number, type?: string): Promise<string>;
|
|
1121
|
-
|
|
1122
1123
|
// File: src/functions/escapeExp.d.ts
|
|
1123
1124
|
export declare function escapeExp(value: string): string;
|
|
1124
|
-
|
|
1125
1125
|
// File: src/functions/eventStopPropagation.d.ts
|
|
1126
1126
|
export declare function eventStopPropagation(event: Event): void;
|
|
1127
|
-
|
|
1128
1127
|
// File: src/functions/executeFunction.d.ts
|
|
1129
1128
|
import { FunctionArgs } from '../types/basicTypes';
|
|
1130
1129
|
export declare function executeFunction<T>(callback: T | FunctionArgs<any, T>, ...args: any[]): T;
|
|
1131
|
-
|
|
1132
1130
|
// File: src/functions/executePromise.d.ts
|
|
1133
|
-
export declare function executePromise<T>(callback: any, ...args: any[]): Promise<T>;
|
|
1134
|
-
|
|
1131
|
+
export declare function executePromise<T>(callback: ((...args: any[]) => Promise<T>) | ((...args: any[]) => T) | T, ...args: any[]): Promise<T>;
|
|
1135
1132
|
// File: src/functions/forEach.d.ts
|
|
1136
|
-
export declare function forEach<T, R>(data:
|
|
1137
|
-
|
|
1133
|
+
export declare function forEach<T, R, D extends T[] | Record<string, T> | Map<string, T> | Set<T> = T[] | Record<string, T> | Map<string, T> | Set<T>, K = D extends T[] ? number : string>(data: D & (T[] | Record<string, T> | Map<string, T> | Set<T>), callback: (item: T, key: K, dataMain: typeof data) => R, saveUndefined?: boolean): R[];
|
|
1138
1134
|
// File: src/functions/frame.d.ts
|
|
1139
1135
|
export declare function frame(callback: () => void, next?: () => boolean, end?: () => void): void;
|
|
1140
|
-
|
|
1141
1136
|
// File: src/functions/getArrayHighlightMatch.d.ts
|
|
1142
1137
|
import { HighlightMatchItem } from '../types/searchTypes';
|
|
1143
1138
|
export declare function getArrayHighlightMatch(value: string, search?: string | RegExp): HighlightMatchItem[];
|
|
1144
|
-
|
|
1145
1139
|
// File: src/functions/getAttributes.d.ts
|
|
1146
1140
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1147
1141
|
export declare function getAttributes<E extends ElementOrWindow>(element?: ElementOrString<E>): Record<string, string | undefined>;
|
|
1148
|
-
|
|
1149
1142
|
// File: src/functions/getClipboardData.d.ts
|
|
1150
1143
|
export declare function getClipboardData(event?: ClipboardEvent): Promise<string>;
|
|
1151
|
-
|
|
1152
1144
|
// File: src/functions/getColumn.d.ts
|
|
1153
1145
|
import { ObjectOrArray } from '../types/basicTypes';
|
|
1154
1146
|
export declare function getColumn<T, K extends keyof T>(array: ObjectOrArray<T>, column: K): (T[K] | undefined)[];
|
|
1155
|
-
|
|
1156
1147
|
// File: src/functions/getCurrentDate.d.ts
|
|
1157
1148
|
import { GeoDate } from '../types/geoTypes';
|
|
1158
1149
|
export declare function getCurrentDate(format?: GeoDate): string;
|
|
1159
|
-
|
|
1160
1150
|
// File: src/functions/getCurrentTime.d.ts
|
|
1161
1151
|
export declare function getCurrentTime(): number;
|
|
1162
|
-
|
|
1163
1152
|
// File: src/functions/getElement.d.ts
|
|
1164
1153
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1165
1154
|
export declare function getElement<E extends ElementOrWindow, R extends Exclude<E, Window>>(element?: ElementOrString<E>): R | undefined;
|
|
1166
|
-
|
|
1167
1155
|
// File: src/functions/getElementId.d.ts
|
|
1168
1156
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1169
1157
|
export declare function getElementId<E extends ElementOrWindow>(element?: ElementOrString<E>, selector?: string): string;
|
|
1170
1158
|
export declare function initGetElementId(newListener: () => string | number): void;
|
|
1171
|
-
|
|
1172
1159
|
// File: src/functions/getElementImage.d.ts
|
|
1173
1160
|
export declare function getElementImage(image: HTMLImageElement | string): HTMLImageElement | undefined;
|
|
1174
|
-
|
|
1175
1161
|
// File: src/functions/getElementItem.d.ts
|
|
1176
1162
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1177
1163
|
export declare function getElementItem<T extends ElementOrWindow, K extends keyof T, D>(element: ElementOrString<T>, index: K | string, defaultValue?: D): T[K] | D | undefined;
|
|
1178
|
-
|
|
1179
1164
|
// File: src/functions/getElementOrWindow.d.ts
|
|
1180
1165
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1181
1166
|
export declare function getElementOrWindow<E extends ElementOrWindow>(element?: ElementOrString<E>): E | undefined;
|
|
1182
|
-
|
|
1183
1167
|
// File: src/functions/getElementSafeScript.d.ts
|
|
1184
1168
|
export declare function getElementSafeScript(id: string, data: any): string;
|
|
1185
|
-
|
|
1186
1169
|
// File: src/functions/getExactSearchExp.d.ts
|
|
1187
1170
|
export declare function getExactSearchExp(search: string): RegExp;
|
|
1188
|
-
|
|
1189
1171
|
// File: src/functions/getExp.d.ts
|
|
1190
1172
|
export declare function getExp(value: string, flags?: string, pattern?: string): RegExp;
|
|
1191
|
-
|
|
1192
1173
|
// File: src/functions/getFirst.d.ts
|
|
1193
1174
|
export declare function getFirst<T>(value: T | T[] | Record<string, T>): T | undefined;
|
|
1194
|
-
|
|
1195
1175
|
// File: src/functions/getHydrationData.d.ts
|
|
1196
1176
|
export declare function getHydrationData<T>(id: string, defaultValue: T, remove?: boolean): T;
|
|
1197
|
-
|
|
1198
1177
|
// File: src/functions/getItemByPath.d.ts
|
|
1199
1178
|
export declare function getItemByPath<T extends Record<string, any>, R = string>(item: T, path: string): R | undefined;
|
|
1200
|
-
|
|
1201
1179
|
// File: src/functions/getKey.d.ts
|
|
1202
1180
|
export declare function getKey(event: KeyboardEvent): string | number | undefined;
|
|
1203
|
-
|
|
1204
1181
|
// File: src/functions/getLength.d.ts
|
|
1205
1182
|
export declare function getLength(value: any): number;
|
|
1206
|
-
|
|
1207
1183
|
// File: src/functions/getLengthOfAllArray.d.ts
|
|
1208
1184
|
import { ObjectOrArray } from '../types/basicTypes';
|
|
1209
1185
|
export declare function getLengthOfAllArray(value: ObjectOrArray<string>): number[];
|
|
1210
|
-
|
|
1211
1186
|
// File: src/functions/getMaxLengthAllArray.d.ts
|
|
1212
1187
|
import { ObjectOrArray } from '../types/basicTypes';
|
|
1213
1188
|
export declare function getMaxLengthAllArray(data: ObjectOrArray<string>): number;
|
|
1214
|
-
|
|
1215
1189
|
// File: src/functions/getMinLengthAllArray.d.ts
|
|
1216
1190
|
import { ObjectOrArray } from '../types/basicTypes';
|
|
1217
1191
|
export declare function getMinLengthAllArray(data: ObjectOrArray<string>): number;
|
|
1218
|
-
|
|
1219
1192
|
// File: src/functions/getMouseClient.d.ts
|
|
1220
1193
|
import { ImageCoordinator } from '../types/basicTypes';
|
|
1221
1194
|
export declare function getMouseClient(event: MouseEvent & TouchEvent): ImageCoordinator;
|
|
1222
|
-
|
|
1223
1195
|
// File: src/functions/getMouseClientX.d.ts
|
|
1224
1196
|
export declare function getMouseClientX(event: MouseEvent & TouchEvent): number;
|
|
1225
|
-
|
|
1226
1197
|
// File: src/functions/getMouseClientY.d.ts
|
|
1227
1198
|
export declare function getMouseClientY(event: MouseEvent & TouchEvent): number;
|
|
1228
|
-
|
|
1229
1199
|
// File: src/functions/getObjectByKeys.d.ts
|
|
1230
1200
|
export declare function getObjectByKeys<T extends Record<string, any>, K extends keyof T>(data: T, keys: K[]): Pick<T, K>;
|
|
1231
|
-
|
|
1232
1201
|
// File: src/functions/getObjectNoUndefined.d.ts
|
|
1233
1202
|
export declare function getObjectNoUndefined<T extends Record<string | number, any>>(data: T, exception?: any): T;
|
|
1234
|
-
|
|
1235
1203
|
// File: src/functions/getObjectOrNone.d.ts
|
|
1236
1204
|
export declare function getObjectOrNone<T>(value: T): T & Record<string, any>;
|
|
1237
|
-
|
|
1238
1205
|
// File: src/functions/getOnlyText.d.ts
|
|
1239
1206
|
export declare function getOnlyText(text: any): string;
|
|
1240
|
-
|
|
1241
1207
|
// File: src/functions/getRandomText.d.ts
|
|
1242
1208
|
export declare function getRandomText(min: number, max: number, symbol?: string, lengthMin?: number, lengthMax?: number): string;
|
|
1243
|
-
|
|
1244
1209
|
// File: src/functions/getRequestString.d.ts
|
|
1245
1210
|
export declare function getRequestString(request: Record<string, any> | any[], sign?: string, separator?: string, subKey?: string): string;
|
|
1246
|
-
|
|
1247
1211
|
// File: src/functions/getSearchExp.d.ts
|
|
1248
1212
|
export declare function getSearchExp(search: string, limit?: number): RegExp;
|
|
1249
|
-
|
|
1250
1213
|
// File: src/functions/getSeparatingSearchExp.d.ts
|
|
1251
1214
|
export declare function getSeparatingSearchExp(search: string | RegExp, limit?: number): RegExp;
|
|
1252
|
-
|
|
1253
1215
|
// File: src/functions/getStepPercent.d.ts
|
|
1254
1216
|
export declare function getStepPercent(min: number | undefined, max: number): number;
|
|
1255
|
-
|
|
1256
1217
|
// File: src/functions/getStepValue.d.ts
|
|
1257
1218
|
export declare function getStepValue(min: number | undefined, max: number): number;
|
|
1258
|
-
|
|
1259
1219
|
// File: src/functions/goScroll.d.ts
|
|
1260
1220
|
export declare function goScroll(selector: string, elementTo: HTMLElement | undefined, elementCenter?: HTMLElement): void;
|
|
1261
|
-
|
|
1262
1221
|
// File: src/functions/goScrollSmooth.d.ts
|
|
1263
1222
|
export declare function goScrollSmooth<E extends HTMLElement>(element: E, options?: ScrollIntoViewOptions, shift?: number): void;
|
|
1264
|
-
|
|
1265
1223
|
// File: src/functions/goScrollTo.d.ts
|
|
1266
1224
|
export declare function goScrollTo(element?: HTMLElement, elementTo?: HTMLElement, behavior?: ScrollBehavior): void;
|
|
1267
|
-
|
|
1268
1225
|
// File: src/functions/handleShare.d.ts
|
|
1269
1226
|
export declare function handleShare(data: ShareData): Promise<boolean>;
|
|
1270
|
-
|
|
1271
1227
|
// File: src/functions/inArray.d.ts
|
|
1272
1228
|
export declare function inArray<T>(array: T[], value: T): boolean;
|
|
1273
|
-
|
|
1274
1229
|
// File: src/functions/initScrollbarOffset.d.ts
|
|
1275
1230
|
export declare function initScrollbarOffset(): Promise<void>;
|
|
1276
|
-
|
|
1277
1231
|
// File: src/functions/intersectKey.d.ts
|
|
1278
1232
|
export declare function intersectKey<T, KT extends keyof T, C, KC extends keyof C>(data?: T, comparison?: C): Record<KT & KC, T[KT]>;
|
|
1279
|
-
|
|
1280
1233
|
// File: src/functions/isApiSuccess.d.ts
|
|
1281
1234
|
import { ApiData } from '../types/apiTypes';
|
|
1282
1235
|
export declare const isApiSuccess: <T>(data: ApiData<T>) => boolean;
|
|
1283
|
-
|
|
1284
1236
|
// File: src/functions/isArray.d.ts
|
|
1285
1237
|
export declare function isArray<T, R>(value: T): value is Extract<T, R[]>;
|
|
1286
|
-
|
|
1287
1238
|
// File: src/functions/isDifferent.d.ts
|
|
1288
1239
|
import { ObjectItem } from '../types/basicTypes';
|
|
1289
1240
|
export declare function isDifferent<T>(value: ObjectItem<T>, old: ObjectItem<T>): boolean;
|
|
1290
|
-
|
|
1291
1241
|
// File: src/functions/isDomData.d.ts
|
|
1292
1242
|
export declare function isDomData(): boolean;
|
|
1293
|
-
|
|
1294
1243
|
// File: src/functions/isDomRuntime.d.ts
|
|
1295
1244
|
export declare function isDomRuntime(): boolean;
|
|
1296
|
-
|
|
1297
1245
|
// File: src/functions/isElementVisible.d.ts
|
|
1298
1246
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1299
1247
|
export declare function isElementVisible<E extends ElementOrWindow>(elementSelectors?: ElementOrString<E>): boolean;
|
|
1300
|
-
|
|
1301
1248
|
// File: src/functions/isEnter.d.ts
|
|
1302
1249
|
export declare const isEnter: (event: KeyboardEvent, isInputElement?: boolean) => boolean;
|
|
1303
|
-
|
|
1304
1250
|
// File: src/functions/isFilled.d.ts
|
|
1305
1251
|
import { EmptyValue } from '../types/basicTypes';
|
|
1306
1252
|
export declare function isFilled<T>(value: T, zeroTrue?: boolean): value is Exclude<T, EmptyValue>;
|
|
1307
|
-
|
|
1308
1253
|
// File: src/functions/isFloat.d.ts
|
|
1309
1254
|
export declare function isFloat(value: any): boolean;
|
|
1310
|
-
|
|
1311
1255
|
// File: src/functions/isFunction.d.ts
|
|
1312
1256
|
import { FunctionArgs } from '../types/basicTypes';
|
|
1313
1257
|
export declare function isFunction<T>(callback: T): callback is Extract<T, FunctionArgs<any, any>>;
|
|
1314
|
-
|
|
1315
1258
|
// File: src/functions/isInDom.d.ts
|
|
1316
1259
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1317
1260
|
export declare function isInDom<E extends ElementOrWindow>(element?: ElementOrString<E>): boolean;
|
|
1318
|
-
|
|
1319
1261
|
// File: src/functions/isInput.d.ts
|
|
1320
1262
|
export declare const isInput: (element: HTMLElement | EventTarget | null) => boolean;
|
|
1321
|
-
|
|
1322
1263
|
// File: src/functions/isIntegerBetween.d.ts
|
|
1323
1264
|
export declare function isIntegerBetween(value: number, between: number): boolean;
|
|
1324
|
-
|
|
1325
1265
|
// File: src/functions/isNull.d.ts
|
|
1326
1266
|
import { Undefined } from '../types/basicTypes';
|
|
1327
1267
|
export declare function isNull<T>(value: T): value is Extract<T, Undefined>;
|
|
1328
|
-
|
|
1329
1268
|
// File: src/functions/isNumber.d.ts
|
|
1330
1269
|
export declare function isNumber(value: any): boolean;
|
|
1331
|
-
|
|
1332
1270
|
// File: src/functions/isObject.d.ts
|
|
1333
1271
|
export declare function isObject<T>(value: T): value is Extract<T, Record<any, any>>;
|
|
1334
|
-
|
|
1335
1272
|
// File: src/functions/isObjectNotArray.d.ts
|
|
1336
1273
|
export declare function isObjectNotArray<T>(value: T): value is Exclude<Extract<T, Record<any, any>>, any[] | undefined | null>;
|
|
1337
|
-
|
|
1338
1274
|
// File: src/functions/isOnLine.d.ts
|
|
1339
1275
|
export declare function isOnLine(): boolean;
|
|
1340
|
-
|
|
1341
1276
|
// File: src/functions/isSelected.d.ts
|
|
1342
1277
|
export declare function isSelected<T, S>(value: T, selected: T | T[] | S): boolean;
|
|
1343
|
-
|
|
1344
1278
|
// File: src/functions/isSelectedByList.d.ts
|
|
1345
1279
|
export declare function isSelectedByList<T>(values: T | T[], selected: T | T[]): boolean;
|
|
1346
|
-
|
|
1347
1280
|
// File: src/functions/isShare.d.ts
|
|
1348
1281
|
export declare function isShare(): boolean;
|
|
1349
|
-
|
|
1350
1282
|
// File: src/functions/isString.d.ts
|
|
1351
1283
|
export declare function isString<T>(value: T): value is Extract<T, string>;
|
|
1352
|
-
|
|
1353
1284
|
// File: src/functions/isTab.d.ts
|
|
1354
1285
|
export declare const isTab: (event: KeyboardEvent) => boolean;
|
|
1355
|
-
|
|
1356
1286
|
// File: src/functions/isWindow.d.ts
|
|
1357
1287
|
export declare function isWindow<E>(element: E): element is Extract<E, Window>;
|
|
1358
|
-
|
|
1359
1288
|
// File: src/functions/random.d.ts
|
|
1360
1289
|
export declare function random(min: number, max: number): number;
|
|
1361
|
-
|
|
1362
1290
|
// File: src/functions/removeCommonPrefix.d.ts
|
|
1363
1291
|
export declare function removeCommonPrefix(mainStr: string, prefix: string): string;
|
|
1364
|
-
|
|
1365
1292
|
// File: src/functions/replaceComponentName.d.ts
|
|
1366
1293
|
export declare const replaceComponentName: (text: string | undefined, name: string, componentName: string) => string | undefined;
|
|
1367
|
-
|
|
1368
1294
|
// File: src/functions/replaceRecursive.d.ts
|
|
1369
1295
|
import { ObjectItem, ObjectOrArray } from '../types/basicTypes';
|
|
1370
1296
|
export declare function replaceRecursive<I>(array: ObjectItem<I>, replacement?: ObjectOrArray<I>, isMerge?: boolean): ObjectItem<I>;
|
|
1371
|
-
|
|
1372
1297
|
// File: src/functions/replaceTemplate.d.ts
|
|
1373
1298
|
import { FunctionReturn } from '../types/basicTypes';
|
|
1374
1299
|
export declare function replaceTemplate(value: string, replaces: Record<string, string | FunctionReturn<string>>): string;
|
|
1375
|
-
|
|
1376
1300
|
// File: src/functions/resizeImageByMax.d.ts
|
|
1377
|
-
export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?:
|
|
1378
|
-
|
|
1301
|
+
export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?: 'auto' | 'width' | 'height', typeData?: string): string | undefined;
|
|
1379
1302
|
// File: src/functions/secondToTime.d.ts
|
|
1380
1303
|
export declare function secondToTime(second: number | string | undefined, hasHour?: boolean): string;
|
|
1381
|
-
|
|
1382
1304
|
// File: src/functions/setElementItem.d.ts
|
|
1383
1305
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1384
1306
|
export declare function setElementItem<E extends ElementOrWindow, K extends keyof E, V extends E[K] = E[K]>(element: ElementOrString<E>, index: K, value: V | Record<string, V>): E | undefined;
|
|
1385
|
-
|
|
1386
1307
|
// File: src/functions/setValues.d.ts
|
|
1387
|
-
export declare function setValues<T>(selected: T | T[] | undefined, value: any,
|
|
1388
|
-
|
|
1308
|
+
export declare function setValues<T>(selected: T | T[] | undefined, value: any, { multiple, maxlength, alwaysChange, notEmpty }: {
|
|
1309
|
+
multiple?: boolean | undefined;
|
|
1310
|
+
maxlength?: number | undefined;
|
|
1311
|
+
alwaysChange?: boolean | undefined;
|
|
1312
|
+
notEmpty?: boolean | undefined;
|
|
1313
|
+
}): T | T[] | undefined;
|
|
1389
1314
|
// File: src/functions/sleep.d.ts
|
|
1390
1315
|
export declare function sleep(ms: number): Promise<void>;
|
|
1391
|
-
|
|
1392
1316
|
// File: src/functions/splice.d.ts
|
|
1393
1317
|
import { ObjectItem } from '../types/basicTypes';
|
|
1394
1318
|
export declare function splice<I>(array: ObjectItem<I>, replacement?: ObjectItem<I> | I, indexStart?: string): ObjectItem<I>;
|
|
1395
|
-
|
|
1396
1319
|
// File: src/functions/strFill.d.ts
|
|
1397
1320
|
export declare function strFill(value: string, count: number): string;
|
|
1398
|
-
|
|
1399
1321
|
// File: src/functions/strSplit.d.ts
|
|
1400
1322
|
export declare function strSplit(value: number | string, separator: string, limit?: number): string[];
|
|
1401
|
-
|
|
1402
1323
|
// File: src/functions/toArray.d.ts
|
|
1403
1324
|
export declare function toArray<T>(value: T): T extends any[] ? T : [T];
|
|
1404
|
-
|
|
1405
1325
|
// File: src/functions/toCamelCase.d.ts
|
|
1406
1326
|
export declare function toCamelCase(value: string): string;
|
|
1407
|
-
|
|
1408
1327
|
// File: src/functions/toCamelCaseFirst.d.ts
|
|
1409
1328
|
export declare function toCamelCaseFirst(value: string): string;
|
|
1410
|
-
|
|
1411
1329
|
// File: src/functions/toDate.d.ts
|
|
1412
1330
|
export declare function toDate<T extends Date | number | string>(value?: T): (T & Date) | Date;
|
|
1413
|
-
|
|
1414
1331
|
// File: src/functions/toKebabCase.d.ts
|
|
1415
1332
|
export declare function toKebabCase(value: string): string;
|
|
1416
|
-
|
|
1417
1333
|
// File: src/functions/toNumber.d.ts
|
|
1418
1334
|
import { NumberOrString } from '../types/basicTypes';
|
|
1419
1335
|
export declare function toNumber(value?: NumberOrString): number;
|
|
1420
|
-
|
|
1421
1336
|
// File: src/functions/toNumberByMax.d.ts
|
|
1422
1337
|
export declare function toNumberByMax(value: string | number, max?: string | number, formatting?: boolean, language?: string): string | number;
|
|
1423
|
-
|
|
1424
1338
|
// File: src/functions/toPercent.d.ts
|
|
1425
1339
|
export declare function toPercent(maxValue: number, value: number): number;
|
|
1426
|
-
|
|
1427
1340
|
// File: src/functions/toPercentBy100.d.ts
|
|
1428
1341
|
export declare function toPercentBy100(maxValue: number, value: number): number;
|
|
1429
|
-
|
|
1430
1342
|
// File: src/functions/toString.d.ts
|
|
1431
1343
|
export declare function toString<T>(value: T): string;
|
|
1432
|
-
|
|
1433
1344
|
// File: src/functions/transformation.d.ts
|
|
1434
1345
|
export declare function transformation(value: any, isFunction?: boolean): any;
|
|
1435
|
-
|
|
1436
1346
|
// File: src/functions/uint8ArrayToBase64.d.ts
|
|
1437
1347
|
export declare function uint8ArrayToBase64(bytes: Uint8Array): string;
|
|
1438
|
-
|
|
1439
1348
|
// File: src/functions/uniqueArray.d.ts
|
|
1440
1349
|
export declare function uniqueArray<T>(value: T[]): T[];
|
|
1441
|
-
|
|
1442
1350
|
// File: src/functions/writeClipboardData.d.ts
|
|
1443
1351
|
export declare function writeClipboardData(text: string): Promise<void>;
|
|
1444
|
-
|
|
1445
1352
|
// File: src/library.d.ts
|
|
1446
1353
|
export * from './classes/Api';
|
|
1447
1354
|
export * from './classes/ApiCache';
|
|
@@ -1487,6 +1394,8 @@ export * from './classes/MetaManager';
|
|
|
1487
1394
|
export * from './classes/MetaOg';
|
|
1488
1395
|
export * from './classes/MetaStatic';
|
|
1489
1396
|
export * from './classes/MetaTwitter';
|
|
1397
|
+
export * from './classes/Query';
|
|
1398
|
+
export * from './classes/QueryInstance';
|
|
1490
1399
|
export * from './classes/ResumableTimer';
|
|
1491
1400
|
export * from './classes/ScrollbarWidth';
|
|
1492
1401
|
export * from './classes/SearchList';
|
|
@@ -1499,6 +1408,7 @@ export * from './classes/StorageCallback';
|
|
|
1499
1408
|
export * from './classes/Translate';
|
|
1500
1409
|
export * from './classes/TranslateFile';
|
|
1501
1410
|
export * from './classes/TranslateInstance';
|
|
1411
|
+
export * from './classes/UrlInstanceAbstract';
|
|
1502
1412
|
export * from './classes/UrlItem';
|
|
1503
1413
|
export * from './functions/addTagHighlightMatch';
|
|
1504
1414
|
export * from './functions/anyToString';
|
|
@@ -1621,32 +1531,119 @@ export * from './types/geoTypes';
|
|
|
1621
1531
|
export * from './types/metaTypes';
|
|
1622
1532
|
export * from './types/searchTypes';
|
|
1623
1533
|
export * from './types/translateTypes';
|
|
1624
|
-
|
|
1625
1534
|
// File: src/media/errorCauseList.d.ts
|
|
1626
1535
|
import { ErrorCenterCauseList } from '../types/errorCenter';
|
|
1627
1536
|
export declare const errorCauseList: ErrorCenterCauseList;
|
|
1628
|
-
|
|
1629
1537
|
// File: src/types/apiTypes.d.ts
|
|
1630
|
-
export declare enum ApiMethodItem {
|
|
1631
|
-
|
|
1538
|
+
export declare enum ApiMethodItem {
|
|
1539
|
+
delete = "DELETE",
|
|
1540
|
+
get = "GET",
|
|
1541
|
+
post = "POST",
|
|
1542
|
+
put = "PUT",
|
|
1543
|
+
patch = "PATCH"
|
|
1544
|
+
}
|
|
1545
|
+
export type ApiCacheItem<T = any> = {
|
|
1546
|
+
value: T;
|
|
1547
|
+
age?: number;
|
|
1548
|
+
cacheAge: number;
|
|
1549
|
+
};
|
|
1632
1550
|
export type ApiCacheList = Record<string, ApiCacheItem>;
|
|
1633
|
-
export type ApiConfig = {
|
|
1551
|
+
export type ApiConfig = {
|
|
1552
|
+
urlRoot?: string;
|
|
1553
|
+
origin?: string;
|
|
1554
|
+
headers?: ApiHeadersValue;
|
|
1555
|
+
requestDefault?: ApiDefaultValue;
|
|
1556
|
+
preparation?: (apiFetch: ApiFetch) => Promise<void>;
|
|
1557
|
+
end?: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>;
|
|
1558
|
+
timeout?: number;
|
|
1559
|
+
devMode?: boolean;
|
|
1560
|
+
};
|
|
1634
1561
|
export type ApiData<T = any> = T extends any[] ? T : ApiDataItem<T>;
|
|
1635
|
-
export type ApiDataValidation = {
|
|
1636
|
-
|
|
1562
|
+
export type ApiDataValidation = {
|
|
1563
|
+
status?: ApiStatusType;
|
|
1564
|
+
code?: string | number;
|
|
1565
|
+
message?: string;
|
|
1566
|
+
error?: {
|
|
1567
|
+
code?: string | number;
|
|
1568
|
+
message?: string;
|
|
1569
|
+
};
|
|
1570
|
+
};
|
|
1571
|
+
export type ApiDataItem<T = any> = T & ApiDataValidation & {
|
|
1572
|
+
data?: T;
|
|
1573
|
+
success?: boolean;
|
|
1574
|
+
statusObject?: ApiStatusItem;
|
|
1575
|
+
errorObject?: ApiErrorItem;
|
|
1576
|
+
};
|
|
1637
1577
|
export type ApiHeadersValue = Record<string, string> | (() => Record<string, string>);
|
|
1638
1578
|
export type ApiDefaultValue = Record<string, any> | (() => Record<string, any>);
|
|
1639
|
-
export type ApiFetch = {
|
|
1640
|
-
|
|
1579
|
+
export type ApiFetch = {
|
|
1580
|
+
api?: boolean;
|
|
1581
|
+
path?: string;
|
|
1582
|
+
pathFull?: string;
|
|
1583
|
+
method?: ApiMethod;
|
|
1584
|
+
request?: FormData | Record<string, any> | string;
|
|
1585
|
+
auth?: boolean;
|
|
1586
|
+
headers?: Record<string, string> | null;
|
|
1587
|
+
type?: string;
|
|
1588
|
+
toData?: boolean;
|
|
1589
|
+
global?: boolean;
|
|
1590
|
+
devMode?: boolean;
|
|
1591
|
+
hideError?: boolean;
|
|
1592
|
+
hideLoading?: boolean;
|
|
1593
|
+
retry?: number;
|
|
1594
|
+
retryDelay?: number;
|
|
1595
|
+
queryReturn?: (query: Response) => Promise<any | ApiDataValidation>;
|
|
1596
|
+
globalPreparation?: boolean;
|
|
1597
|
+
globalEnd?: boolean;
|
|
1598
|
+
init?: RequestInit;
|
|
1599
|
+
initError?: boolean;
|
|
1600
|
+
timeout?: number;
|
|
1601
|
+
controller?: AbortController;
|
|
1602
|
+
cache?: number;
|
|
1603
|
+
enableClientCache?: boolean;
|
|
1604
|
+
cacheId?: number | string;
|
|
1605
|
+
endResetLimit?: number;
|
|
1606
|
+
};
|
|
1607
|
+
export type ApiHydrationItem = {
|
|
1608
|
+
path: string;
|
|
1609
|
+
method: ApiMethod;
|
|
1610
|
+
request?: ApiFetch['request'];
|
|
1611
|
+
response: any;
|
|
1612
|
+
};
|
|
1641
1613
|
export type ApiHydrationList = ApiHydrationItem[];
|
|
1642
|
-
export type ApiErrorStorageItem = Record<string, any> & {
|
|
1614
|
+
export type ApiErrorStorageItem = Record<string, any> & {
|
|
1615
|
+
url: string | RegExp;
|
|
1616
|
+
method: ApiMethodItem;
|
|
1617
|
+
code?: string;
|
|
1618
|
+
status?: number;
|
|
1619
|
+
validation?: (response: Response) => boolean;
|
|
1620
|
+
message?: string | ((response?: Response) => string);
|
|
1621
|
+
};
|
|
1643
1622
|
export type ApiErrorStorageList = ApiErrorStorageItem[];
|
|
1644
1623
|
export type ApiMethod = string | ApiMethodItem;
|
|
1645
|
-
export type ApiPreparationEnd = {
|
|
1646
|
-
|
|
1647
|
-
|
|
1624
|
+
export type ApiPreparationEnd = {
|
|
1625
|
+
reset?: boolean;
|
|
1626
|
+
data?: any;
|
|
1627
|
+
};
|
|
1628
|
+
export type ApiResponseItem = {
|
|
1629
|
+
path: string | RegExp;
|
|
1630
|
+
method: ApiMethod;
|
|
1631
|
+
request?: ApiFetch['request'] | '*any';
|
|
1632
|
+
response: any | ((request?: ApiFetch['request']) => any);
|
|
1633
|
+
disable?: any;
|
|
1634
|
+
isForGlobal?: boolean;
|
|
1635
|
+
lag?: any;
|
|
1636
|
+
};
|
|
1637
|
+
export type ApiStatusItem = {
|
|
1638
|
+
status?: number;
|
|
1639
|
+
statusText?: string;
|
|
1640
|
+
error?: string;
|
|
1641
|
+
lastResponse?: any;
|
|
1642
|
+
lastStatus?: ApiStatusType;
|
|
1643
|
+
lastCode?: string;
|
|
1644
|
+
lastMessage?: string;
|
|
1645
|
+
};
|
|
1648
1646
|
export type ApiStatusType = 'success' | 'error' | 'warning' | 'info';
|
|
1649
|
-
|
|
1650
1647
|
// File: src/types/basicTypes.d.ts
|
|
1651
1648
|
export type Undefined = undefined | null;
|
|
1652
1649
|
export type EmptyValue = Undefined | 0 | false | '' | 'undefined' | 'null' | '0' | 'false' | '[]';
|
|
@@ -1663,80 +1660,393 @@ export type FunctionVoid = () => void;
|
|
|
1663
1660
|
export type FunctionArgs<T, R> = (...args: T[]) => R;
|
|
1664
1661
|
export type FunctionAnyType<T = any, R = any> = (...args: T[]) => R;
|
|
1665
1662
|
export type ItemList<T = any> = Record<string, T>;
|
|
1666
|
-
export type Item<V> = {
|
|
1667
|
-
|
|
1668
|
-
|
|
1663
|
+
export type Item<V> = {
|
|
1664
|
+
index: string;
|
|
1665
|
+
value: V;
|
|
1666
|
+
};
|
|
1667
|
+
export type ItemValue<V> = {
|
|
1668
|
+
label: string;
|
|
1669
|
+
value: V;
|
|
1670
|
+
};
|
|
1671
|
+
export type ItemName<V> = {
|
|
1672
|
+
name: string | number;
|
|
1673
|
+
value: V;
|
|
1674
|
+
};
|
|
1669
1675
|
export type ElementOrWindow = HTMLElement | Window;
|
|
1670
1676
|
export type ElementOrString<E extends ElementOrWindow> = E | string;
|
|
1671
1677
|
export type EventOptions = AddEventListenerOptions | boolean | undefined;
|
|
1672
1678
|
export type EventListenerDetail<O extends Event, D extends Record<string, any>> = (event: O, detail?: D) => void;
|
|
1673
|
-
export type EventActivityItem<E extends ElementOrWindow> = {
|
|
1674
|
-
|
|
1675
|
-
|
|
1679
|
+
export type EventActivityItem<E extends ElementOrWindow> = {
|
|
1680
|
+
element: E | undefined;
|
|
1681
|
+
type: string;
|
|
1682
|
+
listener?: (event: any | Event) => void;
|
|
1683
|
+
observer?: ResizeObserver;
|
|
1684
|
+
};
|
|
1685
|
+
export type ImageCoordinator = {
|
|
1686
|
+
x: number;
|
|
1687
|
+
y: number;
|
|
1688
|
+
};
|
|
1676
1689
|
// File: src/types/errorCenter.d.ts
|
|
1677
1690
|
export type ErrorCenterGroup = string | undefined;
|
|
1678
|
-
export type ErrorCenterCauseItem<D = any> = {
|
|
1691
|
+
export type ErrorCenterCauseItem<D = any> = {
|
|
1692
|
+
group?: ErrorCenterGroup;
|
|
1693
|
+
code: string;
|
|
1694
|
+
priority?: number;
|
|
1695
|
+
label?: string;
|
|
1696
|
+
message?: string;
|
|
1697
|
+
details?: D;
|
|
1698
|
+
};
|
|
1679
1699
|
export type ErrorCenterCauseList = ErrorCenterCauseItem[];
|
|
1680
1700
|
export type ErrorCenterHandlerCallback = (cause: ErrorCenterCauseItem) => void;
|
|
1681
|
-
export type ErrorCenterHandlerItem = {
|
|
1701
|
+
export type ErrorCenterHandlerItem = {
|
|
1702
|
+
group?: ErrorCenterGroup;
|
|
1703
|
+
handlers: ErrorCenterHandlerCallback[];
|
|
1704
|
+
};
|
|
1682
1705
|
export type ErrorCenterHandlerList = ErrorCenterHandlerItem[];
|
|
1683
|
-
|
|
1684
1706
|
// File: src/types/formattersTypes.d.ts
|
|
1685
1707
|
import { ArrayToItem } from './basicTypes';
|
|
1686
1708
|
import { GeoDate } from './geoTypes';
|
|
1687
|
-
export declare enum FormattersType {
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
export type
|
|
1709
|
+
export declare enum FormattersType {
|
|
1710
|
+
currency = "currency",
|
|
1711
|
+
date = "date",
|
|
1712
|
+
name = "name",
|
|
1713
|
+
number = "number",
|
|
1714
|
+
plural = "plural",
|
|
1715
|
+
unit = "unit"
|
|
1716
|
+
}
|
|
1717
|
+
export type FormattersOptionsCurrency = {
|
|
1718
|
+
currencyPropName?: string;
|
|
1719
|
+
options?: string | Intl.NumberFormatOptions;
|
|
1720
|
+
numberOnly?: boolean;
|
|
1721
|
+
};
|
|
1722
|
+
export type FormattersOptionsDate = {
|
|
1723
|
+
type?: GeoDate;
|
|
1724
|
+
options?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions;
|
|
1725
|
+
hour24?: boolean;
|
|
1726
|
+
};
|
|
1727
|
+
export type FormattersOptionsName = {
|
|
1728
|
+
lastPropName?: string;
|
|
1729
|
+
firstPropName?: string;
|
|
1730
|
+
surname?: string;
|
|
1731
|
+
short?: boolean;
|
|
1732
|
+
};
|
|
1733
|
+
export type FormattersOptionsNumber = {
|
|
1734
|
+
options?: Intl.NumberFormatOptions;
|
|
1735
|
+
};
|
|
1736
|
+
export type FormattersOptionsPlural = {
|
|
1737
|
+
words: string;
|
|
1738
|
+
options?: Intl.PluralRulesOptions;
|
|
1739
|
+
optionsNumber?: Intl.NumberFormatOptions;
|
|
1740
|
+
};
|
|
1741
|
+
export type FormattersOptionsUnit = {
|
|
1742
|
+
unit: string | Intl.NumberFormatOptions;
|
|
1743
|
+
};
|
|
1744
|
+
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>;
|
|
1745
|
+
export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = {
|
|
1746
|
+
type?: Type;
|
|
1747
|
+
transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R;
|
|
1748
|
+
options?: FormattersOptionsInformation<Type>;
|
|
1749
|
+
};
|
|
1696
1750
|
export type FormattersOptionsList = Record<string, FormattersOptionsItem>;
|
|
1697
1751
|
export type FormattersListItem = Record<string, any>;
|
|
1698
1752
|
export type FormattersList<Item extends FormattersListItem> = Item[];
|
|
1753
|
+
export type FormattersCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<FormattersCapitalize<Rest>>}` : K;
|
|
1754
|
+
export type FormattersColumns<T extends FormattersOptionsList> = (keyof T & string)[];
|
|
1755
|
+
export type FormattersKey<K, A extends string = 'Format'> = K extends string ? `${FormattersCapitalize<K>}${A}` : never;
|
|
1756
|
+
export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = {
|
|
1757
|
+
[K in keyof T | FormattersKey<KT[number]>]: K extends keyof T ? T[K] : string;
|
|
1758
|
+
};
|
|
1759
|
+
export type FormattersListFormat<T extends FormattersListItem, K extends string[]> = FormattersDataItem<T, K>[];
|
|
1760
|
+
export type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersDataItem<T, FormattersColumns<O>>;
|
|
1761
|
+
export type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersListFormat<T, FormattersColumns<O>>;
|
|
1699
1762
|
export type FormattersListProp = FormattersList<FormattersListItem> | FormattersListItem;
|
|
1700
1763
|
export type FormattersItemProp<List extends FormattersListProp> = ArrayToItem<List>;
|
|
1701
|
-
export type FormattersReturn<List extends FormattersListProp, Options extends FormattersOptionsList = FormattersOptionsList, Item extends FormattersItemProp<List> = FormattersItemProp<List>> = any;
|
|
1702
|
-
|
|
1764
|
+
export type FormattersReturn<List extends FormattersListProp, Options extends FormattersOptionsList = FormattersOptionsList, Item extends FormattersItemProp<List> = FormattersItemProp<List>> = List extends any[] ? FormattersListColumns<Item, Options> : (FormattersListColumnItem<Item, Options> | undefined);
|
|
1703
1765
|
// File: src/types/geoTypes.d.ts
|
|
1704
1766
|
export type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'month' | 'day' | 'day-month' | 'time' | 'hour-minute' | 'hour' | 'minute' | 'second';
|
|
1705
1767
|
export type GeoFirstDay = 1 | 6 | 0;
|
|
1706
1768
|
export type GeoHours = '12' | '24';
|
|
1707
1769
|
export type GeoTimeZoneStyle = 'minute' | 'hour' | 'ISO8601' | 'RFC';
|
|
1708
|
-
export interface GeoItem {
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1770
|
+
export interface GeoItem {
|
|
1771
|
+
country: string;
|
|
1772
|
+
countryAlternative?: string[];
|
|
1773
|
+
language: string;
|
|
1774
|
+
languageAlternative?: string[];
|
|
1775
|
+
firstDay?: string | null;
|
|
1776
|
+
zone?: string | null;
|
|
1777
|
+
phoneCode?: string;
|
|
1778
|
+
phoneWithin?: string;
|
|
1779
|
+
phoneMask?: string | string[];
|
|
1780
|
+
nameFormat?: 'fl' | 'fsl' | 'lf' | 'lsf' | string;
|
|
1781
|
+
}
|
|
1782
|
+
export interface GeoItemFull extends Omit<GeoItem, 'firstDay'> {
|
|
1783
|
+
standard: string;
|
|
1784
|
+
firstDay: string;
|
|
1785
|
+
location: string;
|
|
1786
|
+
locationCountry: string;
|
|
1787
|
+
locationLanguage: string;
|
|
1788
|
+
}
|
|
1789
|
+
export interface GeoFlagItem {
|
|
1790
|
+
language: string;
|
|
1791
|
+
country: string;
|
|
1792
|
+
standard: string;
|
|
1793
|
+
icon?: string;
|
|
1794
|
+
label: string;
|
|
1795
|
+
value: string;
|
|
1796
|
+
phoneCode?: string;
|
|
1797
|
+
}
|
|
1798
|
+
export interface GeoFlagNational extends GeoFlagItem {
|
|
1799
|
+
description: string;
|
|
1800
|
+
nationalLanguage: string;
|
|
1801
|
+
nationalCountry: string;
|
|
1802
|
+
}
|
|
1803
|
+
export interface GeoPhoneValue {
|
|
1804
|
+
phone: number;
|
|
1805
|
+
within: number;
|
|
1806
|
+
mask: string[];
|
|
1807
|
+
value: string;
|
|
1808
|
+
}
|
|
1809
|
+
export interface GeoPhoneMap {
|
|
1810
|
+
items: GeoPhoneValue[];
|
|
1811
|
+
info: GeoPhoneValue | undefined;
|
|
1812
|
+
value: string | undefined;
|
|
1813
|
+
mask: string[];
|
|
1814
|
+
maskFull: string[];
|
|
1815
|
+
next: Record<string, GeoPhoneMap>;
|
|
1816
|
+
}
|
|
1817
|
+
export interface GeoPhoneMapInfo {
|
|
1818
|
+
item?: GeoPhoneMap;
|
|
1819
|
+
phone?: string;
|
|
1820
|
+
}
|
|
1716
1821
|
// File: src/types/metaTypes.d.ts
|
|
1717
|
-
export declare enum MetaTag {
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
export declare enum
|
|
1726
|
-
|
|
1727
|
-
|
|
1822
|
+
export declare enum MetaTag {
|
|
1823
|
+
title = "title",
|
|
1824
|
+
description = "description",
|
|
1825
|
+
keywords = "keywords",
|
|
1826
|
+
canonical = "canonical",
|
|
1827
|
+
robots = "robots",
|
|
1828
|
+
author = "author"
|
|
1829
|
+
}
|
|
1830
|
+
export declare enum MetaRobots {
|
|
1831
|
+
indexFollow = "index, follow",
|
|
1832
|
+
noIndexFollow = "noindex, follow",
|
|
1833
|
+
indexNoFollow = "index, nofollow",
|
|
1834
|
+
noIndexNoFollow = "noindex, nofollow",
|
|
1835
|
+
noArchive = "noarchive",
|
|
1836
|
+
noSnippet = "nosnippet",
|
|
1837
|
+
noImageIndex = "noimageindex",
|
|
1838
|
+
images = "images",
|
|
1839
|
+
noTranslate = "notranslate",
|
|
1840
|
+
noPreview = "nopreview",
|
|
1841
|
+
textOnly = "textonly",
|
|
1842
|
+
noIndexSubpages = "noindex, noarchive",
|
|
1843
|
+
none = "none"
|
|
1844
|
+
}
|
|
1845
|
+
export declare enum MetaOpenGraphTag {
|
|
1846
|
+
title = "og:title",
|
|
1847
|
+
type = "og:type",
|
|
1848
|
+
url = "og:url",
|
|
1849
|
+
image = "og:image",
|
|
1850
|
+
description = "og:description",
|
|
1851
|
+
locale = "og:locale",
|
|
1852
|
+
siteName = "og:site_name",
|
|
1853
|
+
localeAlternate = "og:locale:alternate",
|
|
1854
|
+
imageUrl = "og:image:url",
|
|
1855
|
+
imageSecureUrl = "og:image:secure_url",
|
|
1856
|
+
imageType = "og:image:type",
|
|
1857
|
+
imageWidth = "og:image:width",
|
|
1858
|
+
imageHeight = "og:image:height",
|
|
1859
|
+
imageAlt = "og:image:alt",
|
|
1860
|
+
video = "og:video",
|
|
1861
|
+
videoUrl = "og:video:url",
|
|
1862
|
+
videoSecureUrl = "og:video:secure_url",
|
|
1863
|
+
videoType = "og:video:type",
|
|
1864
|
+
videoWidth = "og:video:width",
|
|
1865
|
+
videoHeight = "og:video:height",
|
|
1866
|
+
audio = "og:audio",
|
|
1867
|
+
audioSecureUrl = "og:audio:secure_url",
|
|
1868
|
+
audioType = "og:audio:type",
|
|
1869
|
+
articlePublishedTime = "article:published_time",
|
|
1870
|
+
articleModifiedTime = "article:modified_time",
|
|
1871
|
+
articleExpirationTime = "article:expiration_time",
|
|
1872
|
+
articleAuthor = "article:author",
|
|
1873
|
+
articleSection = "article:section",
|
|
1874
|
+
articleTag = "article:tag",
|
|
1875
|
+
bookAuthor = "book:author",
|
|
1876
|
+
bookIsbn = "book:isbn",
|
|
1877
|
+
bookReleaseDate = "book:release_date",
|
|
1878
|
+
bookTag = "book:tag",
|
|
1879
|
+
musicDuration = "music:duration",
|
|
1880
|
+
musicAlbum = "music:album",
|
|
1881
|
+
musicAlbumDisc = "music:album:disc",
|
|
1882
|
+
musicAlbumTrack = "music:album:track",
|
|
1883
|
+
musicMusician = "music:musician",
|
|
1884
|
+
musicSong = "music:song",
|
|
1885
|
+
musicSongDisc = "music:song:disc",
|
|
1886
|
+
musicSongTrack = "music:song:track",
|
|
1887
|
+
musicReleaseDate = "music:release_date",
|
|
1888
|
+
musicCreator = "music:creator",
|
|
1889
|
+
videoActor = "video:actor",
|
|
1890
|
+
videoActorRole = "video:actor:role",
|
|
1891
|
+
videoDirector = "video:director",
|
|
1892
|
+
videoWriter = "video:writer",
|
|
1893
|
+
videoDuration = "video:duration",
|
|
1894
|
+
videoReleaseDate = "video:release_date",
|
|
1895
|
+
videoTag = "video:tag",
|
|
1896
|
+
videoSeries = "video:series",
|
|
1897
|
+
profileFirstName = "profile:first_name",
|
|
1898
|
+
profileLastName = "profile:last_name",
|
|
1899
|
+
profileUsername = "profile:username",
|
|
1900
|
+
profileGender = "profile:gender",
|
|
1901
|
+
productBrand = "product:brand",
|
|
1902
|
+
productAvailability = "product:availability",
|
|
1903
|
+
productCondition = "product:condition",
|
|
1904
|
+
productPriceAmount = "product:price:amount",
|
|
1905
|
+
productPriceCurrency = "product:price:currency",
|
|
1906
|
+
productRetailerItemId = "product:retailer_item_id",
|
|
1907
|
+
productCategory = "product:category",
|
|
1908
|
+
productEan = "product:ean",
|
|
1909
|
+
productIsbn = "product:isbn",
|
|
1910
|
+
productMfrPartNo = "product:mfr_part_no",
|
|
1911
|
+
productUpc = "product:upc",
|
|
1912
|
+
productWeightValue = "product:weight:value",
|
|
1913
|
+
productWeightUnits = "product:weight:units",
|
|
1914
|
+
productColor = "product:color",
|
|
1915
|
+
productMaterial = "product:material",
|
|
1916
|
+
productPattern = "product:pattern",
|
|
1917
|
+
productAgeGroup = "product:age_group",
|
|
1918
|
+
productGender = "product:gender"
|
|
1919
|
+
}
|
|
1920
|
+
export declare enum MetaOpenGraphType {
|
|
1921
|
+
website = "website",
|
|
1922
|
+
article = "article",
|
|
1923
|
+
video = "video.other",
|
|
1924
|
+
videoTvShow = "video.tv_show",
|
|
1925
|
+
videoEpisode = "video.episode",
|
|
1926
|
+
videoMovie = "video.movie",
|
|
1927
|
+
musicAlbum = "music.album",
|
|
1928
|
+
musicPlaylist = "music.playlist",
|
|
1929
|
+
musicSong = "music.song",
|
|
1930
|
+
musicRadioStation = "music.radio_station",
|
|
1931
|
+
app = "app",
|
|
1932
|
+
product = "product",
|
|
1933
|
+
business = "business.business",
|
|
1934
|
+
place = "place",
|
|
1935
|
+
event = "event",
|
|
1936
|
+
profile = "profile",
|
|
1937
|
+
book = "book"
|
|
1938
|
+
}
|
|
1939
|
+
export declare enum MetaOpenGraphAvailability {
|
|
1940
|
+
inStock = "in stock",
|
|
1941
|
+
outOfStock = "out of stock",
|
|
1942
|
+
preorder = "preorder",
|
|
1943
|
+
backorder = "backorder",
|
|
1944
|
+
discontinued = "discontinued",
|
|
1945
|
+
pending = "pending"
|
|
1946
|
+
}
|
|
1947
|
+
export declare enum MetaOpenGraphCondition {
|
|
1948
|
+
new = "new",
|
|
1949
|
+
used = "used",
|
|
1950
|
+
refurbished = "refurbished"
|
|
1951
|
+
}
|
|
1952
|
+
export declare enum MetaOpenGraphAge {
|
|
1953
|
+
newborn = "newborn",
|
|
1954
|
+
infant = "infant",
|
|
1955
|
+
toddler = "toddler",
|
|
1956
|
+
kids = "kids",
|
|
1957
|
+
adult = "adult"
|
|
1958
|
+
}
|
|
1959
|
+
export declare enum MetaOpenGraphGender {
|
|
1960
|
+
female = "female",
|
|
1961
|
+
male = "male",
|
|
1962
|
+
unisex = "unisex"
|
|
1963
|
+
}
|
|
1964
|
+
export declare enum MetaTwitterTag {
|
|
1965
|
+
card = "twitter:card",
|
|
1966
|
+
site = "twitter:site",
|
|
1967
|
+
creator = "twitter:creator",
|
|
1968
|
+
url = "twitter:url",
|
|
1969
|
+
title = "twitter:title",
|
|
1970
|
+
description = "twitter:description",
|
|
1971
|
+
image = "twitter:image",
|
|
1972
|
+
imageAlt = "twitter:image:alt",
|
|
1973
|
+
imageSrc = "twitter:image:src",
|
|
1974
|
+
imageWidth = "twitter:image:width",
|
|
1975
|
+
imageHeight = "twitter:image:height",
|
|
1976
|
+
label1 = "twitter:label1",
|
|
1977
|
+
data1 = "twitter:data1",
|
|
1978
|
+
label2 = "twitter:label2",
|
|
1979
|
+
data2 = "twitter:data2",
|
|
1980
|
+
appNameIphone = "twitter:app:name:iphone",
|
|
1981
|
+
appIdIphone = "twitter:app:id:iphone",
|
|
1982
|
+
appUrlIphone = "twitter:app:url:iphone",
|
|
1983
|
+
appNameIpad = "twitter:app:name:ipad",
|
|
1984
|
+
appIdIpad = "twitter:app:id:ipad",
|
|
1985
|
+
appUrlIpad = "twitter:app:url:ipad",
|
|
1986
|
+
appNameGooglePlay = "twitter:app:name:googleplay",
|
|
1987
|
+
appIdGooglePlay = "twitter:app:id:googleplay",
|
|
1988
|
+
appUrlGooglePlay = "twitter:app:url:googleplay",
|
|
1989
|
+
player = "twitter:player",
|
|
1990
|
+
playerWidth = "twitter:player:width",
|
|
1991
|
+
playerHeight = "twitter:player:height",
|
|
1992
|
+
playerStream = "twitter:player:stream",
|
|
1993
|
+
playerStreamContentType = "twitter:player:stream:content_type"
|
|
1994
|
+
}
|
|
1995
|
+
export declare enum MetaTwitterCard {
|
|
1996
|
+
summary = "summary",
|
|
1997
|
+
summaryLargeImage = "summary_large_image",
|
|
1998
|
+
app = "app",
|
|
1999
|
+
player = "player",
|
|
2000
|
+
product = "product",
|
|
2001
|
+
gallery = "gallery",
|
|
2002
|
+
photo = "photo",
|
|
2003
|
+
leadGeneration = "lead_generation",
|
|
2004
|
+
audio = "audio",
|
|
2005
|
+
poll = "poll"
|
|
2006
|
+
}
|
|
1728
2007
|
// File: src/types/searchTypes.d.ts
|
|
1729
2008
|
export type SearchItem = Record<string, any>;
|
|
1730
|
-
export type
|
|
1731
|
-
export type
|
|
1732
|
-
|
|
2009
|
+
export type SearchColumnPath<K, P> = K extends string ? P extends string ? `${K}.${P}` : never : never;
|
|
2010
|
+
export type SearchColumn<T extends SearchItem> = {
|
|
2011
|
+
[K in keyof T]-?: NonNullable<T[K]> extends object ? K | SearchColumnPath<K, keyof NonNullable<T[K]>> : K;
|
|
2012
|
+
}[keyof T];
|
|
2013
|
+
export type SearchColumns<T extends SearchItem> = (SearchColumn<T> & string)[];
|
|
2014
|
+
export type SearchFormatCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<SearchFormatCapitalize<Rest>>}` : K;
|
|
2015
|
+
export type SearchFormatKey<K> = K extends string ? `${SearchFormatCapitalize<K>}Search` : never;
|
|
2016
|
+
export type SearchFormatItem<T extends SearchItem, KT extends string[]> = {
|
|
2017
|
+
[K in keyof T | SearchFormatKey<KT[number]>]: K extends keyof T ? T[K] : string;
|
|
2018
|
+
} & {
|
|
2019
|
+
searchActive?: boolean;
|
|
2020
|
+
};
|
|
2021
|
+
export type SearchFormatList<T extends SearchItem, K extends string[]> = SearchFormatItem<T, K>[];
|
|
2022
|
+
export type SearchListValue<T extends SearchItem> = T[] | undefined;
|
|
2023
|
+
export type SearchOptions = {
|
|
2024
|
+
limit?: number;
|
|
2025
|
+
returnEverything?: boolean;
|
|
2026
|
+
delay?: number;
|
|
2027
|
+
findExactMatch?: boolean;
|
|
2028
|
+
classSearchName?: string;
|
|
2029
|
+
};
|
|
2030
|
+
export type SearchCacheItem<T extends SearchItem> = {
|
|
2031
|
+
item: T;
|
|
2032
|
+
value: string;
|
|
2033
|
+
};
|
|
1733
2034
|
export type SearchCache<T extends SearchItem> = SearchCacheItem<T>[];
|
|
1734
|
-
export type HighlightMatchItem = {
|
|
1735
|
-
|
|
2035
|
+
export type HighlightMatchItem = {
|
|
2036
|
+
text: string;
|
|
2037
|
+
isMatch: boolean;
|
|
2038
|
+
};
|
|
1736
2039
|
// File: src/types/translateTypes.d.ts
|
|
1737
|
-
export type TranslateConfig = {
|
|
2040
|
+
export type TranslateConfig = {
|
|
2041
|
+
url?: string;
|
|
2042
|
+
propsName?: string;
|
|
2043
|
+
readApi?: boolean;
|
|
2044
|
+
};
|
|
1738
2045
|
export type TranslateCode = string | string[];
|
|
1739
|
-
export type TranslateList<T extends TranslateCode[]> =
|
|
2046
|
+
export type TranslateList<T extends TranslateCode[]> = {
|
|
2047
|
+
[K in T[number] as K extends readonly string[] ? K[0] : K]: string;
|
|
2048
|
+
};
|
|
2049
|
+
export type TranslateItemOrList<T extends TranslateCode> = T extends string[] ? TranslateList<T> : string;
|
|
1740
2050
|
export type TranslateDataFileList = Record<string, string>;
|
|
1741
2051
|
export type TranslateDataFileItem = () => Promise<TranslateDataFileList>;
|
|
1742
2052
|
export type TranslateDataFile = Record<string, TranslateDataFileItem>;
|