@dxtmisha/functional-basic 1.3.13 → 1.4.0
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 +31 -0
- package/ai-description.md +25 -0
- package/ai-doc.md +341 -0
- package/{ai-types.txt → ai-types.md} +630 -134
- package/dist/library.js +440 -358
- package/dist/src/classes/Geo.d.ts +14 -0
- package/dist/src/classes/GeoInstance.d.ts +16 -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 +6 -0
- package/package.json +4 -4
- package/ai-description.txt +0 -18
- package/ai-doc.txt +0 -54
|
@@ -16,7 +16,9 @@ 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
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Class for working with HTTP requests.
|
|
21
|
+
*/
|
|
20
22
|
export declare class Api {
|
|
21
23
|
static isLocalhost(): boolean;
|
|
22
24
|
static getItem(): ApiInstance;
|
|
@@ -45,7 +47,9 @@ export declare class Api {
|
|
|
45
47
|
}
|
|
46
48
|
// File: src/classes/ApiCache.d.ts
|
|
47
49
|
import { ApiCacheItem, ApiCacheList, ApiFetch } from '../types/apiTypes';
|
|
48
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Class for caching API responses.
|
|
52
|
+
*/
|
|
49
53
|
export declare class ApiCache {
|
|
50
54
|
static init(getListener: (key: string) => Promise<ApiCacheItem | undefined>, setListener: (key: string, value: ApiCacheItem) => Promise<boolean>, removeListener: (key: string) => Promise<boolean>, cacheStepAgeClearOld?: number): void;
|
|
51
55
|
static reset(): void;
|
|
@@ -59,7 +63,9 @@ export declare class ApiCache {
|
|
|
59
63
|
import { ApiStatus } from './ApiStatus';
|
|
60
64
|
import { ApiErrorItem } from './ApiErrorItem';
|
|
61
65
|
import { ApiData, ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
|
|
62
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* Class for processing API response data.
|
|
68
|
+
*/
|
|
63
69
|
export declare class ApiDataReturn<T = any> {
|
|
64
70
|
constructor(apiFetch: ApiFetch, query: Response, end: ApiPreparationEnd, error?: ApiErrorItem | undefined);
|
|
65
71
|
init(): Promise<this>;
|
|
@@ -69,7 +75,9 @@ export declare class ApiDataReturn<T = any> {
|
|
|
69
75
|
}
|
|
70
76
|
// File: src/classes/ApiDefault.d.ts
|
|
71
77
|
import { ApiDefaultValue, ApiFetch } from '../types/apiTypes';
|
|
72
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* Class for working with default API request data.
|
|
80
|
+
*/
|
|
73
81
|
export declare class ApiDefault {
|
|
74
82
|
is(): boolean;
|
|
75
83
|
get(): Record<string, any> | undefined;
|
|
@@ -79,16 +87,20 @@ export declare class ApiDefault {
|
|
|
79
87
|
// File: src/classes/ApiError.d.ts
|
|
80
88
|
import { ApiErrorItem } from './ApiErrorItem';
|
|
81
89
|
import { ApiErrorStorage } from './ApiErrorStorage';
|
|
82
|
-
import {
|
|
83
|
-
/**
|
|
90
|
+
import { ApiMethodItem } from '../types/apiTypes';
|
|
91
|
+
/**
|
|
92
|
+
* Utility for managing API error storage and creating error items.
|
|
93
|
+
*/
|
|
84
94
|
export declare class ApiError {
|
|
85
95
|
static getStorage(): ApiErrorStorage;
|
|
86
|
-
static add(item:
|
|
96
|
+
static add(item: any | any[], url?: string | RegExp, method?: ApiMethodItem): void;
|
|
87
97
|
static getItem(method: ApiMethodItem, response: Response): Promise<ApiErrorItem>;
|
|
88
98
|
}
|
|
89
99
|
// File: src/classes/ApiErrorItem.d.ts
|
|
90
100
|
import { ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
|
|
91
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* Class for managing and extracting data from an API error response.
|
|
103
|
+
*/
|
|
92
104
|
export declare class ApiErrorItem {
|
|
93
105
|
constructor(method: ApiMethodItem, response: Response, error: ApiErrorStorageItem);
|
|
94
106
|
getMethod(): ApiMethodItem;
|
|
@@ -100,14 +112,18 @@ export declare class ApiErrorItem {
|
|
|
100
112
|
}
|
|
101
113
|
// File: src/classes/ApiErrorStorage.d.ts
|
|
102
114
|
import { ApiErrorStorageList, ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
|
|
103
|
-
/**
|
|
115
|
+
/**
|
|
116
|
+
* Manager for handling and identifying API error states.
|
|
117
|
+
*/
|
|
104
118
|
export declare class ApiErrorStorage {
|
|
105
119
|
find(method: ApiMethodItem, response: Response): Promise<ApiErrorStorageItem>;
|
|
106
|
-
add(item:
|
|
120
|
+
add(item: any | any[], url?: string | RegExp, method?: ApiMethodItem): this;
|
|
107
121
|
}
|
|
108
122
|
// File: src/classes/ApiHeaders.d.ts
|
|
109
123
|
import { ApiFetch, ApiHeadersValue } from '../types/apiTypes';
|
|
110
|
-
/**
|
|
124
|
+
/**
|
|
125
|
+
* Class for managing HTTP request headers.
|
|
126
|
+
*/
|
|
111
127
|
export declare class ApiHeaders {
|
|
112
128
|
get(value?: Record<string, string> | null, type?: string | undefined | null): Record<string, string> | undefined;
|
|
113
129
|
getByRequest(request: ApiFetch['request'], value?: Record<string, string> | null, type?: string): Record<string, string> | undefined;
|
|
@@ -116,7 +132,9 @@ export declare class ApiHeaders {
|
|
|
116
132
|
// File: src/classes/ApiHydration.d.ts
|
|
117
133
|
import { ApiResponse } from './ApiResponse';
|
|
118
134
|
import { ApiFetch, ApiHydrationList } from '../types/apiTypes';
|
|
119
|
-
/**
|
|
135
|
+
/**
|
|
136
|
+
* Class for collecting API data for hydration on the client side during SSR.
|
|
137
|
+
*/
|
|
120
138
|
export declare class ApiHydration {
|
|
121
139
|
initResponse(response: ApiResponse): void;
|
|
122
140
|
toClient<T>(apiFetch: ApiFetch, response: T): void;
|
|
@@ -126,7 +144,6 @@ export declare class ApiHydration {
|
|
|
126
144
|
import { LoadingInstance } from './LoadingInstance';
|
|
127
145
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
128
146
|
import { ApiDefault } from './ApiDefault';
|
|
129
|
-
import { ApiErrorItem } from './ApiErrorItem';
|
|
130
147
|
import { ApiHeaders } from './ApiHeaders';
|
|
131
148
|
import { ApiHydration } from './ApiHydration';
|
|
132
149
|
import { ApiPreparation } from './ApiPreparation';
|
|
@@ -143,7 +160,9 @@ export type ApiInstanceOptions = {
|
|
|
143
160
|
errorCenterClass?: ErrorCenterInstance;
|
|
144
161
|
hydrationClass?: typeof ApiHydration;
|
|
145
162
|
};
|
|
146
|
-
/**
|
|
163
|
+
/**
|
|
164
|
+
* Core class for managing HTTP requests using the Fetch API.
|
|
165
|
+
*/
|
|
147
166
|
export declare class ApiInstance {
|
|
148
167
|
constructor(url?: string, options?: ApiInstanceOptions);
|
|
149
168
|
isLocalhost(): boolean;
|
|
@@ -171,7 +190,9 @@ export declare class ApiInstance {
|
|
|
171
190
|
}
|
|
172
191
|
// File: src/classes/ApiPreparation.d.ts
|
|
173
192
|
import { ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
|
|
174
|
-
/**
|
|
193
|
+
/**
|
|
194
|
+
* Class for preparing requests.
|
|
195
|
+
*/
|
|
175
196
|
export declare class ApiPreparation {
|
|
176
197
|
make(active: boolean, apiFetch: ApiFetch): Promise<void>;
|
|
177
198
|
makeEnd(active: boolean, query: Response, apiFetch: ApiFetch): Promise<ApiPreparationEnd>;
|
|
@@ -181,7 +202,9 @@ export declare class ApiPreparation {
|
|
|
181
202
|
// File: src/classes/ApiResponse.d.ts
|
|
182
203
|
import { ApiDefault } from './ApiDefault';
|
|
183
204
|
import { ApiFetch, ApiMethod, ApiResponseItem } from '../types/apiTypes';
|
|
184
|
-
/**
|
|
205
|
+
/**
|
|
206
|
+
* Class for working with API responses.
|
|
207
|
+
*/
|
|
185
208
|
export declare class ApiResponse {
|
|
186
209
|
constructor(requestDefault: ApiDefault);
|
|
187
210
|
get(path: string | undefined, method: ApiMethod, request?: ApiFetch['request'], devMode?: boolean): ApiResponseItem | undefined;
|
|
@@ -193,7 +216,9 @@ export declare class ApiResponse {
|
|
|
193
216
|
}
|
|
194
217
|
// File: src/classes/ApiStatus.d.ts
|
|
195
218
|
import { ApiStatusItem, ApiStatusType } from '../types/apiTypes';
|
|
196
|
-
/**
|
|
219
|
+
/**
|
|
220
|
+
* Class for managing API request status.
|
|
221
|
+
*/
|
|
197
222
|
export declare class ApiStatus {
|
|
198
223
|
get(): ApiStatusItem | undefined;
|
|
199
224
|
getStatus(): number | undefined;
|
|
@@ -213,7 +238,9 @@ export declare class ApiStatus {
|
|
|
213
238
|
}
|
|
214
239
|
// File: src/classes/BroadcastMessage.d.ts
|
|
215
240
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
216
|
-
/**
|
|
241
|
+
/**
|
|
242
|
+
* Class for working with BroadcastChannel messages.
|
|
243
|
+
*/
|
|
217
244
|
export declare class BroadcastMessage<Message = any> {
|
|
218
245
|
constructor(name: string, callback?: ((event: MessageEvent<Message>) => void) | undefined, callbackError?: ((event: MessageEvent<Message>) => void) | undefined, errorCenter?: ErrorCenterInstance);
|
|
219
246
|
getChannel(): BroadcastChannel | undefined;
|
|
@@ -223,13 +250,19 @@ export declare class BroadcastMessage<Message = any> {
|
|
|
223
250
|
destroy(): this;
|
|
224
251
|
}
|
|
225
252
|
// File: src/classes/Cache.d.ts
|
|
226
|
-
/**
|
|
253
|
+
/**
|
|
254
|
+
* Simple in-memory cache class.
|
|
255
|
+
* @deprecated
|
|
256
|
+
*/
|
|
227
257
|
export declare class Cache {
|
|
228
258
|
get<T>(name: string, callback: () => T, comparison?: any[]): T;
|
|
229
259
|
getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
|
|
230
260
|
}
|
|
231
261
|
// File: src/classes/CacheItem.d.ts
|
|
232
|
-
/**
|
|
262
|
+
/**
|
|
263
|
+
* Class for managing a single cached value.
|
|
264
|
+
* @deprecated
|
|
265
|
+
*/
|
|
233
266
|
export declare class CacheItem<T> {
|
|
234
267
|
constructor(callback: () => T);
|
|
235
268
|
getCache(comparison: any[]): T;
|
|
@@ -238,14 +271,19 @@ export declare class CacheItem<T> {
|
|
|
238
271
|
}
|
|
239
272
|
// File: src/classes/CacheStatic.d.ts
|
|
240
273
|
import { Cache } from './Cache';
|
|
241
|
-
/**
|
|
274
|
+
/**
|
|
275
|
+
* Static cache class.
|
|
276
|
+
* @deprecated
|
|
277
|
+
*/
|
|
242
278
|
export declare class CacheStatic {
|
|
243
279
|
static get<T>(name: string, callback: () => T, comparison?: any[]): T;
|
|
244
280
|
static getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
|
|
245
281
|
}
|
|
246
282
|
// File: src/classes/Cookie.d.ts
|
|
247
283
|
import { CookieOptions } from './CookieStorage';
|
|
248
|
-
/**
|
|
284
|
+
/**
|
|
285
|
+
* Class for working with cookies.
|
|
286
|
+
*/
|
|
249
287
|
export declare class Cookie<T> {
|
|
250
288
|
static getInstance<T>(name: string): Cookie<T>;
|
|
251
289
|
constructor(name: string);
|
|
@@ -255,14 +293,18 @@ export declare class Cookie<T> {
|
|
|
255
293
|
}
|
|
256
294
|
// File: src/classes/CookieBlock.d.ts
|
|
257
295
|
import { CookieBlockInstance } from './CookieBlockInstance';
|
|
258
|
-
/**
|
|
296
|
+
/**
|
|
297
|
+
* Class for changing cookie access status.
|
|
298
|
+
*/
|
|
259
299
|
export declare class CookieBlock {
|
|
260
300
|
static getItem(): CookieBlockInstance;
|
|
261
301
|
static get(): boolean;
|
|
262
302
|
static set(value: boolean): void;
|
|
263
303
|
}
|
|
264
304
|
// File: src/classes/CookieBlockInstance.d.ts
|
|
265
|
-
/**
|
|
305
|
+
/**
|
|
306
|
+
* Class for changing cookie access status.
|
|
307
|
+
*/
|
|
266
308
|
export declare class CookieBlockInstance {
|
|
267
309
|
get(): boolean;
|
|
268
310
|
set(value: boolean): void;
|
|
@@ -279,7 +321,9 @@ export type CookieOptions = {
|
|
|
279
321
|
partitioned?: boolean;
|
|
280
322
|
arguments?: string[] | Record<string, string | number | boolean>;
|
|
281
323
|
};
|
|
282
|
-
/**
|
|
324
|
+
/**
|
|
325
|
+
* Class for managing cookie storage.
|
|
326
|
+
*/
|
|
283
327
|
export declare class CookieStorage {
|
|
284
328
|
static init(getListener?: (key: string) => any | undefined, getListenerRaw?: () => string, setListener?: (key: string, value: any, cookie: string, options?: CookieOptions) => void): void;
|
|
285
329
|
static reset(): void;
|
|
@@ -290,7 +334,9 @@ export declare class CookieStorage {
|
|
|
290
334
|
}
|
|
291
335
|
// File: src/classes/DataStorage.d.ts
|
|
292
336
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
293
|
-
/**
|
|
337
|
+
/**
|
|
338
|
+
* Class for working with localStorage and sessionStorage.
|
|
339
|
+
*/
|
|
294
340
|
export declare class DataStorage<T> {
|
|
295
341
|
static setPrefix(newPrefix: string): void;
|
|
296
342
|
constructor(name: string, isSession?: boolean, errorCenter?: ErrorCenterInstance);
|
|
@@ -303,7 +349,9 @@ export declare class DataStorage<T> {
|
|
|
303
349
|
import { GeoIntl } from './GeoIntl';
|
|
304
350
|
import { NumberOrStringOrDate } from '../types/basicTypes';
|
|
305
351
|
import { GeoDate, GeoFirstDay, GeoHours, GeoTimeZoneStyle } from '../types/geoTypes';
|
|
306
|
-
/**
|
|
352
|
+
/**
|
|
353
|
+
* A class for working with dates.
|
|
354
|
+
*/
|
|
307
355
|
export declare class Datetime {
|
|
308
356
|
constructor(date?: NumberOrStringOrDate, type?: GeoDate, code?: string);
|
|
309
357
|
getIntl(): GeoIntl;
|
|
@@ -380,7 +428,9 @@ export declare class Datetime {
|
|
|
380
428
|
// File: src/classes/ErrorCenter.d.ts
|
|
381
429
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
382
430
|
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
383
|
-
/**
|
|
431
|
+
/**
|
|
432
|
+
* Class for managing error storage and handling.
|
|
433
|
+
*/
|
|
384
434
|
export declare class ErrorCenter {
|
|
385
435
|
static getItem(): ErrorCenterInstance;
|
|
386
436
|
static has(code: string, group?: string): boolean;
|
|
@@ -392,12 +442,14 @@ export declare class ErrorCenter {
|
|
|
392
442
|
static on(cause: ErrorCenterCauseItem): void;
|
|
393
443
|
}
|
|
394
444
|
// File: src/classes/ErrorCenterHandler.d.ts
|
|
395
|
-
import { ErrorCenterCauseItem, ErrorCenterGroup, ErrorCenterHandlerCallback,
|
|
396
|
-
/**
|
|
445
|
+
import { ErrorCenterCauseItem, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
446
|
+
/**
|
|
447
|
+
* Class for managing and triggering error handlers.
|
|
448
|
+
*/
|
|
397
449
|
export declare class ErrorCenterHandler {
|
|
398
450
|
constructor(handlers?: ErrorCenterHandlerList);
|
|
399
451
|
has(group: ErrorCenterGroup): boolean;
|
|
400
|
-
get(group: ErrorCenterGroup):
|
|
452
|
+
get(group: ErrorCenterGroup): any | undefined;
|
|
401
453
|
add(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): this;
|
|
402
454
|
addList(handlers: ErrorCenterHandlerList): this;
|
|
403
455
|
on(cause: ErrorCenterCauseItem): this;
|
|
@@ -405,7 +457,9 @@ export declare class ErrorCenterHandler {
|
|
|
405
457
|
// File: src/classes/ErrorCenterInstance.d.ts
|
|
406
458
|
import { ErrorCenterHandler } from './ErrorCenterHandler';
|
|
407
459
|
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
408
|
-
/**
|
|
460
|
+
/**
|
|
461
|
+
* Class for managing error storage and handling within an instance.
|
|
462
|
+
*/
|
|
409
463
|
export declare class ErrorCenterInstance {
|
|
410
464
|
constructor(causes?: ErrorCenterCauseList, handler?: ErrorCenterHandler);
|
|
411
465
|
has(code: string, group?: string): boolean;
|
|
@@ -418,7 +472,9 @@ export declare class ErrorCenterInstance {
|
|
|
418
472
|
}
|
|
419
473
|
// File: src/classes/EventItem.d.ts
|
|
420
474
|
import { ElementOrString, ElementOrWindow, EventListenerDetail, EventOptions } from '../types/basicTypes';
|
|
421
|
-
/**
|
|
475
|
+
/**
|
|
476
|
+
* Advanced wrapper for managing event listeners.
|
|
477
|
+
*/
|
|
422
478
|
export declare class EventItem<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> {
|
|
423
479
|
constructor(elementSelector?: ElementOrString<E>, type?: string | string[], listener?: EventListenerDetail<O, D> | undefined, options?: EventOptions, detail?: D | undefined);
|
|
424
480
|
isActive(): boolean;
|
|
@@ -436,16 +492,16 @@ export declare class EventItem<E extends ElementOrWindow, O extends Event, D ext
|
|
|
436
492
|
reset(): this;
|
|
437
493
|
}
|
|
438
494
|
// File: src/classes/Formatters.d.ts
|
|
439
|
-
import { FormattersType,
|
|
440
|
-
/**
|
|
495
|
+
import { FormattersType, FormattersOptionsList, FormattersListProp, FormattersItemProp, FormattersReturn } from '../types/formattersTypes';
|
|
496
|
+
/**
|
|
497
|
+
* Class for formatting a list of data.
|
|
498
|
+
*/
|
|
441
499
|
export declare class Formatters<Options extends FormattersOptionsList = FormattersOptionsList, List extends FormattersListProp = FormattersListProp, Item extends FormattersItemProp<List> = FormattersItemProp<List>> {
|
|
442
500
|
constructor(options: Options, list?: List | undefined);
|
|
443
501
|
is(): boolean;
|
|
444
|
-
isArray(): this is this & {
|
|
445
|
-
list: FormattersList<Item>;
|
|
446
|
-
};
|
|
502
|
+
isArray(): this is this & { list: any[] };
|
|
447
503
|
length(): number;
|
|
448
|
-
getList():
|
|
504
|
+
getList(): any[];
|
|
449
505
|
getOptions(): Options;
|
|
450
506
|
setList(list?: List): this;
|
|
451
507
|
to(): FormattersReturn<List, Options>;
|
|
@@ -453,7 +509,9 @@ export declare class Formatters<Options extends FormattersOptionsList = Formatte
|
|
|
453
509
|
// File: src/classes/Geo.d.ts
|
|
454
510
|
import { GeoInstance } from './GeoInstance';
|
|
455
511
|
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
456
|
-
/**
|
|
512
|
+
/**
|
|
513
|
+
* Static class for working with geographical data.
|
|
514
|
+
*/
|
|
457
515
|
export declare class Geo {
|
|
458
516
|
static getObject(): GeoInstance;
|
|
459
517
|
static get(): GeoItemFull;
|
|
@@ -462,6 +520,8 @@ export declare class Geo {
|
|
|
462
520
|
static getStandard(): string;
|
|
463
521
|
static getFirstDay(): string;
|
|
464
522
|
static getLocation(): string;
|
|
523
|
+
static getLocationCountry(): string;
|
|
524
|
+
static getLocationLanguage(): string;
|
|
465
525
|
static getItem(): GeoItemFull;
|
|
466
526
|
static getList(): GeoItem[];
|
|
467
527
|
static getByCode(code?: string): GeoItemFull;
|
|
@@ -477,10 +537,11 @@ export declare class Geo {
|
|
|
477
537
|
static setValueDefault(code?: string | (() => string)): void;
|
|
478
538
|
}
|
|
479
539
|
// File: src/classes/GeoFlag.d.ts
|
|
480
|
-
import {
|
|
481
|
-
import { GeoFlagItem, GeoFlagNational, GeoItemFull } from '../types/geoTypes';
|
|
540
|
+
import { GeoFlagItem, GeoFlagNational } from '../types/geoTypes';
|
|
482
541
|
export declare const GEO_FLAG_ICON_NAME = "f";
|
|
483
|
-
/**
|
|
542
|
+
/**
|
|
543
|
+
* Class for working with flags and geographic information.
|
|
544
|
+
*/
|
|
484
545
|
export declare class GeoFlag {
|
|
485
546
|
static flags: Record<string, string>;
|
|
486
547
|
constructor(code?: string);
|
|
@@ -494,7 +555,9 @@ export declare class GeoFlag {
|
|
|
494
555
|
// File: src/classes/GeoInstance.d.ts
|
|
495
556
|
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
496
557
|
export declare const UI_GEO_COOKIE_KEY = "ui-geo-code";
|
|
497
|
-
/**
|
|
558
|
+
/**
|
|
559
|
+
* Base class for working with geographic data.
|
|
560
|
+
*/
|
|
498
561
|
export declare class GeoInstance {
|
|
499
562
|
constructor();
|
|
500
563
|
get(): GeoItemFull;
|
|
@@ -503,6 +566,8 @@ export declare class GeoInstance {
|
|
|
503
566
|
getStandard(): string;
|
|
504
567
|
getFirstDay(): string;
|
|
505
568
|
getLocation(): string;
|
|
569
|
+
getLocationCountry(): string;
|
|
570
|
+
getLocationLanguage(): string;
|
|
506
571
|
getItem(): GeoItemFull;
|
|
507
572
|
getList(): GeoItem[];
|
|
508
573
|
getByCode(code?: string): GeoItemFull;
|
|
@@ -512,7 +577,7 @@ export declare class GeoInstance {
|
|
|
512
577
|
getTimezone(): number;
|
|
513
578
|
getTimezoneFormat(): string;
|
|
514
579
|
find(code: string): GeoItemFull;
|
|
515
|
-
toStandard(item: GeoItem): string;
|
|
580
|
+
toStandard(item: GeoItem, language?: string): string;
|
|
516
581
|
set(code: string, save?: boolean): void;
|
|
517
582
|
setTimezone(timezone: number): void;
|
|
518
583
|
setValueDefault(code?: string | (() => string)): void;
|
|
@@ -521,7 +586,9 @@ export declare class GeoInstance {
|
|
|
521
586
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
522
587
|
import { NumberOrStringOrDate, NumberOrString, ItemValue } from '../types/basicTypes';
|
|
523
588
|
import { GeoDate } from '../types/geoTypes';
|
|
524
|
-
/**
|
|
589
|
+
/**
|
|
590
|
+
* API for internationalization.
|
|
591
|
+
*/
|
|
525
592
|
export declare class GeoIntl {
|
|
526
593
|
static isItem(code?: string): boolean;
|
|
527
594
|
static getLocation(code?: string): string;
|
|
@@ -555,7 +622,9 @@ export declare class GeoIntl {
|
|
|
555
622
|
}
|
|
556
623
|
// File: src/classes/GeoPhone.d.ts
|
|
557
624
|
import { GeoPhoneValue, GeoPhoneMap, GeoPhoneMapInfo } from '../types/geoTypes';
|
|
558
|
-
/**
|
|
625
|
+
/**
|
|
626
|
+
* A class for storing and processing phone number masks.
|
|
627
|
+
*/
|
|
559
628
|
export declare class GeoPhone {
|
|
560
629
|
static get(code: string): GeoPhoneValue | undefined;
|
|
561
630
|
static getByPhone(phone: string): GeoPhoneMapInfo;
|
|
@@ -566,7 +635,9 @@ export declare class GeoPhone {
|
|
|
566
635
|
static removeZero(phone: string): string;
|
|
567
636
|
}
|
|
568
637
|
// File: src/classes/Global.d.ts
|
|
569
|
-
/**
|
|
638
|
+
/**
|
|
639
|
+
* Static utility for global application data.
|
|
640
|
+
*/
|
|
570
641
|
export declare class Global {
|
|
571
642
|
static getItem(): Record<string, any>;
|
|
572
643
|
static get<R = any>(name: string): R;
|
|
@@ -574,7 +645,9 @@ export declare class Global {
|
|
|
574
645
|
}
|
|
575
646
|
// File: src/classes/Hash.d.ts
|
|
576
647
|
import { HashInstance } from './HashInstance';
|
|
577
|
-
/**
|
|
648
|
+
/**
|
|
649
|
+
* Static class for URL hash data.
|
|
650
|
+
*/
|
|
578
651
|
export declare class Hash {
|
|
579
652
|
static getItem(): HashInstance;
|
|
580
653
|
static get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
@@ -584,13 +657,11 @@ export declare class Hash {
|
|
|
584
657
|
static reload(): void;
|
|
585
658
|
}
|
|
586
659
|
// File: src/classes/HashInstance.d.ts
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
removeWatch<T>(name: string, callback: (value: T) => void): this;
|
|
593
|
-
reload(): this;
|
|
660
|
+
import { UrlInstanceAbstract } from './UrlInstanceAbstract';
|
|
661
|
+
/**
|
|
662
|
+
* Class for URL hash data.
|
|
663
|
+
*/
|
|
664
|
+
export declare class HashInstance extends UrlInstanceAbstract {
|
|
594
665
|
}
|
|
595
666
|
// File: src/classes/Icons.d.ts
|
|
596
667
|
export type IconsItem = string | Promise<string | any> | (() => Promise<string | any>);
|
|
@@ -598,7 +669,9 @@ export type IconsConfig = {
|
|
|
598
669
|
url?: string;
|
|
599
670
|
list?: Record<string, IconsItem>;
|
|
600
671
|
};
|
|
601
|
-
/**
|
|
672
|
+
/**
|
|
673
|
+
* Class for managing icons.
|
|
674
|
+
*/
|
|
602
675
|
export declare class Icons {
|
|
603
676
|
static is(index: string): boolean;
|
|
604
677
|
static get(index: string, url?: string, wait?: number): Promise<string>;
|
|
@@ -615,20 +688,26 @@ export declare class Icons {
|
|
|
615
688
|
// File: src/classes/Loading.d.ts
|
|
616
689
|
import { LoadingInstance } from './LoadingInstance';
|
|
617
690
|
import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
|
|
618
|
-
/**
|
|
691
|
+
/**
|
|
692
|
+
* Class for working with global loading.
|
|
693
|
+
*/
|
|
619
694
|
export declare class Loading {
|
|
620
695
|
static is(): boolean;
|
|
621
696
|
static get(): number;
|
|
622
697
|
static getItem(): LoadingInstance;
|
|
623
698
|
static show(): void;
|
|
624
699
|
static hide(): void;
|
|
625
|
-
static registrationEvent(listener: EventListenerDetail<CustomEvent,
|
|
626
|
-
static unregistrationEvent(listener: EventListenerDetail<CustomEvent,
|
|
700
|
+
static registrationEvent(listener: EventListenerDetail<CustomEvent, any>, element?: ElementOrString<HTMLElement>): void;
|
|
701
|
+
static unregistrationEvent(listener: EventListenerDetail<CustomEvent, any>, element?: ElementOrString<HTMLElement>): void;
|
|
627
702
|
}
|
|
628
703
|
// File: src/classes/LoadingInstance.d.ts
|
|
629
704
|
import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
|
|
630
|
-
export type LoadingDetail = {
|
|
631
|
-
|
|
705
|
+
export type LoadingDetail = {
|
|
706
|
+
loading: boolean;
|
|
707
|
+
};
|
|
708
|
+
/**
|
|
709
|
+
* Class for working with global loading.
|
|
710
|
+
*/
|
|
632
711
|
export declare class LoadingInstance {
|
|
633
712
|
constructor(eventName?: string);
|
|
634
713
|
is(): boolean;
|
|
@@ -643,7 +722,9 @@ import { MetaManager } from './MetaManager';
|
|
|
643
722
|
import { MetaOg } from './MetaOg';
|
|
644
723
|
import { MetaTwitter } from './MetaTwitter';
|
|
645
724
|
import { MetaRobots, MetaTag } from '../types/metaTypes';
|
|
646
|
-
/**
|
|
725
|
+
/**
|
|
726
|
+
* Unified class for managing all types of meta tags.
|
|
727
|
+
*/
|
|
647
728
|
export declare class Meta extends MetaManager<MetaTag[]> {
|
|
648
729
|
constructor();
|
|
649
730
|
getOg(): MetaOg;
|
|
@@ -671,21 +752,21 @@ export declare class Meta extends MetaManager<MetaTag[]> {
|
|
|
671
752
|
htmlTitle(): string;
|
|
672
753
|
}
|
|
673
754
|
// File: src/classes/MetaManager.d.ts
|
|
674
|
-
|
|
675
|
-
/** Base manager for meta tags. */
|
|
676
|
-
export declare class MetaManager<T extends readonly string[], Key extends keyof MetaList<T> = keyof MetaList<T>> {
|
|
755
|
+
export declare class MetaManager<T extends readonly string[], Key extends any = any> {
|
|
677
756
|
constructor(listMeta: T, isProperty?: boolean);
|
|
678
757
|
getListMeta(): T;
|
|
679
758
|
get(name: Key): string;
|
|
680
|
-
getItems():
|
|
759
|
+
getItems(): any;
|
|
681
760
|
html(): string;
|
|
682
761
|
set(name: Key, content: string): this;
|
|
683
|
-
setByList(metaList:
|
|
762
|
+
setByList(metaList: any): this;
|
|
684
763
|
}
|
|
685
764
|
// File: src/classes/MetaOg.d.ts
|
|
686
765
|
import { MetaManager } from './MetaManager';
|
|
687
766
|
import { MetaOpenGraphTag, MetaOpenGraphType } from '../types/metaTypes';
|
|
688
|
-
/**
|
|
767
|
+
/**
|
|
768
|
+
* Class for Open Graph meta tags.
|
|
769
|
+
*/
|
|
689
770
|
export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
|
|
690
771
|
constructor();
|
|
691
772
|
getTitle(): string;
|
|
@@ -708,7 +789,9 @@ import { Meta } from './Meta';
|
|
|
708
789
|
import { MetaOg } from './MetaOg';
|
|
709
790
|
import { MetaTwitter } from './MetaTwitter';
|
|
710
791
|
import { MetaRobots } from '../types/metaTypes';
|
|
711
|
-
/**
|
|
792
|
+
/**
|
|
793
|
+
* Static class for managing meta tags.
|
|
794
|
+
*/
|
|
712
795
|
export declare class MetaStatic {
|
|
713
796
|
static getItem(): Meta;
|
|
714
797
|
static getOg(): MetaOg;
|
|
@@ -738,7 +821,9 @@ export declare class MetaStatic {
|
|
|
738
821
|
// File: src/classes/MetaTwitter.d.ts
|
|
739
822
|
import { MetaManager } from './MetaManager';
|
|
740
823
|
import { MetaTwitterCard, MetaTwitterTag } from '../types/metaTypes';
|
|
741
|
-
/**
|
|
824
|
+
/**
|
|
825
|
+
* Class for Twitter Card meta tags.
|
|
826
|
+
*/
|
|
742
827
|
export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
743
828
|
constructor();
|
|
744
829
|
getCard(): MetaTwitterCard;
|
|
@@ -756,9 +841,31 @@ export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
|
756
841
|
setDescription(description: string): this;
|
|
757
842
|
setImage(image: string): this;
|
|
758
843
|
}
|
|
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
|
+
}
|
|
759
864
|
// File: src/classes/ResumableTimer.d.ts
|
|
760
865
|
import { FunctionVoid } from '../types/basicTypes';
|
|
761
|
-
/**
|
|
866
|
+
/**
|
|
867
|
+
* Class for creating a timer that can be paused and resumed.
|
|
868
|
+
*/
|
|
762
869
|
export declare class ResumableTimer {
|
|
763
870
|
constructor(callback: FunctionVoid, delay?: number, blockStart?: boolean);
|
|
764
871
|
resume(): this;
|
|
@@ -768,7 +875,9 @@ export declare class ResumableTimer {
|
|
|
768
875
|
}
|
|
769
876
|
// File: src/classes/ScrollbarWidth.d.ts
|
|
770
877
|
import { DataStorage } from './DataStorage';
|
|
771
|
-
/**
|
|
878
|
+
/**
|
|
879
|
+
* Class for getting the scroll width.
|
|
880
|
+
*/
|
|
772
881
|
export declare class ScrollbarWidth {
|
|
773
882
|
static is(): Promise<boolean>;
|
|
774
883
|
static get(): Promise<number>;
|
|
@@ -781,7 +890,9 @@ import { SearchListItem } from './SearchListItem';
|
|
|
781
890
|
import { SearchListMatcher } from './SearchListMatcher';
|
|
782
891
|
import { SearchListOptions } from './SearchListOptions';
|
|
783
892
|
import { SearchColumns, SearchFormatList, SearchItem, SearchListValue, SearchOptions } from '../types/searchTypes';
|
|
784
|
-
/**
|
|
893
|
+
/**
|
|
894
|
+
* Main class for managing a searchable list.
|
|
895
|
+
*/
|
|
785
896
|
export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>> {
|
|
786
897
|
constructor(list: SearchListValue<T>, columns?: K, value?: string, options?: SearchOptions);
|
|
787
898
|
getData(): SearchListData<T, K>;
|
|
@@ -800,11 +911,13 @@ export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>
|
|
|
800
911
|
import { SearchListItem } from './SearchListItem';
|
|
801
912
|
import { SearchListOptions } from './SearchListOptions';
|
|
802
913
|
import { SearchCacheItem, SearchColumns, SearchFormatItem, SearchFormatList, SearchItem, SearchListValue } from '../types/searchTypes';
|
|
803
|
-
/**
|
|
914
|
+
/**
|
|
915
|
+
* Class for managing search data list and its cache.
|
|
916
|
+
*/
|
|
804
917
|
export declare class SearchListData<T extends SearchItem, K extends SearchColumns<T>> {
|
|
805
918
|
constructor(list: SearchListValue<T>, columns: K | undefined, item: SearchListItem, options: SearchListOptions);
|
|
806
|
-
is(): this is this & { list: T[]; columns: string[]
|
|
807
|
-
isList(): this is this & { list: T[]
|
|
919
|
+
is(): this is this & { list: T[]; columns: string[] };
|
|
920
|
+
isList(): this is this & { list: T[] };
|
|
808
921
|
getList(): SearchListValue<T>;
|
|
809
922
|
getColumns(): K | undefined;
|
|
810
923
|
setList(list: SearchListValue<T>): this;
|
|
@@ -815,10 +928,12 @@ export declare class SearchListData<T extends SearchItem, K extends SearchColumn
|
|
|
815
928
|
}
|
|
816
929
|
// File: src/classes/SearchListItem.d.ts
|
|
817
930
|
import { SearchListOptions } from './SearchListOptions';
|
|
818
|
-
/**
|
|
931
|
+
/**
|
|
932
|
+
* Class representing a single search item's state.
|
|
933
|
+
*/
|
|
819
934
|
export declare class SearchListItem {
|
|
820
935
|
constructor(value: string | undefined, options: SearchListOptions);
|
|
821
|
-
is(): this is this & { value: string
|
|
936
|
+
is(): this is this & { value: string };
|
|
822
937
|
isSearch(): boolean;
|
|
823
938
|
get(): string;
|
|
824
939
|
set(value?: string): this;
|
|
@@ -827,7 +942,9 @@ export declare class SearchListItem {
|
|
|
827
942
|
import { SearchListItem } from './SearchListItem';
|
|
828
943
|
import { SearchListOptions } from './SearchListOptions';
|
|
829
944
|
import { SearchCacheItem } from '../types/searchTypes';
|
|
830
|
-
/**
|
|
945
|
+
/**
|
|
946
|
+
* Class for matching search values against the list.
|
|
947
|
+
*/
|
|
831
948
|
export declare class SearchListMatcher {
|
|
832
949
|
constructor(item: SearchListItem, options: SearchListOptions);
|
|
833
950
|
is(): boolean;
|
|
@@ -837,7 +954,9 @@ export declare class SearchListMatcher {
|
|
|
837
954
|
}
|
|
838
955
|
// File: src/classes/SearchListOptions.d.ts
|
|
839
956
|
import { SearchOptions } from '../types/searchTypes';
|
|
840
|
-
/**
|
|
957
|
+
/**
|
|
958
|
+
* Class for managing search list options.
|
|
959
|
+
*/
|
|
841
960
|
export declare class SearchListOptions {
|
|
842
961
|
constructor(options?: SearchOptions | undefined);
|
|
843
962
|
getOptions(): SearchOptions;
|
|
@@ -849,7 +968,9 @@ export declare class SearchListOptions {
|
|
|
849
968
|
setOptions(options: SearchOptions): this;
|
|
850
969
|
}
|
|
851
970
|
// File: src/classes/ServerStorage.d.ts
|
|
852
|
-
/**
|
|
971
|
+
/**
|
|
972
|
+
* Class for managing data storage during server-side rendering.
|
|
973
|
+
*/
|
|
853
974
|
export declare class ServerStorage {
|
|
854
975
|
static init(listener: () => Record<string, any> | undefined): typeof ServerStorage;
|
|
855
976
|
static reset(): void;
|
|
@@ -861,7 +982,9 @@ export declare class ServerStorage {
|
|
|
861
982
|
static toString(): string;
|
|
862
983
|
}
|
|
863
984
|
// File: src/classes/StorageCallback.d.ts
|
|
864
|
-
/**
|
|
985
|
+
/**
|
|
986
|
+
* A class for working with callback lists for storage.
|
|
987
|
+
*/
|
|
865
988
|
export declare class StorageCallback<T = any, Callback = (value: T) => void | Promise<void>> {
|
|
866
989
|
static getInstance<T>(name: string, group?: string): StorageCallback<T, (value: T) => void | Promise<void>>;
|
|
867
990
|
constructor(name: string, group?: string);
|
|
@@ -876,7 +999,9 @@ export declare class StorageCallback<T = any, Callback = (value: T) => void | Pr
|
|
|
876
999
|
// File: src/classes/Translate.d.ts
|
|
877
1000
|
import { TranslateInstance } from './TranslateInstance';
|
|
878
1001
|
import { TranslateCode, TranslateConfig, TranslateDataFile, TranslateList } from '../types/translateTypes';
|
|
879
|
-
/**
|
|
1002
|
+
/**
|
|
1003
|
+
* Class for getting the translated text.
|
|
1004
|
+
*/
|
|
880
1005
|
export declare class Translate {
|
|
881
1006
|
static get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
|
|
882
1007
|
static getItem(): TranslateInstance;
|
|
@@ -895,7 +1020,9 @@ export declare class Translate {
|
|
|
895
1020
|
}
|
|
896
1021
|
// File: src/classes/TranslateFile.d.ts
|
|
897
1022
|
import { TranslateDataFile, TranslateDataFileList } from '../types/translateTypes';
|
|
898
|
-
/**
|
|
1023
|
+
/**
|
|
1024
|
+
* Class for working with translation files.
|
|
1025
|
+
*/
|
|
899
1026
|
export declare class TranslateFile {
|
|
900
1027
|
constructor(data?: TranslateDataFile, language?: string | (() => string), location?: string | (() => string));
|
|
901
1028
|
isFile(): boolean;
|
|
@@ -907,7 +1034,9 @@ export declare class TranslateFile {
|
|
|
907
1034
|
// File: src/classes/TranslateInstance.d.ts
|
|
908
1035
|
import { TranslateFile } from './TranslateFile';
|
|
909
1036
|
import { TranslateCode, TranslateDataFile, TranslateList } from '../types/translateTypes';
|
|
910
|
-
/**
|
|
1037
|
+
/**
|
|
1038
|
+
* Class for getting the translated text.
|
|
1039
|
+
*/
|
|
911
1040
|
export declare class TranslateInstance {
|
|
912
1041
|
constructor(url?: string, propsName?: string, files?: TranslateFile);
|
|
913
1042
|
get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
|
|
@@ -923,8 +1052,21 @@ export declare class TranslateInstance {
|
|
|
923
1052
|
setPropsName(name: string): this;
|
|
924
1053
|
setReadApi(value: boolean): this;
|
|
925
1054
|
}
|
|
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
|
+
}
|
|
926
1066
|
// File: src/classes/UrlItem.d.ts
|
|
927
|
-
/**
|
|
1067
|
+
/**
|
|
1068
|
+
* Isomorphic utility for URLs.
|
|
1069
|
+
*/
|
|
928
1070
|
export declare class UrlItem {
|
|
929
1071
|
static getInstance(): UrlItem;
|
|
930
1072
|
constructor(url?: string | URL);
|
|
@@ -940,7 +1082,13 @@ export declare class UrlItem {
|
|
|
940
1082
|
get searchParams(): URLSearchParams;
|
|
941
1083
|
get hash(): string;
|
|
942
1084
|
get origin(): string;
|
|
1085
|
+
hasParam(name: string): boolean;
|
|
1086
|
+
getParam(name: string): string | undefined;
|
|
1087
|
+
getParams(): Record<string, any>;
|
|
943
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;
|
|
944
1092
|
toString(): string;
|
|
945
1093
|
toJSON(): string;
|
|
946
1094
|
}
|
|
@@ -1246,6 +1394,8 @@ export * from './classes/MetaManager';
|
|
|
1246
1394
|
export * from './classes/MetaOg';
|
|
1247
1395
|
export * from './classes/MetaStatic';
|
|
1248
1396
|
export * from './classes/MetaTwitter';
|
|
1397
|
+
export * from './classes/Query';
|
|
1398
|
+
export * from './classes/QueryInstance';
|
|
1249
1399
|
export * from './classes/ResumableTimer';
|
|
1250
1400
|
export * from './classes/ScrollbarWidth';
|
|
1251
1401
|
export * from './classes/SearchList';
|
|
@@ -1258,6 +1408,7 @@ export * from './classes/StorageCallback';
|
|
|
1258
1408
|
export * from './classes/Translate';
|
|
1259
1409
|
export * from './classes/TranslateFile';
|
|
1260
1410
|
export * from './classes/TranslateInstance';
|
|
1411
|
+
export * from './classes/UrlInstanceAbstract';
|
|
1261
1412
|
export * from './classes/UrlItem';
|
|
1262
1413
|
export * from './functions/addTagHighlightMatch';
|
|
1263
1414
|
export * from './functions/anyToString';
|
|
@@ -1391,7 +1542,11 @@ export declare enum ApiMethodItem {
|
|
|
1391
1542
|
put = "PUT",
|
|
1392
1543
|
patch = "PATCH"
|
|
1393
1544
|
}
|
|
1394
|
-
export type ApiCacheItem<T = any> = {
|
|
1545
|
+
export type ApiCacheItem<T = any> = {
|
|
1546
|
+
value: T;
|
|
1547
|
+
age?: number;
|
|
1548
|
+
cacheAge: number;
|
|
1549
|
+
};
|
|
1395
1550
|
export type ApiCacheList = Record<string, ApiCacheItem>;
|
|
1396
1551
|
export type ApiConfig = {
|
|
1397
1552
|
urlRoot?: string;
|
|
@@ -1404,8 +1559,21 @@ export type ApiConfig = {
|
|
|
1404
1559
|
devMode?: boolean;
|
|
1405
1560
|
};
|
|
1406
1561
|
export type ApiData<T = any> = T extends any[] ? T : ApiDataItem<T>;
|
|
1407
|
-
export type ApiDataValidation = {
|
|
1408
|
-
|
|
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
|
+
};
|
|
1409
1577
|
export type ApiHeadersValue = Record<string, string> | (() => Record<string, string>);
|
|
1410
1578
|
export type ApiDefaultValue = Record<string, any> | (() => Record<string, any>);
|
|
1411
1579
|
export type ApiFetch = {
|
|
@@ -1436,14 +1604,45 @@ export type ApiFetch = {
|
|
|
1436
1604
|
cacheId?: number | string;
|
|
1437
1605
|
endResetLimit?: number;
|
|
1438
1606
|
};
|
|
1439
|
-
export type ApiHydrationItem = {
|
|
1607
|
+
export type ApiHydrationItem = {
|
|
1608
|
+
path: string;
|
|
1609
|
+
method: ApiMethod;
|
|
1610
|
+
request?: ApiFetch['request'];
|
|
1611
|
+
response: any;
|
|
1612
|
+
};
|
|
1440
1613
|
export type ApiHydrationList = ApiHydrationItem[];
|
|
1441
|
-
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
|
+
};
|
|
1442
1622
|
export type ApiErrorStorageList = ApiErrorStorageItem[];
|
|
1443
1623
|
export type ApiMethod = string | ApiMethodItem;
|
|
1444
|
-
export type ApiPreparationEnd = {
|
|
1445
|
-
|
|
1446
|
-
|
|
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
|
+
};
|
|
1447
1646
|
export type ApiStatusType = 'success' | 'error' | 'warning' | 'info';
|
|
1448
1647
|
// File: src/types/basicTypes.d.ts
|
|
1449
1648
|
export type Undefined = undefined | null;
|
|
@@ -1461,21 +1660,48 @@ export type FunctionVoid = () => void;
|
|
|
1461
1660
|
export type FunctionArgs<T, R> = (...args: T[]) => R;
|
|
1462
1661
|
export type FunctionAnyType<T = any, R = any> = (...args: T[]) => R;
|
|
1463
1662
|
export type ItemList<T = any> = Record<string, T>;
|
|
1464
|
-
export type Item<V> = {
|
|
1465
|
-
|
|
1466
|
-
|
|
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
|
+
};
|
|
1467
1675
|
export type ElementOrWindow = HTMLElement | Window;
|
|
1468
1676
|
export type ElementOrString<E extends ElementOrWindow> = E | string;
|
|
1469
1677
|
export type EventOptions = AddEventListenerOptions | boolean | undefined;
|
|
1470
1678
|
export type EventListenerDetail<O extends Event, D extends Record<string, any>> = (event: O, detail?: D) => void;
|
|
1471
|
-
export type EventActivityItem<E extends ElementOrWindow> = {
|
|
1472
|
-
|
|
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
|
+
};
|
|
1473
1689
|
// File: src/types/errorCenter.d.ts
|
|
1474
1690
|
export type ErrorCenterGroup = string | undefined;
|
|
1475
|
-
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
|
+
};
|
|
1476
1699
|
export type ErrorCenterCauseList = ErrorCenterCauseItem[];
|
|
1477
1700
|
export type ErrorCenterHandlerCallback = (cause: ErrorCenterCauseItem) => void;
|
|
1478
|
-
export type ErrorCenterHandlerItem = {
|
|
1701
|
+
export type ErrorCenterHandlerItem = {
|
|
1702
|
+
group?: ErrorCenterGroup;
|
|
1703
|
+
handlers: ErrorCenterHandlerCallback[];
|
|
1704
|
+
};
|
|
1479
1705
|
export type ErrorCenterHandlerList = ErrorCenterHandlerItem[];
|
|
1480
1706
|
// File: src/types/formattersTypes.d.ts
|
|
1481
1707
|
import { ArrayToItem } from './basicTypes';
|
|
@@ -1488,21 +1714,48 @@ export declare enum FormattersType {
|
|
|
1488
1714
|
plural = "plural",
|
|
1489
1715
|
unit = "unit"
|
|
1490
1716
|
}
|
|
1491
|
-
export type FormattersOptionsCurrency = {
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
export type
|
|
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
|
+
};
|
|
1497
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>;
|
|
1498
|
-
export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = {
|
|
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
|
+
};
|
|
1499
1750
|
export type FormattersOptionsList = Record<string, FormattersOptionsItem>;
|
|
1500
1751
|
export type FormattersListItem = Record<string, any>;
|
|
1501
1752
|
export type FormattersList<Item extends FormattersListItem> = Item[];
|
|
1502
1753
|
export type FormattersCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<FormattersCapitalize<Rest>>}` : K;
|
|
1503
1754
|
export type FormattersColumns<T extends FormattersOptionsList> = (keyof T & string)[];
|
|
1504
1755
|
export type FormattersKey<K, A extends string = 'Format'> = K extends string ? `${FormattersCapitalize<K>}${A}` : never;
|
|
1505
|
-
export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = {
|
|
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
|
+
};
|
|
1506
1759
|
export type FormattersListFormat<T extends FormattersListItem, K extends string[]> = FormattersDataItem<T, K>[];
|
|
1507
1760
|
export type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersDataItem<T, FormattersColumns<O>>;
|
|
1508
1761
|
export type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersListFormat<T, FormattersColumns<O>>;
|
|
@@ -1514,42 +1767,285 @@ export type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'mo
|
|
|
1514
1767
|
export type GeoFirstDay = 1 | 6 | 0;
|
|
1515
1768
|
export type GeoHours = '12' | '24';
|
|
1516
1769
|
export type GeoTimeZoneStyle = 'minute' | 'hour' | 'ISO8601' | 'RFC';
|
|
1517
|
-
export interface GeoItem {
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
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
|
+
}
|
|
1524
1821
|
// File: src/types/metaTypes.d.ts
|
|
1525
|
-
export declare enum MetaTag {
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
export declare enum
|
|
1534
|
-
|
|
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
|
+
}
|
|
1535
2007
|
// File: src/types/searchTypes.d.ts
|
|
1536
2008
|
export type SearchItem = Record<string, any>;
|
|
1537
2009
|
export type SearchColumnPath<K, P> = K extends string ? P extends string ? `${K}.${P}` : never : never;
|
|
1538
|
-
export type SearchColumn<T extends SearchItem> = {
|
|
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];
|
|
1539
2013
|
export type SearchColumns<T extends SearchItem> = (SearchColumn<T> & string)[];
|
|
1540
2014
|
export type SearchFormatCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<SearchFormatCapitalize<Rest>>}` : K;
|
|
1541
2015
|
export type SearchFormatKey<K> = K extends string ? `${SearchFormatCapitalize<K>}Search` : never;
|
|
1542
|
-
export type SearchFormatItem<T extends SearchItem, KT extends string[]> = {
|
|
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
|
+
};
|
|
1543
2021
|
export type SearchFormatList<T extends SearchItem, K extends string[]> = SearchFormatItem<T, K>[];
|
|
1544
2022
|
export type SearchListValue<T extends SearchItem> = T[] | undefined;
|
|
1545
|
-
export type SearchOptions = {
|
|
1546
|
-
|
|
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
|
+
};
|
|
1547
2034
|
export type SearchCache<T extends SearchItem> = SearchCacheItem<T>[];
|
|
1548
|
-
export type HighlightMatchItem = {
|
|
2035
|
+
export type HighlightMatchItem = {
|
|
2036
|
+
text: string;
|
|
2037
|
+
isMatch: boolean;
|
|
2038
|
+
};
|
|
1549
2039
|
// File: src/types/translateTypes.d.ts
|
|
1550
|
-
export type TranslateConfig = {
|
|
2040
|
+
export type TranslateConfig = {
|
|
2041
|
+
url?: string;
|
|
2042
|
+
propsName?: string;
|
|
2043
|
+
readApi?: boolean;
|
|
2044
|
+
};
|
|
1551
2045
|
export type TranslateCode = string | string[];
|
|
1552
|
-
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
|
+
};
|
|
1553
2049
|
export type TranslateItemOrList<T extends TranslateCode> = T extends string[] ? TranslateList<T> : string;
|
|
1554
2050
|
export type TranslateDataFileList = Record<string, string>;
|
|
1555
2051
|
export type TranslateDataFileItem = () => Promise<TranslateDataFileList>;
|