@dxtmisha/functional-basic 1.3.7 → 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 +20 -0
- package/ai-description.txt +14 -19
- package/ai-types.txt +181 -531
- package/dist/library.js +605 -550
- package/dist/src/classes/Geo.d.ts +1 -1
- package/dist/src/classes/GeoInstance.d.ts +1 -1
- package/dist/src/classes/UrlItem.d.ts +71 -0
- package/dist/src/library.d.ts +1 -0
- 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 processing API response data.
|
|
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 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
|
-
* Manager for API error storage and 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 API error response extraction.
|
|
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 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 SSR hydration.
|
|
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 HTTP requests via 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 API response handling.
|
|
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 API request status management.
|
|
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 BroadcastChannel messaging.
|
|
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,17 +223,13 @@ export declare class BroadcastMessage<Message = any> {
|
|
|
251
223
|
destroy(): this;
|
|
252
224
|
}
|
|
253
225
|
// File: src/classes/Cache.d.ts
|
|
254
|
-
/**
|
|
255
|
-
* @deprecated Use alternative caching mechanisms.
|
|
256
|
-
*/
|
|
226
|
+
/** @deprecated Use other storage. */
|
|
257
227
|
export declare class Cache {
|
|
258
228
|
get<T>(name: string, callback: () => T, comparison?: any[]): T;
|
|
259
229
|
getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
|
|
260
230
|
}
|
|
261
231
|
// File: src/classes/CacheItem.d.ts
|
|
262
|
-
/**
|
|
263
|
-
* @deprecated Use alternative caching mechanisms.
|
|
264
|
-
*/
|
|
232
|
+
/** @deprecated Use other storage. */
|
|
265
233
|
export declare class CacheItem<T> {
|
|
266
234
|
constructor(callback: () => T);
|
|
267
235
|
getCache(comparison: any[]): T;
|
|
@@ -270,18 +238,14 @@ export declare class CacheItem<T> {
|
|
|
270
238
|
}
|
|
271
239
|
// File: src/classes/CacheStatic.d.ts
|
|
272
240
|
import { Cache } from './Cache';
|
|
273
|
-
/**
|
|
274
|
-
* @deprecated Use alternative caching mechanisms.
|
|
275
|
-
*/
|
|
241
|
+
/** @deprecated Use other storage. */
|
|
276
242
|
export declare class CacheStatic {
|
|
277
243
|
static get<T>(name: string, callback: () => T, comparison?: any[]): T;
|
|
278
244
|
static getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
|
|
279
245
|
}
|
|
280
246
|
// File: src/classes/Cookie.d.ts
|
|
281
247
|
import { CookieOptions } from './CookieStorage';
|
|
282
|
-
/**
|
|
283
|
-
* Class for Cookie management.
|
|
284
|
-
*/
|
|
248
|
+
/** Class for cookies. */
|
|
285
249
|
export declare class Cookie<T> {
|
|
286
250
|
static getInstance<T>(name: string): Cookie<T>;
|
|
287
251
|
constructor(name: string);
|
|
@@ -291,15 +255,14 @@ export declare class Cookie<T> {
|
|
|
291
255
|
}
|
|
292
256
|
// File: src/classes/CookieBlock.d.ts
|
|
293
257
|
import { CookieBlockInstance } from './CookieBlockInstance';
|
|
294
|
-
/**
|
|
295
|
-
* Class for cookie access status.
|
|
296
|
-
*/
|
|
258
|
+
/** Class for cookie access status. */
|
|
297
259
|
export declare class CookieBlock {
|
|
298
260
|
static getItem(): CookieBlockInstance;
|
|
299
261
|
static get(): boolean;
|
|
300
262
|
static set(value: boolean): void;
|
|
301
263
|
}
|
|
302
264
|
// File: src/classes/CookieBlockInstance.d.ts
|
|
265
|
+
/** Class for cookie access status. */
|
|
303
266
|
export declare class CookieBlockInstance {
|
|
304
267
|
get(): boolean;
|
|
305
268
|
set(value: boolean): void;
|
|
@@ -316,9 +279,7 @@ export type CookieOptions = {
|
|
|
316
279
|
partitioned?: boolean;
|
|
317
280
|
arguments?: string[] | Record<string, string | number | boolean>;
|
|
318
281
|
};
|
|
319
|
-
/**
|
|
320
|
-
* Class for Cookie storage management.
|
|
321
|
-
*/
|
|
282
|
+
/** Class for cookie management. */
|
|
322
283
|
export declare class CookieStorage {
|
|
323
284
|
static init(getListener?: (key: string) => any | undefined, getListenerRaw?: () => string, setListener?: (key: string, value: any, cookie: string, options?: CookieOptions) => void): void;
|
|
324
285
|
static reset(): void;
|
|
@@ -329,9 +290,7 @@ export declare class CookieStorage {
|
|
|
329
290
|
}
|
|
330
291
|
// File: src/classes/DataStorage.d.ts
|
|
331
292
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
332
|
-
/**
|
|
333
|
-
* Local/Session Storage manager.
|
|
334
|
-
*/
|
|
293
|
+
/** Class for localStorage/sessionStorage. */
|
|
335
294
|
export declare class DataStorage<T> {
|
|
336
295
|
static setPrefix(newPrefix: string): void;
|
|
337
296
|
constructor(name: string, isSession?: boolean, errorCenter?: ErrorCenterInstance);
|
|
@@ -344,9 +303,7 @@ export declare class DataStorage<T> {
|
|
|
344
303
|
import { GeoIntl } from './GeoIntl';
|
|
345
304
|
import { NumberOrStringOrDate } from '../types/basicTypes';
|
|
346
305
|
import { GeoDate, GeoFirstDay, GeoHours, GeoTimeZoneStyle } from '../types/geoTypes';
|
|
347
|
-
/**
|
|
348
|
-
* Class for date manipulation and formatting.
|
|
349
|
-
*/
|
|
306
|
+
/** Class for date processing. */
|
|
350
307
|
export declare class Datetime {
|
|
351
308
|
constructor(date?: NumberOrStringOrDate, type?: GeoDate, code?: string);
|
|
352
309
|
getIntl(): GeoIntl;
|
|
@@ -423,9 +380,7 @@ export declare class Datetime {
|
|
|
423
380
|
// File: src/classes/ErrorCenter.d.ts
|
|
424
381
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
425
382
|
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
426
|
-
/**
|
|
427
|
-
* Global Error center.
|
|
428
|
-
*/
|
|
383
|
+
/** Class for error handling. */
|
|
429
384
|
export declare class ErrorCenter {
|
|
430
385
|
static getItem(): ErrorCenterInstance;
|
|
431
386
|
static has(code: string, group?: string): boolean;
|
|
@@ -438,9 +393,7 @@ export declare class ErrorCenter {
|
|
|
438
393
|
}
|
|
439
394
|
// File: src/classes/ErrorCenterHandler.d.ts
|
|
440
395
|
import { ErrorCenterCauseItem, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerItem, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
441
|
-
/**
|
|
442
|
-
* Error handler manager.
|
|
443
|
-
*/
|
|
396
|
+
/** Class for managing error handlers. */
|
|
444
397
|
export declare class ErrorCenterHandler {
|
|
445
398
|
constructor(handlers?: ErrorCenterHandlerList);
|
|
446
399
|
has(group: ErrorCenterGroup): boolean;
|
|
@@ -452,9 +405,7 @@ export declare class ErrorCenterHandler {
|
|
|
452
405
|
// File: src/classes/ErrorCenterInstance.d.ts
|
|
453
406
|
import { ErrorCenterHandler } from './ErrorCenterHandler';
|
|
454
407
|
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
455
|
-
/**
|
|
456
|
-
* Error center instance.
|
|
457
|
-
*/
|
|
408
|
+
/** Class for local error management. */
|
|
458
409
|
export declare class ErrorCenterInstance {
|
|
459
410
|
constructor(causes?: ErrorCenterCauseList, handler?: ErrorCenterHandler);
|
|
460
411
|
has(code: string, group?: string): boolean;
|
|
@@ -466,10 +417,8 @@ export declare class ErrorCenterInstance {
|
|
|
466
417
|
on(cause: ErrorCenterCauseItem): this;
|
|
467
418
|
}
|
|
468
419
|
// File: src/classes/EventItem.d.ts
|
|
469
|
-
import { ElementOrString, ElementOrWindow,
|
|
470
|
-
/**
|
|
471
|
-
* Advanced Event Listener wrapper.
|
|
472
|
-
*/
|
|
420
|
+
import { ElementOrString, ElementOrWindow, EventListenerDetail, EventOptions } from '../types/basicTypes';
|
|
421
|
+
/** Advanced wrapper for DOM events. */
|
|
473
422
|
export declare class EventItem<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> {
|
|
474
423
|
constructor(elementSelector?: ElementOrString<E>, type?: string | string[], listener?: EventListenerDetail<O, D> | undefined, options?: EventOptions, detail?: D | undefined);
|
|
475
424
|
isActive(): boolean;
|
|
@@ -487,16 +436,16 @@ export declare class EventItem<E extends ElementOrWindow, O extends Event, D ext
|
|
|
487
436
|
reset(): this;
|
|
488
437
|
}
|
|
489
438
|
// File: src/classes/Formatters.d.ts
|
|
490
|
-
import { FormattersType, FormattersOptionsList, FormattersListProp, FormattersItemProp
|
|
491
|
-
/**
|
|
492
|
-
* Data formatting utility.
|
|
493
|
-
*/
|
|
439
|
+
import { FormattersType, FormattersList, FormattersOptionsList, FormattersOptionsInformation, FormattersReturn, FormattersListProp, FormattersItemProp } from '../types/formattersTypes';
|
|
440
|
+
/** Class for data formatting. */
|
|
494
441
|
export declare class Formatters<Options extends FormattersOptionsList = FormattersOptionsList, List extends FormattersListProp = FormattersListProp, Item extends FormattersItemProp<List> = FormattersItemProp<List>> {
|
|
495
442
|
constructor(options: Options, list?: List | undefined);
|
|
496
443
|
is(): boolean;
|
|
497
|
-
isArray():
|
|
444
|
+
isArray(): this is this & {
|
|
445
|
+
list: FormattersList<Item>;
|
|
446
|
+
};
|
|
498
447
|
length(): number;
|
|
499
|
-
getList():
|
|
448
|
+
getList(): FormattersList<Item>;
|
|
500
449
|
getOptions(): Options;
|
|
501
450
|
setList(list?: List): this;
|
|
502
451
|
to(): FormattersReturn<List, Options>;
|
|
@@ -504,9 +453,7 @@ export declare class Formatters<Options extends FormattersOptionsList = Formatte
|
|
|
504
453
|
// File: src/classes/Geo.d.ts
|
|
505
454
|
import { GeoInstance } from './GeoInstance';
|
|
506
455
|
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
507
|
-
/**
|
|
508
|
-
* Static geographic data manager.
|
|
509
|
-
*/
|
|
456
|
+
/** Static class for Geo data. */
|
|
510
457
|
export declare class Geo {
|
|
511
458
|
static getObject(): GeoInstance;
|
|
512
459
|
static get(): GeoItemFull;
|
|
@@ -527,14 +474,13 @@ export declare class Geo {
|
|
|
527
474
|
static toStandard(item: GeoItem): string;
|
|
528
475
|
static set(code: string, save?: boolean): void;
|
|
529
476
|
static setTimezone(timezone: number): void;
|
|
530
|
-
static setValueDefault(code?: string): void;
|
|
477
|
+
static setValueDefault(code?: string | (() => string)): void;
|
|
531
478
|
}
|
|
532
479
|
// File: src/classes/GeoFlag.d.ts
|
|
533
|
-
import {
|
|
480
|
+
import { GeoIntl } from './GeoIntl';
|
|
481
|
+
import { GeoFlagItem, GeoFlagNational, GeoItemFull } from '../types/geoTypes';
|
|
534
482
|
export declare const GEO_FLAG_ICON_NAME = "f";
|
|
535
|
-
/**
|
|
536
|
-
* Geographic flags and naming manager.
|
|
537
|
-
*/
|
|
483
|
+
/** Class for Geo flags. */
|
|
538
484
|
export declare class GeoFlag {
|
|
539
485
|
static flags: Record<string, string>;
|
|
540
486
|
constructor(code?: string);
|
|
@@ -548,9 +494,7 @@ export declare class GeoFlag {
|
|
|
548
494
|
// File: src/classes/GeoInstance.d.ts
|
|
549
495
|
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
550
496
|
export declare const UI_GEO_COOKIE_KEY = "ui-geo-code";
|
|
551
|
-
/**
|
|
552
|
-
* Geographic data instance.
|
|
553
|
-
*/
|
|
497
|
+
/** Base class for Geo data. */
|
|
554
498
|
export declare class GeoInstance {
|
|
555
499
|
constructor();
|
|
556
500
|
get(): GeoItemFull;
|
|
@@ -571,15 +515,13 @@ export declare class GeoInstance {
|
|
|
571
515
|
toStandard(item: GeoItem): string;
|
|
572
516
|
set(code: string, save?: boolean): void;
|
|
573
517
|
setTimezone(timezone: number): void;
|
|
574
|
-
setValueDefault(code?: string): void;
|
|
518
|
+
setValueDefault(code?: string | (() => string)): void;
|
|
575
519
|
}
|
|
576
520
|
// File: src/classes/GeoIntl.d.ts
|
|
577
521
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
578
522
|
import { NumberOrStringOrDate, NumberOrString, ItemValue } from '../types/basicTypes';
|
|
579
523
|
import { GeoDate } from '../types/geoTypes';
|
|
580
|
-
/**
|
|
581
|
-
* Internationalization wrapper.
|
|
582
|
-
*/
|
|
524
|
+
/** Intl wrapper for localization. */
|
|
583
525
|
export declare class GeoIntl {
|
|
584
526
|
static isItem(code?: string): boolean;
|
|
585
527
|
static getLocation(code?: string): string;
|
|
@@ -613,9 +555,7 @@ export declare class GeoIntl {
|
|
|
613
555
|
}
|
|
614
556
|
// File: src/classes/GeoPhone.d.ts
|
|
615
557
|
import { GeoPhoneValue, GeoPhoneMap, GeoPhoneMapInfo } from '../types/geoTypes';
|
|
616
|
-
/**
|
|
617
|
-
* Phone mask processing.
|
|
618
|
-
*/
|
|
558
|
+
/** Class for phone masks. */
|
|
619
559
|
export declare class GeoPhone {
|
|
620
560
|
static get(code: string): GeoPhoneValue | undefined;
|
|
621
561
|
static getByPhone(phone: string): GeoPhoneMapInfo;
|
|
@@ -626,9 +566,7 @@ export declare class GeoPhone {
|
|
|
626
566
|
static removeZero(phone: string): string;
|
|
627
567
|
}
|
|
628
568
|
// File: src/classes/Global.d.ts
|
|
629
|
-
/**
|
|
630
|
-
* Application global state.
|
|
631
|
-
*/
|
|
569
|
+
/** Global application data store. */
|
|
632
570
|
export declare class Global {
|
|
633
571
|
static getItem(): Record<string, any>;
|
|
634
572
|
static get<R = any>(name: string): R;
|
|
@@ -636,9 +574,7 @@ export declare class Global {
|
|
|
636
574
|
}
|
|
637
575
|
// File: src/classes/Hash.d.ts
|
|
638
576
|
import { HashInstance } from './HashInstance';
|
|
639
|
-
/**
|
|
640
|
-
* URL Hash management.
|
|
641
|
-
*/
|
|
577
|
+
/** Static class for URL hash data. */
|
|
642
578
|
export declare class Hash {
|
|
643
579
|
static getItem(): HashInstance;
|
|
644
580
|
static get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
@@ -648,6 +584,7 @@ export declare class Hash {
|
|
|
648
584
|
static reload(): void;
|
|
649
585
|
}
|
|
650
586
|
// File: src/classes/HashInstance.d.ts
|
|
587
|
+
/** Class for URL hash data. */
|
|
651
588
|
export declare class HashInstance {
|
|
652
589
|
get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
653
590
|
set<T>(name: string, callback: T | (() => T)): this;
|
|
@@ -661,9 +598,7 @@ export type IconsConfig = {
|
|
|
661
598
|
url?: string;
|
|
662
599
|
list?: Record<string, IconsItem>;
|
|
663
600
|
};
|
|
664
|
-
/**
|
|
665
|
-
* Icons registry and loader.
|
|
666
|
-
*/
|
|
601
|
+
/** Class for icons management. */
|
|
667
602
|
export declare class Icons {
|
|
668
603
|
static is(index: string): boolean;
|
|
669
604
|
static get(index: string, url?: string, wait?: number): Promise<string>;
|
|
@@ -680,21 +615,20 @@ export declare class Icons {
|
|
|
680
615
|
// File: src/classes/Loading.d.ts
|
|
681
616
|
import { LoadingInstance } from './LoadingInstance';
|
|
682
617
|
import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
|
|
683
|
-
/**
|
|
684
|
-
* Global loading state.
|
|
685
|
-
*/
|
|
618
|
+
/** Class for loading state. */
|
|
686
619
|
export declare class Loading {
|
|
687
620
|
static is(): boolean;
|
|
688
621
|
static get(): number;
|
|
689
622
|
static getItem(): LoadingInstance;
|
|
690
623
|
static show(): void;
|
|
691
624
|
static hide(): void;
|
|
692
|
-
static registrationEvent(listener: EventListenerDetail<CustomEvent,
|
|
693
|
-
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;
|
|
694
627
|
}
|
|
695
628
|
// File: src/classes/LoadingInstance.d.ts
|
|
696
629
|
import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
|
|
697
630
|
export type LoadingDetail = { loading: boolean; };
|
|
631
|
+
/** Class for loading instance. */
|
|
698
632
|
export declare class LoadingInstance {
|
|
699
633
|
constructor(eventName?: string);
|
|
700
634
|
is(): boolean;
|
|
@@ -709,9 +643,7 @@ import { MetaManager } from './MetaManager';
|
|
|
709
643
|
import { MetaOg } from './MetaOg';
|
|
710
644
|
import { MetaTwitter } from './MetaTwitter';
|
|
711
645
|
import { MetaRobots, MetaTag } from '../types/metaTypes';
|
|
712
|
-
/**
|
|
713
|
-
* Unified meta tag management.
|
|
714
|
-
*/
|
|
646
|
+
/** Unified Meta manager. */
|
|
715
647
|
export declare class Meta extends MetaManager<MetaTag[]> {
|
|
716
648
|
constructor();
|
|
717
649
|
getOg(): MetaOg;
|
|
@@ -739,21 +671,21 @@ export declare class Meta extends MetaManager<MetaTag[]> {
|
|
|
739
671
|
htmlTitle(): string;
|
|
740
672
|
}
|
|
741
673
|
// File: src/classes/MetaManager.d.ts
|
|
742
|
-
|
|
674
|
+
type MetaList<T extends readonly string[]> = { [K in T[number]]?: string; };
|
|
675
|
+
/** Base manager for meta tags. */
|
|
676
|
+
export declare class MetaManager<T extends readonly string[], Key extends keyof MetaList<T> = keyof MetaList<T>> {
|
|
743
677
|
constructor(listMeta: T, isProperty?: boolean);
|
|
744
678
|
getListMeta(): T;
|
|
745
679
|
get(name: Key): string;
|
|
746
|
-
getItems():
|
|
680
|
+
getItems(): MetaList<T>;
|
|
747
681
|
html(): string;
|
|
748
682
|
set(name: Key, content: string): this;
|
|
749
|
-
setByList(metaList:
|
|
683
|
+
setByList(metaList: MetaList<T>): this;
|
|
750
684
|
}
|
|
751
685
|
// File: src/classes/MetaOg.d.ts
|
|
752
686
|
import { MetaManager } from './MetaManager';
|
|
753
687
|
import { MetaOpenGraphTag, MetaOpenGraphType } from '../types/metaTypes';
|
|
754
|
-
/**
|
|
755
|
-
* Open Graph meta manager.
|
|
756
|
-
*/
|
|
688
|
+
/** Class for Open Graph tags. */
|
|
757
689
|
export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
|
|
758
690
|
constructor();
|
|
759
691
|
getTitle(): string;
|
|
@@ -776,6 +708,7 @@ import { Meta } from './Meta';
|
|
|
776
708
|
import { MetaOg } from './MetaOg';
|
|
777
709
|
import { MetaTwitter } from './MetaTwitter';
|
|
778
710
|
import { MetaRobots } from '../types/metaTypes';
|
|
711
|
+
/** Static class for Meta tags. */
|
|
779
712
|
export declare class MetaStatic {
|
|
780
713
|
static getItem(): Meta;
|
|
781
714
|
static getOg(): MetaOg;
|
|
@@ -805,9 +738,7 @@ export declare class MetaStatic {
|
|
|
805
738
|
// File: src/classes/MetaTwitter.d.ts
|
|
806
739
|
import { MetaManager } from './MetaManager';
|
|
807
740
|
import { MetaTwitterCard, MetaTwitterTag } from '../types/metaTypes';
|
|
808
|
-
/**
|
|
809
|
-
* Twitter Card manager.
|
|
810
|
-
*/
|
|
741
|
+
/** Class for Twitter meta tags. */
|
|
811
742
|
export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
812
743
|
constructor();
|
|
813
744
|
getCard(): MetaTwitterCard;
|
|
@@ -827,9 +758,7 @@ export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
|
827
758
|
}
|
|
828
759
|
// File: src/classes/ResumableTimer.d.ts
|
|
829
760
|
import { FunctionVoid } from '../types/basicTypes';
|
|
830
|
-
/**
|
|
831
|
-
* Pausable timer.
|
|
832
|
-
*/
|
|
761
|
+
/** Resumable timer class. */
|
|
833
762
|
export declare class ResumableTimer {
|
|
834
763
|
constructor(callback: FunctionVoid, delay?: number, blockStart?: boolean);
|
|
835
764
|
resume(): this;
|
|
@@ -839,6 +768,7 @@ export declare class ResumableTimer {
|
|
|
839
768
|
}
|
|
840
769
|
// File: src/classes/ScrollbarWidth.d.ts
|
|
841
770
|
import { DataStorage } from './DataStorage';
|
|
771
|
+
/** Class for scroll width. */
|
|
842
772
|
export declare class ScrollbarWidth {
|
|
843
773
|
static is(): Promise<boolean>;
|
|
844
774
|
static get(): Promise<number>;
|
|
@@ -851,9 +781,7 @@ import { SearchListItem } from './SearchListItem';
|
|
|
851
781
|
import { SearchListMatcher } from './SearchListMatcher';
|
|
852
782
|
import { SearchListOptions } from './SearchListOptions';
|
|
853
783
|
import { SearchColumns, SearchFormatList, SearchItem, SearchListValue, SearchOptions } from '../types/searchTypes';
|
|
854
|
-
/**
|
|
855
|
-
* Searchable list manager.
|
|
856
|
-
*/
|
|
784
|
+
/** Class for searchable lists. */
|
|
857
785
|
export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>> {
|
|
858
786
|
constructor(list: SearchListValue<T>, columns?: K, value?: string, options?: SearchOptions);
|
|
859
787
|
getData(): SearchListData<T, K>;
|
|
@@ -871,24 +799,26 @@ export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>
|
|
|
871
799
|
// File: src/classes/SearchListData.d.ts
|
|
872
800
|
import { SearchListItem } from './SearchListItem';
|
|
873
801
|
import { SearchListOptions } from './SearchListOptions';
|
|
874
|
-
import { SearchColumns, SearchFormatItem, SearchFormatList, SearchItem, SearchListValue } from '../types/searchTypes';
|
|
802
|
+
import { SearchCacheItem, SearchColumns, SearchFormatItem, SearchFormatList, SearchItem, SearchListValue } from '../types/searchTypes';
|
|
803
|
+
/** Data manager for search list. */
|
|
875
804
|
export declare class SearchListData<T extends SearchItem, K extends SearchColumns<T>> {
|
|
876
805
|
constructor(list: SearchListValue<T>, columns: K | undefined, item: SearchListItem, options: SearchListOptions);
|
|
877
|
-
is():
|
|
878
|
-
isList():
|
|
806
|
+
is(): this is this & { list: T[]; columns: string[]; };
|
|
807
|
+
isList(): this is this & { list: T[]; };
|
|
879
808
|
getList(): SearchListValue<T>;
|
|
880
809
|
getColumns(): K | undefined;
|
|
881
810
|
setList(list: SearchListValue<T>): this;
|
|
882
811
|
setColumns(columns?: SearchColumns<T>): this;
|
|
883
|
-
findCacheItem(item: T):
|
|
884
|
-
forEach(callback: (item:
|
|
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>;
|
|
885
814
|
toFormatItem(item: T, selection: boolean): SearchFormatItem<T, K>;
|
|
886
815
|
}
|
|
887
816
|
// File: src/classes/SearchListItem.d.ts
|
|
888
817
|
import { SearchListOptions } from './SearchListOptions';
|
|
818
|
+
/** Single search item state. */
|
|
889
819
|
export declare class SearchListItem {
|
|
890
820
|
constructor(value: string | undefined, options: SearchListOptions);
|
|
891
|
-
is():
|
|
821
|
+
is(): this is this & { value: string; };
|
|
892
822
|
isSearch(): boolean;
|
|
893
823
|
get(): string;
|
|
894
824
|
set(value?: string): this;
|
|
@@ -896,15 +826,18 @@ export declare class SearchListItem {
|
|
|
896
826
|
// File: src/classes/SearchListMatcher.d.ts
|
|
897
827
|
import { SearchListItem } from './SearchListItem';
|
|
898
828
|
import { SearchListOptions } from './SearchListOptions';
|
|
829
|
+
import { SearchCacheItem } from '../types/searchTypes';
|
|
830
|
+
/** Matcher for search values. */
|
|
899
831
|
export declare class SearchListMatcher {
|
|
900
832
|
constructor(item: SearchListItem, options: SearchListOptions);
|
|
901
833
|
is(): boolean;
|
|
902
|
-
isSelection(value: any): boolean;
|
|
834
|
+
isSelection(value: SearchCacheItem<any>['value']): boolean;
|
|
903
835
|
get(): RegExp | undefined;
|
|
904
836
|
update(): void;
|
|
905
837
|
}
|
|
906
838
|
// File: src/classes/SearchListOptions.d.ts
|
|
907
839
|
import { SearchOptions } from '../types/searchTypes';
|
|
840
|
+
/** Configuration for search list. */
|
|
908
841
|
export declare class SearchListOptions {
|
|
909
842
|
constructor(options?: SearchOptions | undefined);
|
|
910
843
|
getOptions(): SearchOptions;
|
|
@@ -916,9 +849,7 @@ export declare class SearchListOptions {
|
|
|
916
849
|
setOptions(options: SearchOptions): this;
|
|
917
850
|
}
|
|
918
851
|
// File: src/classes/ServerStorage.d.ts
|
|
919
|
-
/**
|
|
920
|
-
* Server-side storage for hydration.
|
|
921
|
-
*/
|
|
852
|
+
/** Server storage for SSR. */
|
|
922
853
|
export declare class ServerStorage {
|
|
923
854
|
static init(listener: () => Record<string, any> | undefined): typeof ServerStorage;
|
|
924
855
|
static reset(): void;
|
|
@@ -930,9 +861,7 @@ export declare class ServerStorage {
|
|
|
930
861
|
static toString(): string;
|
|
931
862
|
}
|
|
932
863
|
// File: src/classes/StorageCallback.d.ts
|
|
933
|
-
/**
|
|
934
|
-
* Storage observer.
|
|
935
|
-
*/
|
|
864
|
+
/** Callback storage. */
|
|
936
865
|
export declare class StorageCallback<T = any, Callback = (value: T) => void | Promise<void>> {
|
|
937
866
|
static getInstance<T>(name: string, group?: string): StorageCallback<T, (value: T) => void | Promise<void>>;
|
|
938
867
|
constructor(name: string, group?: string);
|
|
@@ -947,9 +876,7 @@ export declare class StorageCallback<T = any, Callback = (value: T) => void | Pr
|
|
|
947
876
|
// File: src/classes/Translate.d.ts
|
|
948
877
|
import { TranslateInstance } from './TranslateInstance';
|
|
949
878
|
import { TranslateCode, TranslateConfig, TranslateDataFile, TranslateList } from '../types/translateTypes';
|
|
950
|
-
/**
|
|
951
|
-
* Translation service.
|
|
952
|
-
*/
|
|
879
|
+
/** Translation service. */
|
|
953
880
|
export declare class Translate {
|
|
954
881
|
static get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
|
|
955
882
|
static getItem(): TranslateInstance;
|
|
@@ -968,9 +895,7 @@ export declare class Translate {
|
|
|
968
895
|
}
|
|
969
896
|
// File: src/classes/TranslateFile.d.ts
|
|
970
897
|
import { TranslateDataFile, TranslateDataFileList } from '../types/translateTypes';
|
|
971
|
-
/**
|
|
972
|
-
* Translation file loader.
|
|
973
|
-
*/
|
|
898
|
+
/** Translation file handler. */
|
|
974
899
|
export declare class TranslateFile {
|
|
975
900
|
constructor(data?: TranslateDataFile, language?: string | (() => string), location?: string | (() => string));
|
|
976
901
|
isFile(): boolean;
|
|
@@ -982,6 +907,7 @@ export declare class TranslateFile {
|
|
|
982
907
|
// File: src/classes/TranslateInstance.d.ts
|
|
983
908
|
import { TranslateFile } from './TranslateFile';
|
|
984
909
|
import { TranslateCode, TranslateDataFile, TranslateList } from '../types/translateTypes';
|
|
910
|
+
/** Translation instance. */
|
|
985
911
|
export declare class TranslateInstance {
|
|
986
912
|
constructor(url?: string, propsName?: string, files?: TranslateFile);
|
|
987
913
|
get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
|
|
@@ -997,6 +923,27 @@ export declare class TranslateInstance {
|
|
|
997
923
|
setPropsName(name: string): this;
|
|
998
924
|
setReadApi(value: boolean): this;
|
|
999
925
|
}
|
|
926
|
+
// File: src/classes/UrlItem.d.ts
|
|
927
|
+
/** URL management utility. */
|
|
928
|
+
export declare class UrlItem {
|
|
929
|
+
static getInstance(): UrlItem;
|
|
930
|
+
constructor(url?: string | URL);
|
|
931
|
+
get href(): string;
|
|
932
|
+
get protocol(): string;
|
|
933
|
+
get username(): string;
|
|
934
|
+
get password(): string;
|
|
935
|
+
get host(): string;
|
|
936
|
+
get hostname(): string;
|
|
937
|
+
get port(): string;
|
|
938
|
+
get pathname(): string;
|
|
939
|
+
get search(): string;
|
|
940
|
+
get searchParams(): URLSearchParams;
|
|
941
|
+
get hash(): string;
|
|
942
|
+
get origin(): string;
|
|
943
|
+
set(url?: string | URL): this;
|
|
944
|
+
toString(): string;
|
|
945
|
+
toJSON(): string;
|
|
946
|
+
}
|
|
1000
947
|
// File: src/functions/addTagHighlightMatch.d.ts
|
|
1001
948
|
export declare function addTagHighlightMatch(value: string, search?: string | RegExp, className?: string, shouldEscape?: boolean): string;
|
|
1002
949
|
// File: src/functions/anyToString.d.ts
|
|
@@ -1035,7 +982,7 @@ export declare function executeFunction<T>(callback: T | FunctionArgs<any, T>, .
|
|
|
1035
982
|
// File: src/functions/executePromise.d.ts
|
|
1036
983
|
export declare function executePromise<T>(callback: ((...args: any[]) => Promise<T>) | ((...args: any[]) => T) | T, ...args: any[]): Promise<T>;
|
|
1037
984
|
// File: src/functions/forEach.d.ts
|
|
1038
|
-
export declare function forEach<T, R>(data:
|
|
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[];
|
|
1039
986
|
// File: src/functions/frame.d.ts
|
|
1040
987
|
export declare function frame(callback: () => void, next?: () => boolean, end?: () => void): void;
|
|
1041
988
|
// File: src/functions/getArrayHighlightMatch.d.ts
|
|
@@ -1134,7 +1081,7 @@ export declare function inArray<T>(array: T[], value: T): boolean;
|
|
|
1134
1081
|
// File: src/functions/initScrollbarOffset.d.ts
|
|
1135
1082
|
export declare function initScrollbarOffset(): Promise<void>;
|
|
1136
1083
|
// File: src/functions/intersectKey.d.ts
|
|
1137
|
-
export declare function intersectKey<T, C>(data?: T, comparison?: C): Record<
|
|
1084
|
+
export declare function intersectKey<T, KT extends keyof T, C, KC extends keyof C>(data?: T, comparison?: C): Record<KT & KC, T[KT]>;
|
|
1138
1085
|
// File: src/functions/isApiSuccess.d.ts
|
|
1139
1086
|
import { ApiData } from '../types/apiTypes';
|
|
1140
1087
|
export declare const isApiSuccess: <T>(data: ApiData<T>) => boolean;
|
|
@@ -1153,11 +1100,13 @@ export declare function isElementVisible<E extends ElementOrWindow>(elementSelec
|
|
|
1153
1100
|
// File: src/functions/isEnter.d.ts
|
|
1154
1101
|
export declare const isEnter: (event: KeyboardEvent, isInputElement?: boolean) => boolean;
|
|
1155
1102
|
// File: src/functions/isFilled.d.ts
|
|
1156
|
-
|
|
1103
|
+
import { EmptyValue } from '../types/basicTypes';
|
|
1104
|
+
export declare function isFilled<T>(value: T, zeroTrue?: boolean): value is Exclude<T, EmptyValue>;
|
|
1157
1105
|
// File: src/functions/isFloat.d.ts
|
|
1158
1106
|
export declare function isFloat(value: any): boolean;
|
|
1159
1107
|
// File: src/functions/isFunction.d.ts
|
|
1160
|
-
|
|
1108
|
+
import { FunctionArgs } from '../types/basicTypes';
|
|
1109
|
+
export declare function isFunction<T>(callback: T): callback is Extract<T, FunctionArgs<any, any>>;
|
|
1161
1110
|
// File: src/functions/isInDom.d.ts
|
|
1162
1111
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1163
1112
|
export declare function isInDom<E extends ElementOrWindow>(element?: ElementOrString<E>): boolean;
|
|
@@ -1166,13 +1115,14 @@ export declare const isInput: (element: HTMLElement | EventTarget | null) => boo
|
|
|
1166
1115
|
// File: src/functions/isIntegerBetween.d.ts
|
|
1167
1116
|
export declare function isIntegerBetween(value: number, between: number): boolean;
|
|
1168
1117
|
// File: src/functions/isNull.d.ts
|
|
1169
|
-
|
|
1118
|
+
import { Undefined } from '../types/basicTypes';
|
|
1119
|
+
export declare function isNull<T>(value: T): value is Extract<T, Undefined>;
|
|
1170
1120
|
// File: src/functions/isNumber.d.ts
|
|
1171
1121
|
export declare function isNumber(value: any): boolean;
|
|
1172
1122
|
// File: src/functions/isObject.d.ts
|
|
1173
1123
|
export declare function isObject<T>(value: T): value is Extract<T, Record<any, any>>;
|
|
1174
1124
|
// File: src/functions/isObjectNotArray.d.ts
|
|
1175
|
-
export declare function isObjectNotArray<T>(value: T):
|
|
1125
|
+
export declare function isObjectNotArray<T>(value: T): value is Exclude<Extract<T, Record<any, any>>, any[] | undefined | null>;
|
|
1176
1126
|
// File: src/functions/isOnLine.d.ts
|
|
1177
1127
|
export declare function isOnLine(): boolean;
|
|
1178
1128
|
// File: src/functions/isSelected.d.ts
|
|
@@ -1197,16 +1147,22 @@ export declare const replaceComponentName: (text: string | undefined, name: stri
|
|
|
1197
1147
|
import { ObjectItem, ObjectOrArray } from '../types/basicTypes';
|
|
1198
1148
|
export declare function replaceRecursive<I>(array: ObjectItem<I>, replacement?: ObjectOrArray<I>, isMerge?: boolean): ObjectItem<I>;
|
|
1199
1149
|
// File: src/functions/replaceTemplate.d.ts
|
|
1200
|
-
|
|
1150
|
+
import { FunctionReturn } from '../types/basicTypes';
|
|
1151
|
+
export declare function replaceTemplate(value: string, replaces: Record<string, string | FunctionReturn<string>>): string;
|
|
1201
1152
|
// File: src/functions/resizeImageByMax.d.ts
|
|
1202
|
-
export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?:
|
|
1153
|
+
export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?: 'auto' | 'width' | 'height', typeData?: string): string | undefined;
|
|
1203
1154
|
// File: src/functions/secondToTime.d.ts
|
|
1204
1155
|
export declare function secondToTime(second: number | string | undefined, hasHour?: boolean): string;
|
|
1205
1156
|
// File: src/functions/setElementItem.d.ts
|
|
1206
1157
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1207
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;
|
|
1208
1159
|
// File: src/functions/setValues.d.ts
|
|
1209
|
-
export declare function setValues<T>(selected: T | T[] | undefined, value: any,
|
|
1160
|
+
export declare function setValues<T>(selected: T | T[] | undefined, value: any, { multiple, maxlength, alwaysChange, notEmpty }: {
|
|
1161
|
+
multiple?: boolean | undefined;
|
|
1162
|
+
maxlength?: number | undefined;
|
|
1163
|
+
alwaysChange?: boolean | undefined;
|
|
1164
|
+
notEmpty?: boolean | undefined;
|
|
1165
|
+
}): T | T[] | undefined;
|
|
1210
1166
|
// File: src/functions/sleep.d.ts
|
|
1211
1167
|
export declare function sleep(ms: number): Promise<void>;
|
|
1212
1168
|
// File: src/functions/splice.d.ts
|
|
@@ -1223,7 +1179,7 @@ export declare function toCamelCase(value: string): string;
|
|
|
1223
1179
|
// File: src/functions/toCamelCaseFirst.d.ts
|
|
1224
1180
|
export declare function toCamelCaseFirst(value: string): string;
|
|
1225
1181
|
// File: src/functions/toDate.d.ts
|
|
1226
|
-
export declare function toDate<T extends Date | number | string>(value?: T): Date;
|
|
1182
|
+
export declare function toDate<T extends Date | number | string>(value?: T): (T & Date) | Date;
|
|
1227
1183
|
// File: src/functions/toKebabCase.d.ts
|
|
1228
1184
|
export declare function toKebabCase(value: string): string;
|
|
1229
1185
|
// File: src/functions/toNumber.d.ts
|
|
@@ -1302,6 +1258,7 @@ export * from './classes/StorageCallback';
|
|
|
1302
1258
|
export * from './classes/Translate';
|
|
1303
1259
|
export * from './classes/TranslateFile';
|
|
1304
1260
|
export * from './classes/TranslateInstance';
|
|
1261
|
+
export * from './classes/UrlItem';
|
|
1305
1262
|
export * from './functions/addTagHighlightMatch';
|
|
1306
1263
|
export * from './functions/anyToString';
|
|
1307
1264
|
export * from './functions/applyTemplate';
|
|
@@ -1427,7 +1384,6 @@ export * from './types/translateTypes';
|
|
|
1427
1384
|
import { ErrorCenterCauseList } from '../types/errorCenter';
|
|
1428
1385
|
export declare const errorCauseList: ErrorCenterCauseList;
|
|
1429
1386
|
// File: src/types/apiTypes.d.ts
|
|
1430
|
-
import { ApiErrorItem } from '../classes/ApiErrorItem';
|
|
1431
1387
|
export declare enum ApiMethodItem {
|
|
1432
1388
|
delete = "DELETE",
|
|
1433
1389
|
get = "GET",
|
|
@@ -1435,11 +1391,7 @@ export declare enum ApiMethodItem {
|
|
|
1435
1391
|
put = "PUT",
|
|
1436
1392
|
patch = "PATCH"
|
|
1437
1393
|
}
|
|
1438
|
-
export type ApiCacheItem<T = any> = {
|
|
1439
|
-
value: T;
|
|
1440
|
-
age?: number;
|
|
1441
|
-
cacheAge: number;
|
|
1442
|
-
};
|
|
1394
|
+
export type ApiCacheItem<T = any> = { value: T; age?: number; cacheAge: number; };
|
|
1443
1395
|
export type ApiCacheList = Record<string, ApiCacheItem>;
|
|
1444
1396
|
export type ApiConfig = {
|
|
1445
1397
|
urlRoot?: string;
|
|
@@ -1452,21 +1404,8 @@ export type ApiConfig = {
|
|
|
1452
1404
|
devMode?: boolean;
|
|
1453
1405
|
};
|
|
1454
1406
|
export type ApiData<T = any> = T extends any[] ? T : ApiDataItem<T>;
|
|
1455
|
-
export type ApiDataValidation = {
|
|
1456
|
-
|
|
1457
|
-
code?: string | number;
|
|
1458
|
-
message?: string;
|
|
1459
|
-
error?: {
|
|
1460
|
-
code?: string | number;
|
|
1461
|
-
message?: string;
|
|
1462
|
-
};
|
|
1463
|
-
};
|
|
1464
|
-
export type ApiDataItem<T = any> = T & ApiDataValidation & {
|
|
1465
|
-
data?: T;
|
|
1466
|
-
success?: boolean;
|
|
1467
|
-
statusObject?: ApiStatusItem;
|
|
1468
|
-
errorObject?: ApiErrorItem;
|
|
1469
|
-
};
|
|
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; };
|
|
1470
1409
|
export type ApiHeadersValue = Record<string, string> | (() => Record<string, string>);
|
|
1471
1410
|
export type ApiDefaultValue = Record<string, any> | (() => Record<string, any>);
|
|
1472
1411
|
export type ApiFetch = {
|
|
@@ -1497,45 +1436,14 @@ export type ApiFetch = {
|
|
|
1497
1436
|
cacheId?: number | string;
|
|
1498
1437
|
endResetLimit?: number;
|
|
1499
1438
|
};
|
|
1500
|
-
export type ApiHydrationItem = {
|
|
1501
|
-
path: string;
|
|
1502
|
-
method: ApiMethod;
|
|
1503
|
-
request?: ApiFetch['request'];
|
|
1504
|
-
response: any;
|
|
1505
|
-
};
|
|
1439
|
+
export type ApiHydrationItem = { path: string; method: ApiMethod; request?: ApiFetch['request']; response: any; };
|
|
1506
1440
|
export type ApiHydrationList = ApiHydrationItem[];
|
|
1507
|
-
export type ApiErrorStorageItem = Record<string, any> & {
|
|
1508
|
-
url: string | RegExp;
|
|
1509
|
-
method: ApiMethodItem;
|
|
1510
|
-
code?: string;
|
|
1511
|
-
status?: number;
|
|
1512
|
-
validation?: (response: Response) => boolean;
|
|
1513
|
-
message?: string | ((response?: Response) => string);
|
|
1514
|
-
};
|
|
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); };
|
|
1515
1442
|
export type ApiErrorStorageList = ApiErrorStorageItem[];
|
|
1516
1443
|
export type ApiMethod = string | ApiMethodItem;
|
|
1517
|
-
export type ApiPreparationEnd = {
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
};
|
|
1521
|
-
export type ApiResponseItem = {
|
|
1522
|
-
path: string | RegExp;
|
|
1523
|
-
method: ApiMethod;
|
|
1524
|
-
request?: ApiFetch['request'] | '*any';
|
|
1525
|
-
response: any | ((request?: ApiFetch['request']) => any);
|
|
1526
|
-
disable?: any;
|
|
1527
|
-
isForGlobal?: boolean;
|
|
1528
|
-
lag?: any;
|
|
1529
|
-
};
|
|
1530
|
-
export type ApiStatusItem = {
|
|
1531
|
-
status?: number;
|
|
1532
|
-
statusText?: string;
|
|
1533
|
-
error?: string;
|
|
1534
|
-
lastResponse?: any;
|
|
1535
|
-
lastStatus?: ApiStatusType;
|
|
1536
|
-
lastCode?: string;
|
|
1537
|
-
lastMessage?: string;
|
|
1538
|
-
};
|
|
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; };
|
|
1539
1447
|
export type ApiStatusType = 'success' | 'error' | 'warning' | 'info';
|
|
1540
1448
|
// File: src/types/basicTypes.d.ts
|
|
1541
1449
|
export type Undefined = undefined | null;
|
|
@@ -1553,48 +1461,21 @@ export type FunctionVoid = () => void;
|
|
|
1553
1461
|
export type FunctionArgs<T, R> = (...args: T[]) => R;
|
|
1554
1462
|
export type FunctionAnyType<T = any, R = any> = (...args: T[]) => R;
|
|
1555
1463
|
export type ItemList<T = any> = Record<string, T>;
|
|
1556
|
-
export type Item<V> = {
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
};
|
|
1560
|
-
export type ItemValue<V> = {
|
|
1561
|
-
label: string;
|
|
1562
|
-
value: V;
|
|
1563
|
-
};
|
|
1564
|
-
export type ItemName<V> = {
|
|
1565
|
-
name: string | number;
|
|
1566
|
-
value: V;
|
|
1567
|
-
};
|
|
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; };
|
|
1568
1467
|
export type ElementOrWindow = HTMLElement | Window;
|
|
1569
1468
|
export type ElementOrString<E extends ElementOrWindow> = E | string;
|
|
1570
1469
|
export type EventOptions = AddEventListenerOptions | boolean | undefined;
|
|
1571
1470
|
export type EventListenerDetail<O extends Event, D extends Record<string, any>> = (event: O, detail?: D) => void;
|
|
1572
|
-
export type EventActivityItem<E extends ElementOrWindow> = {
|
|
1573
|
-
|
|
1574
|
-
type: string;
|
|
1575
|
-
listener?: (event: any | Event) => void;
|
|
1576
|
-
observer?: ResizeObserver;
|
|
1577
|
-
};
|
|
1578
|
-
export type ImageCoordinator = {
|
|
1579
|
-
x: number;
|
|
1580
|
-
y: number;
|
|
1581
|
-
};
|
|
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; };
|
|
1582
1473
|
// File: src/types/errorCenter.d.ts
|
|
1583
1474
|
export type ErrorCenterGroup = string | undefined;
|
|
1584
|
-
export type ErrorCenterCauseItem<D = any> = {
|
|
1585
|
-
group?: ErrorCenterGroup;
|
|
1586
|
-
code: string;
|
|
1587
|
-
priority?: number;
|
|
1588
|
-
label?: string;
|
|
1589
|
-
message?: string;
|
|
1590
|
-
details?: D;
|
|
1591
|
-
};
|
|
1475
|
+
export type ErrorCenterCauseItem<D = any> = { group?: ErrorCenterGroup; code: string; priority?: number; label?: string; message?: string; details?: D; };
|
|
1592
1476
|
export type ErrorCenterCauseList = ErrorCenterCauseItem[];
|
|
1593
1477
|
export type ErrorCenterHandlerCallback = (cause: ErrorCenterCauseItem) => void;
|
|
1594
|
-
export type ErrorCenterHandlerItem = {
|
|
1595
|
-
group?: ErrorCenterGroup;
|
|
1596
|
-
handlers: ErrorCenterHandlerCallback[];
|
|
1597
|
-
};
|
|
1478
|
+
export type ErrorCenterHandlerItem = { group?: ErrorCenterGroup; handlers: ErrorCenterHandlerCallback[]; };
|
|
1598
1479
|
export type ErrorCenterHandlerList = ErrorCenterHandlerItem[];
|
|
1599
1480
|
// File: src/types/formattersTypes.d.ts
|
|
1600
1481
|
import { ArrayToItem } from './basicTypes';
|
|
@@ -1607,300 +1488,69 @@ export declare enum FormattersType {
|
|
|
1607
1488
|
plural = "plural",
|
|
1608
1489
|
unit = "unit"
|
|
1609
1490
|
}
|
|
1610
|
-
export type FormattersOptionsCurrency = {
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
};
|
|
1615
|
-
export type
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
hour24?: boolean;
|
|
1619
|
-
};
|
|
1620
|
-
export type FormattersOptionsName = {
|
|
1621
|
-
lastPropName?: string;
|
|
1622
|
-
firstPropName?: string;
|
|
1623
|
-
surname?: string;
|
|
1624
|
-
short?: boolean;
|
|
1625
|
-
};
|
|
1626
|
-
export type FormattersOptionsNumber = {
|
|
1627
|
-
options?: Intl.NumberFormatOptions;
|
|
1628
|
-
};
|
|
1629
|
-
export type FormattersOptionsPlural = {
|
|
1630
|
-
words: string;
|
|
1631
|
-
options?: Intl.PluralRulesOptions;
|
|
1632
|
-
optionsNumber?: Intl.NumberFormatOptions;
|
|
1633
|
-
};
|
|
1634
|
-
export type FormattersOptionsUnit = {
|
|
1635
|
-
unit: string | Intl.NumberFormatOptions;
|
|
1636
|
-
};
|
|
1637
|
-
export type FormattersOptionsInformation<Type extends FormattersType> = any;
|
|
1638
|
-
export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = {
|
|
1639
|
-
type?: Type;
|
|
1640
|
-
transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R;
|
|
1641
|
-
options?: FormattersOptionsInformation<Type>;
|
|
1642
|
-
};
|
|
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; };
|
|
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>;
|
|
1498
|
+
export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = { type?: Type; transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R; options?: FormattersOptionsInformation<Type>; };
|
|
1643
1499
|
export type FormattersOptionsList = Record<string, FormattersOptionsItem>;
|
|
1644
1500
|
export type FormattersListItem = Record<string, any>;
|
|
1645
1501
|
export type FormattersList<Item extends FormattersListItem> = Item[];
|
|
1646
|
-
export type FormattersCapitalize<K extends string> =
|
|
1502
|
+
export type FormattersCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<FormattersCapitalize<Rest>>}` : K;
|
|
1647
1503
|
export type FormattersColumns<T extends FormattersOptionsList> = (keyof T & string)[];
|
|
1648
|
-
export type FormattersKey<K, A extends string = 'Format'> = string;
|
|
1649
|
-
export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> =
|
|
1650
|
-
export type FormattersListFormat<T extends FormattersListItem, K extends string[]> =
|
|
1651
|
-
export type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> =
|
|
1652
|
-
export type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> =
|
|
1504
|
+
export type FormattersKey<K, A extends string = 'Format'> = K extends string ? `${FormattersCapitalize<K>}${A}` : never;
|
|
1505
|
+
export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = { [K in keyof T | FormattersKey<KT[number]>]: K extends keyof T ? T[K] : string; };
|
|
1506
|
+
export type FormattersListFormat<T extends FormattersListItem, K extends string[]> = FormattersDataItem<T, K>[];
|
|
1507
|
+
export type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersDataItem<T, FormattersColumns<O>>;
|
|
1508
|
+
export type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersListFormat<T, FormattersColumns<O>>;
|
|
1653
1509
|
export type FormattersListProp = FormattersList<FormattersListItem> | FormattersListItem;
|
|
1654
1510
|
export type FormattersItemProp<List extends FormattersListProp> = ArrayToItem<List>;
|
|
1655
|
-
export type FormattersReturn<List extends FormattersListProp, Options extends FormattersOptionsList = FormattersOptionsList, Item extends FormattersItemProp<List> = FormattersItemProp<List>> = any;
|
|
1511
|
+
export type FormattersReturn<List extends FormattersListProp, Options extends FormattersOptionsList = FormattersOptionsList, Item extends FormattersItemProp<List> = FormattersItemProp<List>> = List extends any[] ? FormattersListColumns<Item, Options> : (FormattersListColumnItem<Item, Options> | undefined);
|
|
1656
1512
|
// File: src/types/geoTypes.d.ts
|
|
1657
1513
|
export type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'month' | 'day' | 'day-month' | 'time' | 'hour-minute' | 'hour' | 'minute' | 'second';
|
|
1658
1514
|
export type GeoFirstDay = 1 | 6 | 0;
|
|
1659
1515
|
export type GeoHours = '12' | '24';
|
|
1660
1516
|
export type GeoTimeZoneStyle = 'minute' | 'hour' | 'ISO8601' | 'RFC';
|
|
1661
|
-
export interface GeoItem {
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
phoneCode?: string;
|
|
1669
|
-
phoneWithin?: string;
|
|
1670
|
-
phoneMask?: string | string[];
|
|
1671
|
-
nameFormat?: 'fl' | 'fsl' | 'lf' | 'lsf' | string;
|
|
1672
|
-
}
|
|
1673
|
-
export interface GeoItemFull extends Omit<GeoItem, 'firstDay'> {
|
|
1674
|
-
standard: string;
|
|
1675
|
-
firstDay: string;
|
|
1676
|
-
}
|
|
1677
|
-
export interface GeoFlagItem {
|
|
1678
|
-
language: string;
|
|
1679
|
-
country: string;
|
|
1680
|
-
standard: string;
|
|
1681
|
-
icon?: string;
|
|
1682
|
-
label: string;
|
|
1683
|
-
value: string;
|
|
1684
|
-
phoneCode?: string;
|
|
1685
|
-
}
|
|
1686
|
-
export interface GeoFlagNational extends GeoFlagItem {
|
|
1687
|
-
description: string;
|
|
1688
|
-
nationalLanguage: string;
|
|
1689
|
-
nationalCountry: string;
|
|
1690
|
-
}
|
|
1691
|
-
export interface GeoPhoneValue {
|
|
1692
|
-
phone: number;
|
|
1693
|
-
within: number;
|
|
1694
|
-
mask: string[];
|
|
1695
|
-
value: string;
|
|
1696
|
-
}
|
|
1697
|
-
export interface GeoPhoneMap {
|
|
1698
|
-
items: GeoPhoneValue[];
|
|
1699
|
-
info: GeoPhoneValue | undefined;
|
|
1700
|
-
value: string | undefined;
|
|
1701
|
-
mask: string[];
|
|
1702
|
-
maskFull: string[];
|
|
1703
|
-
next: Record<string, GeoPhoneMap>;
|
|
1704
|
-
}
|
|
1705
|
-
export interface GeoPhoneMapInfo {
|
|
1706
|
-
item?: GeoPhoneMap;
|
|
1707
|
-
phone?: string;
|
|
1708
|
-
}
|
|
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; }
|
|
1709
1524
|
// File: src/types/metaTypes.d.ts
|
|
1710
|
-
export declare enum MetaTag {
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
}
|
|
1718
|
-
export declare enum
|
|
1719
|
-
|
|
1720
|
-
noIndexFollow = "noindex, follow",
|
|
1721
|
-
indexNoFollow = "index, nofollow",
|
|
1722
|
-
noIndexNoFollow = "noindex, nofollow",
|
|
1723
|
-
noArchive = "noarchive",
|
|
1724
|
-
noSnippet = "nosnippet",
|
|
1725
|
-
noImageIndex = "noimageindex",
|
|
1726
|
-
images = "images",
|
|
1727
|
-
noTranslate = "notranslate",
|
|
1728
|
-
noPreview = "nopreview",
|
|
1729
|
-
textOnly = "textonly",
|
|
1730
|
-
noIndexSubpages = "noindex, noarchive",
|
|
1731
|
-
none = "none"
|
|
1732
|
-
}
|
|
1733
|
-
export declare enum MetaOpenGraphTag {
|
|
1734
|
-
title = "og:title",
|
|
1735
|
-
type = "og:type",
|
|
1736
|
-
url = "og:url",
|
|
1737
|
-
image = "og:image",
|
|
1738
|
-
description = "og:description",
|
|
1739
|
-
locale = "og:locale",
|
|
1740
|
-
siteName = "og:site_name",
|
|
1741
|
-
localeAlternate = "og:locale:alternate",
|
|
1742
|
-
imageUrl = "og:image:url",
|
|
1743
|
-
imageSecureUrl = "og:image:secure_url",
|
|
1744
|
-
imageType = "og:image:type",
|
|
1745
|
-
imageWidth = "og:image:width",
|
|
1746
|
-
imageHeight = "og:image:height",
|
|
1747
|
-
imageAlt = "og:image:alt",
|
|
1748
|
-
video = "og:video",
|
|
1749
|
-
videoUrl = "og:video:url",
|
|
1750
|
-
videoSecureUrl = "og:video:secure_url",
|
|
1751
|
-
videoType = "og:video:type",
|
|
1752
|
-
videoWidth = "og:video:width",
|
|
1753
|
-
videoHeight = "og:video:height",
|
|
1754
|
-
audio = "og:audio",
|
|
1755
|
-
audioSecureUrl = "og:audio:secure_url",
|
|
1756
|
-
audioType = "og:audio:type",
|
|
1757
|
-
articlePublishedTime = "article:published_time",
|
|
1758
|
-
articleModifiedTime = "article:modified_time",
|
|
1759
|
-
articleExpirationTime = "article:expiration_time",
|
|
1760
|
-
articleAuthor = "article:author",
|
|
1761
|
-
articleSection = "article:section",
|
|
1762
|
-
articleTag = "article:tag",
|
|
1763
|
-
bookAuthor = "book:author",
|
|
1764
|
-
bookIsbn = "book:isbn",
|
|
1765
|
-
bookReleaseDate = "book:release_date",
|
|
1766
|
-
bookTag = "book:tag",
|
|
1767
|
-
musicDuration = "music:duration",
|
|
1768
|
-
musicAlbum = "music:album",
|
|
1769
|
-
musicAlbumDisc = "music:album:disc",
|
|
1770
|
-
musicAlbumTrack = "music:album:track",
|
|
1771
|
-
musicMusician = "music:musician",
|
|
1772
|
-
musicSong = "music:song",
|
|
1773
|
-
musicSongDisc = "music:song:disc",
|
|
1774
|
-
musicSongTrack = "music:song:track",
|
|
1775
|
-
musicReleaseDate = "music:release_date",
|
|
1776
|
-
musicCreator = "music:creator",
|
|
1777
|
-
videoActor = "video:actor",
|
|
1778
|
-
videoActorRole = "video:actor:role",
|
|
1779
|
-
videoDirector = "video:director",
|
|
1780
|
-
videoWriter = "video:writer",
|
|
1781
|
-
videoDuration = "video:duration",
|
|
1782
|
-
videoReleaseDate = "video:release_date",
|
|
1783
|
-
videoTag = "video:tag",
|
|
1784
|
-
videoSeries = "video:series",
|
|
1785
|
-
profileFirstName = "profile:first_name",
|
|
1786
|
-
profileLastName = "profile:last_name",
|
|
1787
|
-
profileUsername = "profile:username",
|
|
1788
|
-
profileGender = "profile:gender",
|
|
1789
|
-
productBrand = "product:brand",
|
|
1790
|
-
productAvailability = "product:availability",
|
|
1791
|
-
productCondition = "product:condition",
|
|
1792
|
-
productPriceAmount = "product:price:amount",
|
|
1793
|
-
productPriceCurrency = "product:price:currency",
|
|
1794
|
-
productRetailerItemId = "product:retailer_item_id",
|
|
1795
|
-
productCategory = "product:category",
|
|
1796
|
-
productEan = "product:ean",
|
|
1797
|
-
productIsbn = "product:isbn",
|
|
1798
|
-
productMfrPartNo = "product:mfr_part_no",
|
|
1799
|
-
productUpc = "product:upc",
|
|
1800
|
-
productWeightValue = "product:weight:value",
|
|
1801
|
-
productWeightUnits = "product:weight:units",
|
|
1802
|
-
productColor = "product:color",
|
|
1803
|
-
productMaterial = "product:material",
|
|
1804
|
-
productPattern = "product:pattern",
|
|
1805
|
-
productAgeGroup = "product:age_group",
|
|
1806
|
-
productGender = "product:gender"
|
|
1807
|
-
}
|
|
1808
|
-
export declare enum MetaOpenGraphType {
|
|
1809
|
-
website = "website",
|
|
1810
|
-
article = "article",
|
|
1811
|
-
video = "video.other",
|
|
1812
|
-
videoTvShow = "video.tv_show",
|
|
1813
|
-
videoEpisode = "video.episode",
|
|
1814
|
-
videoMovie = "video.movie",
|
|
1815
|
-
musicAlbum = "music.album",
|
|
1816
|
-
musicPlaylist = "music.playlist",
|
|
1817
|
-
musicSong = "music.song",
|
|
1818
|
-
musicRadioStation = "music.radio_station",
|
|
1819
|
-
app = "app",
|
|
1820
|
-
product = "product",
|
|
1821
|
-
business = "business.business",
|
|
1822
|
-
place = "place",
|
|
1823
|
-
event = "event",
|
|
1824
|
-
profile = "profile",
|
|
1825
|
-
book = "book"
|
|
1826
|
-
}
|
|
1827
|
-
export declare enum MetaTwitterTag {
|
|
1828
|
-
card = "twitter:card",
|
|
1829
|
-
site = "twitter:site",
|
|
1830
|
-
creator = "twitter:creator",
|
|
1831
|
-
url = "twitter:url",
|
|
1832
|
-
title = "twitter:title",
|
|
1833
|
-
description = "twitter:description",
|
|
1834
|
-
image = "twitter:image",
|
|
1835
|
-
imageAlt = "twitter:image:alt",
|
|
1836
|
-
imageSrc = "twitter:image:src",
|
|
1837
|
-
imageWidth = "twitter:image:width",
|
|
1838
|
-
imageHeight = "twitter:image:height",
|
|
1839
|
-
label1 = "twitter:label1",
|
|
1840
|
-
data1 = "twitter:data1",
|
|
1841
|
-
label2 = "twitter:label2",
|
|
1842
|
-
data2 = "twitter:data2",
|
|
1843
|
-
appNameIphone = "twitter:app:name:iphone",
|
|
1844
|
-
appIdIphone = "twitter:app:id:iphone",
|
|
1845
|
-
appUrlIphone = "twitter:app:url:iphone",
|
|
1846
|
-
appNameIpad = "twitter:app:name:ipad",
|
|
1847
|
-
appIdIpad = "twitter:app:id:ipad",
|
|
1848
|
-
appUrlIpad = "twitter:app:url:ipad",
|
|
1849
|
-
appNameGooglePlay = "twitter:app:name:googleplay",
|
|
1850
|
-
appIdGooglePlay = "twitter:app:id:googleplay",
|
|
1851
|
-
appUrlGooglePlay = "twitter:app:url:googleplay",
|
|
1852
|
-
player = "twitter:player",
|
|
1853
|
-
playerWidth = "twitter:player:width",
|
|
1854
|
-
playerHeight = "twitter:player:height",
|
|
1855
|
-
playerStream = "twitter:player:stream",
|
|
1856
|
-
playerStreamContentType = "twitter:player:stream:content_type"
|
|
1857
|
-
}
|
|
1858
|
-
export declare enum MetaTwitterCard {
|
|
1859
|
-
summary = "summary",
|
|
1860
|
-
summaryLargeImage = "summary_large_image",
|
|
1861
|
-
app = "app",
|
|
1862
|
-
player = "player",
|
|
1863
|
-
product = "product",
|
|
1864
|
-
gallery = "gallery",
|
|
1865
|
-
photo = "photo",
|
|
1866
|
-
leadGeneration = "lead_generation",
|
|
1867
|
-
audio = "audio",
|
|
1868
|
-
poll = "poll"
|
|
1869
|
-
}
|
|
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" }
|
|
1870
1535
|
// File: src/types/searchTypes.d.ts
|
|
1871
1536
|
export type SearchItem = Record<string, any>;
|
|
1872
|
-
export type SearchColumnPath<K, P> = string;
|
|
1873
|
-
export type SearchColumn<T extends SearchItem> =
|
|
1874
|
-
export type SearchColumns<T extends SearchItem> = string[];
|
|
1875
|
-
export type
|
|
1876
|
-
export type
|
|
1877
|
-
export type
|
|
1537
|
+
export type SearchColumnPath<K, P> = K extends string ? P extends string ? `${K}.${P}` : never : never;
|
|
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];
|
|
1539
|
+
export type SearchColumns<T extends SearchItem> = (SearchColumn<T> & string)[];
|
|
1540
|
+
export type SearchFormatCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<SearchFormatCapitalize<Rest>>}` : K;
|
|
1541
|
+
export type SearchFormatKey<K> = K extends string ? `${SearchFormatCapitalize<K>}Search` : never;
|
|
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; };
|
|
1543
|
+
export type SearchFormatList<T extends SearchItem, K extends string[]> = SearchFormatItem<T, K>[];
|
|
1878
1544
|
export type SearchListValue<T extends SearchItem> = T[] | undefined;
|
|
1879
|
-
export type SearchOptions = {
|
|
1880
|
-
|
|
1881
|
-
returnEverything?: boolean;
|
|
1882
|
-
delay?: number;
|
|
1883
|
-
findExactMatch?: boolean;
|
|
1884
|
-
classSearchName?: string;
|
|
1885
|
-
};
|
|
1886
|
-
export type SearchCacheItem<T extends SearchItem> = {
|
|
1887
|
-
item: T;
|
|
1888
|
-
value: string;
|
|
1889
|
-
};
|
|
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; };
|
|
1890
1547
|
export type SearchCache<T extends SearchItem> = SearchCacheItem<T>[];
|
|
1891
|
-
export type HighlightMatchItem = {
|
|
1892
|
-
text: string;
|
|
1893
|
-
isMatch: boolean;
|
|
1894
|
-
};
|
|
1548
|
+
export type HighlightMatchItem = { text: string; isMatch: boolean; };
|
|
1895
1549
|
// File: src/types/translateTypes.d.ts
|
|
1896
|
-
export type TranslateConfig = {
|
|
1897
|
-
url?: string;
|
|
1898
|
-
propsName?: string;
|
|
1899
|
-
readApi?: boolean;
|
|
1900
|
-
};
|
|
1550
|
+
export type TranslateConfig = { url?: string; propsName?: string; readApi?: boolean; };
|
|
1901
1551
|
export type TranslateCode = string | string[];
|
|
1902
|
-
export type TranslateList<T extends TranslateCode[]> =
|
|
1903
|
-
export type TranslateItemOrList<T extends TranslateCode> =
|
|
1552
|
+
export type TranslateList<T extends TranslateCode[]> = { [K in T[number] as K extends readonly string[] ? K[0] : K]: string; };
|
|
1553
|
+
export type TranslateItemOrList<T extends TranslateCode> = T extends string[] ? TranslateList<T> : string;
|
|
1904
1554
|
export type TranslateDataFileList = Record<string, string>;
|
|
1905
1555
|
export type TranslateDataFileItem = () => Promise<TranslateDataFileList>;
|
|
1906
1556
|
export type TranslateDataFile = Record<string, TranslateDataFileItem>;
|