@dxtmisha/functional-basic 1.3.4 → 1.3.6
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 +30 -0
- package/ai-description.txt +7 -12
- package/ai-types.txt +104 -746
- package/dist/library.js +627 -624
- package/dist/src/classes/GeoInstance.d.ts +21 -0
- package/package.json +1 -1
package/ai-types.txt
CHANGED
|
@@ -64,7 +64,7 @@ import { ApiStatus } from './ApiStatus';
|
|
|
64
64
|
import { ApiErrorItem } from './ApiErrorItem';
|
|
65
65
|
import { ApiData, ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
|
|
66
66
|
/**
|
|
67
|
-
* Class for processing API
|
|
67
|
+
* Class for processing API return data.
|
|
68
68
|
*/
|
|
69
69
|
export declare class ApiDataReturn<T = any> {
|
|
70
70
|
constructor(apiFetch: ApiFetch, query: Response, end: ApiPreparationEnd, error?: ApiErrorItem | undefined);
|
|
@@ -76,7 +76,7 @@ export declare class ApiDataReturn<T = any> {
|
|
|
76
76
|
// File: src/classes/ApiDefault.d.ts
|
|
77
77
|
import { ApiDefaultValue, ApiFetch } from '../types/apiTypes';
|
|
78
78
|
/**
|
|
79
|
-
* Class for
|
|
79
|
+
* Class for default API request data.
|
|
80
80
|
*/
|
|
81
81
|
export declare class ApiDefault {
|
|
82
82
|
is(): boolean;
|
|
@@ -89,7 +89,7 @@ import { ApiErrorItem } from './ApiErrorItem';
|
|
|
89
89
|
import { ApiErrorStorage } from './ApiErrorStorage';
|
|
90
90
|
import { ApiMethodItem } from '../types/apiTypes';
|
|
91
91
|
/**
|
|
92
|
-
* Utility for
|
|
92
|
+
* Utility for API error storage.
|
|
93
93
|
*/
|
|
94
94
|
export declare class ApiError {
|
|
95
95
|
static getStorage(): ApiErrorStorage;
|
|
@@ -99,7 +99,7 @@ export declare class ApiError {
|
|
|
99
99
|
// File: src/classes/ApiErrorItem.d.ts
|
|
100
100
|
import { ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
|
|
101
101
|
/**
|
|
102
|
-
* Class for
|
|
102
|
+
* Class for extracting API error response data.
|
|
103
103
|
*/
|
|
104
104
|
export declare class ApiErrorItem {
|
|
105
105
|
constructor(method: ApiMethodItem, response: Response, error: ApiErrorStorageItem);
|
|
@@ -113,7 +113,7 @@ export declare class ApiErrorItem {
|
|
|
113
113
|
// File: src/classes/ApiErrorStorage.d.ts
|
|
114
114
|
import { ApiErrorStorageList, ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
|
|
115
115
|
/**
|
|
116
|
-
* Manager for
|
|
116
|
+
* Manager for API error states.
|
|
117
117
|
*/
|
|
118
118
|
export declare class ApiErrorStorage {
|
|
119
119
|
find(method: ApiMethodItem, response: Response): Promise<ApiErrorStorageItem>;
|
|
@@ -133,7 +133,7 @@ export declare class ApiHeaders {
|
|
|
133
133
|
import { ApiResponse } from './ApiResponse';
|
|
134
134
|
import { ApiFetch, ApiHydrationList } from '../types/apiTypes';
|
|
135
135
|
/**
|
|
136
|
-
* Class for
|
|
136
|
+
* Class for SSR client-side hydration.
|
|
137
137
|
*/
|
|
138
138
|
export declare class ApiHydration {
|
|
139
139
|
initResponse(response: ApiResponse): void;
|
|
@@ -161,7 +161,7 @@ export type ApiInstanceOptions = {
|
|
|
161
161
|
hydrationClass?: typeof ApiHydration;
|
|
162
162
|
};
|
|
163
163
|
/**
|
|
164
|
-
* Core
|
|
164
|
+
* Core API request manager.
|
|
165
165
|
*/
|
|
166
166
|
export declare class ApiInstance {
|
|
167
167
|
constructor(url?: string, options?: ApiInstanceOptions);
|
|
@@ -191,7 +191,7 @@ export declare class ApiInstance {
|
|
|
191
191
|
// File: src/classes/ApiPreparation.d.ts
|
|
192
192
|
import { ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
|
|
193
193
|
/**
|
|
194
|
-
* Class for
|
|
194
|
+
* Class for request preparation.
|
|
195
195
|
*/
|
|
196
196
|
export declare class ApiPreparation {
|
|
197
197
|
make(active: boolean, apiFetch: ApiFetch): Promise<void>;
|
|
@@ -203,7 +203,7 @@ export declare class ApiPreparation {
|
|
|
203
203
|
import { ApiDefault } from './ApiDefault';
|
|
204
204
|
import { ApiFetch, ApiMethod, ApiResponseItem } from '../types/apiTypes';
|
|
205
205
|
/**
|
|
206
|
-
* Class for
|
|
206
|
+
* Class for API responses.
|
|
207
207
|
*/
|
|
208
208
|
export declare class ApiResponse {
|
|
209
209
|
constructor(requestDefault: ApiDefault);
|
|
@@ -217,7 +217,7 @@ export declare class ApiResponse {
|
|
|
217
217
|
// File: src/classes/ApiStatus.d.ts
|
|
218
218
|
import { ApiStatusItem, ApiStatusType } from '../types/apiTypes';
|
|
219
219
|
/**
|
|
220
|
-
* Class for
|
|
220
|
+
* Class for API status management.
|
|
221
221
|
*/
|
|
222
222
|
export declare class ApiStatus {
|
|
223
223
|
get(): ApiStatusItem | undefined;
|
|
@@ -239,7 +239,7 @@ export declare class ApiStatus {
|
|
|
239
239
|
// File: src/classes/BroadcastMessage.d.ts
|
|
240
240
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
241
241
|
/**
|
|
242
|
-
* Class for
|
|
242
|
+
* Class for BroadcastChannel messages.
|
|
243
243
|
*/
|
|
244
244
|
export declare class BroadcastMessage<Message = any> {
|
|
245
245
|
constructor(name: string, callback?: ((event: MessageEvent<Message>) => void) | undefined, callbackError?: ((event: MessageEvent<Message>) => void) | undefined, errorCenter?: ErrorCenterInstance);
|
|
@@ -251,7 +251,6 @@ export declare class BroadcastMessage<Message = any> {
|
|
|
251
251
|
}
|
|
252
252
|
// File: src/classes/Cache.d.ts
|
|
253
253
|
/**
|
|
254
|
-
* Simple in-memory cache class.
|
|
255
254
|
* @deprecated
|
|
256
255
|
*/
|
|
257
256
|
export declare class Cache {
|
|
@@ -260,7 +259,6 @@ export declare class Cache {
|
|
|
260
259
|
}
|
|
261
260
|
// File: src/classes/CacheItem.d.ts
|
|
262
261
|
/**
|
|
263
|
-
* Class for managing a single cached value.
|
|
264
262
|
* @deprecated
|
|
265
263
|
*/
|
|
266
264
|
export declare class CacheItem<T> {
|
|
@@ -270,9 +268,7 @@ export declare class CacheItem<T> {
|
|
|
270
268
|
getCacheAsync(comparison: any[]): Promise<T>;
|
|
271
269
|
}
|
|
272
270
|
// File: src/classes/CacheStatic.d.ts
|
|
273
|
-
import { Cache } from './Cache';
|
|
274
271
|
/**
|
|
275
|
-
* Static cache class.
|
|
276
272
|
* @deprecated
|
|
277
273
|
*/
|
|
278
274
|
export declare class CacheStatic {
|
|
@@ -282,7 +278,7 @@ export declare class CacheStatic {
|
|
|
282
278
|
// File: src/classes/Cookie.d.ts
|
|
283
279
|
import { CookieOptions } from './CookieStorage';
|
|
284
280
|
/**
|
|
285
|
-
*
|
|
281
|
+
* Cookie manager.
|
|
286
282
|
*/
|
|
287
283
|
export declare class Cookie<T> {
|
|
288
284
|
static getInstance<T>(name: string): Cookie<T>;
|
|
@@ -294,7 +290,7 @@ export declare class Cookie<T> {
|
|
|
294
290
|
// File: src/classes/CookieBlock.d.ts
|
|
295
291
|
import { CookieBlockInstance } from './CookieBlockInstance';
|
|
296
292
|
/**
|
|
297
|
-
*
|
|
293
|
+
* Cookie access status.
|
|
298
294
|
*/
|
|
299
295
|
export declare class CookieBlock {
|
|
300
296
|
static getItem(): CookieBlockInstance;
|
|
@@ -302,9 +298,6 @@ export declare class CookieBlock {
|
|
|
302
298
|
static set(value: boolean): void;
|
|
303
299
|
}
|
|
304
300
|
// File: src/classes/CookieBlockInstance.d.ts
|
|
305
|
-
/**
|
|
306
|
-
* Class for changing cookie access status.
|
|
307
|
-
*/
|
|
308
301
|
export declare class CookieBlockInstance {
|
|
309
302
|
get(): boolean;
|
|
310
303
|
set(value: boolean): void;
|
|
@@ -322,7 +315,7 @@ export type CookieOptions = {
|
|
|
322
315
|
arguments?: string[] | Record<string, string | number | boolean>;
|
|
323
316
|
};
|
|
324
317
|
/**
|
|
325
|
-
*
|
|
318
|
+
* Cookie storage with listeners.
|
|
326
319
|
*/
|
|
327
320
|
export declare class CookieStorage {
|
|
328
321
|
static init(getListener?: (key: string) => any | undefined, getListenerRaw?: () => string, setListener?: (key: string, value: any, cookie: string, options?: CookieOptions) => void): void;
|
|
@@ -335,7 +328,7 @@ export declare class CookieStorage {
|
|
|
335
328
|
// File: src/classes/DataStorage.d.ts
|
|
336
329
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
337
330
|
/**
|
|
338
|
-
*
|
|
331
|
+
* localStorage/sessionStorage manager.
|
|
339
332
|
*/
|
|
340
333
|
export declare class DataStorage<T> {
|
|
341
334
|
static setPrefix(newPrefix: string): void;
|
|
@@ -350,7 +343,7 @@ import { GeoIntl } from './GeoIntl';
|
|
|
350
343
|
import { NumberOrStringOrDate } from '../types/basicTypes';
|
|
351
344
|
import { GeoDate, GeoFirstDay, GeoHours, GeoTimeZoneStyle } from '../types/geoTypes';
|
|
352
345
|
/**
|
|
353
|
-
*
|
|
346
|
+
* Datetime handling class.
|
|
354
347
|
*/
|
|
355
348
|
export declare class Datetime {
|
|
356
349
|
constructor(date?: NumberOrStringOrDate, type?: GeoDate, code?: string);
|
|
@@ -429,7 +422,7 @@ export declare class Datetime {
|
|
|
429
422
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
430
423
|
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
431
424
|
/**
|
|
432
|
-
*
|
|
425
|
+
* API error center.
|
|
433
426
|
*/
|
|
434
427
|
export declare class ErrorCenter {
|
|
435
428
|
static getItem(): ErrorCenterInstance;
|
|
@@ -442,14 +435,11 @@ export declare class ErrorCenter {
|
|
|
442
435
|
static on(cause: ErrorCenterCauseItem): void;
|
|
443
436
|
}
|
|
444
437
|
// File: src/classes/ErrorCenterHandler.d.ts
|
|
445
|
-
import { ErrorCenterCauseItem, ErrorCenterGroup, ErrorCenterHandlerCallback,
|
|
446
|
-
/**
|
|
447
|
-
* Class for managing and triggering error handlers.
|
|
448
|
-
*/
|
|
438
|
+
import { ErrorCenterCauseItem, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
449
439
|
export declare class ErrorCenterHandler {
|
|
450
440
|
constructor(handlers?: ErrorCenterHandlerList);
|
|
451
441
|
has(group: ErrorCenterGroup): boolean;
|
|
452
|
-
get(group: ErrorCenterGroup):
|
|
442
|
+
get(group: ErrorCenterGroup): any;
|
|
453
443
|
add(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): this;
|
|
454
444
|
addList(handlers: ErrorCenterHandlerList): this;
|
|
455
445
|
on(cause: ErrorCenterCauseItem): this;
|
|
@@ -457,9 +447,6 @@ export declare class ErrorCenterHandler {
|
|
|
457
447
|
// File: src/classes/ErrorCenterInstance.d.ts
|
|
458
448
|
import { ErrorCenterHandler } from './ErrorCenterHandler';
|
|
459
449
|
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
460
|
-
/**
|
|
461
|
-
* Class for managing error storage and handling.
|
|
462
|
-
*/
|
|
463
450
|
export declare class ErrorCenterInstance {
|
|
464
451
|
constructor(causes?: ErrorCenterCauseList, handler?: ErrorCenterHandler);
|
|
465
452
|
has(code: string, group?: string): boolean;
|
|
@@ -473,7 +460,7 @@ export declare class ErrorCenterInstance {
|
|
|
473
460
|
// File: src/classes/EventItem.d.ts
|
|
474
461
|
import { ElementOrString, ElementOrWindow, EventListenerDetail, EventOptions } from '../types/basicTypes';
|
|
475
462
|
/**
|
|
476
|
-
*
|
|
463
|
+
* Event listener wrapper.
|
|
477
464
|
*/
|
|
478
465
|
export declare class EventItem<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> {
|
|
479
466
|
constructor(elementSelector?: ElementOrString<E>, type?: string | string[], listener?: EventListenerDetail<O, D> | undefined, options?: EventOptions, detail?: D | undefined);
|
|
@@ -492,18 +479,16 @@ export declare class EventItem<E extends ElementOrWindow, O extends Event, D ext
|
|
|
492
479
|
reset(): this;
|
|
493
480
|
}
|
|
494
481
|
// File: src/classes/Formatters.d.ts
|
|
495
|
-
import { FormattersOptionsList, FormattersListProp, FormattersItemProp, FormattersReturn } from '../types/formattersTypes';
|
|
482
|
+
import { FormattersOptionsList, FormattersListProp, FormattersItemProp, FormattersOptionsList, FormattersReturn } from '../types/formattersTypes';
|
|
496
483
|
/**
|
|
497
|
-
*
|
|
484
|
+
* List formatter.
|
|
498
485
|
*/
|
|
499
486
|
export declare class Formatters<Options extends FormattersOptionsList = FormattersOptionsList, List extends FormattersListProp = FormattersListProp, Item extends FormattersItemProp<List> = FormattersItemProp<List>> {
|
|
500
487
|
constructor(options: Options, list?: List | undefined);
|
|
501
488
|
is(): boolean;
|
|
502
|
-
isArray():
|
|
503
|
-
list: any[];
|
|
504
|
-
};
|
|
489
|
+
isArray(): boolean;
|
|
505
490
|
length(): number;
|
|
506
|
-
getList(): any
|
|
491
|
+
getList(): any;
|
|
507
492
|
getOptions(): Options;
|
|
508
493
|
setList(list?: List): this;
|
|
509
494
|
to(): FormattersReturn<List, Options>;
|
|
@@ -512,7 +497,7 @@ export declare class Formatters<Options extends FormattersOptionsList = Formatte
|
|
|
512
497
|
import { GeoInstance } from './GeoInstance';
|
|
513
498
|
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
514
499
|
/**
|
|
515
|
-
*
|
|
500
|
+
* Geography static utility.
|
|
516
501
|
*/
|
|
517
502
|
export declare class Geo {
|
|
518
503
|
static getObject(): GeoInstance;
|
|
@@ -539,22 +524,20 @@ export declare class Geo {
|
|
|
539
524
|
import { GeoFlagItem, GeoFlagNational } from '../types/geoTypes';
|
|
540
525
|
export declare const GEO_FLAG_ICON_NAME = "f";
|
|
541
526
|
/**
|
|
542
|
-
*
|
|
527
|
+
* Geography flag utility.
|
|
543
528
|
*/
|
|
544
529
|
export declare class GeoFlag {
|
|
545
530
|
static flags: Record<string, string>;
|
|
546
531
|
constructor(code?: string);
|
|
547
532
|
get(code?: string): GeoFlagItem | undefined;
|
|
533
|
+
getCode(): string;
|
|
548
534
|
getFlag(code?: string): string | undefined;
|
|
549
|
-
getList(codes?: string[]): GeoFlagItem[];
|
|
550
|
-
getNational(codes?: string[]): GeoFlagNational[];
|
|
535
|
+
getList(codes?: string[], sort?: boolean): GeoFlagItem[];
|
|
536
|
+
getNational(codes?: string[], sort?: boolean): GeoFlagNational[];
|
|
551
537
|
setCode(code: string): this;
|
|
552
538
|
}
|
|
553
539
|
// File: src/classes/GeoInstance.d.ts
|
|
554
540
|
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
555
|
-
/**
|
|
556
|
-
* Base class for working with geographic data.
|
|
557
|
-
*/
|
|
558
541
|
export declare class GeoInstance {
|
|
559
542
|
constructor();
|
|
560
543
|
get(): GeoItemFull;
|
|
@@ -581,7 +564,7 @@ import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
|
581
564
|
import { NumberOrStringOrDate, NumberOrString, ItemValue } from '../types/basicTypes';
|
|
582
565
|
import { GeoDate } from '../types/geoTypes';
|
|
583
566
|
/**
|
|
584
|
-
*
|
|
567
|
+
* Internationalization API wrapper.
|
|
585
568
|
*/
|
|
586
569
|
export declare class GeoIntl {
|
|
587
570
|
static isItem(code?: string): boolean;
|
|
@@ -616,9 +599,6 @@ export declare class GeoIntl {
|
|
|
616
599
|
}
|
|
617
600
|
// File: src/classes/GeoPhone.d.ts
|
|
618
601
|
import { GeoPhoneValue, GeoPhoneMap, GeoPhoneMapInfo } from '../types/geoTypes';
|
|
619
|
-
/**
|
|
620
|
-
* Class for phone masks.
|
|
621
|
-
*/
|
|
622
602
|
export declare class GeoPhone {
|
|
623
603
|
static get(code: string): GeoPhoneValue | undefined;
|
|
624
604
|
static getByPhone(phone: string): GeoPhoneMapInfo;
|
|
@@ -629,9 +609,6 @@ export declare class GeoPhone {
|
|
|
629
609
|
static removeZero(phone: string): string;
|
|
630
610
|
}
|
|
631
611
|
// File: src/classes/Global.d.ts
|
|
632
|
-
/**
|
|
633
|
-
* Static utility for application-wide data.
|
|
634
|
-
*/
|
|
635
612
|
export declare class Global {
|
|
636
613
|
static getItem(): Record<string, any>;
|
|
637
614
|
static get<R = any>(name: string): R;
|
|
@@ -639,9 +616,6 @@ export declare class Global {
|
|
|
639
616
|
}
|
|
640
617
|
// File: src/classes/Hash.d.ts
|
|
641
618
|
import { HashInstance } from './HashInstance';
|
|
642
|
-
/**
|
|
643
|
-
* Static class for URL hash management.
|
|
644
|
-
*/
|
|
645
619
|
export declare class Hash {
|
|
646
620
|
static getItem(): HashInstance;
|
|
647
621
|
static get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
@@ -651,9 +625,6 @@ export declare class Hash {
|
|
|
651
625
|
static reload(): void;
|
|
652
626
|
}
|
|
653
627
|
// File: src/classes/HashInstance.d.ts
|
|
654
|
-
/**
|
|
655
|
-
* Class for URL hash management.
|
|
656
|
-
*/
|
|
657
628
|
export declare class HashInstance {
|
|
658
629
|
get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
659
630
|
set<T>(name: string, callback: T | (() => T)): this;
|
|
@@ -663,13 +634,7 @@ export declare class HashInstance {
|
|
|
663
634
|
}
|
|
664
635
|
// File: src/classes/Icons.d.ts
|
|
665
636
|
export type IconsItem = string | Promise<string | any> | (() => Promise<string | any>);
|
|
666
|
-
export type IconsConfig = {
|
|
667
|
-
url?: string;
|
|
668
|
-
list?: Record<string, IconsItem>;
|
|
669
|
-
};
|
|
670
|
-
/**
|
|
671
|
-
* Class for icon management.
|
|
672
|
-
*/
|
|
637
|
+
export type IconsConfig = { url?: string; list?: Record<string, IconsItem>; };
|
|
673
638
|
export declare class Icons {
|
|
674
639
|
static is(index: string): boolean;
|
|
675
640
|
static get(index: string, url?: string, wait?: number): Promise<string>;
|
|
@@ -686,27 +651,18 @@ export declare class Icons {
|
|
|
686
651
|
// File: src/classes/Loading.d.ts
|
|
687
652
|
import { LoadingInstance } from './LoadingInstance';
|
|
688
653
|
import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
|
|
689
|
-
import { LoadingDetail } from './LoadingInstance';
|
|
690
|
-
/**
|
|
691
|
-
* Class for global loading management.
|
|
692
|
-
*/
|
|
693
654
|
export declare class Loading {
|
|
694
655
|
static is(): boolean;
|
|
695
656
|
static get(): number;
|
|
696
657
|
static getItem(): LoadingInstance;
|
|
697
658
|
static show(): void;
|
|
698
659
|
static hide(): void;
|
|
699
|
-
static registrationEvent(listener: EventListenerDetail<CustomEvent,
|
|
700
|
-
static unregistrationEvent(listener: EventListenerDetail<CustomEvent,
|
|
660
|
+
static registrationEvent(listener: EventListenerDetail<CustomEvent, any>, element?: ElementOrString<HTMLElement>): void;
|
|
661
|
+
static unregistrationEvent(listener: EventListenerDetail<CustomEvent, any>, element?: ElementOrString<HTMLElement>): void;
|
|
701
662
|
}
|
|
702
663
|
// File: src/classes/LoadingInstance.d.ts
|
|
703
664
|
import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
|
|
704
|
-
export type LoadingDetail = {
|
|
705
|
-
loading: boolean;
|
|
706
|
-
};
|
|
707
|
-
/**
|
|
708
|
-
* Class for global loading management.
|
|
709
|
-
*/
|
|
665
|
+
export type LoadingDetail = { loading: boolean; };
|
|
710
666
|
export declare class LoadingInstance {
|
|
711
667
|
constructor(eventName?: string);
|
|
712
668
|
is(): boolean;
|
|
@@ -721,9 +677,6 @@ import { MetaManager } from './MetaManager';
|
|
|
721
677
|
import { MetaOg } from './MetaOg';
|
|
722
678
|
import { MetaTwitter } from './MetaTwitter';
|
|
723
679
|
import { MetaRobots, MetaTag } from '../types/metaTypes';
|
|
724
|
-
/**
|
|
725
|
-
* Class for managing meta tags.
|
|
726
|
-
*/
|
|
727
680
|
export declare class Meta extends MetaManager<MetaTag[]> {
|
|
728
681
|
constructor();
|
|
729
682
|
getOg(): MetaOg;
|
|
@@ -751,24 +704,18 @@ export declare class Meta extends MetaManager<MetaTag[]> {
|
|
|
751
704
|
htmlTitle(): string;
|
|
752
705
|
}
|
|
753
706
|
// File: src/classes/MetaManager.d.ts
|
|
754
|
-
|
|
755
|
-
* Class for working with meta tags.
|
|
756
|
-
*/
|
|
757
|
-
export declare class MetaManager<T extends readonly string[], Key extends keyof any = any> {
|
|
707
|
+
export declare class MetaManager<T extends readonly string[], Key extends any = any> {
|
|
758
708
|
constructor(listMeta: T, isProperty?: boolean);
|
|
759
709
|
getListMeta(): T;
|
|
760
710
|
get(name: Key): string;
|
|
761
|
-
getItems():
|
|
711
|
+
getItems(): any;
|
|
762
712
|
html(): string;
|
|
763
713
|
set(name: Key, content: string): this;
|
|
764
|
-
setByList(metaList:
|
|
714
|
+
setByList(metaList: any): this;
|
|
765
715
|
}
|
|
766
716
|
// File: src/classes/MetaOg.d.ts
|
|
767
717
|
import { MetaManager } from './MetaManager';
|
|
768
718
|
import { MetaOpenGraphTag, MetaOpenGraphType } from '../types/metaTypes';
|
|
769
|
-
/**
|
|
770
|
-
* Class for Open Graph tags.
|
|
771
|
-
*/
|
|
772
719
|
export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
|
|
773
720
|
constructor();
|
|
774
721
|
getTitle(): string;
|
|
@@ -791,9 +738,6 @@ import { Meta } from './Meta';
|
|
|
791
738
|
import { MetaOg } from './MetaOg';
|
|
792
739
|
import { MetaTwitter } from './MetaTwitter';
|
|
793
740
|
import { MetaRobots } from '../types/metaTypes';
|
|
794
|
-
/**
|
|
795
|
-
* Static class for meta tag management.
|
|
796
|
-
*/
|
|
797
741
|
export declare class MetaStatic {
|
|
798
742
|
static getItem(): Meta;
|
|
799
743
|
static getOg(): MetaOg;
|
|
@@ -823,9 +767,6 @@ export declare class MetaStatic {
|
|
|
823
767
|
// File: src/classes/MetaTwitter.d.ts
|
|
824
768
|
import { MetaManager } from './MetaManager';
|
|
825
769
|
import { MetaTwitterCard, MetaTwitterTag } from '../types/metaTypes';
|
|
826
|
-
/**
|
|
827
|
-
* Class for Twitter Card tags.
|
|
828
|
-
*/
|
|
829
770
|
export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
830
771
|
constructor();
|
|
831
772
|
getCard(): MetaTwitterCard;
|
|
@@ -845,9 +786,6 @@ export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
|
845
786
|
}
|
|
846
787
|
// File: src/classes/ResumableTimer.d.ts
|
|
847
788
|
import { FunctionVoid } from '../types/basicTypes';
|
|
848
|
-
/**
|
|
849
|
-
* Class for pausable timers.
|
|
850
|
-
*/
|
|
851
789
|
export declare class ResumableTimer {
|
|
852
790
|
constructor(callback: FunctionVoid, delay?: number, blockStart?: boolean);
|
|
853
791
|
resume(): this;
|
|
@@ -857,9 +795,6 @@ export declare class ResumableTimer {
|
|
|
857
795
|
}
|
|
858
796
|
// File: src/classes/ScrollbarWidth.d.ts
|
|
859
797
|
import { DataStorage } from './DataStorage';
|
|
860
|
-
/**
|
|
861
|
-
* Class for scroll width.
|
|
862
|
-
*/
|
|
863
798
|
export declare class ScrollbarWidth {
|
|
864
799
|
static is(): Promise<boolean>;
|
|
865
800
|
static get(): Promise<number>;
|
|
@@ -871,9 +806,6 @@ import { SearchListData } from './SearchListData';
|
|
|
871
806
|
import { SearchListItem } from './SearchListItem';
|
|
872
807
|
import { SearchListOptions } from './SearchListOptions';
|
|
873
808
|
import { SearchColumns, SearchFormatList, SearchItem, SearchListValue, SearchOptions } from '../types/searchTypes';
|
|
874
|
-
/**
|
|
875
|
-
* Main class for searchable lists.
|
|
876
|
-
*/
|
|
877
809
|
export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>> {
|
|
878
810
|
constructor(list: SearchListValue<T>, columns?: K, value?: string, options?: SearchOptions);
|
|
879
811
|
getData(): SearchListData<T, K>;
|
|
@@ -891,10 +823,7 @@ export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>
|
|
|
891
823
|
// File: src/classes/SearchListData.d.ts
|
|
892
824
|
import { SearchListItem } from './SearchListItem';
|
|
893
825
|
import { SearchListOptions } from './SearchListOptions';
|
|
894
|
-
import {
|
|
895
|
-
/**
|
|
896
|
-
* Class for search data management.
|
|
897
|
-
*/
|
|
826
|
+
import { SearchCacheItem, SearchColumns, SearchFormatItem, SearchFormatList, SearchItem, SearchListValue } from '../types/searchTypes';
|
|
898
827
|
export declare class SearchListData<T extends SearchItem, K extends SearchColumns<T>> {
|
|
899
828
|
constructor(list: SearchListValue<T>, columns: K | undefined, item: SearchListItem, options: SearchListOptions);
|
|
900
829
|
is(): boolean;
|
|
@@ -909,9 +838,6 @@ export declare class SearchListData<T extends SearchItem, K extends SearchColumn
|
|
|
909
838
|
}
|
|
910
839
|
// File: src/classes/SearchListItem.d.ts
|
|
911
840
|
import { SearchListOptions } from './SearchListOptions';
|
|
912
|
-
/**
|
|
913
|
-
* State of a search item.
|
|
914
|
-
*/
|
|
915
841
|
export declare class SearchListItem {
|
|
916
842
|
constructor(value: string | undefined, options: SearchListOptions);
|
|
917
843
|
is(): boolean;
|
|
@@ -923,9 +849,6 @@ export declare class SearchListItem {
|
|
|
923
849
|
import { SearchListItem } from './SearchListItem';
|
|
924
850
|
import { SearchListOptions } from './SearchListOptions';
|
|
925
851
|
import { SearchCacheItem } from '../types/searchTypes';
|
|
926
|
-
/**
|
|
927
|
-
* Class for regex matching.
|
|
928
|
-
*/
|
|
929
852
|
export declare class SearchListMatcher {
|
|
930
853
|
constructor(item: SearchListItem, options: SearchListOptions);
|
|
931
854
|
is(): boolean;
|
|
@@ -935,9 +858,6 @@ export declare class SearchListMatcher {
|
|
|
935
858
|
}
|
|
936
859
|
// File: src/classes/SearchListOptions.d.ts
|
|
937
860
|
import { SearchOptions } from '../types/searchTypes';
|
|
938
|
-
/**
|
|
939
|
-
* Search options manager.
|
|
940
|
-
*/
|
|
941
861
|
export declare class SearchListOptions {
|
|
942
862
|
constructor(options?: SearchOptions | undefined);
|
|
943
863
|
getOptions(): SearchOptions;
|
|
@@ -949,9 +869,6 @@ export declare class SearchListOptions {
|
|
|
949
869
|
setOptions(options: SearchOptions): this;
|
|
950
870
|
}
|
|
951
871
|
// File: src/classes/ServerStorage.d.ts
|
|
952
|
-
/**
|
|
953
|
-
* Class for SSR data storage.
|
|
954
|
-
*/
|
|
955
872
|
export declare class ServerStorage {
|
|
956
873
|
static init(listener: () => Record<string, any> | undefined): typeof ServerStorage;
|
|
957
874
|
static reset(): void;
|
|
@@ -963,9 +880,6 @@ export declare class ServerStorage {
|
|
|
963
880
|
static toString(): string;
|
|
964
881
|
}
|
|
965
882
|
// File: src/classes/StorageCallback.d.ts
|
|
966
|
-
/**
|
|
967
|
-
* Callback lists manager for storage.
|
|
968
|
-
*/
|
|
969
883
|
export declare class StorageCallback<T = any, Callback = (value: T) => void | Promise<void>> {
|
|
970
884
|
static getInstance<T>(name: string, group?: string): StorageCallback<T, (value: T) => void | Promise<void>>;
|
|
971
885
|
constructor(name: string, group?: string);
|
|
@@ -980,9 +894,6 @@ export declare class StorageCallback<T = any, Callback = (value: T) => void | Pr
|
|
|
980
894
|
// File: src/classes/Translate.d.ts
|
|
981
895
|
import { TranslateInstance } from './TranslateInstance';
|
|
982
896
|
import { TranslateCode, TranslateConfig, TranslateDataFile, TranslateList } from '../types/translateTypes';
|
|
983
|
-
/**
|
|
984
|
-
* Static class for translation text retrieval.
|
|
985
|
-
*/
|
|
986
897
|
export declare class Translate {
|
|
987
898
|
static get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
|
|
988
899
|
static getItem(): TranslateInstance;
|
|
@@ -1001,9 +912,6 @@ export declare class Translate {
|
|
|
1001
912
|
}
|
|
1002
913
|
// File: src/classes/TranslateFile.d.ts
|
|
1003
914
|
import { TranslateDataFile, TranslateDataFileList } from '../types/translateTypes';
|
|
1004
|
-
/**
|
|
1005
|
-
* Class for translation files.
|
|
1006
|
-
*/
|
|
1007
915
|
export declare class TranslateFile {
|
|
1008
916
|
constructor(data?: TranslateDataFile, language?: string | (() => string), location?: string | (() => string));
|
|
1009
917
|
isFile(): boolean;
|
|
@@ -1015,9 +923,6 @@ export declare class TranslateFile {
|
|
|
1015
923
|
// File: src/classes/TranslateInstance.d.ts
|
|
1016
924
|
import { TranslateFile } from './TranslateFile';
|
|
1017
925
|
import { TranslateCode, TranslateDataFile, TranslateList } from '../types/translateTypes';
|
|
1018
|
-
/**
|
|
1019
|
-
* Class for translation management.
|
|
1020
|
-
*/
|
|
1021
926
|
export declare class TranslateInstance {
|
|
1022
927
|
constructor(url?: string, propsName?: string, files?: TranslateFile);
|
|
1023
928
|
get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
|
|
@@ -1069,9 +974,9 @@ export declare function eventStopPropagation(event: Event): void;
|
|
|
1069
974
|
import { FunctionArgs } from '../types/basicTypes';
|
|
1070
975
|
export declare function executeFunction<T>(callback: T | FunctionArgs<any, T>, ...args: any[]): T;
|
|
1071
976
|
// File: src/functions/executePromise.d.ts
|
|
1072
|
-
export declare function executePromise<T>(callback:
|
|
977
|
+
export declare function executePromise<T>(callback: any, ...args: any[]): Promise<T>;
|
|
1073
978
|
// File: src/functions/forEach.d.ts
|
|
1074
|
-
export declare function forEach<T, R>(data:
|
|
979
|
+
export declare function forEach<T, R, D = any>(data: D, callback: (item: T, key: any, dataMain: any) => R, saveUndefined?: boolean): R[];
|
|
1075
980
|
// File: src/functions/frame.d.ts
|
|
1076
981
|
export declare function frame(callback: () => void, next?: () => boolean, end?: () => void): void;
|
|
1077
982
|
// File: src/functions/getArrayHighlightMatch.d.ts
|
|
@@ -1119,6 +1024,8 @@ export declare function getHydrationData<T>(id: string, defaultValue: T, remove?
|
|
|
1119
1024
|
export declare function getItemByPath<T extends Record<string, any>, R = string>(item: T, path: string): R | undefined;
|
|
1120
1025
|
// File: src/functions/getKey.d.ts
|
|
1121
1026
|
export declare function getKey(event: KeyboardEvent): string | number | undefined;
|
|
1027
|
+
// File: src/functions/getLength.d.ts
|
|
1028
|
+
export declare function getLength(value: any): number;
|
|
1122
1029
|
// File: src/functions/getLengthOfAllArray.d.ts
|
|
1123
1030
|
import { ObjectOrArray } from '../types/basicTypes';
|
|
1124
1031
|
export declare function getLengthOfAllArray(value: ObjectOrArray<string>): number[];
|
|
@@ -1168,7 +1075,7 @@ export declare function inArray<T>(array: T[], value: T): boolean;
|
|
|
1168
1075
|
// File: src/functions/initScrollbarOffset.d.ts
|
|
1169
1076
|
export declare function initScrollbarOffset(): Promise<void>;
|
|
1170
1077
|
// File: src/functions/intersectKey.d.ts
|
|
1171
|
-
export declare function intersectKey<T, KT extends keyof T, C, KC extends keyof C>(data?: T, comparison?: C): Record<
|
|
1078
|
+
export declare function intersectKey<T, KT extends keyof T, C, KC extends keyof C>(data?: T, comparison?: C): Record<KT & KC, T[KT]>;
|
|
1172
1079
|
// File: src/functions/isApiSuccess.d.ts
|
|
1173
1080
|
import { ApiData } from '../types/apiTypes';
|
|
1174
1081
|
export declare const isApiSuccess: <T>(data: ApiData<T>) => boolean;
|
|
@@ -1191,8 +1098,7 @@ export declare function isFilled<T>(value: T, zeroTrue?: boolean): boolean;
|
|
|
1191
1098
|
// File: src/functions/isFloat.d.ts
|
|
1192
1099
|
export declare function isFloat(value: any): boolean;
|
|
1193
1100
|
// File: src/functions/isFunction.d.ts
|
|
1194
|
-
|
|
1195
|
-
export declare function isFunction<T>(callback: T): callback is Extract<T, FunctionArgs<any, any>>;
|
|
1101
|
+
export declare function isFunction<T>(callback: T): boolean;
|
|
1196
1102
|
// File: src/functions/isInDom.d.ts
|
|
1197
1103
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1198
1104
|
export declare function isInDom<E extends ElementOrWindow>(element?: ElementOrString<E>): boolean;
|
|
@@ -1217,11 +1123,11 @@ export declare function isSelectedByList<T>(values: T | T[], selected: T | T[]):
|
|
|
1217
1123
|
// File: src/functions/isShare.d.ts
|
|
1218
1124
|
export declare function isShare(): boolean;
|
|
1219
1125
|
// File: src/functions/isString.d.ts
|
|
1220
|
-
export declare function isString<T>(value: T):
|
|
1126
|
+
export declare function isString<T>(value: T): boolean;
|
|
1221
1127
|
// File: src/functions/isTab.d.ts
|
|
1222
1128
|
export declare const isTab: (event: KeyboardEvent) => boolean;
|
|
1223
1129
|
// File: src/functions/isWindow.d.ts
|
|
1224
|
-
export declare function isWindow<E>(element: E):
|
|
1130
|
+
export declare function isWindow<E>(element: E): boolean;
|
|
1225
1131
|
// File: src/functions/random.d.ts
|
|
1226
1132
|
export declare function random(min: number, max: number): number;
|
|
1227
1133
|
// File: src/functions/removeCommonPrefix.d.ts
|
|
@@ -1232,8 +1138,7 @@ export declare const replaceComponentName: (text: string | undefined, name: stri
|
|
|
1232
1138
|
import { ObjectItem, ObjectOrArray } from '../types/basicTypes';
|
|
1233
1139
|
export declare function replaceRecursive<I>(array: ObjectItem<I>, replacement?: ObjectOrArray<I>, isMerge?: boolean): ObjectItem<I>;
|
|
1234
1140
|
// File: src/functions/replaceTemplate.d.ts
|
|
1235
|
-
|
|
1236
|
-
export declare function replaceTemplate(value: string, replaces: Record<string, string | FunctionReturn<string>>): string;
|
|
1141
|
+
export declare function replaceTemplate(value: string, replaces: Record<string, any>): string;
|
|
1237
1142
|
// File: src/functions/resizeImageByMax.d.ts
|
|
1238
1143
|
export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?: 'auto' | 'width' | 'height', typeData?: string): string | undefined;
|
|
1239
1144
|
// File: src/functions/secondToTime.d.ts
|
|
@@ -1242,7 +1147,7 @@ export declare function secondToTime(second: number | string | undefined, hasHou
|
|
|
1242
1147
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1243
1148
|
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;
|
|
1244
1149
|
// File: src/functions/setValues.d.ts
|
|
1245
|
-
export declare function setValues<T>(selected: T | T[] | undefined, value: any,
|
|
1150
|
+
export declare function setValues<T>(selected: T | T[] | undefined, value: any, options: any): T | T[] | undefined;
|
|
1246
1151
|
// File: src/functions/sleep.d.ts
|
|
1247
1152
|
export declare function sleep(ms: number): Promise<void>;
|
|
1248
1153
|
// File: src/functions/splice.d.ts
|
|
@@ -1253,13 +1158,13 @@ export declare function strFill(value: string, count: number): string;
|
|
|
1253
1158
|
// File: src/functions/strSplit.d.ts
|
|
1254
1159
|
export declare function strSplit(value: number | string, separator: string, limit?: number): string[];
|
|
1255
1160
|
// File: src/functions/toArray.d.ts
|
|
1256
|
-
export declare function toArray<T>(value: T): any;
|
|
1161
|
+
export declare function toArray<T>(value: T): T extends any[] ? T : [T];
|
|
1257
1162
|
// File: src/functions/toCamelCase.d.ts
|
|
1258
1163
|
export declare function toCamelCase(value: string): string;
|
|
1259
1164
|
// File: src/functions/toCamelCaseFirst.d.ts
|
|
1260
1165
|
export declare function toCamelCaseFirst(value: string): string;
|
|
1261
1166
|
// File: src/functions/toDate.d.ts
|
|
1262
|
-
export declare function toDate<T extends Date | number | string>(value?: T): Date;
|
|
1167
|
+
export declare function toDate<T extends Date | number | string>(value?: T): (T & Date) | Date;
|
|
1263
1168
|
// File: src/functions/toKebabCase.d.ts
|
|
1264
1169
|
export declare function toKebabCase(value: string): string;
|
|
1265
1170
|
// File: src/functions/toNumber.d.ts
|
|
@@ -1281,186 +1186,6 @@ export declare function uint8ArrayToBase64(bytes: Uint8Array): string;
|
|
|
1281
1186
|
export declare function uniqueArray<T>(value: T[]): T[];
|
|
1282
1187
|
// File: src/functions/writeClipboardData.d.ts
|
|
1283
1188
|
export declare function writeClipboardData(text: string): Promise<void>;
|
|
1284
|
-
// File: src/library.d.ts
|
|
1285
|
-
export * from './classes/Api';
|
|
1286
|
-
export * from './classes/ApiCache';
|
|
1287
|
-
export * from './classes/ApiDataReturn';
|
|
1288
|
-
export * from './classes/ApiDefault';
|
|
1289
|
-
export * from './classes/ApiError';
|
|
1290
|
-
export * from './classes/ApiErrorItem';
|
|
1291
|
-
export * from './classes/ApiErrorStorage';
|
|
1292
|
-
export * from './classes/ApiHeaders';
|
|
1293
|
-
export * from './classes/ApiHydration';
|
|
1294
|
-
export * from './classes/ApiInstance';
|
|
1295
|
-
export * from './classes/ApiPreparation';
|
|
1296
|
-
export * from './classes/ApiResponse';
|
|
1297
|
-
export * from './classes/ApiStatus';
|
|
1298
|
-
export * from './classes/BroadcastMessage';
|
|
1299
|
-
export * from './classes/Cache';
|
|
1300
|
-
export * from './classes/CacheItem';
|
|
1301
|
-
export * from './classes/CacheStatic';
|
|
1302
|
-
export * from './classes/Cookie';
|
|
1303
|
-
export * from './classes/CookieBlock';
|
|
1304
|
-
export * from './classes/CookieBlockInstance';
|
|
1305
|
-
export * from './classes/CookieStorage';
|
|
1306
|
-
export * from './classes/DataStorage';
|
|
1307
|
-
export * from './classes/Datetime';
|
|
1308
|
-
export * from './classes/ErrorCenter';
|
|
1309
|
-
export * from './classes/ErrorCenterHandler';
|
|
1310
|
-
export * from './classes/ErrorCenterInstance';
|
|
1311
|
-
export * from './classes/EventItem';
|
|
1312
|
-
export * from './classes/Formatters';
|
|
1313
|
-
export * from './classes/Geo';
|
|
1314
|
-
export * from './classes/GeoFlag';
|
|
1315
|
-
export * from './classes/GeoInstance';
|
|
1316
|
-
export * from './classes/GeoIntl';
|
|
1317
|
-
export * from './classes/GeoPhone';
|
|
1318
|
-
export * from './classes/Global';
|
|
1319
|
-
export * from './classes/Hash';
|
|
1320
|
-
export * from './classes/HashInstance';
|
|
1321
|
-
export * from './classes/Icons';
|
|
1322
|
-
export * from './classes/Loading';
|
|
1323
|
-
export * from './classes/LoadingInstance';
|
|
1324
|
-
export * from './classes/Meta';
|
|
1325
|
-
export * from './classes/MetaManager';
|
|
1326
|
-
export * from './classes/MetaOg';
|
|
1327
|
-
export * from './classes/MetaStatic';
|
|
1328
|
-
export * from './classes/MetaTwitter';
|
|
1329
|
-
export * from './classes/ResumableTimer';
|
|
1330
|
-
export * from './classes/ScrollbarWidth';
|
|
1331
|
-
export * from './classes/SearchList';
|
|
1332
|
-
export * from './classes/SearchListData';
|
|
1333
|
-
export * from './classes/SearchListItem';
|
|
1334
|
-
export * from './classes/SearchListMatcher';
|
|
1335
|
-
export * from './classes/SearchListOptions';
|
|
1336
|
-
export * from './classes/ServerStorage';
|
|
1337
|
-
export * from './classes/StorageCallback';
|
|
1338
|
-
export * from './classes/Translate';
|
|
1339
|
-
export * from './classes/TranslateFile';
|
|
1340
|
-
export * from './classes/TranslateInstance';
|
|
1341
|
-
export * from './functions/addTagHighlightMatch';
|
|
1342
|
-
export * from './functions/anyToString';
|
|
1343
|
-
export * from './functions/applyTemplate';
|
|
1344
|
-
export * from './functions/arrFill';
|
|
1345
|
-
export * from './functions/blobToBase64';
|
|
1346
|
-
export * from './functions/capitalize';
|
|
1347
|
-
export * from './functions/copyObject';
|
|
1348
|
-
export * from './functions/copyObjectLite';
|
|
1349
|
-
export * from './functions/createElement';
|
|
1350
|
-
export * from './functions/domQuerySelector';
|
|
1351
|
-
export * from './functions/domQuerySelectorAll';
|
|
1352
|
-
export * from './functions/encodeAttribute';
|
|
1353
|
-
export * from './functions/encodeLiteAttribute';
|
|
1354
|
-
export * from './functions/ensureMaxSize';
|
|
1355
|
-
export * from './functions/escapeExp';
|
|
1356
|
-
export * from './functions/eventStopPropagation';
|
|
1357
|
-
export * from './functions/executeFunction';
|
|
1358
|
-
export * from './functions/executePromise';
|
|
1359
|
-
export * from './functions/forEach';
|
|
1360
|
-
export * from './functions/frame';
|
|
1361
|
-
export * from './functions/getArrayHighlightMatch';
|
|
1362
|
-
export * from './functions/getAttributes';
|
|
1363
|
-
export * from './functions/getClipboardData';
|
|
1364
|
-
export * from './functions/getColumn';
|
|
1365
|
-
export * from './functions/getCurrentDate';
|
|
1366
|
-
export * from './functions/getCurrentTime';
|
|
1367
|
-
export * from './functions/getElement';
|
|
1368
|
-
export * from './functions/getElementId';
|
|
1369
|
-
export * from './functions/getElementImage';
|
|
1370
|
-
export * from './functions/getElementItem';
|
|
1371
|
-
export * from './functions/getElementOrWindow';
|
|
1372
|
-
export * from './functions/getElementSafeScript';
|
|
1373
|
-
export * from './functions/getExactSearchExp';
|
|
1374
|
-
export * from './functions/getExp';
|
|
1375
|
-
export * from './functions/getFirst';
|
|
1376
|
-
export * from './functions/getHydrationData';
|
|
1377
|
-
export * from './functions/getItemByPath';
|
|
1378
|
-
export * from './functions/getKey';
|
|
1379
|
-
export * from './functions/getLengthOfAllArray';
|
|
1380
|
-
export * from './functions/getMaxLengthAllArray';
|
|
1381
|
-
export * from './functions/getMinLengthAllArray';
|
|
1382
|
-
export * from './functions/getMouseClient';
|
|
1383
|
-
export * from './functions/getMouseClientX';
|
|
1384
|
-
export * from './functions/getMouseClientY';
|
|
1385
|
-
export * from './functions/getObjectByKeys';
|
|
1386
|
-
export * from './functions/getObjectNoUndefined';
|
|
1387
|
-
export * from './functions/getObjectOrNone';
|
|
1388
|
-
export * from './functions/getOnlyText';
|
|
1389
|
-
export * from './functions/getRandomText';
|
|
1390
|
-
export * from './functions/getRequestString';
|
|
1391
|
-
export * from './functions/getSearchExp';
|
|
1392
|
-
export * from './functions/getSeparatingSearchExp';
|
|
1393
|
-
export * from './functions/getStepPercent';
|
|
1394
|
-
export * from './functions/getStepValue';
|
|
1395
|
-
export * from './functions/goScroll';
|
|
1396
|
-
export * from './functions/goScrollSmooth';
|
|
1397
|
-
export * from './functions/goScrollTo';
|
|
1398
|
-
export * from './functions/handleShare';
|
|
1399
|
-
export * from './functions/inArray';
|
|
1400
|
-
export * from './functions/initScrollbarOffset';
|
|
1401
|
-
export * from './functions/intersectKey';
|
|
1402
|
-
export * from './functions/isApiSuccess';
|
|
1403
|
-
export * from './functions/isArray';
|
|
1404
|
-
export * from './functions/isDifferent';
|
|
1405
|
-
export * from './functions/isDomData';
|
|
1406
|
-
export * from './functions/isDomRuntime';
|
|
1407
|
-
export * from './functions/isElementVisible';
|
|
1408
|
-
export * from './functions/isEnter';
|
|
1409
|
-
export * from './functions/isFilled';
|
|
1410
|
-
export * from './functions/isFloat';
|
|
1411
|
-
export * from './functions/isFunction';
|
|
1412
|
-
export * from './functions/isInDom';
|
|
1413
|
-
export * from './functions/isInput';
|
|
1414
|
-
export * from './functions/isIntegerBetween';
|
|
1415
|
-
export * from './functions/isNull';
|
|
1416
|
-
export * from './functions/isNumber';
|
|
1417
|
-
export * from './functions/isObject';
|
|
1418
|
-
export * from './functions/isObjectNotArray';
|
|
1419
|
-
export * from './functions/isOnLine';
|
|
1420
|
-
export * from './functions/isSelected';
|
|
1421
|
-
export * from './functions/isSelectedByList';
|
|
1422
|
-
export * from './functions/isShare';
|
|
1423
|
-
export * from './functions/isString';
|
|
1424
|
-
export * from './functions/isTab';
|
|
1425
|
-
export * from './functions/isWindow';
|
|
1426
|
-
export * from './functions/random';
|
|
1427
|
-
export * from './functions/removeCommonPrefix';
|
|
1428
|
-
export * from './functions/replaceComponentName';
|
|
1429
|
-
export * from './functions/replaceRecursive';
|
|
1430
|
-
export * from './functions/replaceTemplate';
|
|
1431
|
-
export * from './functions/resizeImageByMax';
|
|
1432
|
-
export * from './functions/secondToTime';
|
|
1433
|
-
export * from './functions/setElementItem';
|
|
1434
|
-
export * from './functions/setValues';
|
|
1435
|
-
export * from './functions/sleep';
|
|
1436
|
-
export * from './functions/splice';
|
|
1437
|
-
export * from './functions/strFill';
|
|
1438
|
-
export * from './functions/strSplit';
|
|
1439
|
-
export * from './functions/toArray';
|
|
1440
|
-
export * from './functions/toCamelCase';
|
|
1441
|
-
export * from './functions/toCamelCaseFirst';
|
|
1442
|
-
export * from './functions/toDate';
|
|
1443
|
-
export * from './functions/toKebabCase';
|
|
1444
|
-
export * from './functions/toNumber';
|
|
1445
|
-
export * from './functions/toNumberByMax';
|
|
1446
|
-
export * from './functions/toPercent';
|
|
1447
|
-
export * from './functions/toPercentBy100';
|
|
1448
|
-
export * from './functions/toString';
|
|
1449
|
-
export * from './functions/transformation';
|
|
1450
|
-
export * from './functions/uint8ArrayToBase64';
|
|
1451
|
-
export * from './functions/uniqueArray';
|
|
1452
|
-
export * from './functions/writeClipboardData';
|
|
1453
|
-
export * from './types/apiTypes';
|
|
1454
|
-
export * from './types/basicTypes';
|
|
1455
|
-
export * from './types/errorCenter';
|
|
1456
|
-
export * from './types/formattersTypes';
|
|
1457
|
-
export * from './types/geoTypes';
|
|
1458
|
-
export * from './types/metaTypes';
|
|
1459
|
-
export * from './types/searchTypes';
|
|
1460
|
-
export * from './types/translateTypes';
|
|
1461
|
-
// File: src/media/errorCauseList.d.ts
|
|
1462
|
-
import { ErrorCenterCauseList } from '../types/errorCenter';
|
|
1463
|
-
export declare const errorCauseList: ErrorCenterCauseList;
|
|
1464
1189
|
// File: src/types/apiTypes.d.ts
|
|
1465
1190
|
export declare enum ApiMethodItem {
|
|
1466
1191
|
delete = "DELETE",
|
|
@@ -1469,107 +1194,23 @@ export declare enum ApiMethodItem {
|
|
|
1469
1194
|
put = "PUT",
|
|
1470
1195
|
patch = "PATCH"
|
|
1471
1196
|
}
|
|
1472
|
-
export type ApiCacheItem<T = any> = {
|
|
1473
|
-
value: T;
|
|
1474
|
-
age?: number;
|
|
1475
|
-
cacheAge: number;
|
|
1476
|
-
};
|
|
1197
|
+
export type ApiCacheItem<T = any> = { value: T; age?: number; cacheAge: number; };
|
|
1477
1198
|
export type ApiCacheList = Record<string, ApiCacheItem>;
|
|
1478
|
-
export type ApiConfig = {
|
|
1479
|
-
urlRoot?: string;
|
|
1480
|
-
origin?: string;
|
|
1481
|
-
headers?: ApiHeadersValue;
|
|
1482
|
-
requestDefault?: ApiDefaultValue;
|
|
1483
|
-
preparation?: (apiFetch: ApiFetch) => Promise<void>;
|
|
1484
|
-
end?: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>;
|
|
1485
|
-
timeout?: number;
|
|
1486
|
-
devMode?: boolean;
|
|
1487
|
-
};
|
|
1199
|
+
export type ApiConfig = { urlRoot?: string; origin?: string; headers?: ApiHeadersValue; requestDefault?: ApiDefaultValue; preparation?: (apiFetch: ApiFetch) => Promise<void>; end?: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>; timeout?: number; devMode?: boolean; };
|
|
1488
1200
|
export type ApiData<T = any> = T extends any[] ? T : ApiDataItem<T>;
|
|
1489
|
-
export type ApiDataValidation = {
|
|
1490
|
-
|
|
1491
|
-
code?: string | number;
|
|
1492
|
-
message?: string;
|
|
1493
|
-
error?: {
|
|
1494
|
-
code?: string | number;
|
|
1495
|
-
message?: string;
|
|
1496
|
-
};
|
|
1497
|
-
};
|
|
1498
|
-
export type ApiDataItem<T = any> = T & ApiDataValidation & {
|
|
1499
|
-
data?: T;
|
|
1500
|
-
success?: boolean;
|
|
1501
|
-
statusObject?: ApiStatusItem;
|
|
1502
|
-
errorObject?: ApiErrorItem;
|
|
1503
|
-
};
|
|
1201
|
+
export type ApiDataValidation = { status?: ApiStatusType; code?: string | number; message?: string; error?: { code?: string | number; message?: string; }; };
|
|
1202
|
+
export type ApiDataItem<T = any> = T & ApiDataValidation & { data?: T; success?: boolean; statusObject?: ApiStatusItem; errorObject?: ApiErrorItem; };
|
|
1504
1203
|
export type ApiHeadersValue = Record<string, string> | (() => Record<string, string>);
|
|
1505
1204
|
export type ApiDefaultValue = Record<string, any> | (() => Record<string, any>);
|
|
1506
|
-
export type ApiFetch = {
|
|
1507
|
-
|
|
1508
|
-
path?: string;
|
|
1509
|
-
pathFull?: string;
|
|
1510
|
-
method?: ApiMethod;
|
|
1511
|
-
request?: FormData | Record<string, any> | string;
|
|
1512
|
-
auth?: boolean;
|
|
1513
|
-
headers?: Record<string, string> | null;
|
|
1514
|
-
type?: string;
|
|
1515
|
-
toData?: boolean;
|
|
1516
|
-
global?: boolean;
|
|
1517
|
-
devMode?: boolean;
|
|
1518
|
-
hideError?: boolean;
|
|
1519
|
-
hideLoading?: boolean;
|
|
1520
|
-
retry?: number;
|
|
1521
|
-
retryDelay?: number;
|
|
1522
|
-
queryReturn?: (query: Response) => Promise<any | ApiDataValidation>;
|
|
1523
|
-
globalPreparation?: boolean;
|
|
1524
|
-
globalEnd?: boolean;
|
|
1525
|
-
init?: RequestInit;
|
|
1526
|
-
initError?: boolean;
|
|
1527
|
-
timeout?: number;
|
|
1528
|
-
controller?: AbortController;
|
|
1529
|
-
cache?: number;
|
|
1530
|
-
enableClientCache?: boolean;
|
|
1531
|
-
cacheId?: number | string;
|
|
1532
|
-
endResetLimit?: number;
|
|
1533
|
-
};
|
|
1534
|
-
export type ApiHydrationItem = {
|
|
1535
|
-
path: string;
|
|
1536
|
-
method: ApiMethod;
|
|
1537
|
-
request?: ApiFetch['request'];
|
|
1538
|
-
response: any;
|
|
1539
|
-
};
|
|
1205
|
+
export type ApiFetch = { api?: boolean; path?: string; pathFull?: string; method?: ApiMethod; request?: FormData | Record<string, any> | string; auth?: boolean; headers?: Record<string, string> | null; type?: string; toData?: boolean; global?: boolean; devMode?: boolean; hideError?: boolean; hideLoading?: boolean; retry?: number; retryDelay?: number; queryReturn?: (query: Response) => Promise<any | ApiDataValidation>; globalPreparation?: boolean; globalEnd?: boolean; init?: RequestInit; initError?: boolean; timeout?: number; controller?: AbortController; cache?: number; enableClientCache?: boolean; cacheId?: number | string; endResetLimit?: number; };
|
|
1206
|
+
export type ApiHydrationItem = { path: string | RegExp; method: ApiMethod; request?: ApiFetch['request']; response: any; };
|
|
1540
1207
|
export type ApiHydrationList = ApiHydrationItem[];
|
|
1541
|
-
export type ApiErrorStorageItem = Record<string, any> & {
|
|
1542
|
-
url: string | RegExp;
|
|
1543
|
-
method: ApiMethodItem;
|
|
1544
|
-
code?: string;
|
|
1545
|
-
status?: number;
|
|
1546
|
-
validation?: (response: Response) => boolean;
|
|
1547
|
-
message?: string | ((response?: Response) => string);
|
|
1548
|
-
};
|
|
1208
|
+
export type ApiErrorStorageItem = Record<string, any> & { url: string | RegExp; method: ApiMethodItem; code?: string; status?: number; validation?: (response: Response) => boolean; message?: string | ((response?: Response) => string); };
|
|
1549
1209
|
export type ApiErrorStorageList = ApiErrorStorageItem[];
|
|
1550
1210
|
export type ApiMethod = string | ApiMethodItem;
|
|
1551
|
-
export type ApiPreparationEnd = {
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
};
|
|
1555
|
-
export type ApiResponseItem = {
|
|
1556
|
-
path: string | RegExp;
|
|
1557
|
-
method: ApiMethod;
|
|
1558
|
-
request?: ApiFetch['request'] | '*any';
|
|
1559
|
-
response: any | ((request?: ApiFetch['request']) => any);
|
|
1560
|
-
disable?: any;
|
|
1561
|
-
isForGlobal?: boolean;
|
|
1562
|
-
lag?: any;
|
|
1563
|
-
};
|
|
1564
|
-
export type ApiStatusItem = {
|
|
1565
|
-
status?: number;
|
|
1566
|
-
statusText?: string;
|
|
1567
|
-
error?: string;
|
|
1568
|
-
lastResponse?: any;
|
|
1569
|
-
lastStatus?: ApiStatusType;
|
|
1570
|
-
lastCode?: string;
|
|
1571
|
-
lastMessage?: string;
|
|
1572
|
-
};
|
|
1211
|
+
export type ApiPreparationEnd = { reset?: boolean; data?: any; };
|
|
1212
|
+
export type ApiResponseItem = { path: string | RegExp; method: ApiMethod; request?: ApiFetch['request'] | '*any'; response: any | ((request?: ApiFetch['request']) => any); disable?: any; isForGlobal?: boolean; lag?: any; };
|
|
1213
|
+
export type ApiStatusItem = { status?: number; statusText?: string; error?: string; lastResponse?: any; lastStatus?: ApiStatusType; lastCode?: string; lastMessage?: string; };
|
|
1573
1214
|
export type ApiStatusType = 'success' | 'error' | 'warning' | 'info';
|
|
1574
1215
|
// File: src/types/basicTypes.d.ts
|
|
1575
1216
|
export type Undefined = undefined | null;
|
|
@@ -1587,48 +1228,21 @@ export type FunctionVoid = () => void;
|
|
|
1587
1228
|
export type FunctionArgs<T, R> = (...args: T[]) => R;
|
|
1588
1229
|
export type FunctionAnyType<T = any, R = any> = (...args: T[]) => R;
|
|
1589
1230
|
export type ItemList<T = any> = Record<string, T>;
|
|
1590
|
-
export type Item<V> = {
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
};
|
|
1594
|
-
export type ItemValue<V> = {
|
|
1595
|
-
label: string;
|
|
1596
|
-
value: V;
|
|
1597
|
-
};
|
|
1598
|
-
export type ItemName<V> = {
|
|
1599
|
-
name: string | number;
|
|
1600
|
-
value: V;
|
|
1601
|
-
};
|
|
1231
|
+
export type Item<V> = { index: string; value: V; };
|
|
1232
|
+
export type ItemValue<V> = { label: string; value: V; };
|
|
1233
|
+
export type ItemName<V> = { name: string | number; value: V; };
|
|
1602
1234
|
export type ElementOrWindow = HTMLElement | Window;
|
|
1603
1235
|
export type ElementOrString<E extends ElementOrWindow> = E | string;
|
|
1604
1236
|
export type EventOptions = AddEventListenerOptions | boolean | undefined;
|
|
1605
1237
|
export type EventListenerDetail<O extends Event, D extends Record<string, any>> = (event: O, detail?: D) => void;
|
|
1606
|
-
export type EventActivityItem<E extends ElementOrWindow> = {
|
|
1607
|
-
|
|
1608
|
-
type: string;
|
|
1609
|
-
listener?: (event: any | Event) => void;
|
|
1610
|
-
observer?: ResizeObserver;
|
|
1611
|
-
};
|
|
1612
|
-
export type ImageCoordinator = {
|
|
1613
|
-
x: number;
|
|
1614
|
-
y: number;
|
|
1615
|
-
};
|
|
1238
|
+
export type EventActivityItem<E extends ElementOrWindow> = { element: E | undefined; type: string; listener?: (event: any | Event) => void; observer?: ResizeObserver; };
|
|
1239
|
+
export type ImageCoordinator = { x: number; y: number; };
|
|
1616
1240
|
// File: src/types/errorCenter.d.ts
|
|
1617
1241
|
export type ErrorCenterGroup = string | undefined;
|
|
1618
|
-
export type ErrorCenterCauseItem<D = any> = {
|
|
1619
|
-
group?: ErrorCenterGroup;
|
|
1620
|
-
code: string;
|
|
1621
|
-
priority?: number;
|
|
1622
|
-
label?: string;
|
|
1623
|
-
message?: string;
|
|
1624
|
-
details?: D;
|
|
1625
|
-
};
|
|
1242
|
+
export type ErrorCenterCauseItem<D = any> = { group?: ErrorCenterGroup; code: string; priority?: number; label?: string; message?: string; details?: D; };
|
|
1626
1243
|
export type ErrorCenterCauseList = ErrorCenterCauseItem[];
|
|
1627
1244
|
export type ErrorCenterHandlerCallback = (cause: ErrorCenterCauseItem) => void;
|
|
1628
|
-
export type ErrorCenterHandlerItem = {
|
|
1629
|
-
group?: ErrorCenterGroup;
|
|
1630
|
-
handlers: ErrorCenterHandlerCallback[];
|
|
1631
|
-
};
|
|
1245
|
+
export type ErrorCenterHandlerItem = { group?: ErrorCenterGroup; handlers: ErrorCenterHandlerCallback[]; };
|
|
1632
1246
|
export type ErrorCenterHandlerList = ErrorCenterHandlerItem[];
|
|
1633
1247
|
// File: src/types/formattersTypes.d.ts
|
|
1634
1248
|
import { ArrayToItem } from './basicTypes';
|
|
@@ -1641,49 +1255,24 @@ export declare enum FormattersType {
|
|
|
1641
1255
|
plural = "plural",
|
|
1642
1256
|
unit = "unit"
|
|
1643
1257
|
}
|
|
1644
|
-
export type FormattersOptionsCurrency = {
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
};
|
|
1649
|
-
export type
|
|
1650
|
-
type?: GeoDate;
|
|
1651
|
-
options?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions;
|
|
1652
|
-
hour24?: boolean;
|
|
1653
|
-
};
|
|
1654
|
-
export type FormattersOptionsName = {
|
|
1655
|
-
lastPropName?: string;
|
|
1656
|
-
firstPropName?: string;
|
|
1657
|
-
surname?: string;
|
|
1658
|
-
short?: boolean;
|
|
1659
|
-
};
|
|
1660
|
-
export type FormattersOptionsNumber = {
|
|
1661
|
-
options?: Intl.NumberFormatOptions;
|
|
1662
|
-
};
|
|
1663
|
-
export type FormattersOptionsPlural = {
|
|
1664
|
-
words: string;
|
|
1665
|
-
options?: Intl.PluralRulesOptions;
|
|
1666
|
-
optionsNumber?: Intl.NumberFormatOptions;
|
|
1667
|
-
};
|
|
1668
|
-
export type FormattersOptionsUnit = {
|
|
1669
|
-
unit: string | Intl.NumberFormatOptions;
|
|
1670
|
-
};
|
|
1258
|
+
export type FormattersOptionsCurrency = { currencyPropName?: string; options?: string | Intl.NumberFormatOptions; numberOnly?: boolean; };
|
|
1259
|
+
export type FormattersOptionsDate = { type?: GeoDate; options?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions; hour24?: boolean; };
|
|
1260
|
+
export type FormattersOptionsName = { lastPropName?: string; firstPropName?: string; surname?: string; short?: boolean; };
|
|
1261
|
+
export type FormattersOptionsNumber = { options?: Intl.NumberFormatOptions; };
|
|
1262
|
+
export type FormattersOptionsPlural = { words: string; options?: Intl.PluralRulesOptions; optionsNumber?: Intl.NumberFormatOptions; };
|
|
1263
|
+
export type FormattersOptionsUnit = { unit: string | Intl.NumberFormatOptions; };
|
|
1671
1264
|
export type FormattersOptionsInformation<Type extends FormattersType> = any;
|
|
1672
|
-
export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = {
|
|
1673
|
-
type?: Type;
|
|
1674
|
-
transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R;
|
|
1675
|
-
options?: FormattersOptionsInformation<Type>;
|
|
1676
|
-
};
|
|
1265
|
+
export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = { type?: Type; transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R; options?: FormattersOptionsInformation<Type>; };
|
|
1677
1266
|
export type FormattersOptionsList = Record<string, FormattersOptionsItem>;
|
|
1678
1267
|
export type FormattersListItem = Record<string, any>;
|
|
1679
1268
|
export type FormattersList<Item extends FormattersListItem> = Item[];
|
|
1680
|
-
export type FormattersCapitalize<K extends string> =
|
|
1269
|
+
export type FormattersCapitalize<K extends string> = any;
|
|
1681
1270
|
export type FormattersColumns<T extends FormattersOptionsList> = (keyof T & string)[];
|
|
1682
|
-
export type FormattersKey<K, A extends string = 'Format'> =
|
|
1271
|
+
export type FormattersKey<K, A extends string = 'Format'> = any;
|
|
1683
1272
|
export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = any;
|
|
1684
|
-
export type FormattersListFormat<T extends FormattersListItem, K extends string[]> =
|
|
1685
|
-
export type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> =
|
|
1686
|
-
export type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> =
|
|
1273
|
+
export type FormattersListFormat<T extends FormattersListItem, K extends string[]> = any;
|
|
1274
|
+
export type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> = any;
|
|
1275
|
+
export type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> = any;
|
|
1687
1276
|
export type FormattersListProp = FormattersList<FormattersListItem> | FormattersListItem;
|
|
1688
1277
|
export type FormattersItemProp<List extends FormattersListProp> = ArrayToItem<List>;
|
|
1689
1278
|
export type FormattersReturn<List extends FormattersListProp, Options extends FormattersOptionsList = FormattersOptionsList, Item extends FormattersItemProp<List> = FormattersItemProp<List>> = any;
|
|
@@ -1692,273 +1281,42 @@ export type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'mo
|
|
|
1692
1281
|
export type GeoFirstDay = 1 | 6 | 0;
|
|
1693
1282
|
export type GeoHours = '12' | '24';
|
|
1694
1283
|
export type GeoTimeZoneStyle = 'minute' | 'hour' | 'ISO8601' | 'RFC';
|
|
1695
|
-
export interface GeoItem {
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
phoneCode?: string;
|
|
1703
|
-
phoneWithin?: string;
|
|
1704
|
-
phoneMask?: string | string[];
|
|
1705
|
-
nameFormat?: 'fl' | 'fsl' | 'lf' | 'lsf' | string;
|
|
1706
|
-
}
|
|
1707
|
-
export interface GeoItemFull extends Omit<GeoItem, 'firstDay'> {
|
|
1708
|
-
standard: string;
|
|
1709
|
-
firstDay: string;
|
|
1710
|
-
}
|
|
1711
|
-
export interface GeoFlagItem {
|
|
1712
|
-
language: string;
|
|
1713
|
-
country: string;
|
|
1714
|
-
standard: string;
|
|
1715
|
-
icon?: string;
|
|
1716
|
-
label: string;
|
|
1717
|
-
value: string;
|
|
1718
|
-
}
|
|
1719
|
-
export interface GeoFlagNational extends GeoFlagItem {
|
|
1720
|
-
description: string;
|
|
1721
|
-
nationalLanguage: string;
|
|
1722
|
-
nationalCountry: string;
|
|
1723
|
-
}
|
|
1724
|
-
export interface GeoPhoneValue {
|
|
1725
|
-
phone: number;
|
|
1726
|
-
within: number;
|
|
1727
|
-
mask: string[];
|
|
1728
|
-
value: string;
|
|
1729
|
-
}
|
|
1730
|
-
export interface GeoPhoneMap {
|
|
1731
|
-
items: GeoPhoneValue[];
|
|
1732
|
-
info: GeoPhoneValue | undefined;
|
|
1733
|
-
value: string | undefined;
|
|
1734
|
-
mask: string[];
|
|
1735
|
-
maskFull: string[];
|
|
1736
|
-
next: Record<string, GeoPhoneMap>;
|
|
1737
|
-
}
|
|
1738
|
-
export interface GeoPhoneMapInfo {
|
|
1739
|
-
item?: GeoPhoneMap;
|
|
1740
|
-
phone?: string;
|
|
1741
|
-
}
|
|
1284
|
+
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; }
|
|
1285
|
+
export interface GeoItemFull extends Omit<GeoItem, 'firstDay'> { standard: string; firstDay: string; }
|
|
1286
|
+
export interface GeoFlagItem { language: string; country: string; standard: string; icon?: string; label: string; value: string; phoneCode?: string; }
|
|
1287
|
+
export interface GeoFlagNational extends GeoFlagItem { description: string; nationalLanguage: string; nationalCountry: string; }
|
|
1288
|
+
export interface GeoPhoneValue { phone: number; within: number; mask: string[]; value: string; }
|
|
1289
|
+
export interface GeoPhoneMap { items: GeoPhoneValue[]; info: GeoPhoneValue | undefined; value: string | undefined; mask: string[]; maskFull: string[]; next: Record<string, GeoPhoneMap>; }
|
|
1290
|
+
export interface GeoPhoneMapInfo { item?: GeoPhoneMap; phone?: string; }
|
|
1742
1291
|
// File: src/types/metaTypes.d.ts
|
|
1743
|
-
export declare enum MetaTag {
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
}
|
|
1751
|
-
export declare enum
|
|
1752
|
-
|
|
1753
|
-
noIndexFollow = "noindex, follow",
|
|
1754
|
-
indexNoFollow = "index, nofollow",
|
|
1755
|
-
noIndexNoFollow = "noindex, nofollow",
|
|
1756
|
-
noArchive = "noarchive",
|
|
1757
|
-
noSnippet = "nosnippet",
|
|
1758
|
-
noImageIndex = "noimageindex",
|
|
1759
|
-
images = "images",
|
|
1760
|
-
noTranslate = "notranslate",
|
|
1761
|
-
noPreview = "nopreview",
|
|
1762
|
-
textOnly = "textonly",
|
|
1763
|
-
noIndexSubpages = "noindex, noarchive",
|
|
1764
|
-
none = "none"
|
|
1765
|
-
}
|
|
1766
|
-
export declare enum MetaOpenGraphTag {
|
|
1767
|
-
title = "og:title",
|
|
1768
|
-
type = "og:type",
|
|
1769
|
-
url = "og:url",
|
|
1770
|
-
image = "og:image",
|
|
1771
|
-
description = "og:description",
|
|
1772
|
-
locale = "og:locale",
|
|
1773
|
-
siteName = "og:site_name",
|
|
1774
|
-
localeAlternate = "og:locale:alternate",
|
|
1775
|
-
imageUrl = "og:image:url",
|
|
1776
|
-
imageSecureUrl = "og:image:secure_url",
|
|
1777
|
-
imageType = "og:image:type",
|
|
1778
|
-
imageWidth = "og:image:width",
|
|
1779
|
-
imageHeight = "og:image:height",
|
|
1780
|
-
imageAlt = "og:image:alt",
|
|
1781
|
-
video = "og:video",
|
|
1782
|
-
videoUrl = "og:video:url",
|
|
1783
|
-
videoSecureUrl = "og:video:secure_url",
|
|
1784
|
-
videoType = "og:video:type",
|
|
1785
|
-
videoWidth = "og:video:width",
|
|
1786
|
-
videoHeight = "og:video:height",
|
|
1787
|
-
audio = "og:audio",
|
|
1788
|
-
audioSecureUrl = "og:audio:secure_url",
|
|
1789
|
-
audioType = "og:audio:type",
|
|
1790
|
-
articlePublishedTime = "article:published_time",
|
|
1791
|
-
articleModifiedTime = "article:modified_time",
|
|
1792
|
-
articleExpirationTime = "article:expiration_time",
|
|
1793
|
-
articleAuthor = "article:author",
|
|
1794
|
-
articleSection = "article:section",
|
|
1795
|
-
articleTag = "article:tag",
|
|
1796
|
-
bookAuthor = "book:author",
|
|
1797
|
-
bookIsbn = "book:isbn",
|
|
1798
|
-
bookReleaseDate = "book:release_date",
|
|
1799
|
-
bookTag = "book:tag",
|
|
1800
|
-
musicDuration = "music:duration",
|
|
1801
|
-
musicAlbum = "music:album",
|
|
1802
|
-
musicAlbumDisc = "music:album:disc",
|
|
1803
|
-
musicAlbumTrack = "music:album:track",
|
|
1804
|
-
musicMusician = "music:musician",
|
|
1805
|
-
musicSong = "music:song",
|
|
1806
|
-
musicSongDisc = "music:song:disc",
|
|
1807
|
-
musicSongTrack = "music:song:track",
|
|
1808
|
-
musicReleaseDate = "music:release_date",
|
|
1809
|
-
musicCreator = "music:creator",
|
|
1810
|
-
videoActor = "video:actor",
|
|
1811
|
-
videoActorRole = "video:actor:role",
|
|
1812
|
-
videoDirector = "video:director",
|
|
1813
|
-
videoWriter = "video:writer",
|
|
1814
|
-
videoDuration = "video:duration",
|
|
1815
|
-
videoReleaseDate = "video:release_date",
|
|
1816
|
-
videoTag = "video:tag",
|
|
1817
|
-
videoSeries = "video:series",
|
|
1818
|
-
profileFirstName = "profile:first_name",
|
|
1819
|
-
profileLastName = "profile:last_name",
|
|
1820
|
-
profileUsername = "profile:username",
|
|
1821
|
-
profileGender = "profile:gender",
|
|
1822
|
-
productBrand = "product:brand",
|
|
1823
|
-
productAvailability = "product:availability",
|
|
1824
|
-
productCondition = "product:condition",
|
|
1825
|
-
productPriceAmount = "product:price:amount",
|
|
1826
|
-
productPriceCurrency = "product:price:currency",
|
|
1827
|
-
productRetailerItemId = "product:retailer_item_id",
|
|
1828
|
-
productCategory = "product:category",
|
|
1829
|
-
productEan = "product:ean",
|
|
1830
|
-
productIsbn = "product:isbn",
|
|
1831
|
-
productMfrPartNo = "product:mfr_part_no",
|
|
1832
|
-
productUpc = "product:upc",
|
|
1833
|
-
productWeightValue = "product:weight:value",
|
|
1834
|
-
productWeightUnits = "product:weight:units",
|
|
1835
|
-
productColor = "product:color",
|
|
1836
|
-
productMaterial = "product:material",
|
|
1837
|
-
productPattern = "product:pattern",
|
|
1838
|
-
productAgeGroup = "product:age_group",
|
|
1839
|
-
productGender = "product:gender"
|
|
1840
|
-
}
|
|
1841
|
-
export declare enum MetaOpenGraphType {
|
|
1842
|
-
website = "website",
|
|
1843
|
-
article = "article",
|
|
1844
|
-
video = "video.other",
|
|
1845
|
-
videoTvShow = "video.tv_show",
|
|
1846
|
-
videoEpisode = "video.episode",
|
|
1847
|
-
videoMovie = "video.movie",
|
|
1848
|
-
musicAlbum = "music.album",
|
|
1849
|
-
musicPlaylist = "music.playlist",
|
|
1850
|
-
musicSong = "music.song",
|
|
1851
|
-
musicRadioStation = "music.radio_station",
|
|
1852
|
-
app = "app",
|
|
1853
|
-
product = "product",
|
|
1854
|
-
business = "business.business",
|
|
1855
|
-
place = "place",
|
|
1856
|
-
event = "event",
|
|
1857
|
-
profile = "profile",
|
|
1858
|
-
book = "book"
|
|
1859
|
-
}
|
|
1860
|
-
export declare enum MetaOpenGraphAvailability {
|
|
1861
|
-
inStock = "in stock",
|
|
1862
|
-
outOfStock = "out of stock",
|
|
1863
|
-
preorder = "preorder",
|
|
1864
|
-
backorder = "backorder",
|
|
1865
|
-
discontinued = "discontinued",
|
|
1866
|
-
pending = "pending"
|
|
1867
|
-
}
|
|
1868
|
-
export declare enum MetaOpenGraphCondition {
|
|
1869
|
-
new = "new",
|
|
1870
|
-
used = "used",
|
|
1871
|
-
refurbished = "refurbished"
|
|
1872
|
-
}
|
|
1873
|
-
export declare enum MetaOpenGraphAge {
|
|
1874
|
-
newborn = "newborn",
|
|
1875
|
-
infant = "infant",
|
|
1876
|
-
toddler = "toddler",
|
|
1877
|
-
kids = "kids",
|
|
1878
|
-
adult = "adult"
|
|
1879
|
-
}
|
|
1880
|
-
export declare enum MetaOpenGraphGender {
|
|
1881
|
-
female = "female",
|
|
1882
|
-
male = "male",
|
|
1883
|
-
unisex = "unisex"
|
|
1884
|
-
}
|
|
1885
|
-
export declare enum MetaTwitterTag {
|
|
1886
|
-
card = "twitter:card",
|
|
1887
|
-
site = "twitter:site",
|
|
1888
|
-
creator = "twitter:creator",
|
|
1889
|
-
url = "twitter:url",
|
|
1890
|
-
title = "twitter:title",
|
|
1891
|
-
description = "twitter:description",
|
|
1892
|
-
image = "twitter:image",
|
|
1893
|
-
imageAlt = "twitter:image:alt",
|
|
1894
|
-
imageSrc = "twitter:image:src",
|
|
1895
|
-
imageWidth = "twitter:image:width",
|
|
1896
|
-
imageHeight = "twitter:image:height",
|
|
1897
|
-
label1 = "twitter:label1",
|
|
1898
|
-
data1 = "twitter:data1",
|
|
1899
|
-
label2 = "twitter:label2",
|
|
1900
|
-
data2 = "twitter:data2",
|
|
1901
|
-
appNameIphone = "twitter:app:name:iphone",
|
|
1902
|
-
appIdIphone = "twitter:app:id:iphone",
|
|
1903
|
-
appUrlIphone = "twitter:app:url:iphone",
|
|
1904
|
-
appNameIpad = "twitter:app:name:ipad",
|
|
1905
|
-
appIdIpad = "twitter:app:id:ipad",
|
|
1906
|
-
appUrlIpad = "twitter:app:url:ipad",
|
|
1907
|
-
appNameGooglePlay = "twitter:app:name:googleplay",
|
|
1908
|
-
appIdGooglePlay = "twitter:app:id:googleplay",
|
|
1909
|
-
appUrlGooglePlay = "twitter:app:url:googleplay",
|
|
1910
|
-
player = "twitter:player",
|
|
1911
|
-
playerWidth = "twitter:player:width",
|
|
1912
|
-
playerHeight = "twitter:player:height",
|
|
1913
|
-
playerStream = "twitter:player:stream",
|
|
1914
|
-
playerStreamContentType = "twitter:player:stream:content_type"
|
|
1915
|
-
}
|
|
1916
|
-
export declare enum MetaTwitterCard {
|
|
1917
|
-
summary = "summary",
|
|
1918
|
-
summaryLargeImage = "summary_large_image",
|
|
1919
|
-
app = "app",
|
|
1920
|
-
player = "player",
|
|
1921
|
-
product = "product",
|
|
1922
|
-
gallery = "gallery",
|
|
1923
|
-
photo = "photo",
|
|
1924
|
-
leadGeneration = "lead_generation",
|
|
1925
|
-
audio = "audio",
|
|
1926
|
-
poll = "poll"
|
|
1927
|
-
}
|
|
1292
|
+
export declare enum MetaTag { title = "title", description = "description", keywords = "keywords", canonical = "canonical", robots = "robots", author = "author" }
|
|
1293
|
+
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" }
|
|
1294
|
+
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" }
|
|
1295
|
+
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" }
|
|
1296
|
+
export declare enum MetaOpenGraphAvailability { inStock = "in stock", outOfStock = "out of stock", preorder = "preorder", backorder = "backorder", discontinued = "discontinued", pending = "pending" }
|
|
1297
|
+
export declare enum MetaOpenGraphCondition { new = "new", used = "used", refurbished = "refurbished" }
|
|
1298
|
+
export declare enum MetaOpenGraphAge { newborn = "newborn", infant = "infant", toddler = "toddler", kids = "kids", adult = "adult" }
|
|
1299
|
+
export declare enum MetaOpenGraphGender { female = "female", male = "male", unisex = "unisex" }
|
|
1300
|
+
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" }
|
|
1301
|
+
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" }
|
|
1928
1302
|
// File: src/types/searchTypes.d.ts
|
|
1929
1303
|
export type SearchItem = Record<string, any>;
|
|
1930
1304
|
export type SearchColumnPath<K, P> = K extends string ? P extends string ? `${K}.${P}` : never : never;
|
|
1931
1305
|
export type SearchColumn<T extends SearchItem> = any;
|
|
1932
1306
|
export type SearchColumns<T extends SearchItem> = (any)[];
|
|
1933
|
-
export type SearchFormatCapitalize<K extends string> =
|
|
1934
|
-
export type SearchFormatKey<K> =
|
|
1307
|
+
export type SearchFormatCapitalize<K extends string> = any;
|
|
1308
|
+
export type SearchFormatKey<K> = any;
|
|
1935
1309
|
export type SearchFormatItem<T extends SearchItem, KT extends string[]> = any;
|
|
1936
|
-
export type SearchFormatList<T extends SearchItem, K extends string[]> =
|
|
1310
|
+
export type SearchFormatList<T extends SearchItem, K extends string[]> = any;
|
|
1937
1311
|
export type SearchListValue<T extends SearchItem> = T[] | undefined;
|
|
1938
|
-
export type SearchOptions = {
|
|
1939
|
-
|
|
1940
|
-
returnEverything?: boolean;
|
|
1941
|
-
delay?: number;
|
|
1942
|
-
findExactMatch?: boolean;
|
|
1943
|
-
classSearchName?: string;
|
|
1944
|
-
};
|
|
1945
|
-
export type SearchCacheItem<T extends SearchItem> = {
|
|
1946
|
-
item: T;
|
|
1947
|
-
value: string;
|
|
1948
|
-
};
|
|
1312
|
+
export type SearchOptions = { limit?: number; returnEverything?: boolean; delay?: number; findExactMatch?: boolean; classSearchName?: string; };
|
|
1313
|
+
export type SearchCacheItem<T extends SearchItem> = { item: T; value: string; };
|
|
1949
1314
|
export type SearchCache<T extends SearchItem> = SearchCacheItem<T>[];
|
|
1950
|
-
export type HighlightMatchItem = {
|
|
1951
|
-
text: string;
|
|
1952
|
-
isMatch: boolean;
|
|
1953
|
-
};
|
|
1315
|
+
export type HighlightMatchItem = { text: string; isMatch: boolean; };
|
|
1954
1316
|
// File: src/types/translateTypes.d.ts
|
|
1955
|
-
export type TranslateConfig = {
|
|
1956
|
-
url?: string;
|
|
1957
|
-
propsName?: string;
|
|
1958
|
-
readApi?: boolean;
|
|
1959
|
-
};
|
|
1317
|
+
export type TranslateConfig = { url?: string; propsName?: string; readApi?: boolean; };
|
|
1960
1318
|
export type TranslateCode = string | string[];
|
|
1961
|
-
export type TranslateList<T extends TranslateCode[]> =
|
|
1319
|
+
export type TranslateList<T extends TranslateCode[]> = { [K in T[number] as K extends readonly string[] ? K[0] : K]: string; };
|
|
1962
1320
|
export type TranslateItemOrList<T extends TranslateCode> = T extends string[] ? TranslateList<T> : string;
|
|
1963
1321
|
export type TranslateDataFileList = Record<string, string>;
|
|
1964
1322
|
export type TranslateDataFileItem = () => Promise<TranslateDataFileList>;
|