@dxtmisha/functional-basic 1.3.8 → 1.3.9
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 +6 -0
- package/ai-description.txt +15 -11
- package/ai-types.txt +122 -938
- package/dist/library.js +302 -302
- package/dist/src/classes/Geo.d.ts +1 -1
- package/dist/src/classes/GeoInstance.d.ts +1 -1
- package/package.json +1 -1
package/ai-types.txt
CHANGED
|
@@ -16,9 +16,7 @@ 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
|
-
* Class for working with HTTP requests.
|
|
21
|
-
*/
|
|
19
|
+
/** Class for HTTP requests. */
|
|
22
20
|
export declare class Api {
|
|
23
21
|
static isLocalhost(): boolean;
|
|
24
22
|
static getItem(): ApiInstance;
|
|
@@ -47,9 +45,7 @@ export declare class Api {
|
|
|
47
45
|
}
|
|
48
46
|
// File: src/classes/ApiCache.d.ts
|
|
49
47
|
import { ApiCacheItem, ApiCacheList, ApiFetch } from '../types/apiTypes';
|
|
50
|
-
/**
|
|
51
|
-
* Class for caching API responses.
|
|
52
|
-
*/
|
|
48
|
+
/** Class for caching API responses. */
|
|
53
49
|
export declare class ApiCache {
|
|
54
50
|
static init(getListener: (key: string) => Promise<ApiCacheItem | undefined>, setListener: (key: string, value: ApiCacheItem) => Promise<boolean>, removeListener: (key: string) => Promise<boolean>, cacheStepAgeClearOld?: number): void;
|
|
55
51
|
static reset(): void;
|
|
@@ -63,9 +59,7 @@ export declare class ApiCache {
|
|
|
63
59
|
import { ApiStatus } from './ApiStatus';
|
|
64
60
|
import { ApiErrorItem } from './ApiErrorItem';
|
|
65
61
|
import { ApiData, ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
|
|
66
|
-
/**
|
|
67
|
-
* Class for handling and processing data returned from an API request.
|
|
68
|
-
*/
|
|
62
|
+
/** Class for processing API response data. */
|
|
69
63
|
export declare class ApiDataReturn<T = any> {
|
|
70
64
|
constructor(apiFetch: ApiFetch, query: Response, end: ApiPreparationEnd, error?: ApiErrorItem | undefined);
|
|
71
65
|
init(): Promise<this>;
|
|
@@ -75,9 +69,7 @@ export declare class ApiDataReturn<T = any> {
|
|
|
75
69
|
}
|
|
76
70
|
// File: src/classes/ApiDefault.d.ts
|
|
77
71
|
import { ApiDefaultValue, ApiFetch } from '../types/apiTypes';
|
|
78
|
-
/**
|
|
79
|
-
* Class for working with default API request data.
|
|
80
|
-
*/
|
|
72
|
+
/** Class for default API request data. */
|
|
81
73
|
export declare class ApiDefault {
|
|
82
74
|
is(): boolean;
|
|
83
75
|
get(): Record<string, any> | undefined;
|
|
@@ -88,9 +80,7 @@ export declare class ApiDefault {
|
|
|
88
80
|
import { ApiErrorItem } from './ApiErrorItem';
|
|
89
81
|
import { ApiErrorStorage } from './ApiErrorStorage';
|
|
90
82
|
import { ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
|
|
91
|
-
/**
|
|
92
|
-
* Utility class for managing the API error storage and creating error items.
|
|
93
|
-
*/
|
|
83
|
+
/** Utility for managing API error storage. */
|
|
94
84
|
export declare class ApiError {
|
|
95
85
|
static getStorage(): ApiErrorStorage;
|
|
96
86
|
static add(item: Partial<ApiErrorStorageItem> | Partial<ApiErrorStorageItem>[], url?: string | RegExp, method?: ApiMethodItem): void;
|
|
@@ -98,9 +88,7 @@ export declare class ApiError {
|
|
|
98
88
|
}
|
|
99
89
|
// File: src/classes/ApiErrorItem.d.ts
|
|
100
90
|
import { ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
|
|
101
|
-
/**
|
|
102
|
-
* Class for managing and extracting data from an API error response.
|
|
103
|
-
*/
|
|
91
|
+
/** Class for API error response handling. */
|
|
104
92
|
export declare class ApiErrorItem {
|
|
105
93
|
constructor(method: ApiMethodItem, response: Response, error: ApiErrorStorageItem);
|
|
106
94
|
getMethod(): ApiMethodItem;
|
|
@@ -112,18 +100,14 @@ export declare class ApiErrorItem {
|
|
|
112
100
|
}
|
|
113
101
|
// File: src/classes/ApiErrorStorage.d.ts
|
|
114
102
|
import { ApiErrorStorageList, ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
|
|
115
|
-
/**
|
|
116
|
-
* Manager for handling and identifying API error states.
|
|
117
|
-
*/
|
|
103
|
+
/** Manager for API error states. */
|
|
118
104
|
export declare class ApiErrorStorage {
|
|
119
105
|
find(method: ApiMethodItem, response: Response): Promise<ApiErrorStorageItem>;
|
|
120
106
|
add(item: Partial<ApiErrorStorageItem> | Partial<ApiErrorStorageItem>[], url?: string | RegExp, method?: ApiMethodItem): this;
|
|
121
107
|
}
|
|
122
108
|
// File: src/classes/ApiHeaders.d.ts
|
|
123
109
|
import { ApiFetch, ApiHeadersValue } from '../types/apiTypes';
|
|
124
|
-
/**
|
|
125
|
-
* Class for managing HTTP request headers.
|
|
126
|
-
*/
|
|
110
|
+
/** Class for managing HTTP headers. */
|
|
127
111
|
export declare class ApiHeaders {
|
|
128
112
|
get(value?: Record<string, string> | null, type?: string | undefined | null): Record<string, string> | undefined;
|
|
129
113
|
getByRequest(request: ApiFetch['request'], value?: Record<string, string> | null, type?: string): Record<string, string> | undefined;
|
|
@@ -132,9 +116,7 @@ export declare class ApiHeaders {
|
|
|
132
116
|
// File: src/classes/ApiHydration.d.ts
|
|
133
117
|
import { ApiResponse } from './ApiResponse';
|
|
134
118
|
import { ApiFetch, ApiHydrationList } from '../types/apiTypes';
|
|
135
|
-
/**
|
|
136
|
-
* Class for collecting API data for hydration on the client side during SSR.
|
|
137
|
-
*/
|
|
119
|
+
/** Class for SSR client hydration. */
|
|
138
120
|
export declare class ApiHydration {
|
|
139
121
|
initResponse(response: ApiResponse): void;
|
|
140
122
|
toClient<T>(apiFetch: ApiFetch, response: T): void;
|
|
@@ -161,9 +143,7 @@ export type ApiInstanceOptions = {
|
|
|
161
143
|
errorCenterClass?: ErrorCenterInstance;
|
|
162
144
|
hydrationClass?: typeof ApiHydration;
|
|
163
145
|
};
|
|
164
|
-
/**
|
|
165
|
-
* Core class for managing HTTP requests using the Fetch API.
|
|
166
|
-
*/
|
|
146
|
+
/** Core class for HTTP requests. */
|
|
167
147
|
export declare class ApiInstance {
|
|
168
148
|
constructor(url?: string, options?: ApiInstanceOptions);
|
|
169
149
|
isLocalhost(): boolean;
|
|
@@ -191,9 +171,7 @@ export declare class ApiInstance {
|
|
|
191
171
|
}
|
|
192
172
|
// File: src/classes/ApiPreparation.d.ts
|
|
193
173
|
import { ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
|
|
194
|
-
/**
|
|
195
|
-
* Class for preparing requests.
|
|
196
|
-
*/
|
|
174
|
+
/** Class for preparing requests. */
|
|
197
175
|
export declare class ApiPreparation {
|
|
198
176
|
make(active: boolean, apiFetch: ApiFetch): Promise<void>;
|
|
199
177
|
makeEnd(active: boolean, query: Response, apiFetch: ApiFetch): Promise<ApiPreparationEnd>;
|
|
@@ -203,9 +181,7 @@ export declare class ApiPreparation {
|
|
|
203
181
|
// File: src/classes/ApiResponse.d.ts
|
|
204
182
|
import { ApiDefault } from './ApiDefault';
|
|
205
183
|
import { ApiFetch, ApiMethod, ApiResponseItem } from '../types/apiTypes';
|
|
206
|
-
/**
|
|
207
|
-
* Class for working with API responses.
|
|
208
|
-
*/
|
|
184
|
+
/** Class for API responses. */
|
|
209
185
|
export declare class ApiResponse {
|
|
210
186
|
constructor(requestDefault: ApiDefault);
|
|
211
187
|
get(path: string | undefined, method: ApiMethod, request?: ApiFetch['request'], devMode?: boolean): ApiResponseItem | undefined;
|
|
@@ -217,9 +193,7 @@ export declare class ApiResponse {
|
|
|
217
193
|
}
|
|
218
194
|
// File: src/classes/ApiStatus.d.ts
|
|
219
195
|
import { ApiStatusItem, ApiStatusType } from '../types/apiTypes';
|
|
220
|
-
/**
|
|
221
|
-
* Class for managing API request status.
|
|
222
|
-
*/
|
|
196
|
+
/** Class for API status management. */
|
|
223
197
|
export declare class ApiStatus {
|
|
224
198
|
get(): ApiStatusItem | undefined;
|
|
225
199
|
getStatus(): number | undefined;
|
|
@@ -239,9 +213,7 @@ export declare class ApiStatus {
|
|
|
239
213
|
}
|
|
240
214
|
// File: src/classes/BroadcastMessage.d.ts
|
|
241
215
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
242
|
-
/**
|
|
243
|
-
* Class for working with BroadcastChannel messages.
|
|
244
|
-
*/
|
|
216
|
+
/** Class for BroadcastChannel messages. */
|
|
245
217
|
export declare class BroadcastMessage<Message = any> {
|
|
246
218
|
constructor(name: string, callback?: ((event: MessageEvent<Message>) => void) | undefined, callbackError?: ((event: MessageEvent<Message>) => void) | undefined, errorCenter?: ErrorCenterInstance);
|
|
247
219
|
getChannel(): BroadcastChannel | undefined;
|
|
@@ -251,19 +223,13 @@ export declare class BroadcastMessage<Message = any> {
|
|
|
251
223
|
destroy(): this;
|
|
252
224
|
}
|
|
253
225
|
// File: src/classes/Cache.d.ts
|
|
254
|
-
/**
|
|
255
|
-
* Simple in-memory cache class that stores computed values by key.
|
|
256
|
-
* @deprecated This class is obsolete and should not be used
|
|
257
|
-
*/
|
|
226
|
+
/** @deprecated Use other storage. */
|
|
258
227
|
export declare class Cache {
|
|
259
228
|
get<T>(name: string, callback: () => T, comparison?: any[]): T;
|
|
260
229
|
getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
|
|
261
230
|
}
|
|
262
231
|
// File: src/classes/CacheItem.d.ts
|
|
263
|
-
/**
|
|
264
|
-
* Class for managing a single cached value with dependency tracking.
|
|
265
|
-
* @deprecated This class is obsolete and should not be used
|
|
266
|
-
*/
|
|
232
|
+
/** @deprecated Use other storage. */
|
|
267
233
|
export declare class CacheItem<T> {
|
|
268
234
|
constructor(callback: () => T);
|
|
269
235
|
getCache(comparison: any[]): T;
|
|
@@ -272,19 +238,14 @@ export declare class CacheItem<T> {
|
|
|
272
238
|
}
|
|
273
239
|
// File: src/classes/CacheStatic.d.ts
|
|
274
240
|
import { Cache } from './Cache';
|
|
275
|
-
/**
|
|
276
|
-
* Static cache class that uses ServerStorage for persistent caching across the application.
|
|
277
|
-
* @deprecated This class is obsolete and should not be used
|
|
278
|
-
*/
|
|
241
|
+
/** @deprecated Use other storage. */
|
|
279
242
|
export declare class CacheStatic {
|
|
280
243
|
static get<T>(name: string, callback: () => T, comparison?: any[]): T;
|
|
281
244
|
static getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
|
|
282
245
|
}
|
|
283
246
|
// File: src/classes/Cookie.d.ts
|
|
284
247
|
import { CookieOptions } from './CookieStorage';
|
|
285
|
-
/**
|
|
286
|
-
* Class for working with cookies.
|
|
287
|
-
*/
|
|
248
|
+
/** Class for cookies. */
|
|
288
249
|
export declare class Cookie<T> {
|
|
289
250
|
static getInstance<T>(name: string): Cookie<T>;
|
|
290
251
|
constructor(name: string);
|
|
@@ -294,18 +255,14 @@ export declare class Cookie<T> {
|
|
|
294
255
|
}
|
|
295
256
|
// File: src/classes/CookieBlock.d.ts
|
|
296
257
|
import { CookieBlockInstance } from './CookieBlockInstance';
|
|
297
|
-
/**
|
|
298
|
-
* Class for changing cookie access status.
|
|
299
|
-
*/
|
|
258
|
+
/** Class for cookie access status. */
|
|
300
259
|
export declare class CookieBlock {
|
|
301
260
|
static getItem(): CookieBlockInstance;
|
|
302
261
|
static get(): boolean;
|
|
303
262
|
static set(value: boolean): void;
|
|
304
263
|
}
|
|
305
264
|
// File: src/classes/CookieBlockInstance.d.ts
|
|
306
|
-
/**
|
|
307
|
-
* Class for changing cookie access status.
|
|
308
|
-
*/
|
|
265
|
+
/** Class for cookie access status. */
|
|
309
266
|
export declare class CookieBlockInstance {
|
|
310
267
|
get(): boolean;
|
|
311
268
|
set(value: boolean): void;
|
|
@@ -322,9 +279,7 @@ export type CookieOptions = {
|
|
|
322
279
|
partitioned?: boolean;
|
|
323
280
|
arguments?: string[] | Record<string, string | number | boolean>;
|
|
324
281
|
};
|
|
325
|
-
/**
|
|
326
|
-
* Class for managing cookie storage with support for custom listeners.
|
|
327
|
-
*/
|
|
282
|
+
/** Class for cookie management. */
|
|
328
283
|
export declare class CookieStorage {
|
|
329
284
|
static init(getListener?: (key: string) => any | undefined, getListenerRaw?: () => string, setListener?: (key: string, value: any, cookie: string, options?: CookieOptions) => void): void;
|
|
330
285
|
static reset(): void;
|
|
@@ -335,9 +290,7 @@ export declare class CookieStorage {
|
|
|
335
290
|
}
|
|
336
291
|
// File: src/classes/DataStorage.d.ts
|
|
337
292
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
338
|
-
/**
|
|
339
|
-
* Class for working with localStorage and sessionStorage.
|
|
340
|
-
*/
|
|
293
|
+
/** Class for localStorage/sessionStorage. */
|
|
341
294
|
export declare class DataStorage<T> {
|
|
342
295
|
static setPrefix(newPrefix: string): void;
|
|
343
296
|
constructor(name: string, isSession?: boolean, errorCenter?: ErrorCenterInstance);
|
|
@@ -350,9 +303,7 @@ export declare class DataStorage<T> {
|
|
|
350
303
|
import { GeoIntl } from './GeoIntl';
|
|
351
304
|
import { NumberOrStringOrDate } from '../types/basicTypes';
|
|
352
305
|
import { GeoDate, GeoFirstDay, GeoHours, GeoTimeZoneStyle } from '../types/geoTypes';
|
|
353
|
-
/**
|
|
354
|
-
* A class for working with dates.
|
|
355
|
-
*/
|
|
306
|
+
/** Class for date processing. */
|
|
356
307
|
export declare class Datetime {
|
|
357
308
|
constructor(date?: NumberOrStringOrDate, type?: GeoDate, code?: string);
|
|
358
309
|
getIntl(): GeoIntl;
|
|
@@ -429,9 +380,7 @@ export declare class Datetime {
|
|
|
429
380
|
// File: src/classes/ErrorCenter.d.ts
|
|
430
381
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
431
382
|
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
432
|
-
/**
|
|
433
|
-
* Class for managing error storage and handling.
|
|
434
|
-
*/
|
|
383
|
+
/** Class for error handling. */
|
|
435
384
|
export declare class ErrorCenter {
|
|
436
385
|
static getItem(): ErrorCenterInstance;
|
|
437
386
|
static has(code: string, group?: string): boolean;
|
|
@@ -444,9 +393,7 @@ export declare class ErrorCenter {
|
|
|
444
393
|
}
|
|
445
394
|
// File: src/classes/ErrorCenterHandler.d.ts
|
|
446
395
|
import { ErrorCenterCauseItem, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerItem, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
447
|
-
/**
|
|
448
|
-
* Class for managing and triggering error handlers.
|
|
449
|
-
*/
|
|
396
|
+
/** Class for managing error handlers. */
|
|
450
397
|
export declare class ErrorCenterHandler {
|
|
451
398
|
constructor(handlers?: ErrorCenterHandlerList);
|
|
452
399
|
has(group: ErrorCenterGroup): boolean;
|
|
@@ -458,9 +405,7 @@ export declare class ErrorCenterHandler {
|
|
|
458
405
|
// File: src/classes/ErrorCenterInstance.d.ts
|
|
459
406
|
import { ErrorCenterHandler } from './ErrorCenterHandler';
|
|
460
407
|
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
461
|
-
/**
|
|
462
|
-
* Class for managing error storage and handling within an instance.
|
|
463
|
-
*/
|
|
408
|
+
/** Class for local error management. */
|
|
464
409
|
export declare class ErrorCenterInstance {
|
|
465
410
|
constructor(causes?: ErrorCenterCauseList, handler?: ErrorCenterHandler);
|
|
466
411
|
has(code: string, group?: string): boolean;
|
|
@@ -472,10 +417,8 @@ export declare class ErrorCenterInstance {
|
|
|
472
417
|
on(cause: ErrorCenterCauseItem): this;
|
|
473
418
|
}
|
|
474
419
|
// File: src/classes/EventItem.d.ts
|
|
475
|
-
import { ElementOrString, ElementOrWindow,
|
|
476
|
-
/**
|
|
477
|
-
* Advanced wrapper for managing event listeners on DOM elements or the `window` object.
|
|
478
|
-
*/
|
|
420
|
+
import { ElementOrString, ElementOrWindow, EventListenerDetail, EventOptions } from '../types/basicTypes';
|
|
421
|
+
/** Advanced wrapper for DOM events. */
|
|
479
422
|
export declare class EventItem<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> {
|
|
480
423
|
constructor(elementSelector?: ElementOrString<E>, type?: string | string[], listener?: EventListenerDetail<O, D> | undefined, options?: EventOptions, detail?: D | undefined);
|
|
481
424
|
isActive(): boolean;
|
|
@@ -493,10 +436,8 @@ export declare class EventItem<E extends ElementOrWindow, O extends Event, D ext
|
|
|
493
436
|
reset(): this;
|
|
494
437
|
}
|
|
495
438
|
// File: src/classes/Formatters.d.ts
|
|
496
|
-
import { FormattersType, FormattersList, FormattersOptionsList, FormattersOptionsInformation,
|
|
497
|
-
/**
|
|
498
|
-
* Class for formatting a list of data based on provided options.
|
|
499
|
-
*/
|
|
439
|
+
import { FormattersType, FormattersList, FormattersOptionsList, FormattersOptionsInformation, FormattersReturn, FormattersListProp, FormattersItemProp } from '../types/formattersTypes';
|
|
440
|
+
/** Class for data formatting. */
|
|
500
441
|
export declare class Formatters<Options extends FormattersOptionsList = FormattersOptionsList, List extends FormattersListProp = FormattersListProp, Item extends FormattersItemProp<List> = FormattersItemProp<List>> {
|
|
501
442
|
constructor(options: Options, list?: List | undefined);
|
|
502
443
|
is(): boolean;
|
|
@@ -512,9 +453,7 @@ export declare class Formatters<Options extends FormattersOptionsList = Formatte
|
|
|
512
453
|
// File: src/classes/Geo.d.ts
|
|
513
454
|
import { GeoInstance } from './GeoInstance';
|
|
514
455
|
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
515
|
-
/**
|
|
516
|
-
* Static class for working with geographical data.
|
|
517
|
-
*/
|
|
456
|
+
/** Static class for Geo data. */
|
|
518
457
|
export declare class Geo {
|
|
519
458
|
static getObject(): GeoInstance;
|
|
520
459
|
static get(): GeoItemFull;
|
|
@@ -535,15 +474,13 @@ export declare class Geo {
|
|
|
535
474
|
static toStandard(item: GeoItem): string;
|
|
536
475
|
static set(code: string, save?: boolean): void;
|
|
537
476
|
static setTimezone(timezone: number): void;
|
|
538
|
-
static setValueDefault(code?: string): void;
|
|
477
|
+
static setValueDefault(code?: string | (() => string)): void;
|
|
539
478
|
}
|
|
540
479
|
// File: src/classes/GeoFlag.d.ts
|
|
541
480
|
import { GeoIntl } from './GeoIntl';
|
|
542
481
|
import { GeoFlagItem, GeoFlagNational, GeoItemFull } from '../types/geoTypes';
|
|
543
482
|
export declare const GEO_FLAG_ICON_NAME = "f";
|
|
544
|
-
/**
|
|
545
|
-
* Class for working with flags and geographic information.
|
|
546
|
-
*/
|
|
483
|
+
/** Class for Geo flags. */
|
|
547
484
|
export declare class GeoFlag {
|
|
548
485
|
static flags: Record<string, string>;
|
|
549
486
|
constructor(code?: string);
|
|
@@ -557,9 +494,7 @@ export declare class GeoFlag {
|
|
|
557
494
|
// File: src/classes/GeoInstance.d.ts
|
|
558
495
|
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
559
496
|
export declare const UI_GEO_COOKIE_KEY = "ui-geo-code";
|
|
560
|
-
/**
|
|
561
|
-
* Base class for working with geographic data.
|
|
562
|
-
*/
|
|
497
|
+
/** Base class for Geo data. */
|
|
563
498
|
export declare class GeoInstance {
|
|
564
499
|
constructor();
|
|
565
500
|
get(): GeoItemFull;
|
|
@@ -580,16 +515,13 @@ export declare class GeoInstance {
|
|
|
580
515
|
toStandard(item: GeoItem): string;
|
|
581
516
|
set(code: string, save?: boolean): void;
|
|
582
517
|
setTimezone(timezone: number): void;
|
|
583
|
-
setValueDefault(code?: string): void;
|
|
518
|
+
setValueDefault(code?: string | (() => string)): void;
|
|
584
519
|
}
|
|
585
520
|
// File: src/classes/GeoIntl.d.ts
|
|
586
521
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
587
522
|
import { NumberOrStringOrDate, NumberOrString, ItemValue } from '../types/basicTypes';
|
|
588
523
|
import { GeoDate } from '../types/geoTypes';
|
|
589
|
-
/**
|
|
590
|
-
* The Intl namespace object contains several constructors as well as functionality common
|
|
591
|
-
* to the internationalization constructors and other language sensitive functions.
|
|
592
|
-
*/
|
|
524
|
+
/** Intl wrapper for localization. */
|
|
593
525
|
export declare class GeoIntl {
|
|
594
526
|
static isItem(code?: string): boolean;
|
|
595
527
|
static getLocation(code?: string): string;
|
|
@@ -623,9 +555,7 @@ export declare class GeoIntl {
|
|
|
623
555
|
}
|
|
624
556
|
// File: src/classes/GeoPhone.d.ts
|
|
625
557
|
import { GeoPhoneValue, GeoPhoneMap, GeoPhoneMapInfo } from '../types/geoTypes';
|
|
626
|
-
/**
|
|
627
|
-
* A class for storing and processing phone number masks.
|
|
628
|
-
*/
|
|
558
|
+
/** Class for phone masks. */
|
|
629
559
|
export declare class GeoPhone {
|
|
630
560
|
static get(code: string): GeoPhoneValue | undefined;
|
|
631
561
|
static getByPhone(phone: string): GeoPhoneMapInfo;
|
|
@@ -636,9 +566,7 @@ export declare class GeoPhone {
|
|
|
636
566
|
static removeZero(phone: string): string;
|
|
637
567
|
}
|
|
638
568
|
// File: src/classes/Global.d.ts
|
|
639
|
-
/**
|
|
640
|
-
* Static utility class for storing and retrieving application-wide global data.
|
|
641
|
-
*/
|
|
569
|
+
/** Global application data store. */
|
|
642
570
|
export declare class Global {
|
|
643
571
|
static getItem(): Record<string, any>;
|
|
644
572
|
static get<R = any>(name: string): R;
|
|
@@ -646,9 +574,7 @@ export declare class Global {
|
|
|
646
574
|
}
|
|
647
575
|
// File: src/classes/Hash.d.ts
|
|
648
576
|
import { HashInstance } from './HashInstance';
|
|
649
|
-
/**
|
|
650
|
-
* Static class for working with data stored in the URL hash.
|
|
651
|
-
*/
|
|
577
|
+
/** Static class for URL hash data. */
|
|
652
578
|
export declare class Hash {
|
|
653
579
|
static getItem(): HashInstance;
|
|
654
580
|
static get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
@@ -658,9 +584,7 @@ export declare class Hash {
|
|
|
658
584
|
static reload(): void;
|
|
659
585
|
}
|
|
660
586
|
// File: src/classes/HashInstance.d.ts
|
|
661
|
-
/**
|
|
662
|
-
* Class for working with data stored in the URL hash.
|
|
663
|
-
*/
|
|
587
|
+
/** Class for URL hash data. */
|
|
664
588
|
export declare class HashInstance {
|
|
665
589
|
get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
666
590
|
set<T>(name: string, callback: T | (() => T)): this;
|
|
@@ -674,9 +598,7 @@ export type IconsConfig = {
|
|
|
674
598
|
url?: string;
|
|
675
599
|
list?: Record<string, IconsItem>;
|
|
676
600
|
};
|
|
677
|
-
/**
|
|
678
|
-
* Class for managing icons.
|
|
679
|
-
*/
|
|
601
|
+
/** Class for icons management. */
|
|
680
602
|
export declare class Icons {
|
|
681
603
|
static is(index: string): boolean;
|
|
682
604
|
static get(index: string, url?: string, wait?: number): Promise<string>;
|
|
@@ -691,34 +613,22 @@ export declare class Icons {
|
|
|
691
613
|
static setConfig(config: IconsConfig): void;
|
|
692
614
|
}
|
|
693
615
|
// File: src/classes/Loading.d.ts
|
|
694
|
-
import { LoadingInstance
|
|
616
|
+
import { LoadingInstance } from './LoadingInstance';
|
|
695
617
|
import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
|
|
696
|
-
/**
|
|
697
|
-
* Class for working with global loading.
|
|
698
|
-
*/
|
|
618
|
+
/** Class for loading state. */
|
|
699
619
|
export declare class Loading {
|
|
700
620
|
static is(): boolean;
|
|
701
621
|
static get(): number;
|
|
702
622
|
static getItem(): LoadingInstance;
|
|
703
623
|
static show(): void;
|
|
704
624
|
static hide(): void;
|
|
705
|
-
static registrationEvent(listener: EventListenerDetail<CustomEvent,
|
|
706
|
-
static unregistrationEvent(listener: EventListenerDetail<CustomEvent,
|
|
625
|
+
static registrationEvent(listener: EventListenerDetail<CustomEvent, { loading: boolean }>, element?: ElementOrString<HTMLElement>): void;
|
|
626
|
+
static unregistrationEvent(listener: EventListenerDetail<CustomEvent, { loading: boolean }>, element?: ElementOrString<HTMLElement>): void;
|
|
707
627
|
}
|
|
708
628
|
// File: src/classes/LoadingInstance.d.ts
|
|
709
|
-
import { EventItem } from './EventItem';
|
|
710
629
|
import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
|
|
711
|
-
export type LoadingDetail = {
|
|
712
|
-
|
|
713
|
-
};
|
|
714
|
-
export type LoadingRegistrationItem = {
|
|
715
|
-
item: EventItem<Window, CustomEvent, LoadingDetail>;
|
|
716
|
-
listener: EventListenerDetail<CustomEvent, LoadingDetail>;
|
|
717
|
-
element?: ElementOrString<HTMLElement>;
|
|
718
|
-
};
|
|
719
|
-
/**
|
|
720
|
-
* Class for working with global loading.
|
|
721
|
-
*/
|
|
630
|
+
export type LoadingDetail = { loading: boolean; };
|
|
631
|
+
/** Class for loading instance. */
|
|
722
632
|
export declare class LoadingInstance {
|
|
723
633
|
constructor(eventName?: string);
|
|
724
634
|
is(): boolean;
|
|
@@ -733,9 +643,7 @@ import { MetaManager } from './MetaManager';
|
|
|
733
643
|
import { MetaOg } from './MetaOg';
|
|
734
644
|
import { MetaTwitter } from './MetaTwitter';
|
|
735
645
|
import { MetaRobots, MetaTag } from '../types/metaTypes';
|
|
736
|
-
/**
|
|
737
|
-
* Unified class for managing all types of meta tags.
|
|
738
|
-
*/
|
|
646
|
+
/** Unified Meta manager. */
|
|
739
647
|
export declare class Meta extends MetaManager<MetaTag[]> {
|
|
740
648
|
constructor();
|
|
741
649
|
getOg(): MetaOg;
|
|
@@ -763,12 +671,8 @@ export declare class Meta extends MetaManager<MetaTag[]> {
|
|
|
763
671
|
htmlTitle(): string;
|
|
764
672
|
}
|
|
765
673
|
// File: src/classes/MetaManager.d.ts
|
|
766
|
-
type MetaList<T extends readonly string[]> = {
|
|
767
|
-
|
|
768
|
-
};
|
|
769
|
-
/**
|
|
770
|
-
* Class for working with meta tags.
|
|
771
|
-
*/
|
|
674
|
+
type MetaList<T extends readonly string[]> = { [K in T[number]]?: string; };
|
|
675
|
+
/** Base manager for meta tags. */
|
|
772
676
|
export declare class MetaManager<T extends readonly string[], Key extends keyof MetaList<T> = keyof MetaList<T>> {
|
|
773
677
|
constructor(listMeta: T, isProperty?: boolean);
|
|
774
678
|
getListMeta(): T;
|
|
@@ -778,13 +682,10 @@ export declare class MetaManager<T extends readonly string[], Key extends keyof
|
|
|
778
682
|
set(name: Key, content: string): this;
|
|
779
683
|
setByList(metaList: MetaList<T>): this;
|
|
780
684
|
}
|
|
781
|
-
export {};
|
|
782
685
|
// File: src/classes/MetaOg.d.ts
|
|
783
686
|
import { MetaManager } from './MetaManager';
|
|
784
687
|
import { MetaOpenGraphTag, MetaOpenGraphType } from '../types/metaTypes';
|
|
785
|
-
/**
|
|
786
|
-
* Class for working with Open Graph meta tags.
|
|
787
|
-
*/
|
|
688
|
+
/** Class for Open Graph tags. */
|
|
788
689
|
export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
|
|
789
690
|
constructor();
|
|
790
691
|
getTitle(): string;
|
|
@@ -807,9 +708,7 @@ import { Meta } from './Meta';
|
|
|
807
708
|
import { MetaOg } from './MetaOg';
|
|
808
709
|
import { MetaTwitter } from './MetaTwitter';
|
|
809
710
|
import { MetaRobots } from '../types/metaTypes';
|
|
810
|
-
/**
|
|
811
|
-
* Static class for managing meta tags.
|
|
812
|
-
*/
|
|
711
|
+
/** Static class for Meta tags. */
|
|
813
712
|
export declare class MetaStatic {
|
|
814
713
|
static getItem(): Meta;
|
|
815
714
|
static getOg(): MetaOg;
|
|
@@ -839,9 +738,7 @@ export declare class MetaStatic {
|
|
|
839
738
|
// File: src/classes/MetaTwitter.d.ts
|
|
840
739
|
import { MetaManager } from './MetaManager';
|
|
841
740
|
import { MetaTwitterCard, MetaTwitterTag } from '../types/metaTypes';
|
|
842
|
-
/**
|
|
843
|
-
* Class for working with Twitter Card meta tags.
|
|
844
|
-
*/
|
|
741
|
+
/** Class for Twitter meta tags. */
|
|
845
742
|
export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
846
743
|
constructor();
|
|
847
744
|
getCard(): MetaTwitterCard;
|
|
@@ -861,9 +758,7 @@ export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
|
861
758
|
}
|
|
862
759
|
// File: src/classes/ResumableTimer.d.ts
|
|
863
760
|
import { FunctionVoid } from '../types/basicTypes';
|
|
864
|
-
/**
|
|
865
|
-
* Class for creating a timer that can be paused and resumed.
|
|
866
|
-
*/
|
|
761
|
+
/** Resumable timer class. */
|
|
867
762
|
export declare class ResumableTimer {
|
|
868
763
|
constructor(callback: FunctionVoid, delay?: number, blockStart?: boolean);
|
|
869
764
|
resume(): this;
|
|
@@ -873,9 +768,7 @@ export declare class ResumableTimer {
|
|
|
873
768
|
}
|
|
874
769
|
// File: src/classes/ScrollbarWidth.d.ts
|
|
875
770
|
import { DataStorage } from './DataStorage';
|
|
876
|
-
/**
|
|
877
|
-
* Class for getting the scroll width.
|
|
878
|
-
*/
|
|
771
|
+
/** Class for scroll width. */
|
|
879
772
|
export declare class ScrollbarWidth {
|
|
880
773
|
static is(): Promise<boolean>;
|
|
881
774
|
static get(): Promise<number>;
|
|
@@ -888,9 +781,7 @@ import { SearchListItem } from './SearchListItem';
|
|
|
888
781
|
import { SearchListMatcher } from './SearchListMatcher';
|
|
889
782
|
import { SearchListOptions } from './SearchListOptions';
|
|
890
783
|
import { SearchColumns, SearchFormatList, SearchItem, SearchListValue, SearchOptions } from '../types/searchTypes';
|
|
891
|
-
/**
|
|
892
|
-
* Main class for managing a searchable list.
|
|
893
|
-
*/
|
|
784
|
+
/** Class for searchable lists. */
|
|
894
785
|
export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>> {
|
|
895
786
|
constructor(list: SearchListValue<T>, columns?: K, value?: string, options?: SearchOptions);
|
|
896
787
|
getData(): SearchListData<T, K>;
|
|
@@ -908,35 +799,26 @@ export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>
|
|
|
908
799
|
// File: src/classes/SearchListData.d.ts
|
|
909
800
|
import { SearchListItem } from './SearchListItem';
|
|
910
801
|
import { SearchListOptions } from './SearchListOptions';
|
|
911
|
-
import {
|
|
912
|
-
/**
|
|
913
|
-
* Class for managing and formatting the search data list and its cache.
|
|
914
|
-
*/
|
|
802
|
+
import { SearchCacheItem, SearchColumns, SearchFormatItem, SearchFormatList, SearchItem, SearchListValue } from '../types/searchTypes';
|
|
803
|
+
/** Data manager for search list. */
|
|
915
804
|
export declare class SearchListData<T extends SearchItem, K extends SearchColumns<T>> {
|
|
916
805
|
constructor(list: SearchListValue<T>, columns: K | undefined, item: SearchListItem, options: SearchListOptions);
|
|
917
|
-
is(): this is this & {
|
|
918
|
-
|
|
919
|
-
columns: string[];
|
|
920
|
-
};
|
|
921
|
-
isList(): this is this & {
|
|
922
|
-
list: T[];
|
|
923
|
-
};
|
|
806
|
+
is(): this is this & { list: T[]; columns: string[]; };
|
|
807
|
+
isList(): this is this & { list: T[]; };
|
|
924
808
|
getList(): SearchListValue<T>;
|
|
925
809
|
getColumns(): K | undefined;
|
|
926
810
|
setList(list: SearchListValue<T>): this;
|
|
927
811
|
setColumns(columns?: SearchColumns<T>): this;
|
|
812
|
+
findCacheItem(item: T): SearchCacheItem<T> | undefined;
|
|
813
|
+
forEach(callback: (item: SearchCacheItem<T>['item'], value: SearchCacheItem<T>['value']) => SearchFormatItem<T, K> | undefined): SearchFormatList<T, K>;
|
|
928
814
|
toFormatItem(item: T, selection: boolean): SearchFormatItem<T, K>;
|
|
929
815
|
}
|
|
930
816
|
// File: src/classes/SearchListItem.d.ts
|
|
931
817
|
import { SearchListOptions } from './SearchListOptions';
|
|
932
|
-
/**
|
|
933
|
-
* Class representing a single search item's value and its search-related state.
|
|
934
|
-
*/
|
|
818
|
+
/** Single search item state. */
|
|
935
819
|
export declare class SearchListItem {
|
|
936
820
|
constructor(value: string | undefined, options: SearchListOptions);
|
|
937
|
-
is(): this is this & {
|
|
938
|
-
value: string;
|
|
939
|
-
};
|
|
821
|
+
is(): this is this & { value: string; };
|
|
940
822
|
isSearch(): boolean;
|
|
941
823
|
get(): string;
|
|
942
824
|
set(value?: string): this;
|
|
@@ -945,9 +827,7 @@ export declare class SearchListItem {
|
|
|
945
827
|
import { SearchListItem } from './SearchListItem';
|
|
946
828
|
import { SearchListOptions } from './SearchListOptions';
|
|
947
829
|
import { SearchCacheItem } from '../types/searchTypes';
|
|
948
|
-
/**
|
|
949
|
-
* Class responsible for matching search values against the search list data.
|
|
950
|
-
*/
|
|
830
|
+
/** Matcher for search values. */
|
|
951
831
|
export declare class SearchListMatcher {
|
|
952
832
|
constructor(item: SearchListItem, options: SearchListOptions);
|
|
953
833
|
is(): boolean;
|
|
@@ -957,9 +837,7 @@ export declare class SearchListMatcher {
|
|
|
957
837
|
}
|
|
958
838
|
// File: src/classes/SearchListOptions.d.ts
|
|
959
839
|
import { SearchOptions } from '../types/searchTypes';
|
|
960
|
-
/**
|
|
961
|
-
* Class for managing search list options.
|
|
962
|
-
*/
|
|
840
|
+
/** Configuration for search list. */
|
|
963
841
|
export declare class SearchListOptions {
|
|
964
842
|
constructor(options?: SearchOptions | undefined);
|
|
965
843
|
getOptions(): SearchOptions;
|
|
@@ -971,9 +849,7 @@ export declare class SearchListOptions {
|
|
|
971
849
|
setOptions(options: SearchOptions): this;
|
|
972
850
|
}
|
|
973
851
|
// File: src/classes/ServerStorage.d.ts
|
|
974
|
-
/**
|
|
975
|
-
* Class for managing data storage during server-side rendering (SSR).
|
|
976
|
-
*/
|
|
852
|
+
/** Server storage for SSR. */
|
|
977
853
|
export declare class ServerStorage {
|
|
978
854
|
static init(listener: () => Record<string, any> | undefined): typeof ServerStorage;
|
|
979
855
|
static reset(): void;
|
|
@@ -984,11 +860,8 @@ export declare class ServerStorage {
|
|
|
984
860
|
static remove(key: string): void;
|
|
985
861
|
static toString(): string;
|
|
986
862
|
}
|
|
987
|
-
export {};
|
|
988
863
|
// File: src/classes/StorageCallback.d.ts
|
|
989
|
-
/**
|
|
990
|
-
* A class for working with callback lists for storage.
|
|
991
|
-
*/
|
|
864
|
+
/** Callback storage. */
|
|
992
865
|
export declare class StorageCallback<T = any, Callback = (value: T) => void | Promise<void>> {
|
|
993
866
|
static getInstance<T>(name: string, group?: string): StorageCallback<T, (value: T) => void | Promise<void>>;
|
|
994
867
|
constructor(name: string, group?: string);
|
|
@@ -1003,9 +876,7 @@ export declare class StorageCallback<T = any, Callback = (value: T) => void | Pr
|
|
|
1003
876
|
// File: src/classes/Translate.d.ts
|
|
1004
877
|
import { TranslateInstance } from './TranslateInstance';
|
|
1005
878
|
import { TranslateCode, TranslateConfig, TranslateDataFile, TranslateList } from '../types/translateTypes';
|
|
1006
|
-
/**
|
|
1007
|
-
* Class for getting the translated text.
|
|
1008
|
-
*/
|
|
879
|
+
/** Translation service. */
|
|
1009
880
|
export declare class Translate {
|
|
1010
881
|
static get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
|
|
1011
882
|
static getItem(): TranslateInstance;
|
|
@@ -1024,9 +895,7 @@ export declare class Translate {
|
|
|
1024
895
|
}
|
|
1025
896
|
// File: src/classes/TranslateFile.d.ts
|
|
1026
897
|
import { TranslateDataFile, TranslateDataFileList } from '../types/translateTypes';
|
|
1027
|
-
/**
|
|
1028
|
-
* Class for working with translation files.
|
|
1029
|
-
*/
|
|
898
|
+
/** Translation file handler. */
|
|
1030
899
|
export declare class TranslateFile {
|
|
1031
900
|
constructor(data?: TranslateDataFile, language?: string | (() => string), location?: string | (() => string));
|
|
1032
901
|
isFile(): boolean;
|
|
@@ -1038,9 +907,7 @@ export declare class TranslateFile {
|
|
|
1038
907
|
// File: src/classes/TranslateInstance.d.ts
|
|
1039
908
|
import { TranslateFile } from './TranslateFile';
|
|
1040
909
|
import { TranslateCode, TranslateDataFile, TranslateList } from '../types/translateTypes';
|
|
1041
|
-
/**
|
|
1042
|
-
* Class for getting the translated text.
|
|
1043
|
-
*/
|
|
910
|
+
/** Translation instance. */
|
|
1044
911
|
export declare class TranslateInstance {
|
|
1045
912
|
constructor(url?: string, propsName?: string, files?: TranslateFile);
|
|
1046
913
|
get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
|
|
@@ -1057,11 +924,10 @@ export declare class TranslateInstance {
|
|
|
1057
924
|
setReadApi(value: boolean): this;
|
|
1058
925
|
}
|
|
1059
926
|
// File: src/classes/UrlItem.d.ts
|
|
1060
|
-
/**
|
|
1061
|
-
* Isomorphic utility class for working with URLs.
|
|
1062
|
-
*/
|
|
927
|
+
/** URL management utility. */
|
|
1063
928
|
export declare class UrlItem {
|
|
1064
|
-
|
|
929
|
+
static getInstance(): UrlItem;
|
|
930
|
+
constructor(url?: string | URL);
|
|
1065
931
|
get href(): string;
|
|
1066
932
|
get protocol(): string;
|
|
1067
933
|
get username(): string;
|
|
@@ -1074,508 +940,223 @@ export declare class UrlItem {
|
|
|
1074
940
|
get searchParams(): URLSearchParams;
|
|
1075
941
|
get hash(): string;
|
|
1076
942
|
get origin(): string;
|
|
1077
|
-
set(url
|
|
943
|
+
set(url?: string | URL): this;
|
|
1078
944
|
toString(): string;
|
|
1079
945
|
toJSON(): string;
|
|
1080
946
|
}
|
|
1081
947
|
// File: src/functions/addTagHighlightMatch.d.ts
|
|
1082
|
-
/**
|
|
1083
|
-
* Adds a tag to highlight the match in the string.
|
|
1084
|
-
*/
|
|
1085
948
|
export declare function addTagHighlightMatch(value: string, search?: string | RegExp, className?: string, shouldEscape?: boolean): string;
|
|
1086
949
|
// File: src/functions/anyToString.d.ts
|
|
1087
|
-
/**
|
|
1088
|
-
* Conversion of a value to a string.
|
|
1089
|
-
*/
|
|
1090
950
|
export declare function anyToString<V>(value: V, isArrayString?: boolean, trim?: boolean): string;
|
|
1091
951
|
// File: src/functions/applyTemplate.d.ts
|
|
1092
|
-
/**
|
|
1093
|
-
* Applies a template to the text, replacing keys with values from the replacement object.
|
|
1094
|
-
*/
|
|
1095
952
|
export declare const applyTemplate: (text: string, replacement?: Record<string, string | number | boolean> | string[]) => string;
|
|
1096
953
|
// File: src/functions/arrFill.d.ts
|
|
1097
|
-
/**
|
|
1098
|
-
* The method creates an array of "count" elements with values equal to `value`.
|
|
1099
|
-
*/
|
|
1100
954
|
export declare function arrFill<T>(value: T, count: number): T[];
|
|
1101
955
|
// File: src/functions/blobToBase64.d.ts
|
|
1102
|
-
/**
|
|
1103
|
-
* Convert a Blob to a Base64 string.
|
|
1104
|
-
*/
|
|
1105
956
|
export declare function blobToBase64(blob: Blob, clean?: boolean): Promise<string | undefined>;
|
|
1106
957
|
// File: src/functions/capitalize.d.ts
|
|
1107
|
-
/**
|
|
1108
|
-
* Capitalizes the first letter of a string.
|
|
1109
|
-
*/
|
|
1110
958
|
export declare function capitalize(value: string, isLocale?: boolean): string;
|
|
1111
959
|
// File: src/functions/copyObject.d.ts
|
|
1112
|
-
/**
|
|
1113
|
-
* Creates a deep copy of an object for independent data management.
|
|
1114
|
-
*/
|
|
1115
960
|
export declare function copyObject<T>(value: T): T;
|
|
1116
961
|
// File: src/functions/copyObjectLite.d.ts
|
|
1117
|
-
/**
|
|
1118
|
-
* Copies a simple object.
|
|
1119
|
-
*/
|
|
1120
962
|
export declare function copyObjectLite<T, R = T>(value: T, source?: any): R;
|
|
1121
963
|
// File: src/functions/createElement.d.ts
|
|
1122
|
-
/**
|
|
1123
|
-
* In HTML documents, creates an element with the tag that is specified in the argument.
|
|
1124
|
-
*/
|
|
1125
964
|
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;
|
|
1126
965
|
// File: src/functions/domQuerySelector.d.ts
|
|
1127
|
-
/**
|
|
1128
|
-
* Selects the first element that matches the specified selectors.
|
|
1129
|
-
*/
|
|
1130
966
|
export declare function domQuerySelector<E extends Element = Element>(selectors: string): E | undefined;
|
|
1131
967
|
// File: src/functions/domQuerySelectorAll.d.ts
|
|
1132
|
-
/**
|
|
1133
|
-
* Selects all elements that match the specified selectors.
|
|
1134
|
-
*/
|
|
1135
968
|
export declare function domQuerySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E> | undefined;
|
|
1136
969
|
// File: src/functions/encodeAttribute.d.ts
|
|
1137
|
-
/**
|
|
1138
|
-
* Encodes special characters in a string for safe use in HTML attributes.
|
|
1139
|
-
*/
|
|
1140
970
|
export declare function encodeAttribute(text: string): string;
|
|
1141
971
|
// File: src/functions/encodeLiteAttribute.d.ts
|
|
1142
|
-
/**
|
|
1143
|
-
* Encodes special characters in a string for safe use in HTML attributes.
|
|
1144
|
-
*/
|
|
1145
972
|
export declare function encodeLiteAttribute(text: string): string;
|
|
1146
973
|
// File: src/functions/ensureMaxSize.d.ts
|
|
1147
|
-
/**
|
|
1148
|
-
* Ensures that an image does not exceed the maximum size by resizing it if needed.
|
|
1149
|
-
*/
|
|
1150
974
|
export declare function ensureMaxSize(file: Uint8Array, compress?: number, type?: string): Promise<string>;
|
|
1151
975
|
// File: src/functions/escapeExp.d.ts
|
|
1152
|
-
/**
|
|
1153
|
-
* Escapes special regex characters in a string.
|
|
1154
|
-
*/
|
|
1155
976
|
export declare function escapeExp(value: string): string;
|
|
1156
977
|
// File: src/functions/eventStopPropagation.d.ts
|
|
1157
|
-
/**
|
|
1158
|
-
* Stop listening to events in depth.
|
|
1159
|
-
*/
|
|
1160
978
|
export declare function eventStopPropagation(event: Event): void;
|
|
1161
979
|
// File: src/functions/executeFunction.d.ts
|
|
1162
980
|
import { FunctionArgs } from '../types/basicTypes';
|
|
1163
|
-
/**
|
|
1164
|
-
* Flexible utility that executes the provided argument if it is a function, otherwise returns it as is.
|
|
1165
|
-
*/
|
|
1166
981
|
export declare function executeFunction<T>(callback: T | FunctionArgs<any, T>, ...args: any[]): T;
|
|
1167
982
|
// File: src/functions/executePromise.d.ts
|
|
1168
|
-
/**
|
|
1169
|
-
* Safely executes a function and awaits its result if it returns a Promise.
|
|
1170
|
-
*/
|
|
1171
983
|
export declare function executePromise<T>(callback: ((...args: any[]) => Promise<T>) | ((...args: any[]) => T) | T, ...args: any[]): Promise<T>;
|
|
1172
984
|
// File: src/functions/forEach.d.ts
|
|
1173
|
-
/**
|
|
1174
|
-
* Iterates over the object/array and applies a callback to each element.
|
|
1175
|
-
*/
|
|
1176
985
|
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[];
|
|
1177
986
|
// File: src/functions/frame.d.ts
|
|
1178
|
-
/**
|
|
1179
|
-
* Cyclically calls requestAnimationFrame.
|
|
1180
|
-
*/
|
|
1181
987
|
export declare function frame(callback: () => void, next?: () => boolean, end?: () => void): void;
|
|
1182
988
|
// File: src/functions/getArrayHighlightMatch.d.ts
|
|
1183
989
|
import { HighlightMatchItem } from '../types/searchTypes';
|
|
1184
|
-
/**
|
|
1185
|
-
* Split a string into an array of objects to highlight matches.
|
|
1186
|
-
*/
|
|
1187
990
|
export declare function getArrayHighlightMatch(value: string, search?: string | RegExp): HighlightMatchItem[];
|
|
1188
991
|
// File: src/functions/getAttributes.d.ts
|
|
1189
992
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1190
|
-
/**
|
|
1191
|
-
* Gets a list of attributes of an element.
|
|
1192
|
-
*/
|
|
1193
993
|
export declare function getAttributes<E extends ElementOrWindow>(element?: ElementOrString<E>): Record<string, string | undefined>;
|
|
1194
994
|
// File: src/functions/getClipboardData.d.ts
|
|
1195
|
-
/**
|
|
1196
|
-
* The method retrieves drag data (as a string) for the specified type.
|
|
1197
|
-
*/
|
|
1198
995
|
export declare function getClipboardData(event?: ClipboardEvent): Promise<string>;
|
|
1199
996
|
// File: src/functions/getColumn.d.ts
|
|
1200
997
|
import { ObjectOrArray } from '../types/basicTypes';
|
|
1201
|
-
/**
|
|
1202
|
-
* Returns an array of values for a specific column in the input array.
|
|
1203
|
-
*/
|
|
1204
998
|
export declare function getColumn<T, K extends keyof T>(array: ObjectOrArray<T>, column: K): (T[K] | undefined)[];
|
|
1205
999
|
// File: src/functions/getCurrentDate.d.ts
|
|
1206
1000
|
import { GeoDate } from '../types/geoTypes';
|
|
1207
|
-
/**
|
|
1208
|
-
* Returns the current date in the specified format.
|
|
1209
|
-
*/
|
|
1210
1001
|
export declare function getCurrentDate(format?: GeoDate): string;
|
|
1211
1002
|
// File: src/functions/getCurrentTime.d.ts
|
|
1212
|
-
/**
|
|
1213
|
-
* Returns the current time in milliseconds.
|
|
1214
|
-
*/
|
|
1215
1003
|
export declare function getCurrentTime(): number;
|
|
1216
1004
|
// File: src/functions/getElement.d.ts
|
|
1217
1005
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1218
|
-
/**
|
|
1219
|
-
* Returns the first Element in the document that matches the specified selector.
|
|
1220
|
-
*/
|
|
1221
1006
|
export declare function getElement<E extends ElementOrWindow, R extends Exclude<E, Window>>(element?: ElementOrString<E>): R | undefined;
|
|
1222
1007
|
// File: src/functions/getElementId.d.ts
|
|
1223
1008
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1224
|
-
/**
|
|
1225
|
-
* Returns the identifier (ID) of the element or creates it.
|
|
1226
|
-
*/
|
|
1227
1009
|
export declare function getElementId<E extends ElementOrWindow>(element?: ElementOrString<E>, selector?: string): string;
|
|
1228
1010
|
export declare function initGetElementId(newListener: () => string | number): void;
|
|
1229
1011
|
// File: src/functions/getElementImage.d.ts
|
|
1230
|
-
/**
|
|
1231
|
-
* Get image element from HTMLImageElement or string source.
|
|
1232
|
-
*/
|
|
1233
1012
|
export declare function getElementImage(image: HTMLImageElement | string): HTMLImageElement | undefined;
|
|
1234
1013
|
// File: src/functions/getElementItem.d.ts
|
|
1235
1014
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1236
|
-
/**
|
|
1237
|
-
* Returns the value of an element by its key.
|
|
1238
|
-
*/
|
|
1239
1015
|
export declare function getElementItem<T extends ElementOrWindow, K extends keyof T, D>(element: ElementOrString<T>, index: K | string, defaultValue?: D): T[K] | D | undefined;
|
|
1240
1016
|
// File: src/functions/getElementOrWindow.d.ts
|
|
1241
1017
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1242
|
-
/**
|
|
1243
|
-
* Returns window or element.
|
|
1244
|
-
*/
|
|
1245
1018
|
export declare function getElementOrWindow<E extends ElementOrWindow>(element?: ElementOrString<E>): E | undefined;
|
|
1246
1019
|
// File: src/functions/getElementSafeScript.d.ts
|
|
1247
|
-
/**
|
|
1248
|
-
* Generates a safe script tag for data hydration.
|
|
1249
|
-
*/
|
|
1250
1020
|
export declare function getElementSafeScript(id: string, data: any): string;
|
|
1251
1021
|
// File: src/functions/getExactSearchExp.d.ts
|
|
1252
|
-
/**
|
|
1253
|
-
* Creates a case-insensitive regular expression for an exact match of a phrase.
|
|
1254
|
-
*/
|
|
1255
1022
|
export declare function getExactSearchExp(search: string): RegExp;
|
|
1256
1023
|
// File: src/functions/getExp.d.ts
|
|
1257
|
-
/**
|
|
1258
|
-
* Creates a regular expression object.
|
|
1259
|
-
*/
|
|
1260
1024
|
export declare function getExp(value: string, flags?: string, pattern?: string): RegExp;
|
|
1261
1025
|
// File: src/functions/getFirst.d.ts
|
|
1262
|
-
/**
|
|
1263
|
-
* Returns the first element of an array or object.
|
|
1264
|
-
*/
|
|
1265
1026
|
export declare function getFirst<T>(value: T | T[] | Record<string, T>): T | undefined;
|
|
1266
1027
|
// File: src/functions/getHydrationData.d.ts
|
|
1267
|
-
/**
|
|
1268
|
-
* Retrieves and parses JSON data from a script tag in the DOM.
|
|
1269
|
-
*/
|
|
1270
1028
|
export declare function getHydrationData<T>(id: string, defaultValue: T, remove?: boolean): T;
|
|
1271
1029
|
// File: src/functions/getItemByPath.d.ts
|
|
1272
|
-
/**
|
|
1273
|
-
* Returns data by their path.
|
|
1274
|
-
*/
|
|
1275
1030
|
export declare function getItemByPath<T extends Record<string, any>, R = string>(item: T, path: string): R | undefined;
|
|
1276
1031
|
// File: src/functions/getKey.d.ts
|
|
1277
|
-
/**
|
|
1278
|
-
* Returns the pressed key.
|
|
1279
|
-
*/
|
|
1280
1032
|
export declare function getKey(event: KeyboardEvent): string | number | undefined;
|
|
1281
1033
|
// File: src/functions/getLength.d.ts
|
|
1282
|
-
/**
|
|
1283
|
-
* Returns the length or size of various data types.
|
|
1284
|
-
*/
|
|
1285
1034
|
export declare function getLength(value: any): number;
|
|
1286
1035
|
// File: src/functions/getLengthOfAllArray.d.ts
|
|
1287
1036
|
import { ObjectOrArray } from '../types/basicTypes';
|
|
1288
|
-
/**
|
|
1289
|
-
* Returns the length of all elements in an array.
|
|
1290
|
-
*/
|
|
1291
1037
|
export declare function getLengthOfAllArray(value: ObjectOrArray<string>): number[];
|
|
1292
1038
|
// File: src/functions/getMaxLengthAllArray.d.ts
|
|
1293
1039
|
import { ObjectOrArray } from '../types/basicTypes';
|
|
1294
|
-
/**
|
|
1295
|
-
* Searches for the longest string in the array.
|
|
1296
|
-
*/
|
|
1297
1040
|
export declare function getMaxLengthAllArray(data: ObjectOrArray<string>): number;
|
|
1298
1041
|
// File: src/functions/getMinLengthAllArray.d.ts
|
|
1299
1042
|
import { ObjectOrArray } from '../types/basicTypes';
|
|
1300
|
-
/**
|
|
1301
|
-
* Searches for the shortest string in the array.
|
|
1302
|
-
*/
|
|
1303
1043
|
export declare function getMinLengthAllArray(data: ObjectOrArray<string>): number;
|
|
1304
1044
|
// File: src/functions/getMouseClient.d.ts
|
|
1305
1045
|
import { ImageCoordinator } from '../types/basicTypes';
|
|
1306
|
-
/**
|
|
1307
|
-
* Returns the position of the mouse cursor or the location of the click.
|
|
1308
|
-
*/
|
|
1309
1046
|
export declare function getMouseClient(event: MouseEvent & TouchEvent): ImageCoordinator;
|
|
1310
1047
|
// File: src/functions/getMouseClientX.d.ts
|
|
1311
|
-
/**
|
|
1312
|
-
* Returns the X position of the mouse cursor.
|
|
1313
|
-
*/
|
|
1314
1048
|
export declare function getMouseClientX(event: MouseEvent & TouchEvent): number;
|
|
1315
1049
|
// File: src/functions/getMouseClientY.d.ts
|
|
1316
|
-
/**
|
|
1317
|
-
* Returns the Y position of the mouse cursor.
|
|
1318
|
-
*/
|
|
1319
1050
|
export declare function getMouseClientY(event: MouseEvent & TouchEvent): number;
|
|
1320
1051
|
// File: src/functions/getObjectByKeys.d.ts
|
|
1321
|
-
/**
|
|
1322
|
-
* Returns a new object with keys from the keys list.
|
|
1323
|
-
*/
|
|
1324
1052
|
export declare function getObjectByKeys<T extends Record<string, any>, K extends keyof T>(data: T, keys: K[]): Pick<T, K>;
|
|
1325
1053
|
// File: src/functions/getObjectNoUndefined.d.ts
|
|
1326
|
-
/**
|
|
1327
|
-
* Removes from the object all properties belonging to the exception type.
|
|
1328
|
-
*/
|
|
1329
1054
|
export declare function getObjectNoUndefined<T extends Record<string | number, any>>(data: T, exception?: any): T;
|
|
1330
1055
|
// File: src/functions/getObjectOrNone.d.ts
|
|
1331
|
-
/**
|
|
1332
|
-
* Returns the object if the object’s values are set.
|
|
1333
|
-
*/
|
|
1334
1056
|
export declare function getObjectOrNone<T>(value: T): T & Record<string, any>;
|
|
1335
1057
|
// File: src/functions/getOnlyText.d.ts
|
|
1336
|
-
/**
|
|
1337
|
-
* Returns only letters, numbers, and spaces from a string.
|
|
1338
|
-
*/
|
|
1339
1058
|
export declare function getOnlyText(text: any): string;
|
|
1340
1059
|
// File: src/functions/getRandomText.d.ts
|
|
1341
|
-
/**
|
|
1342
|
-
* Generates text.
|
|
1343
|
-
*/
|
|
1344
1060
|
export declare function getRandomText(min: number, max: number, symbol?: string, lengthMin?: number, lengthMax?: number): string;
|
|
1345
1061
|
// File: src/functions/getRequestString.d.ts
|
|
1346
|
-
/**
|
|
1347
|
-
* Returns a string in the form of key-value.
|
|
1348
|
-
*/
|
|
1349
1062
|
export declare function getRequestString(request: Record<string, any> | any[], sign?: string, separator?: string, subKey?: string): string;
|
|
1350
1063
|
// File: src/functions/getSearchExp.d.ts
|
|
1351
|
-
/**
|
|
1352
|
-
* Builds a global RegExp for multi-word search.
|
|
1353
|
-
*/
|
|
1354
1064
|
export declare function getSearchExp(search: string, limit?: number): RegExp;
|
|
1355
1065
|
// File: src/functions/getSeparatingSearchExp.d.ts
|
|
1356
|
-
/**
|
|
1357
|
-
* Creates a case-insensitive regular expression for a search by words.
|
|
1358
|
-
*/
|
|
1359
1066
|
export declare function getSeparatingSearchExp(search: string | RegExp, limit?: number): RegExp;
|
|
1360
1067
|
// File: src/functions/getStepPercent.d.ts
|
|
1361
|
-
/**
|
|
1362
|
-
* Returns the unit of measurement for 1 step as a percentage.
|
|
1363
|
-
*/
|
|
1364
1068
|
export declare function getStepPercent(min: number | undefined, max: number): number;
|
|
1365
1069
|
// File: src/functions/getStepValue.d.ts
|
|
1366
|
-
/**
|
|
1367
|
-
* Returns the unit of measurement for a single step.
|
|
1368
|
-
*/
|
|
1369
1070
|
export declare function getStepValue(min: number | undefined, max: number): number;
|
|
1370
1071
|
// File: src/functions/goScroll.d.ts
|
|
1371
|
-
/**
|
|
1372
|
-
* Quickly scrolls the container to the specified element.
|
|
1373
|
-
*/
|
|
1374
1072
|
export declare function goScroll(selector: string, elementTo: HTMLElement | undefined, elementCenter?: HTMLElement): void;
|
|
1375
1073
|
// File: src/functions/goScrollSmooth.d.ts
|
|
1376
|
-
/**
|
|
1377
|
-
* Smoothly scrolls to the element.
|
|
1378
|
-
*/
|
|
1379
1074
|
export declare function goScrollSmooth<E extends HTMLElement>(element: E, options?: ScrollIntoViewOptions, shift?: number): void;
|
|
1380
1075
|
// File: src/functions/goScrollTo.d.ts
|
|
1381
|
-
/**
|
|
1382
|
-
* Scrolls the container to make the target element visible.
|
|
1383
|
-
*/
|
|
1384
1076
|
export declare function goScrollTo(element?: HTMLElement, elementTo?: HTMLElement, behavior?: ScrollBehavior): void;
|
|
1385
1077
|
// File: src/functions/handleShare.d.ts
|
|
1386
|
-
/**
|
|
1387
|
-
* Invokes the native sharing mechanism.
|
|
1388
|
-
*/
|
|
1389
1078
|
export declare function handleShare(data: ShareData): Promise<boolean>;
|
|
1390
1079
|
// File: src/functions/inArray.d.ts
|
|
1391
|
-
/**
|
|
1392
|
-
* Checks if the value is in the current array.
|
|
1393
|
-
*/
|
|
1394
1080
|
export declare function inArray<T>(array: T[], value: T): boolean;
|
|
1395
1081
|
// File: src/functions/initScrollbarOffset.d.ts
|
|
1396
|
-
/**
|
|
1397
|
-
* Initialization of data for scroll control.
|
|
1398
|
-
*/
|
|
1399
1082
|
export declare function initScrollbarOffset(): Promise<void>;
|
|
1400
1083
|
// File: src/functions/intersectKey.d.ts
|
|
1401
|
-
/**
|
|
1402
|
-
* Computes the intersection of objects using keys.
|
|
1403
|
-
*/
|
|
1404
1084
|
export declare function intersectKey<T, KT extends keyof T, C, KC extends keyof C>(data?: T, comparison?: C): Record<KT & KC, T[KT]>;
|
|
1405
1085
|
// File: src/functions/isApiSuccess.d.ts
|
|
1406
1086
|
import { ApiData } from '../types/apiTypes';
|
|
1407
|
-
/**
|
|
1408
|
-
* Checks if the API response is successful.
|
|
1409
|
-
*/
|
|
1410
1087
|
export declare const isApiSuccess: <T>(data: ApiData<T>) => boolean;
|
|
1411
1088
|
// File: src/functions/isArray.d.ts
|
|
1412
|
-
/**
|
|
1413
|
-
* Checks if the values are arrays.
|
|
1414
|
-
*/
|
|
1415
1089
|
export declare function isArray<T, R>(value: T): value is Extract<T, R[]>;
|
|
1416
1090
|
// File: src/functions/isDifferent.d.ts
|
|
1417
1091
|
import { ObjectItem } from '../types/basicTypes';
|
|
1418
|
-
/**
|
|
1419
|
-
* Checks if the values of two objects are different.
|
|
1420
|
-
*/
|
|
1421
1092
|
export declare function isDifferent<T>(value: ObjectItem<T>, old: ObjectItem<T>): boolean;
|
|
1422
1093
|
// File: src/functions/isDomData.d.ts
|
|
1423
|
-
/**
|
|
1424
|
-
* Checks if the current environment is a data URL.
|
|
1425
|
-
*/
|
|
1426
1094
|
export declare function isDomData(): boolean;
|
|
1427
1095
|
// File: src/functions/isDomRuntime.d.ts
|
|
1428
|
-
/**
|
|
1429
|
-
* Checks if running in a browser.
|
|
1430
|
-
*/
|
|
1431
1096
|
export declare function isDomRuntime(): boolean;
|
|
1432
1097
|
// File: src/functions/isElementVisible.d.ts
|
|
1433
1098
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1434
|
-
/**
|
|
1435
|
-
* Checks if an element is visible in the DOM.
|
|
1436
|
-
*/
|
|
1437
1099
|
export declare function isElementVisible<E extends ElementOrWindow>(elementSelectors?: ElementOrString<E>): boolean;
|
|
1438
1100
|
// File: src/functions/isEnter.d.ts
|
|
1439
|
-
/**
|
|
1440
|
-
* Checks if the pressed key is Enter or Space.
|
|
1441
|
-
*/
|
|
1442
1101
|
export declare const isEnter: (event: KeyboardEvent, isInputElement?: boolean) => boolean;
|
|
1443
1102
|
// File: src/functions/isFilled.d.ts
|
|
1444
1103
|
import { EmptyValue } from '../types/basicTypes';
|
|
1445
|
-
/**
|
|
1446
|
-
* Checks if the field is filled.
|
|
1447
|
-
*/
|
|
1448
1104
|
export declare function isFilled<T>(value: T, zeroTrue?: boolean): value is Exclude<T, EmptyValue>;
|
|
1449
1105
|
// File: src/functions/isFloat.d.ts
|
|
1450
|
-
/**
|
|
1451
|
-
* Checks if the value is a number (integer or float).
|
|
1452
|
-
*/
|
|
1453
1106
|
export declare function isFloat(value: any): boolean;
|
|
1454
1107
|
// File: src/functions/isFunction.d.ts
|
|
1455
1108
|
import { FunctionArgs } from '../types/basicTypes';
|
|
1456
|
-
/**
|
|
1457
|
-
* Checks if the value is a function.
|
|
1458
|
-
*/
|
|
1459
1109
|
export declare function isFunction<T>(callback: T): callback is Extract<T, FunctionArgs<any, any>>;
|
|
1460
1110
|
// File: src/functions/isInDom.d.ts
|
|
1461
1111
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1462
|
-
/**
|
|
1463
|
-
* Checks if an element is still in the DOM tree.
|
|
1464
|
-
*/
|
|
1465
1112
|
export declare function isInDom<E extends ElementOrWindow>(element?: ElementOrString<E>): boolean;
|
|
1466
1113
|
// File: src/functions/isInput.d.ts
|
|
1467
|
-
/**
|
|
1468
|
-
* Checks if the element is an input field or editable.
|
|
1469
|
-
*/
|
|
1470
1114
|
export declare const isInput: (element: HTMLElement | EventTarget | null) => boolean;
|
|
1471
1115
|
// File: src/functions/isIntegerBetween.d.ts
|
|
1472
|
-
/**
|
|
1473
|
-
* Checks if the value is between integers.
|
|
1474
|
-
*/
|
|
1475
1116
|
export declare function isIntegerBetween(value: number, between: number): boolean;
|
|
1476
1117
|
// File: src/functions/isNull.d.ts
|
|
1477
1118
|
import { Undefined } from '../types/basicTypes';
|
|
1478
|
-
/**
|
|
1479
|
-
* Checks if the variable is equal to null or undefined.
|
|
1480
|
-
*/
|
|
1481
1119
|
export declare function isNull<T>(value: T): value is Extract<T, Undefined>;
|
|
1482
1120
|
// File: src/functions/isNumber.d.ts
|
|
1483
|
-
/**
|
|
1484
|
-
* Checks if the value is a number.
|
|
1485
|
-
*/
|
|
1486
1121
|
export declare function isNumber(value: any): boolean;
|
|
1487
1122
|
// File: src/functions/isObject.d.ts
|
|
1488
|
-
/**
|
|
1489
|
-
* Checks if a value is an object.
|
|
1490
|
-
*/
|
|
1491
1123
|
export declare function isObject<T>(value: T): value is Extract<T, Record<any, any>>;
|
|
1492
1124
|
// File: src/functions/isObjectNotArray.d.ts
|
|
1493
|
-
/**
|
|
1494
|
-
* Checks if the value is an object and not an array.
|
|
1495
|
-
*/
|
|
1496
1125
|
export declare function isObjectNotArray<T>(value: T): value is Exclude<Extract<T, Record<any, any>>, any[] | undefined | null>;
|
|
1497
1126
|
// File: src/functions/isOnLine.d.ts
|
|
1498
|
-
/**
|
|
1499
|
-
* Check if the device is online.
|
|
1500
|
-
*/
|
|
1501
1127
|
export declare function isOnLine(): boolean;
|
|
1502
1128
|
// File: src/functions/isSelected.d.ts
|
|
1503
|
-
/**
|
|
1504
|
-
* Checks if the value is selected.
|
|
1505
|
-
*/
|
|
1506
1129
|
export declare function isSelected<T, S>(value: T, selected: T | T[] | S): boolean;
|
|
1507
1130
|
// File: src/functions/isSelectedByList.d.ts
|
|
1508
|
-
/**
|
|
1509
|
-
* Testing isSelected property for the entire list of values.
|
|
1510
|
-
*/
|
|
1511
1131
|
export declare function isSelectedByList<T>(values: T | T[], selected: T | T[]): boolean;
|
|
1512
1132
|
// File: src/functions/isShare.d.ts
|
|
1513
|
-
/**
|
|
1514
|
-
* Checks if the Web Share API is supported.
|
|
1515
|
-
*/
|
|
1516
1133
|
export declare function isShare(): boolean;
|
|
1517
1134
|
// File: src/functions/isString.d.ts
|
|
1518
|
-
/**
|
|
1519
|
-
* Checks if the value is of type string.
|
|
1520
|
-
*/
|
|
1521
1135
|
export declare function isString<T>(value: T): value is Extract<T, string>;
|
|
1522
1136
|
// File: src/functions/isTab.d.ts
|
|
1523
|
-
/**
|
|
1524
|
-
* Checks if the pressed key is Tab.
|
|
1525
|
-
*/
|
|
1526
1137
|
export declare const isTab: (event: KeyboardEvent) => boolean;
|
|
1527
1138
|
// File: src/functions/isWindow.d.ts
|
|
1528
|
-
/**
|
|
1529
|
-
* Checks if object is Window.
|
|
1530
|
-
*/
|
|
1531
1139
|
export declare function isWindow<E>(element: E): element is Extract<E, Window>;
|
|
1532
1140
|
// File: src/functions/random.d.ts
|
|
1533
|
-
/**
|
|
1534
|
-
* Generate a random integer.
|
|
1535
|
-
*/
|
|
1536
1141
|
export declare function random(min: number, max: number): number;
|
|
1537
1142
|
// File: src/functions/removeCommonPrefix.d.ts
|
|
1538
|
-
/**
|
|
1539
|
-
* Removes the common prefix from the main string.
|
|
1540
|
-
*/
|
|
1541
1143
|
export declare function removeCommonPrefix(mainStr: string, prefix: string): string;
|
|
1542
1144
|
// File: src/functions/replaceComponentName.d.ts
|
|
1543
|
-
/**
|
|
1544
|
-
* Replaces the component name in the text.
|
|
1545
|
-
*/
|
|
1546
1145
|
export declare const replaceComponentName: (text: string | undefined, name: string, componentName: string) => string | undefined;
|
|
1547
1146
|
// File: src/functions/replaceRecursive.d.ts
|
|
1548
1147
|
import { ObjectItem, ObjectOrArray } from '../types/basicTypes';
|
|
1549
|
-
/**
|
|
1550
|
-
* Merge one or more arrays recursively.
|
|
1551
|
-
*/
|
|
1552
1148
|
export declare function replaceRecursive<I>(array: ObjectItem<I>, replacement?: ObjectOrArray<I>, isMerge?: boolean): ObjectItem<I>;
|
|
1553
1149
|
// File: src/functions/replaceTemplate.d.ts
|
|
1554
1150
|
import { FunctionReturn } from '../types/basicTypes';
|
|
1555
|
-
/**
|
|
1556
|
-
* Replacing the value from replaces in value.
|
|
1557
|
-
*/
|
|
1558
1151
|
export declare function replaceTemplate(value: string, replaces: Record<string, string | FunctionReturn<string>>): string;
|
|
1559
1152
|
// File: src/functions/resizeImageByMax.d.ts
|
|
1560
|
-
/**
|
|
1561
|
-
* Resizes an image to fit within a maximum size constraint.
|
|
1562
|
-
*/
|
|
1563
1153
|
export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?: 'auto' | 'width' | 'height', typeData?: string): string | undefined;
|
|
1564
1154
|
// File: src/functions/secondToTime.d.ts
|
|
1565
|
-
/**
|
|
1566
|
-
* Converts seconds into a time string.
|
|
1567
|
-
*/
|
|
1568
1155
|
export declare function secondToTime(second: number | string | undefined, hasHour?: boolean): string;
|
|
1569
1156
|
// File: src/functions/setElementItem.d.ts
|
|
1570
1157
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1571
|
-
/**
|
|
1572
|
-
* Modifies the value of an element.
|
|
1573
|
-
*/
|
|
1574
1158
|
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;
|
|
1575
1159
|
// File: src/functions/setValues.d.ts
|
|
1576
|
-
/**
|
|
1577
|
-
* Modifies data according to its type and settings.
|
|
1578
|
-
*/
|
|
1579
1160
|
export declare function setValues<T>(selected: T | T[] | undefined, value: any, { multiple, maxlength, alwaysChange, notEmpty }: {
|
|
1580
1161
|
multiple?: boolean | undefined;
|
|
1581
1162
|
maxlength?: number | undefined;
|
|
@@ -1583,96 +1164,42 @@ export declare function setValues<T>(selected: T | T[] | undefined, value: any,
|
|
|
1583
1164
|
notEmpty?: boolean | undefined;
|
|
1584
1165
|
}): T | T[] | undefined;
|
|
1585
1166
|
// File: src/functions/sleep.d.ts
|
|
1586
|
-
/**
|
|
1587
|
-
* Pause execution for a specified number of milliseconds.
|
|
1588
|
-
*/
|
|
1589
1167
|
export declare function sleep(ms: number): Promise<void>;
|
|
1590
1168
|
// File: src/functions/splice.d.ts
|
|
1591
1169
|
import { ObjectItem } from '../types/basicTypes';
|
|
1592
|
-
/**
|
|
1593
|
-
* Merges source properties into a target object.
|
|
1594
|
-
*/
|
|
1595
1170
|
export declare function splice<I>(array: ObjectItem<I>, replacement?: ObjectItem<I> | I, indexStart?: string): ObjectItem<I>;
|
|
1596
1171
|
// File: src/functions/strFill.d.ts
|
|
1597
|
-
/**
|
|
1598
|
-
* Creates a string consisting of value repeated count times.
|
|
1599
|
-
*/
|
|
1600
1172
|
export declare function strFill(value: string, count: number): string;
|
|
1601
1173
|
// File: src/functions/strSplit.d.ts
|
|
1602
|
-
/**
|
|
1603
|
-
* Splits a string by a separator with a limit.
|
|
1604
|
-
*/
|
|
1605
1174
|
export declare function strSplit(value: number | string, separator: string, limit?: number): string[];
|
|
1606
1175
|
// File: src/functions/toArray.d.ts
|
|
1607
|
-
/**
|
|
1608
|
-
* Converts a value to an array.
|
|
1609
|
-
*/
|
|
1610
1176
|
export declare function toArray<T>(value: T): T extends any[] ? T : [T];
|
|
1611
1177
|
// File: src/functions/toCamelCase.d.ts
|
|
1612
|
-
/**
|
|
1613
|
-
* Converts a string to Camel Case.
|
|
1614
|
-
*/
|
|
1615
1178
|
export declare function toCamelCase(value: string): string;
|
|
1616
1179
|
// File: src/functions/toCamelCaseFirst.d.ts
|
|
1617
|
-
/**
|
|
1618
|
-
* Converts a string to Camel Case with first letter uppercase.
|
|
1619
|
-
*/
|
|
1620
1180
|
export declare function toCamelCaseFirst(value: string): string;
|
|
1621
1181
|
// File: src/functions/toDate.d.ts
|
|
1622
|
-
/**
|
|
1623
|
-
* Converts to a Date object.
|
|
1624
|
-
*/
|
|
1625
1182
|
export declare function toDate<T extends Date | number | string>(value?: T): (T & Date) | Date;
|
|
1626
1183
|
// File: src/functions/toKebabCase.d.ts
|
|
1627
|
-
/**
|
|
1628
|
-
* Converts a string to kebab-case.
|
|
1629
|
-
*/
|
|
1630
1184
|
export declare function toKebabCase(value: string): string;
|
|
1631
1185
|
// File: src/functions/toNumber.d.ts
|
|
1632
1186
|
import { NumberOrString } from '../types/basicTypes';
|
|
1633
|
-
/**
|
|
1634
|
-
* Converts a string or number to a floating-point number.
|
|
1635
|
-
*/
|
|
1636
1187
|
export declare function toNumber(value?: NumberOrString): number;
|
|
1637
1188
|
// File: src/functions/toNumberByMax.d.ts
|
|
1638
|
-
/**
|
|
1639
|
-
* Converts data to a number, taking max value into account.
|
|
1640
|
-
*/
|
|
1641
1189
|
export declare function toNumberByMax(value: string | number, max?: string | number, formatting?: boolean, language?: string): string | number;
|
|
1642
1190
|
// File: src/functions/toPercent.d.ts
|
|
1643
|
-
/**
|
|
1644
|
-
* Converts values to percentages.
|
|
1645
|
-
*/
|
|
1646
1191
|
export declare function toPercent(maxValue: number, value: number): number;
|
|
1647
1192
|
// File: src/functions/toPercentBy100.d.ts
|
|
1648
|
-
/**
|
|
1649
|
-
* Converts values to percentages (*100).
|
|
1650
|
-
*/
|
|
1651
1193
|
export declare function toPercentBy100(maxValue: number, value: number): number;
|
|
1652
1194
|
// File: src/functions/toString.d.ts
|
|
1653
|
-
/**
|
|
1654
|
-
* Converts the given value to a string.
|
|
1655
|
-
*/
|
|
1656
1195
|
export declare function toString<T>(value: T): string;
|
|
1657
1196
|
// File: src/functions/transformation.d.ts
|
|
1658
|
-
/**
|
|
1659
|
-
* Transforms a string into the corresponding data type.
|
|
1660
|
-
*/
|
|
1661
1197
|
export declare function transformation(value: any, isFunction?: boolean): any;
|
|
1662
1198
|
// File: src/functions/uint8ArrayToBase64.d.ts
|
|
1663
|
-
/**
|
|
1664
|
-
* Converts a Uint8Array to a base64 encoded string.
|
|
1665
|
-
*/
|
|
1666
1199
|
export declare function uint8ArrayToBase64(bytes: Uint8Array): string;
|
|
1667
1200
|
// File: src/functions/uniqueArray.d.ts
|
|
1668
|
-
/**
|
|
1669
|
-
* Removes duplicate entries in an array.
|
|
1670
|
-
*/
|
|
1671
1201
|
export declare function uniqueArray<T>(value: T[]): T[];
|
|
1672
1202
|
// File: src/functions/writeClipboardData.d.ts
|
|
1673
|
-
/**
|
|
1674
|
-
* Writes text to the clipboard.
|
|
1675
|
-
*/
|
|
1676
1203
|
export declare function writeClipboardData(text: string): Promise<void>;
|
|
1677
1204
|
// File: src/library.d.ts
|
|
1678
1205
|
export * from './classes/Api';
|
|
@@ -1857,7 +1384,6 @@ export * from './types/translateTypes';
|
|
|
1857
1384
|
import { ErrorCenterCauseList } from '../types/errorCenter';
|
|
1858
1385
|
export declare const errorCauseList: ErrorCenterCauseList;
|
|
1859
1386
|
// File: src/types/apiTypes.d.ts
|
|
1860
|
-
import { ApiErrorItem } from '../classes/ApiErrorItem';
|
|
1861
1387
|
export declare enum ApiMethodItem {
|
|
1862
1388
|
delete = "DELETE",
|
|
1863
1389
|
get = "GET",
|
|
@@ -1865,11 +1391,7 @@ export declare enum ApiMethodItem {
|
|
|
1865
1391
|
put = "PUT",
|
|
1866
1392
|
patch = "PATCH"
|
|
1867
1393
|
}
|
|
1868
|
-
export type ApiCacheItem<T = any> = {
|
|
1869
|
-
value: T;
|
|
1870
|
-
age?: number;
|
|
1871
|
-
cacheAge: number;
|
|
1872
|
-
};
|
|
1394
|
+
export type ApiCacheItem<T = any> = { value: T; age?: number; cacheAge: number; };
|
|
1873
1395
|
export type ApiCacheList = Record<string, ApiCacheItem>;
|
|
1874
1396
|
export type ApiConfig = {
|
|
1875
1397
|
urlRoot?: string;
|
|
@@ -1882,21 +1404,8 @@ export type ApiConfig = {
|
|
|
1882
1404
|
devMode?: boolean;
|
|
1883
1405
|
};
|
|
1884
1406
|
export type ApiData<T = any> = T extends any[] ? T : ApiDataItem<T>;
|
|
1885
|
-
export type ApiDataValidation = {
|
|
1886
|
-
|
|
1887
|
-
code?: string | number;
|
|
1888
|
-
message?: string;
|
|
1889
|
-
error?: {
|
|
1890
|
-
code?: string | number;
|
|
1891
|
-
message?: string;
|
|
1892
|
-
};
|
|
1893
|
-
};
|
|
1894
|
-
export type ApiDataItem<T = any> = T & ApiDataValidation & {
|
|
1895
|
-
data?: T;
|
|
1896
|
-
success?: boolean;
|
|
1897
|
-
statusObject?: ApiStatusItem;
|
|
1898
|
-
errorObject?: ApiErrorItem;
|
|
1899
|
-
};
|
|
1407
|
+
export type ApiDataValidation = { status?: ApiStatusType; code?: string | number; message?: string; error?: { code?: string | number; message?: string; }; };
|
|
1408
|
+
export type ApiDataItem<T = any> = T & ApiDataValidation & { data?: T; success?: boolean; statusObject?: ApiStatusItem; errorObject?: ApiErrorItem; };
|
|
1900
1409
|
export type ApiHeadersValue = Record<string, string> | (() => Record<string, string>);
|
|
1901
1410
|
export type ApiDefaultValue = Record<string, any> | (() => Record<string, any>);
|
|
1902
1411
|
export type ApiFetch = {
|
|
@@ -1927,45 +1436,14 @@ export type ApiFetch = {
|
|
|
1927
1436
|
cacheId?: number | string;
|
|
1928
1437
|
endResetLimit?: number;
|
|
1929
1438
|
};
|
|
1930
|
-
export type ApiHydrationItem = {
|
|
1931
|
-
path: string;
|
|
1932
|
-
method: ApiMethod;
|
|
1933
|
-
request?: ApiFetch['request'];
|
|
1934
|
-
response: any;
|
|
1935
|
-
};
|
|
1439
|
+
export type ApiHydrationItem = { path: string; method: ApiMethod; request?: ApiFetch['request']; response: any; };
|
|
1936
1440
|
export type ApiHydrationList = ApiHydrationItem[];
|
|
1937
|
-
export type ApiErrorStorageItem = Record<string, any> & {
|
|
1938
|
-
url: string | RegExp;
|
|
1939
|
-
method: ApiMethodItem;
|
|
1940
|
-
code?: string;
|
|
1941
|
-
status?: number;
|
|
1942
|
-
validation?: (response: Response) => boolean;
|
|
1943
|
-
message?: string | ((response?: Response) => string);
|
|
1944
|
-
};
|
|
1441
|
+
export type ApiErrorStorageItem = Record<string, any> & { url: string | RegExp; method: ApiMethodItem; code?: string; status?: number; validation?: (response: Response) => boolean; message?: string | ((response?: Response) => string); };
|
|
1945
1442
|
export type ApiErrorStorageList = ApiErrorStorageItem[];
|
|
1946
1443
|
export type ApiMethod = string | ApiMethodItem;
|
|
1947
|
-
export type ApiPreparationEnd = {
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
};
|
|
1951
|
-
export type ApiResponseItem = {
|
|
1952
|
-
path: string | RegExp;
|
|
1953
|
-
method: ApiMethod;
|
|
1954
|
-
request?: ApiFetch['request'] | '*any';
|
|
1955
|
-
response: any | ((request?: ApiFetch['request']) => any);
|
|
1956
|
-
disable?: any;
|
|
1957
|
-
isForGlobal?: boolean;
|
|
1958
|
-
lag?: any;
|
|
1959
|
-
};
|
|
1960
|
-
export type ApiStatusItem = {
|
|
1961
|
-
status?: number;
|
|
1962
|
-
statusText?: string;
|
|
1963
|
-
error?: string;
|
|
1964
|
-
lastResponse?: any;
|
|
1965
|
-
lastStatus?: ApiStatusType;
|
|
1966
|
-
lastCode?: string;
|
|
1967
|
-
lastMessage?: string;
|
|
1968
|
-
};
|
|
1444
|
+
export type ApiPreparationEnd = { reset?: boolean; data?: any; };
|
|
1445
|
+
export type ApiResponseItem = { path: string | RegExp; method: ApiMethod; request?: ApiFetch['request'] | '*any'; response: any | ((request?: ApiFetch['request']) => any); disable?: any; isForGlobal?: boolean; lag?: any; };
|
|
1446
|
+
export type ApiStatusItem = { status?: number; statusText?: string; error?: string; lastResponse?: any; lastStatus?: ApiStatusType; lastCode?: string; lastMessage?: string; };
|
|
1969
1447
|
export type ApiStatusType = 'success' | 'error' | 'warning' | 'info';
|
|
1970
1448
|
// File: src/types/basicTypes.d.ts
|
|
1971
1449
|
export type Undefined = undefined | null;
|
|
@@ -1983,48 +1461,21 @@ export type FunctionVoid = () => void;
|
|
|
1983
1461
|
export type FunctionArgs<T, R> = (...args: T[]) => R;
|
|
1984
1462
|
export type FunctionAnyType<T = any, R = any> = (...args: T[]) => R;
|
|
1985
1463
|
export type ItemList<T = any> = Record<string, T>;
|
|
1986
|
-
export type Item<V> = {
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
};
|
|
1990
|
-
export type ItemValue<V> = {
|
|
1991
|
-
label: string;
|
|
1992
|
-
value: V;
|
|
1993
|
-
};
|
|
1994
|
-
export type ItemName<V> = {
|
|
1995
|
-
name: string | number;
|
|
1996
|
-
value: V;
|
|
1997
|
-
};
|
|
1464
|
+
export type Item<V> = { index: string; value: V; };
|
|
1465
|
+
export type ItemValue<V> = { label: string; value: V; };
|
|
1466
|
+
export type ItemName<V> = { name: string | number; value: V; };
|
|
1998
1467
|
export type ElementOrWindow = HTMLElement | Window;
|
|
1999
1468
|
export type ElementOrString<E extends ElementOrWindow> = E | string;
|
|
2000
1469
|
export type EventOptions = AddEventListenerOptions | boolean | undefined;
|
|
2001
1470
|
export type EventListenerDetail<O extends Event, D extends Record<string, any>> = (event: O, detail?: D) => void;
|
|
2002
|
-
export type EventActivityItem<E extends ElementOrWindow> = {
|
|
2003
|
-
|
|
2004
|
-
type: string;
|
|
2005
|
-
listener?: (event: any | Event) => void;
|
|
2006
|
-
observer?: ResizeObserver;
|
|
2007
|
-
};
|
|
2008
|
-
export type ImageCoordinator = {
|
|
2009
|
-
x: number;
|
|
2010
|
-
y: number;
|
|
2011
|
-
};
|
|
1471
|
+
export type EventActivityItem<E extends ElementOrWindow> = { element: E | undefined; type: string; listener?: (event: any | Event) => void; observer?: ResizeObserver; };
|
|
1472
|
+
export type ImageCoordinator = { x: number; y: number; };
|
|
2012
1473
|
// File: src/types/errorCenter.d.ts
|
|
2013
1474
|
export type ErrorCenterGroup = string | undefined;
|
|
2014
|
-
export type ErrorCenterCauseItem<D = any> = {
|
|
2015
|
-
group?: ErrorCenterGroup;
|
|
2016
|
-
code: string;
|
|
2017
|
-
priority?: number;
|
|
2018
|
-
label?: string;
|
|
2019
|
-
message?: string;
|
|
2020
|
-
details?: D;
|
|
2021
|
-
};
|
|
1475
|
+
export type ErrorCenterCauseItem<D = any> = { group?: ErrorCenterGroup; code: string; priority?: number; label?: string; message?: string; details?: D; };
|
|
2022
1476
|
export type ErrorCenterCauseList = ErrorCenterCauseItem[];
|
|
2023
1477
|
export type ErrorCenterHandlerCallback = (cause: ErrorCenterCauseItem) => void;
|
|
2024
|
-
export type ErrorCenterHandlerItem = {
|
|
2025
|
-
group?: ErrorCenterGroup;
|
|
2026
|
-
handlers: ErrorCenterHandlerCallback[];
|
|
2027
|
-
};
|
|
1478
|
+
export type ErrorCenterHandlerItem = { group?: ErrorCenterGroup; handlers: ErrorCenterHandlerCallback[]; };
|
|
2028
1479
|
export type ErrorCenterHandlerList = ErrorCenterHandlerItem[];
|
|
2029
1480
|
// File: src/types/formattersTypes.d.ts
|
|
2030
1481
|
import { ArrayToItem } from './basicTypes';
|
|
@@ -2037,48 +1488,21 @@ export declare enum FormattersType {
|
|
|
2037
1488
|
plural = "plural",
|
|
2038
1489
|
unit = "unit"
|
|
2039
1490
|
}
|
|
2040
|
-
export type FormattersOptionsCurrency = {
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
};
|
|
2045
|
-
export type
|
|
2046
|
-
type?: GeoDate;
|
|
2047
|
-
options?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions;
|
|
2048
|
-
hour24?: boolean;
|
|
2049
|
-
};
|
|
2050
|
-
export type FormattersOptionsName = {
|
|
2051
|
-
lastPropName?: string;
|
|
2052
|
-
firstPropName?: string;
|
|
2053
|
-
surname?: string;
|
|
2054
|
-
short?: boolean;
|
|
2055
|
-
};
|
|
2056
|
-
export type FormattersOptionsNumber = {
|
|
2057
|
-
options?: Intl.NumberFormatOptions;
|
|
2058
|
-
};
|
|
2059
|
-
export type FormattersOptionsPlural = {
|
|
2060
|
-
words: string;
|
|
2061
|
-
options?: Intl.PluralRulesOptions;
|
|
2062
|
-
optionsNumber?: Intl.NumberFormatOptions;
|
|
2063
|
-
};
|
|
2064
|
-
export type FormattersOptionsUnit = {
|
|
2065
|
-
unit: string | Intl.NumberFormatOptions;
|
|
2066
|
-
};
|
|
1491
|
+
export type FormattersOptionsCurrency = { currencyPropName?: string; options?: string | Intl.NumberFormatOptions; numberOnly?: boolean; };
|
|
1492
|
+
export type FormattersOptionsDate = { type?: GeoDate; options?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions; hour24?: boolean; };
|
|
1493
|
+
export type FormattersOptionsName = { lastPropName?: string; firstPropName?: string; surname?: string; short?: boolean; };
|
|
1494
|
+
export type FormattersOptionsNumber = { options?: Intl.NumberFormatOptions; };
|
|
1495
|
+
export type FormattersOptionsPlural = { words: string; options?: Intl.PluralRulesOptions; optionsNumber?: Intl.NumberFormatOptions; };
|
|
1496
|
+
export type FormattersOptionsUnit = { unit: string | Intl.NumberFormatOptions; };
|
|
2067
1497
|
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>;
|
|
2068
|
-
export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = {
|
|
2069
|
-
type?: Type;
|
|
2070
|
-
transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R;
|
|
2071
|
-
options?: FormattersOptionsInformation<Type>;
|
|
2072
|
-
};
|
|
1498
|
+
export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = { type?: Type; transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R; options?: FormattersOptionsInformation<Type>; };
|
|
2073
1499
|
export type FormattersOptionsList = Record<string, FormattersOptionsItem>;
|
|
2074
1500
|
export type FormattersListItem = Record<string, any>;
|
|
2075
1501
|
export type FormattersList<Item extends FormattersListItem> = Item[];
|
|
2076
1502
|
export type FormattersCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<FormattersCapitalize<Rest>>}` : K;
|
|
2077
1503
|
export type FormattersColumns<T extends FormattersOptionsList> = (keyof T & string)[];
|
|
2078
1504
|
export type FormattersKey<K, A extends string = 'Format'> = K extends string ? `${FormattersCapitalize<K>}${A}` : never;
|
|
2079
|
-
export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = {
|
|
2080
|
-
[K in keyof T | FormattersKey<KT[number]>]: K extends keyof T ? T[K] : string;
|
|
2081
|
-
};
|
|
1505
|
+
export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = { [K in keyof T | FormattersKey<KT[number]>]: K extends keyof T ? T[K] : string; };
|
|
2082
1506
|
export type FormattersListFormat<T extends FormattersListItem, K extends string[]> = FormattersDataItem<T, K>[];
|
|
2083
1507
|
export type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersDataItem<T, FormattersColumns<O>>;
|
|
2084
1508
|
export type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersListFormat<T, FormattersColumns<O>>;
|
|
@@ -2090,282 +1514,42 @@ export type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'mo
|
|
|
2090
1514
|
export type GeoFirstDay = 1 | 6 | 0;
|
|
2091
1515
|
export type GeoHours = '12' | '24';
|
|
2092
1516
|
export type GeoTimeZoneStyle = 'minute' | 'hour' | 'ISO8601' | 'RFC';
|
|
2093
|
-
export interface GeoItem {
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
phoneCode?: string;
|
|
2101
|
-
phoneWithin?: string;
|
|
2102
|
-
phoneMask?: string | string[];
|
|
2103
|
-
nameFormat?: 'fl' | 'fsl' | 'lf' | 'lsf' | string;
|
|
2104
|
-
}
|
|
2105
|
-
export interface GeoItemFull extends Omit<GeoItem, 'firstDay'> {
|
|
2106
|
-
standard: string;
|
|
2107
|
-
firstDay: string;
|
|
2108
|
-
}
|
|
2109
|
-
export interface GeoFlagItem {
|
|
2110
|
-
language: string;
|
|
2111
|
-
country: string;
|
|
2112
|
-
standard: string;
|
|
2113
|
-
icon?: string;
|
|
2114
|
-
label: string;
|
|
2115
|
-
value: string;
|
|
2116
|
-
phoneCode?: string;
|
|
2117
|
-
}
|
|
2118
|
-
export interface GeoFlagNational extends GeoFlagItem {
|
|
2119
|
-
description: string;
|
|
2120
|
-
nationalLanguage: string;
|
|
2121
|
-
nationalCountry: string;
|
|
2122
|
-
}
|
|
2123
|
-
export interface GeoPhoneValue {
|
|
2124
|
-
phone: number;
|
|
2125
|
-
within: number;
|
|
2126
|
-
mask: string[];
|
|
2127
|
-
value: string;
|
|
2128
|
-
}
|
|
2129
|
-
export interface GeoPhoneMap {
|
|
2130
|
-
items: GeoPhoneValue[];
|
|
2131
|
-
info: GeoPhoneValue | undefined;
|
|
2132
|
-
value: string | undefined;
|
|
2133
|
-
mask: string[];
|
|
2134
|
-
maskFull: string[];
|
|
2135
|
-
next: Record<string, GeoPhoneMap>;
|
|
2136
|
-
}
|
|
2137
|
-
export interface GeoPhoneMapInfo {
|
|
2138
|
-
item?: GeoPhoneMap;
|
|
2139
|
-
phone?: string;
|
|
2140
|
-
}
|
|
1517
|
+
export interface GeoItem { country: string; countryAlternative?: string[]; language: string; languageAlternative?: string[]; firstDay?: string | null; zone?: string | null; phoneCode?: string; phoneWithin?: string; phoneMask?: string | string[]; nameFormat?: 'fl' | 'fsl' | 'lf' | 'lsf' | string; }
|
|
1518
|
+
export interface GeoItemFull extends Omit<GeoItem, 'firstDay'> { standard: string; firstDay: string; }
|
|
1519
|
+
export interface GeoFlagItem { language: string; country: string; standard: string; icon?: string; label: string; value: string; phoneCode?: string; }
|
|
1520
|
+
export interface GeoFlagNational extends GeoFlagItem { description: string; nationalLanguage: string; nationalCountry: string; }
|
|
1521
|
+
export interface GeoPhoneValue { phone: number; within: number; mask: string[]; value: string; }
|
|
1522
|
+
export interface GeoPhoneMap { items: GeoPhoneValue[]; info: GeoPhoneValue | undefined; value: string | undefined; mask: string[]; maskFull: string[]; next: Record<string, GeoPhoneMap>; }
|
|
1523
|
+
export interface GeoPhoneMapInfo { item?: GeoPhoneMap; phone?: string; }
|
|
2141
1524
|
// File: src/types/metaTypes.d.ts
|
|
2142
|
-
export declare enum MetaTag {
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
}
|
|
2150
|
-
export declare enum
|
|
2151
|
-
|
|
2152
|
-
noIndexFollow = "noindex, follow",
|
|
2153
|
-
indexNoFollow = "index, nofollow",
|
|
2154
|
-
noIndexNoFollow = "noindex, nofollow",
|
|
2155
|
-
noArchive = "noarchive",
|
|
2156
|
-
noSnippet = "nosnippet",
|
|
2157
|
-
noImageIndex = "noimageindex",
|
|
2158
|
-
images = "images",
|
|
2159
|
-
noTranslate = "notranslate",
|
|
2160
|
-
noPreview = "nopreview",
|
|
2161
|
-
textOnly = "textonly",
|
|
2162
|
-
noIndexSubpages = "noindex, noarchive",
|
|
2163
|
-
none = "none"
|
|
2164
|
-
}
|
|
2165
|
-
export declare enum MetaOpenGraphTag {
|
|
2166
|
-
title = "og:title",
|
|
2167
|
-
type = "og:type",
|
|
2168
|
-
url = "og:url",
|
|
2169
|
-
image = "og:image",
|
|
2170
|
-
description = "og:description",
|
|
2171
|
-
locale = "og:locale",
|
|
2172
|
-
siteName = "og:site_name",
|
|
2173
|
-
localeAlternate = "og:locale:alternate",
|
|
2174
|
-
imageUrl = "og:image:url",
|
|
2175
|
-
imageSecureUrl = "og:image:secure_url",
|
|
2176
|
-
imageType = "og:image:type",
|
|
2177
|
-
imageWidth = "og:image:width",
|
|
2178
|
-
imageHeight = "og:image:height",
|
|
2179
|
-
imageAlt = "og:image:alt",
|
|
2180
|
-
video = "og:video",
|
|
2181
|
-
videoUrl = "og:video:url",
|
|
2182
|
-
videoSecureUrl = "og:video:secure_url",
|
|
2183
|
-
videoType = "og:video:type",
|
|
2184
|
-
videoWidth = "og:video:width",
|
|
2185
|
-
videoHeight = "og:video:height",
|
|
2186
|
-
audio = "og:audio",
|
|
2187
|
-
audioSecureUrl = "og:audio:secure_url",
|
|
2188
|
-
audioType = "og:audio:type",
|
|
2189
|
-
articlePublishedTime = "article:published_time",
|
|
2190
|
-
articleModifiedTime = "article:modified_time",
|
|
2191
|
-
articleExpirationTime = "article:expiration_time",
|
|
2192
|
-
articleAuthor = "article:author",
|
|
2193
|
-
articleSection = "article:section",
|
|
2194
|
-
articleTag = "article:tag",
|
|
2195
|
-
bookAuthor = "book:author",
|
|
2196
|
-
bookIsbn = "book:isbn",
|
|
2197
|
-
bookReleaseDate = "book:release_date",
|
|
2198
|
-
bookTag = "book:tag",
|
|
2199
|
-
musicDuration = "music:duration",
|
|
2200
|
-
musicAlbum = "music:album",
|
|
2201
|
-
musicAlbumDisc = "music:album:disc",
|
|
2202
|
-
musicAlbumTrack = "music:album:track",
|
|
2203
|
-
musicMusician = "music:musician",
|
|
2204
|
-
musicSong = "music:song",
|
|
2205
|
-
musicSongDisc = "music:song:disc",
|
|
2206
|
-
musicSongTrack = "music:song:track",
|
|
2207
|
-
musicReleaseDate = "music:release_date",
|
|
2208
|
-
musicCreator = "music:creator",
|
|
2209
|
-
videoActor = "video:actor",
|
|
2210
|
-
videoActorRole = "video:actor:role",
|
|
2211
|
-
videoDirector = "video:director",
|
|
2212
|
-
videoWriter = "video:writer",
|
|
2213
|
-
videoDuration = "video:duration",
|
|
2214
|
-
videoReleaseDate = "video:release_date",
|
|
2215
|
-
videoTag = "video:tag",
|
|
2216
|
-
videoSeries = "video:series",
|
|
2217
|
-
profileFirstName = "profile:first_name",
|
|
2218
|
-
profileLastName = "profile:last_name",
|
|
2219
|
-
profileUsername = "profile:username",
|
|
2220
|
-
profileGender = "profile:gender",
|
|
2221
|
-
productBrand = "product:brand",
|
|
2222
|
-
productAvailability = "product:availability",
|
|
2223
|
-
productCondition = "product:condition",
|
|
2224
|
-
productPriceAmount = "product:price:amount",
|
|
2225
|
-
productPriceCurrency = "product:price:currency",
|
|
2226
|
-
productRetailerItemId = "product:retailer_item_id",
|
|
2227
|
-
productCategory = "product:category",
|
|
2228
|
-
productEan = "product:ean",
|
|
2229
|
-
productIsbn = "product:isbn",
|
|
2230
|
-
productMfrPartNo = "product:mfr_part_no",
|
|
2231
|
-
productUpc = "product:upc",
|
|
2232
|
-
productWeightValue = "product:weight:value",
|
|
2233
|
-
productWeightUnits = "product:weight:units",
|
|
2234
|
-
productColor = "product:color",
|
|
2235
|
-
productMaterial = "product:material",
|
|
2236
|
-
productPattern = "product:pattern",
|
|
2237
|
-
productAgeGroup = "product:age_group",
|
|
2238
|
-
productGender = "product:gender"
|
|
2239
|
-
}
|
|
2240
|
-
export declare enum MetaOpenGraphType {
|
|
2241
|
-
website = "website",
|
|
2242
|
-
article = "article",
|
|
2243
|
-
video = "video.other",
|
|
2244
|
-
videoTvShow = "video.tv_show",
|
|
2245
|
-
videoEpisode = "video.episode",
|
|
2246
|
-
videoMovie = "video.movie",
|
|
2247
|
-
musicAlbum = "music.album",
|
|
2248
|
-
musicPlaylist = "music.playlist",
|
|
2249
|
-
musicSong = "music.song",
|
|
2250
|
-
musicRadioStation = "music.radio_station",
|
|
2251
|
-
app = "app",
|
|
2252
|
-
product = "product",
|
|
2253
|
-
business = "business.business",
|
|
2254
|
-
place = "place",
|
|
2255
|
-
event = "event",
|
|
2256
|
-
profile = "profile",
|
|
2257
|
-
book = "book"
|
|
2258
|
-
}
|
|
2259
|
-
export declare enum MetaOpenGraphAvailability {
|
|
2260
|
-
inStock = "in stock",
|
|
2261
|
-
outOfStock = "out of stock",
|
|
2262
|
-
preorder = "preorder",
|
|
2263
|
-
backorder = "backorder",
|
|
2264
|
-
discontinued = "discontinued",
|
|
2265
|
-
pending = "pending"
|
|
2266
|
-
}
|
|
2267
|
-
export declare enum MetaOpenGraphCondition {
|
|
2268
|
-
new = "new",
|
|
2269
|
-
used = "used",
|
|
2270
|
-
refurbished = "refurbished"
|
|
2271
|
-
}
|
|
2272
|
-
export declare enum MetaOpenGraphAge {
|
|
2273
|
-
newborn = "newborn",
|
|
2274
|
-
infant = "infant",
|
|
2275
|
-
toddler = "toddler",
|
|
2276
|
-
kids = "kids",
|
|
2277
|
-
adult = "adult"
|
|
2278
|
-
}
|
|
2279
|
-
export declare enum MetaOpenGraphGender {
|
|
2280
|
-
female = "female",
|
|
2281
|
-
male = "male",
|
|
2282
|
-
unisex = "unisex"
|
|
2283
|
-
}
|
|
2284
|
-
export declare enum MetaTwitterTag {
|
|
2285
|
-
card = "twitter:card",
|
|
2286
|
-
site = "twitter:site",
|
|
2287
|
-
creator = "twitter:creator",
|
|
2288
|
-
url = "twitter:url",
|
|
2289
|
-
title = "twitter:title",
|
|
2290
|
-
description = "twitter:description",
|
|
2291
|
-
image = "twitter:image",
|
|
2292
|
-
imageAlt = "twitter:image:alt",
|
|
2293
|
-
imageSrc = "twitter:image:src",
|
|
2294
|
-
imageWidth = "twitter:image:width",
|
|
2295
|
-
imageHeight = "twitter:image:height",
|
|
2296
|
-
label1 = "twitter:label1",
|
|
2297
|
-
data1 = "twitter:data1",
|
|
2298
|
-
label2 = "twitter:label2",
|
|
2299
|
-
data2 = "twitter:data2",
|
|
2300
|
-
appNameIphone = "twitter:app:name:iphone",
|
|
2301
|
-
appIdIphone = "twitter:app:id:iphone",
|
|
2302
|
-
appUrlIphone = "twitter:app:url:iphone",
|
|
2303
|
-
appNameIpad = "twitter:app:name:ipad",
|
|
2304
|
-
appIdIpad = "twitter:app:id:ipad",
|
|
2305
|
-
appUrlIpad = "twitter:app:url:ipad",
|
|
2306
|
-
appNameGooglePlay = "twitter:app:name:googleplay",
|
|
2307
|
-
appIdGooglePlay = "twitter:app:id:googleplay",
|
|
2308
|
-
appUrlGooglePlay = "twitter:app:url:googleplay",
|
|
2309
|
-
player = "twitter:player",
|
|
2310
|
-
playerWidth = "twitter:player:width",
|
|
2311
|
-
playerHeight = "twitter:player:height",
|
|
2312
|
-
playerStream = "twitter:player:stream",
|
|
2313
|
-
playerStreamContentType = "twitter:player:stream:content_type"
|
|
2314
|
-
}
|
|
2315
|
-
export declare enum MetaTwitterCard {
|
|
2316
|
-
summary = "summary",
|
|
2317
|
-
summaryLargeImage = "summary_large_image",
|
|
2318
|
-
app = "app",
|
|
2319
|
-
player = "player",
|
|
2320
|
-
product = "product",
|
|
2321
|
-
gallery = "gallery",
|
|
2322
|
-
photo = "photo",
|
|
2323
|
-
leadGeneration = "lead_generation",
|
|
2324
|
-
audio = "audio",
|
|
2325
|
-
poll = "poll"
|
|
2326
|
-
}
|
|
1525
|
+
export declare enum MetaTag { title = "title", description = "description", keywords = "keywords", canonical = "canonical", robots = "robots", author = "author" }
|
|
1526
|
+
export declare enum MetaRobots { indexFollow = "index, follow", noIndexFollow = "noindex, follow", indexNoFollow = "index, nofollow", noIndexNoFollow = "noindex, nofollow", noArchive = "noarchive", noSnippet = "nosnippet", noImageIndex = "noimageindex", images = "images", noTranslate = "notranslate", noPreview = "nopreview", textonly = "textonly", noIndexSubpages = "noindex, noarchive", none = "none" }
|
|
1527
|
+
export declare enum MetaOpenGraphTag { title = "og:title", type = "og:type", url = "og:url", image = "og:image", description = "og:description", locale = "og:locale", siteName = "og:site_name", localeAlternate = "og:locale:alternate", imageUrl = "og:image:url", imageSecureUrl = "og:image:secure_url", imageType = "og:image:type", imageWidth = "og:image:width", imageHeight = "og:image:height", imageAlt = "og:image:alt", video = "og:video", videoUrl = "og:video:url", videoSecureUrl = "og:video:secure_url", videoType = "og:video:type", videoWidth = "og:video:width", videoHeight = "og:video:height", audio = "og:audio", audioSecureUrl = "og:audio:secure_url", audioType = "og:audio:type", articlePublishedTime = "article:published_time", articleModifiedTime = "article:modified_time", articleExpirationTime = "article:expiration_time", articleAuthor = "article:author", articleSection = "article:section", articleTag = "article:tag", bookAuthor = "book:author", bookIsbn = "book:isbn", bookReleaseDate = "book:release_date", bookTag = "book:tag", musicDuration = "music:duration", musicAlbum = "music:album", musicAlbumDisc = "music:album:disc", musicAlbumTrack = "music:album:track", musicMusician = "music:musician", musicSong = "music:song", musicSongDisc = "music:song:disc", musicSongTrack = "music:song:track", musicReleaseDate = "music:release_date", musicCreator = "music:creator", videoActor = "video:actor", videoActorRole = "video:actor:role", videoDirector = "video:director", videoWriter = "video:writer", videoDuration = "video:duration", videoReleaseDate = "video:release_date", videoTag = "video:tag", videoSeries = "video:series", profileFirstName = "profile:first_name", profileLastName = "profile:last_name", profileUsername = "profile:username", profileGender = "profile:gender", productBrand = "product:brand", productAvailability = "product:availability", productCondition = "product:condition", productPriceAmount = "product:price:amount", productPriceCurrency = "product:price:currency", productRetailerItemId = "product:retailer_item_id", productCategory = "product:category", productEan = "product:ean", productIsbn = "product:isbn", productMfrPartNo = "product:mfr_part_no", productUpc = "product:upc", productWeightValue = "product:weight:value", productWeightUnits = "product:weight:units", productColor = "product:color", productMaterial = "product:material", productPattern = "product:pattern", productAgeGroup = "product:age_group", productGender = "product:gender" }
|
|
1528
|
+
export declare enum MetaOpenGraphType { website = "website", article = "article", video = "video.other", videoTvShow = "video.tv_show", videoEpisode = "video.episode", videoMovie = "video.movie", musicAlbum = "music.album", musicPlaylist = "music.playlist", musicSong = "music.song", musicRadioStation = "music.radio_station", app = "app", product = "product", business = "business.business", place = "place", event = "event", profile = "profile", book = "book" }
|
|
1529
|
+
export declare enum MetaOpenGraphAvailability { inStock = "in stock", outOfStock = "out of stock", preorder = "preorder", backorder = "backorder", discontinued = "discontinued", pending = "pending" }
|
|
1530
|
+
export declare enum MetaOpenGraphCondition { new = "new", used = "used", refurbished = "refurbished" }
|
|
1531
|
+
export declare enum MetaOpenGraphAge { newborn = "newborn", infant = "infant", toddler = "toddler", kids = "kids", adult = "adult" }
|
|
1532
|
+
export declare enum MetaOpenGraphGender { female = "female", male = "male", unisex = "unisex" }
|
|
1533
|
+
export declare enum MetaTwitterTag { card = "twitter:card", site = "twitter:site", creator = "twitter:creator", url = "twitter:url", title = "twitter:title", description = "twitter:description", image = "twitter:image", imageAlt = "twitter:image:alt", imageSrc = "twitter:image:src", imageWidth = "twitter:image:width", imageHeight = "twitter:image:height", label1 = "twitter:label1", data1 = "twitter:data1", label2 = "twitter:label2", data2 = "twitter:data2", appNameIphone = "twitter:app:name:iphone", appIdIphone = "twitter:app:id:iphone", appUrlIphone = "twitter:app:url:iphone", appNameIpad = "twitter:app:name:ipad", appIdIpad = "twitter:app:id:ipad", appUrlIpad = "twitter:app:url:ipad", appNameGooglePlay = "twitter:app:name:googleplay", appIdGooglePlay = "twitter:app:id:googleplay", appUrlGooglePlay = "twitter:app:url:googleplay", player = "twitter:player", playerWidth = "twitter:player:width", playerHeight = "twitter:player:height", playerStream = "twitter:player:stream", playerStreamContentType = "twitter:player:stream:content_type" }
|
|
1534
|
+
export declare enum MetaTwitterCard { summary = "summary", summaryLargeImage = "summary_large_image", app = "app", player = "player", product = "product", gallery = "gallery", photo = "photo", leadGeneration = "lead_generation", audio = "audio", poll = "poll" }
|
|
2327
1535
|
// File: src/types/searchTypes.d.ts
|
|
2328
1536
|
export type SearchItem = Record<string, any>;
|
|
2329
1537
|
export type SearchColumnPath<K, P> = K extends string ? P extends string ? `${K}.${P}` : never : never;
|
|
2330
|
-
export type SearchColumn<T extends SearchItem> = {
|
|
2331
|
-
[K in keyof T]-?: NonNullable<T[K]> extends object ? K | SearchColumnPath<K, keyof NonNullable<T[K]>> : K;
|
|
2332
|
-
}[keyof T];
|
|
1538
|
+
export type SearchColumn<T extends SearchItem> = { [K in keyof T]-?: NonNullable<T[K]> extends object ? K | SearchColumnPath<K, keyof NonNullable<T[K]>> : K; }[keyof T];
|
|
2333
1539
|
export type SearchColumns<T extends SearchItem> = (SearchColumn<T> & string)[];
|
|
2334
1540
|
export type SearchFormatCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<SearchFormatCapitalize<Rest>>}` : K;
|
|
2335
1541
|
export type SearchFormatKey<K> = K extends string ? `${SearchFormatCapitalize<K>}Search` : never;
|
|
2336
|
-
export type SearchFormatItem<T extends SearchItem, KT extends string[]> = {
|
|
2337
|
-
[K in keyof T | SearchFormatKey<KT[number]>]: K extends keyof T ? T[K] : string;
|
|
2338
|
-
} & {
|
|
2339
|
-
searchActive?: boolean;
|
|
2340
|
-
};
|
|
1542
|
+
export type SearchFormatItem<T extends SearchItem, KT extends string[]> = { [K in keyof T | SearchFormatKey<KT[number]>]: K extends keyof T ? T[K] : string; } & { searchActive?: boolean; };
|
|
2341
1543
|
export type SearchFormatList<T extends SearchItem, K extends string[]> = SearchFormatItem<T, K>[];
|
|
2342
1544
|
export type SearchListValue<T extends SearchItem> = T[] | undefined;
|
|
2343
|
-
export type SearchOptions = {
|
|
2344
|
-
|
|
2345
|
-
returnEverything?: boolean;
|
|
2346
|
-
delay?: number;
|
|
2347
|
-
findExactMatch?: boolean;
|
|
2348
|
-
classSearchName?: string;
|
|
2349
|
-
};
|
|
2350
|
-
export type SearchCacheItem<T extends SearchItem> = {
|
|
2351
|
-
item: T;
|
|
2352
|
-
value: string;
|
|
2353
|
-
};
|
|
1545
|
+
export type SearchOptions = { limit?: number; returnEverything?: boolean; delay?: number; findExactMatch?: boolean; classSearchName?: string; };
|
|
1546
|
+
export type SearchCacheItem<T extends SearchItem> = { item: T; value: string; };
|
|
2354
1547
|
export type SearchCache<T extends SearchItem> = SearchCacheItem<T>[];
|
|
2355
|
-
export type HighlightMatchItem = {
|
|
2356
|
-
text: string;
|
|
2357
|
-
isMatch: boolean;
|
|
2358
|
-
};
|
|
1548
|
+
export type HighlightMatchItem = { text: string; isMatch: boolean; };
|
|
2359
1549
|
// File: src/types/translateTypes.d.ts
|
|
2360
|
-
export type TranslateConfig = {
|
|
2361
|
-
url?: string;
|
|
2362
|
-
propsName?: string;
|
|
2363
|
-
readApi?: boolean;
|
|
2364
|
-
};
|
|
1550
|
+
export type TranslateConfig = { url?: string; propsName?: string; readApi?: boolean; };
|
|
2365
1551
|
export type TranslateCode = string | string[];
|
|
2366
|
-
export type TranslateList<T extends TranslateCode[]> = {
|
|
2367
|
-
[K in T[number] as K extends readonly string[] ? K[0] : K]: string;
|
|
2368
|
-
};
|
|
1552
|
+
export type TranslateList<T extends TranslateCode[]> = { [K in T[number] as K extends readonly string[] ? K[0] : K]: string; };
|
|
2369
1553
|
export type TranslateItemOrList<T extends TranslateCode> = T extends string[] ? TranslateList<T> : string;
|
|
2370
1554
|
export type TranslateDataFileList = Record<string, string>;
|
|
2371
1555
|
export type TranslateDataFileItem = () => Promise<TranslateDataFileList>;
|